|
@@ -1,72 +1,136 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
-
|
|
|
|
<div v-show="!isShowPrint">
|
|
<div v-show="!isShowPrint">
|
|
- <div class="main-title" style="margin-top: 0;">
|
|
|
|
|
|
+ <div class="main-title" style="margin-top: 0">
|
|
<div class="title">仓库提货确认</div>
|
|
<div class="title">仓库提货确认</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<div>
|
|
- <el-form ref="screenForm" :model="screenForm" label-width="96px" size="mini" label-position="right">
|
|
|
|
|
|
+ <el-form
|
|
|
|
+ ref="screenForm"
|
|
|
|
+ :model="screenForm"
|
|
|
|
+ label-width="96px"
|
|
|
|
+ size="mini"
|
|
|
|
+ label-position="right"
|
|
|
|
+ >
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
<el-form-item label="提货人手机号" prop="phone">
|
|
<el-form-item label="提货人手机号" prop="phone">
|
|
- <el-input v-model="screenForm.phone" placeholder="请输入提货人手机号"></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="screenForm.phone"
|
|
|
|
+ placeholder="请输入提货人手机号"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="3" :lg="3">
|
|
<el-col :xs="24" :sm="3" :lg="3">
|
|
- <el-button size="mini" type="primary" @click="getCode" :disabled="!screenForm.phone || countDown != 60">{{countDown == 60 ? getCodeText : '重新获取('+countDown+'s)'}}</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="getCode"
|
|
|
|
+ :disabled="!screenForm.phone || countDown != 60"
|
|
|
|
+ >{{
|
|
|
|
+ countDown == 60 ? getCodeText : "重新获取(" + countDown + "s)"
|
|
|
|
+ }}</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-form-item label="验证码" prop="code">
|
|
<el-form-item label="验证码" prop="code">
|
|
- <el-input v-model="screenForm.code" placeholder="请输入验证码"></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="screenForm.code"
|
|
|
|
+ placeholder="请输入验证码"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="3" :lg="3">
|
|
<el-col :xs="24" :sm="3" :lg="3">
|
|
- <el-button size="mini" type="primary" :disabled="!screenForm.phone || !screenForm.code" @click="getPickupManInfo">确 认</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="!screenForm.phone || !screenForm.code"
|
|
|
|
+ @click="getPickupManInfo"
|
|
|
|
+ >确 认</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-form-item label="提货人姓名" prop="name">
|
|
<el-form-item label="提货人姓名" prop="name">
|
|
<!-- <el-input v-model="screenForm.name" placeholder="请通过手机验证获取" ></el-input> -->
|
|
<!-- <el-input v-model="screenForm.name" placeholder="请通过手机验证获取" ></el-input> -->
|
|
- <el-select style="width:100%" v-model="screenForm.name" placeholder="请选提货人姓名" clearable filterable @change="onChage">
|
|
|
|
- <el-option v-for="item in userList"
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ v-model="screenForm.name"
|
|
|
|
+ placeholder="请选提货人姓名"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ @change="onChage"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in userList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
:label="`${item.takerName} - ${item.customerName}`"
|
|
:label="`${item.takerName} - ${item.customerName}`"
|
|
- :value="item.id">
|
|
|
|
|
|
+ :value="item.id"
|
|
|
|
+ >
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-form-item label="提货人身份证" prop="idCard">
|
|
<el-form-item label="提货人身份证" prop="idCard">
|
|
- <el-input v-model="screenForm.idCard" placeholder="请通过手机验证获取" readonly></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="screenForm.idCard"
|
|
|
|
+ placeholder="请通过手机验证获取"
|
|
|
|
+ readonly
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-form-item label="经销商" prop="customerName">
|
|
<el-form-item label="经销商" prop="customerName">
|
|
- <el-input v-model="screenForm.customerName" placeholder="经销商" readonly></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="screenForm.customerName"
|
|
|
|
+ placeholder="经销商"
|
|
|
|
+ readonly
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
<el-form-item label="仓库" prop="warehouse">
|
|
<el-form-item label="仓库" prop="warehouse">
|
|
- <el-select v-model="screenForm.warehouse" placeholder="请选择仓库" filterable clearable style="width: 100%">
|
|
|
|
- <el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="screenForm.warehouse"
|
|
|
|
+ placeholder="请选择仓库"
|
|
|
|
+ filterable
|
|
|
|
+ clearable
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ v-for="(item, index) in warehouseList"
|
|
|
|
+ :key="index"
|
|
|
|
+ ></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="5" :lg="5">
|
|
<el-col :xs="24" :sm="5" :lg="5">
|
|
- <el-button size="mini" type="primary" @click="getList">查 询</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="getList"
|
|
|
|
+ >查 询</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
|
<el-form-item prop="status" label-width="0">
|
|
<el-form-item prop="status" label-width="0">
|
|
- <el-radio-group v-model="screenForm.status" size="mini" @change="getList()">
|
|
|
|
- <el-radio-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-radio-button>
|
|
|
|
|
|
+ <el-radio-group
|
|
|
|
+ v-model="screenForm.status"
|
|
|
|
+ size="mini"
|
|
|
|
+ @change="getList()"
|
|
|
|
+ >
|
|
|
|
+ <el-radio-button
|
|
|
|
+ v-for="(item, index) in statusList"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.value"
|
|
|
|
+ >{{ item.label }}</el-radio-button
|
|
|
|
+ >
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -83,98 +147,239 @@
|
|
|
|
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
<div class="table">
|
|
<div class="table">
|
|
- <el-table ref="table" v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe @select="handleSelect" @select-all="handleSelectAll">
|
|
|
|
- <el-table-column align="left" type="selection" width="55"></el-table-column>
|
|
|
|
|
|
+ <el-table
|
|
|
|
+ ref="table"
|
|
|
|
+ v-loading="listLoading"
|
|
|
|
+ :data="dataList"
|
|
|
|
+ element-loading-text="Loading"
|
|
|
|
+ border
|
|
|
|
+ fit
|
|
|
|
+ highlight-current-row
|
|
|
|
+ stripe
|
|
|
|
+ @select="handleSelect"
|
|
|
|
+ @select-all="handleSelectAll"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ type="selection"
|
|
|
|
+ width="55"
|
|
|
|
+ ></el-table-column>
|
|
<!-- <el-table-column align="left" label="操作" width="100" fixed="left">
|
|
<!-- <el-table-column align="left" label="操作" width="100" fixed="left">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="toPrint(scope.row)">打印</el-button>
|
|
<el-button type="text" @click="toPrint(scope.row)">打印</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
- <el-table-column align="left" label="状态" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="状态"
|
|
|
|
+ min-width="100"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.printNum ? '已打单(' + scope.row.printNum + ')' : '未打单' }}
|
|
|
|
|
|
+ {{
|
|
|
|
+ scope.row.printNum
|
|
|
|
+ ? "已打单(" + scope.row.printNum + ")"
|
|
|
|
+ : "未打单"
|
|
|
|
+ }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="信息密钥" prop="informationKey" min-width="120" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="信息密钥"
|
|
|
|
+ prop="informationKey"
|
|
|
|
+ min-width="120"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<CopyButton :copyText="scope.row.informationKey" />
|
|
<CopyButton :copyText="scope.row.informationKey" />
|
|
- <span>{{scope.row.informationKey}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.informationKey }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="经销商编码"
|
|
|
|
+ prop="customerNumber"
|
|
|
|
+ min-width="100"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<CopyButton :copyText="scope.row.customerNumber" />
|
|
<CopyButton :copyText="scope.row.customerNumber" />
|
|
- <span>{{scope.row.customerNumber}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.customerNumber }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="经销商名称" prop="customerName" min-width="250" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="经销商名称"
|
|
|
|
+ prop="customerName"
|
|
|
|
+ min-width="250"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<CopyButton :copyText="scope.row.customerName" />
|
|
<CopyButton :copyText="scope.row.customerName" />
|
|
- <span>{{scope.row.customerName}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.customerName }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="预约日期" prop="pickTime" min-width="120" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="预约日期"
|
|
|
|
+ prop="pickTime"
|
|
|
|
+ min-width="120"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.pickTime | dateToDayFilter }}
|
|
{{ scope.row.pickTime | dateToDayFilter }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="提货时段" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="提货时段"
|
|
|
|
+ min-width="100"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.pickStatus == '1' ? '上午':'下午' }}
|
|
|
|
|
|
+ {{ scope.row.pickStatus == "1" ? "上午" : "下午" }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="销售订单号" prop="mainOrderId" min-width="160" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="销售订单号"
|
|
|
|
+ prop="mainOrderId"
|
|
|
|
+ min-width="160"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="(scope.row.orderType == 'HOME' || scope.row.orderType == 'TRADE') ? scope.row.enginOrderNo: scope.row.mainOrderId" />
|
|
|
|
- <span>{{ (scope.row.orderType == 'HOME' || scope.row.orderType == 'TRADE') ? scope.row.enginOrderNo: scope.row.mainOrderId }}</span>
|
|
|
|
|
|
+ <CopyButton
|
|
|
|
+ :copyText="
|
|
|
|
+ scope.row.orderType == 'HOME' ||
|
|
|
|
+ scope.row.orderType == 'TRADE'
|
|
|
|
+ ? scope.row.enginOrderNo
|
|
|
|
+ : scope.row.mainOrderId
|
|
|
|
+ "
|
|
|
|
+ />
|
|
|
|
+ <span>{{
|
|
|
|
+ scope.row.orderType == "HOME" ||
|
|
|
|
+ scope.row.orderType == "TRADE"
|
|
|
|
+ ? scope.row.enginOrderNo
|
|
|
|
+ : scope.row.mainOrderId
|
|
|
|
+ }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="发货申请单号" prop="invoiceId" min-width="130" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="发货申请单号"
|
|
|
|
+ prop="invoiceId"
|
|
|
|
+ min-width="130"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<CopyButton :copyText="scope.row.invoiceId" />
|
|
<CopyButton :copyText="scope.row.invoiceId" />
|
|
- <span>{{scope.row.invoiceId}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.invoiceId }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="left" label="物料编码" prop="materialCode" min-width="120" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="销售类型"
|
|
|
|
+ prop="saleTypeName"
|
|
|
|
+ min-width="100"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="物料编码"
|
|
|
|
+ prop="materialCode"
|
|
|
|
+ min-width="120"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<CopyButton :copyText="scope.row.materialCode" />
|
|
<CopyButton :copyText="scope.row.materialCode" />
|
|
- <span>{{scope.row.materialCode}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.materialCode }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="140" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="产品编码"
|
|
|
|
+ prop="materialOldNumber"
|
|
|
|
+ min-width="140"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<CopyButton :copyText="scope.row.materialOldNumber" />
|
|
<CopyButton :copyText="scope.row.materialOldNumber" />
|
|
- <span>{{scope.row.materialOldNumber}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.materialOldNumber }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="产品名称"
|
|
|
|
+ prop="materialName"
|
|
|
|
+ min-width="160"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<CopyButton :copyText="scope.row.materialName" />
|
|
<CopyButton :copyText="scope.row.materialName" />
|
|
- <span>{{scope.row.materialName}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.materialName }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="规格型号"
|
|
|
|
+ prop="specification"
|
|
|
|
+ min-width="350"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<CopyButton :copyText="scope.row.specification" />
|
|
<CopyButton :copyText="scope.row.specification" />
|
|
- <span>{{scope.row.specification}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.specification }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="left" label="数量" prop="refundableQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="单位"
|
|
|
|
+ prop="unit"
|
|
|
|
+ min-width="100"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="数量"
|
|
|
|
+ prop="refundableQty"
|
|
|
|
+ min-width="100"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
<!-- <el-table-column align="left" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<!-- <el-table-column align="left" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="left" label="金额" prop="payAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="left" label="金额" prop="payAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="left" label="使用返利金额" prop="payRebateAmount" min-width="120" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="left" label="使用返利金额" prop="payRebateAmount" min-width="120" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="left" label="格力折扣" prop="totalDiscAmount" min-width="100" show-overflow-tooltip></el-table-column> -->
|
|
<el-table-column align="left" label="格力折扣" prop="totalDiscAmount" min-width="100" show-overflow-tooltip></el-table-column> -->
|
|
- <el-table-column align="left" label="仓库" prop="correspondName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="left" label="提货方式" prop="pickType" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="仓库"
|
|
|
|
+ prop="correspondName"
|
|
|
|
+ min-width="160"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="提货方式"
|
|
|
|
+ prop="pickType"
|
|
|
|
+ min-width="100"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.pickType == '1' ? '自提':'物流快递' }}
|
|
|
|
|
|
+ {{ scope.row.pickType == "1" ? "自提" : "物流快递" }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="提货人/物流公司" prop="takerName" min-width="160" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="提货人/物流公司"
|
|
|
|
+ prop="takerName"
|
|
|
|
+ min-width="160"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.pickType == '1' ? scope.row.takerName:scope.row.pickLogistics }}
|
|
|
|
|
|
+ {{
|
|
|
|
+ scope.row.pickType == "1"
|
|
|
|
+ ? scope.row.takerName
|
|
|
|
+ : scope.row.pickLogistics
|
|
|
|
+ }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -196,18 +401,39 @@
|
|
|
|
|
|
<div class="page-footer">
|
|
<div class="page-footer">
|
|
<div class="footer">
|
|
<div class="footer">
|
|
- <el-button type="primary" @click="toPrint" :disabled="tableSelection.length < 1" v-if="$checkBtnRole('print', $route.meta.roles)">打印发货单</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="toPrint"
|
|
|
|
+ :disabled="tableSelection.length < 1"
|
|
|
|
+ v-if="$checkBtnRole('print', $route.meta.roles)"
|
|
|
|
+ >打印发货单</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <el-dialog title="密码确认" :visible.sync="isShowDialog" :show-close="false" width="40%" :close-on-click-modal="false">
|
|
|
|
- <el-form ref="dialogForm" :model="dialogForm" :rules="dialogFormRules" label-position="right" label-width="70px">
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="密码确认"
|
|
|
|
+ :visible.sync="isShowDialog"
|
|
|
|
+ :show-close="false"
|
|
|
|
+ width="40%"
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ >
|
|
|
|
+ <el-form
|
|
|
|
+ ref="dialogForm"
|
|
|
|
+ :model="dialogForm"
|
|
|
|
+ :rules="dialogFormRules"
|
|
|
|
+ label-position="right"
|
|
|
|
+ label-width="70px"
|
|
|
|
+ >
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
|
<el-form-item label="密码" prop="password">
|
|
<el-form-item label="密码" prop="password">
|
|
- <el-input v-model="dialogForm.password" autocomplete="off" placeholder="请输入密码"></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="dialogForm.password"
|
|
|
|
+ autocomplete="off"
|
|
|
|
+ placeholder="请输入密码"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
|
@@ -215,9 +441,16 @@
|
|
<el-input v-model="dialogForm.createMan" readonly></el-input>
|
|
<el-input v-model="dialogForm.createMan" readonly></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xs="24" :sm="12" :lg="12" style="height: 51px;">
|
|
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" style="height: 51px">
|
|
<el-form-item label="操作日期" prop="createDate">
|
|
<el-form-item label="操作日期" prop="createDate">
|
|
- <el-date-picker v-model="dialogForm.createDate" readonly type="date" value-format="yyyy-MM-dd" style="width: 100%;" placeholder="选择日期">
|
|
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="dialogForm.createDate"
|
|
|
|
+ readonly
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
+ >
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -231,7 +464,6 @@
|
|
<print-preview ref="preView" />
|
|
<print-preview ref="preView" />
|
|
|
|
|
|
<!-- <PickupPrint :listItem="queryItem" v-if="isShowPrint" @backListFormDetail="backList" /> -->
|
|
<!-- <PickupPrint :listItem="queryItem" v-if="isShowPrint" @backListFormDetail="backList" /> -->
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -242,6 +474,7 @@ import {
|
|
getPickupManInfo,
|
|
getPickupManInfo,
|
|
checkPassword,
|
|
checkPassword,
|
|
getWarehouseList,
|
|
getWarehouseList,
|
|
|
|
+ getDetailPrintDisString,
|
|
} from "@/api/supply/pickup";
|
|
} from "@/api/supply/pickup";
|
|
import print from "@/mixin/print";
|
|
import print from "@/mixin/print";
|
|
|
|
|
|
@@ -249,12 +482,11 @@ import { getDealerList, getListCustomer } from "@/api/basic_data/dealer";
|
|
|
|
|
|
import PickupPrint from "@/views/supply/pickup/components/pickup_print";
|
|
import PickupPrint from "@/views/supply/pickup/components/pickup_print";
|
|
|
|
|
|
-
|
|
|
|
-import printPreview from './components/design/preview.vue'
|
|
|
|
|
|
+import printPreview from "./components/design/preview.vue";
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
PickupPrint,
|
|
PickupPrint,
|
|
- printPreview
|
|
|
|
|
|
+ printPreview,
|
|
},
|
|
},
|
|
mixins: [print],
|
|
mixins: [print],
|
|
data() {
|
|
data() {
|
|
@@ -272,9 +504,9 @@ export default {
|
|
idCard: "",
|
|
idCard: "",
|
|
manId: "",
|
|
manId: "",
|
|
status: 0,
|
|
status: 0,
|
|
- customerName: '',
|
|
|
|
- warehouse: '',
|
|
|
|
- customerId:''
|
|
|
|
|
|
+ customerName: "",
|
|
|
|
+ warehouse: "",
|
|
|
|
+ customerId: "",
|
|
},
|
|
},
|
|
statusList: [
|
|
statusList: [
|
|
{ label: "未打单", value: 0 },
|
|
{ label: "未打单", value: 0 },
|
|
@@ -290,7 +522,7 @@ export default {
|
|
|
|
|
|
queryItem: {},
|
|
queryItem: {},
|
|
isShowPrint: false,
|
|
isShowPrint: false,
|
|
- dealerList:[],
|
|
|
|
|
|
+ dealerList: [],
|
|
isShowDialog: false,
|
|
isShowDialog: false,
|
|
dialogForm: {
|
|
dialogForm: {
|
|
password: "",
|
|
password: "",
|
|
@@ -300,7 +532,7 @@ export default {
|
|
dialogFormRules: {
|
|
dialogFormRules: {
|
|
password: [{ required: true, message: "请输入密码", trigger: "blur" }],
|
|
password: [{ required: true, message: "请输入密码", trigger: "blur" }],
|
|
},
|
|
},
|
|
- userList:[],
|
|
|
|
|
|
+ userList: [],
|
|
isShowDialog: false,
|
|
isShowDialog: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -316,16 +548,15 @@ export default {
|
|
|
|
|
|
created() {
|
|
created() {
|
|
// this.getDealerList()
|
|
// this.getDealerList()
|
|
- this.getWarehouseList()
|
|
|
|
|
|
+ this.getWarehouseList();
|
|
},
|
|
},
|
|
// activated(){
|
|
// activated(){
|
|
// this.initPrint()
|
|
// this.initPrint()
|
|
// },
|
|
// },
|
|
mounted() {
|
|
mounted() {
|
|
- this.initPrint()
|
|
|
|
|
|
+ this.initPrint();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
getDate() {
|
|
getDate() {
|
|
var date = new Date();
|
|
var date = new Date();
|
|
var seperator1 = "-";
|
|
var seperator1 = "-";
|
|
@@ -351,10 +582,10 @@ export default {
|
|
getWarehouseList() {
|
|
getWarehouseList() {
|
|
getWarehouseList({
|
|
getWarehouseList({
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
- pageSize: -1
|
|
|
|
|
|
+ pageSize: -1,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
this.warehouseList = res.data.records;
|
|
this.warehouseList = res.data.records;
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
|
|
|
|
// 获取短信验证码
|
|
// 获取短信验证码
|
|
@@ -383,39 +614,38 @@ export default {
|
|
this.screenForm.name = `${res.data[0].takerName} - ${res.data[0].customerName}`;
|
|
this.screenForm.name = `${res.data[0].takerName} - ${res.data[0].customerName}`;
|
|
this.screenForm.idCard = res.data[0].identity;
|
|
this.screenForm.idCard = res.data[0].identity;
|
|
this.screenForm.manId = res.data[0].id;
|
|
this.screenForm.manId = res.data[0].id;
|
|
- this.screenForm.customerName = res.data[0].customerName
|
|
|
|
- this.screenForm.customerId = res.data[0].customerId
|
|
|
|
- this.userList = res.data
|
|
|
|
- this.getListCustomer()
|
|
|
|
|
|
+ this.screenForm.customerName = res.data[0].customerName;
|
|
|
|
+ this.screenForm.customerId = res.data[0].customerId;
|
|
|
|
+ this.userList = res.data;
|
|
|
|
+ this.getListCustomer();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|
|
- onChage(e){
|
|
|
|
- const userInfo = this.userList.filter(k=>{
|
|
|
|
- return e === k.id
|
|
|
|
- })
|
|
|
|
- this.screenForm.name = `${userInfo[0].takerName} - ${userInfo[0].customerName}`;
|
|
|
|
- this.screenForm.idCard = userInfo[0].identity;
|
|
|
|
- this.screenForm.manId = userInfo[0].id;
|
|
|
|
- this.screenForm.customerName = userInfo[0].customerName
|
|
|
|
- this.screenForm.customerId = userInfo[0].customerId
|
|
|
|
|
|
+ onChage(e) {
|
|
|
|
+ const userInfo = this.userList.filter((k) => {
|
|
|
|
+ return e === k.id;
|
|
|
|
+ });
|
|
|
|
+ this.screenForm.name = `${userInfo[0].takerName} - ${userInfo[0].customerName}`;
|
|
|
|
+ this.screenForm.idCard = userInfo[0].identity;
|
|
|
|
+ this.screenForm.manId = userInfo[0].id;
|
|
|
|
+ this.screenForm.customerName = userInfo[0].customerName;
|
|
|
|
+ this.screenForm.customerId = userInfo[0].customerId;
|
|
},
|
|
},
|
|
|
|
|
|
- getListCustomer(){
|
|
|
|
|
|
+ getListCustomer() {
|
|
getListCustomer({
|
|
getListCustomer({
|
|
- keyword:'',
|
|
|
|
|
|
+ keyword: "",
|
|
phone: this.screenForm.phone,
|
|
phone: this.screenForm.phone,
|
|
- pageNum:1,
|
|
|
|
- pageSize:-1
|
|
|
|
- }).then(res=>{
|
|
|
|
- this.dealerList = res.data.records
|
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: -1,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.dealerList = res.data.records;
|
|
// this.screenForm.customerNumber = this.dataList[0].number
|
|
// this.screenForm.customerNumber = this.dataList[0].number
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
|
|
|
|
// 查询列表
|
|
// 查询列表
|
|
getList() {
|
|
getList() {
|
|
-
|
|
|
|
console.log(this.screenForm.customerId);
|
|
console.log(this.screenForm.customerId);
|
|
if (!this.screenForm.manId) {
|
|
if (!this.screenForm.manId) {
|
|
return this.$errorMsg("请先查询提货人信息");
|
|
return this.$errorMsg("请先查询提货人信息");
|
|
@@ -433,7 +663,7 @@ export default {
|
|
takerPhone: this.screenForm.phone,
|
|
takerPhone: this.screenForm.phone,
|
|
// customerName:this.screenForm.customerName,
|
|
// customerName:this.screenForm.customerName,
|
|
correspondId: this.screenForm.warehouse,
|
|
correspondId: this.screenForm.warehouse,
|
|
- customerId:this.screenForm.customerId
|
|
|
|
|
|
+ customerId: this.screenForm.customerId,
|
|
};
|
|
};
|
|
getPickupList(params).then((res) => {
|
|
getPickupList(params).then((res) => {
|
|
this.dataList = res.data.records;
|
|
this.dataList = res.data.records;
|
|
@@ -486,24 +716,39 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 点击打印
|
|
// 点击打印
|
|
- toPrint() {
|
|
|
|
-
|
|
|
|
- if (!this.tableSelection[0].printNum) {
|
|
|
|
- this.queryItem = this.tableSelection;
|
|
|
|
- console.log(this.tableSelection);
|
|
|
|
- this.getDateil(this.tableSelection,'getDtailPrintDis');
|
|
|
|
- this.$refs.preView.show(this.hiprintTemplate, this.outputData);
|
|
|
|
|
|
+ async toPrint() {
|
|
|
|
+ const params = [];
|
|
|
|
+ const len = this.tableSelection.length;
|
|
|
|
+ this.queryItem = this.tableSelection;
|
|
|
|
+ for (let i = len; i > 0; i--) {
|
|
|
|
+ params.push({
|
|
|
|
+ id: this.tableSelection[i - 1].id,
|
|
|
|
+ invoiceId: this.tableSelection[i - 1].invoiceId,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ const { data } = await getDetailPrintDisString(params);
|
|
|
|
+ console.log(data);
|
|
|
|
+ if (data) {
|
|
|
|
+ this.$confirm(<p class="text">{data}</p>, "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ customClass: "text",
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ if (this.tableSelection[0].printNum) {
|
|
|
|
+ this.dialogForm.createMan = JSON.parse(
|
|
|
|
+ localStorage.getItem("supply_user")
|
|
|
|
+ ).nickName;
|
|
|
|
+ this.dialogForm.createDate = this.getDate();
|
|
|
|
+ this.isShowDialog = true;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
- this.queryItem = this.tableSelection;
|
|
|
|
- this.dialogForm.createMan = JSON.parse(
|
|
|
|
- localStorage.getItem("supply_user")
|
|
|
|
- ).nickName;
|
|
|
|
- this.dialogForm.createDate = this.getDate();
|
|
|
|
- this.isShowDialog = true;
|
|
|
|
|
|
+ this.getDateil(this.tableSelection, "getDtailPrintDis");
|
|
|
|
+ this.$refs.preView.show(this.hiprintTemplate, this.outputData);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
// 关闭弹窗
|
|
// 关闭弹窗
|
|
cancelDialogForm() {
|
|
cancelDialogForm() {
|
|
this.isShowDialog = false;
|
|
this.isShowDialog = false;
|
|
@@ -520,7 +765,7 @@ export default {
|
|
};
|
|
};
|
|
checkPassword(params).then((res) => {
|
|
checkPassword(params).then((res) => {
|
|
this.cancelDialogForm();
|
|
this.cancelDialogForm();
|
|
- this.getDateil(this.tableSelection,'getDtailPrintDis');
|
|
|
|
|
|
+ this.getDateil(this.tableSelection, "getDtailPrintDis");
|
|
this.$refs.preView.show(this.hiprintTemplate, this.outputData);
|
|
this.$refs.preView.show(this.hiprintTemplate, this.outputData);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -544,4 +789,7 @@ export default {
|
|
padding-left: 10px;
|
|
padding-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.text {
|
|
|
|
+ word-break: break-all !important;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|