|
@@ -24,11 +24,11 @@
|
|
<el-form-item label="物流公司" prop="logisticsId">
|
|
<el-form-item label="物流公司" prop="logisticsId">
|
|
<el-select v-model="screenForm.logisticsId" placeholder="全部" style="width: 100%">
|
|
<el-select v-model="screenForm.logisticsId" placeholder="全部" style="width: 100%">
|
|
<el-option
|
|
<el-option
|
|
- :label="item.logisticsCompany"
|
|
|
|
- :value="item.id"
|
|
|
|
v-for="(item, index) in companyList"
|
|
v-for="(item, index) in companyList"
|
|
:key="index"
|
|
:key="index"
|
|
- ></el-option>
|
|
|
|
|
|
+ :label="item.logisticsCompany"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -36,16 +36,14 @@
|
|
<el-form-item label="经销商" prop="customerId">
|
|
<el-form-item label="经销商" prop="customerId">
|
|
<!-- v-select-loadmore:[myData]="loadmore" -->
|
|
<!-- v-select-loadmore:[myData]="loadmore" -->
|
|
<el-select v-model="screenForm.customerId" placeholder="选择经销商" clearable filterable>
|
|
<el-select v-model="screenForm.customerId" placeholder="选择经销商" clearable filterable>
|
|
- <el-option v-for="item in dealerList2" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ <el-option v-for="item in dealerList2" :key="item.id" :label="item.name" :value="item.id" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
<el-form-item label="仓库" prop="warehouse">
|
|
<el-form-item label="仓库" prop="warehouse">
|
|
<el-select v-model="screenForm.warehouse" placeholder="选择仓库" clearable filterable>
|
|
<el-select v-model="screenForm.warehouse" placeholder="选择仓库" clearable filterable>
|
|
- <el-option v-for="item in warehouseList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ <el-option v-for="item in warehouseList" :key="item.id" :label="item.name" :value="item.id" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -58,17 +56,21 @@
|
|
<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-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
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="!screenForm.phone || countDown != 60"
|
|
|
|
+ @click="getCode"
|
|
|
|
+ >{{ countDown == 60 ? getCodeText : '重新获取(' + countDown + 's)' }}
|
|
</el-button>
|
|
</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-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">
|
|
@@ -77,7 +79,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="!screenForm.phone || !screenForm.code"
|
|
:disabled="!screenForm.phone || !screenForm.code"
|
|
@click="getPickupManInfo"
|
|
@click="getPickupManInfo"
|
|
- >确 认
|
|
|
|
|
|
+ >确 认
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -86,8 +88,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
|
|
<el-select
|
|
- style="width: 100%"
|
|
|
|
v-model="screenForm.name"
|
|
v-model="screenForm.name"
|
|
|
|
+ style="width: 100%"
|
|
placeholder="请选提货人姓名"
|
|
placeholder="请选提货人姓名"
|
|
clearable
|
|
clearable
|
|
filterable
|
|
filterable
|
|
@@ -98,21 +100,20 @@
|
|
: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-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-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-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">
|
|
@@ -125,11 +126,11 @@
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- :label="item.name"
|
|
|
|
- :value="item.id"
|
|
|
|
v-for="(item, index) in warehouseList"
|
|
v-for="(item, index) in warehouseList"
|
|
:key="index"
|
|
:key="index"
|
|
- ></el-option>
|
|
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -142,8 +143,11 @@
|
|
<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-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
|
|
|
|
+ v-for="(item, index) in statusList"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.value"
|
|
|
|
+ >{{ item.label }}
|
|
</el-radio-button>
|
|
</el-radio-button>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -152,11 +156,11 @@
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- <el-form :model="screenForm" ref="form" label-width="120px" size="mini">
|
|
|
|
|
|
+ <el-form ref="form" :model="screenForm" label-width="120px" size="mini">
|
|
<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="申请发货单号">
|
|
<el-form-item label="申请发货单号">
|
|
- <el-input v-model="screenForm.invoiceId" clearable></el-input>
|
|
|
|
|
|
+ <el-input v-model="screenForm.invoiceId" clearable />
|
|
</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">
|
|
@@ -168,7 +172,7 @@
|
|
<div class="main-title">
|
|
<div class="main-title">
|
|
<div class="title">提货单</div>
|
|
<div class="title">提货单</div>
|
|
<div class="fr">
|
|
<div class="fr">
|
|
- <ExportButton :disabled="disableExport" :exUrl="'pick/storeExport'" :exParams="exParams" />
|
|
|
|
|
|
+ <ExportButton :disabled="disableExport" :ex-url="'pick/storeExport'" :ex-params="exParams" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -186,7 +190,7 @@
|
|
@select="handleSelect"
|
|
@select="handleSelect"
|
|
@select-all="handleSelectAll"
|
|
@select-all="handleSelectAll"
|
|
>
|
|
>
|
|
- <el-table-column align="left" type="selection" width="55"></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="left" type="selection" width="55" />
|
|
<!-- <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>
|
|
@@ -209,7 +213,7 @@
|
|
</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 :copy-text="scope.row.informationKey" />
|
|
<span>{{ scope.row.informationKey }}</span>
|
|
<span>{{ scope.row.informationKey }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -221,13 +225,13 @@
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.customerNumber" />
|
|
|
|
|
|
+ <CopyButton :copy-text="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 :copy-text="scope.row.customerName" />
|
|
<span>{{ scope.row.customerName }}</span>
|
|
<span>{{ scope.row.customerName }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -244,20 +248,20 @@
|
|
<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
|
|
<CopyButton
|
|
- :copyText="
|
|
|
|
|
|
+ :copy-text="
|
|
scope.row.orderType === 'TRADE' ||
|
|
scope.row.orderType === 'TRADE' ||
|
|
- scope.row.orderType === 'HOME' ||
|
|
|
|
- scope.row.orderType === 'REQUISITION_TRADE' ||
|
|
|
|
- scope.row.orderType === 'REQUISITION_HOME'
|
|
|
|
|
|
+ scope.row.orderType === 'HOME' ||
|
|
|
|
+ scope.row.orderType === 'REQUISITION_TRADE' ||
|
|
|
|
+ scope.row.orderType === 'REQUISITION_HOME'
|
|
? scope.row.enginOrderNo
|
|
? scope.row.enginOrderNo
|
|
: scope.row.mainOrderId
|
|
: scope.row.mainOrderId
|
|
"
|
|
"
|
|
/>
|
|
/>
|
|
<span>{{
|
|
<span>{{
|
|
scope.row.orderType === 'TRADE' ||
|
|
scope.row.orderType === 'TRADE' ||
|
|
- scope.row.orderType === 'HOME' ||
|
|
|
|
- scope.row.orderType === 'REQUISITION_TRADE' ||
|
|
|
|
- scope.row.orderType === 'REQUISITION_HOME'
|
|
|
|
|
|
+ scope.row.orderType === 'HOME' ||
|
|
|
|
+ scope.row.orderType === 'REQUISITION_TRADE' ||
|
|
|
|
+ scope.row.orderType === 'REQUISITION_HOME'
|
|
? scope.row.enginOrderNo
|
|
? scope.row.enginOrderNo
|
|
: scope.row.mainOrderId
|
|
: scope.row.mainOrderId
|
|
}}</span>
|
|
}}</span>
|
|
@@ -265,7 +269,7 @@
|
|
</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 :copy-text="scope.row.invoiceId" />
|
|
<span>{{ scope.row.invoiceId }}</span>
|
|
<span>{{ scope.row.invoiceId }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -275,10 +279,10 @@
|
|
prop="saleTypeName"
|
|
prop="saleTypeName"
|
|
min-width="100"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
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="materialCode" min-width="120" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.materialCode" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.materialCode" />
|
|
<span>{{ scope.row.materialCode }}</span>
|
|
<span>{{ scope.row.materialCode }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -290,19 +294,19 @@
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.materialOldNumber" />
|
|
|
|
|
|
+ <CopyButton :copy-text="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 :copy-text="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 :copy-text="scope.row.specification" />
|
|
<span>{{ scope.row.specification }}</span>
|
|
<span>{{ scope.row.specification }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -312,14 +316,14 @@
|
|
prop="unit"
|
|
prop="unit"
|
|
min-width="100"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
- ></el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="left"
|
|
align="left"
|
|
label="数量"
|
|
label="数量"
|
|
prop="refundableQty"
|
|
prop="refundableQty"
|
|
min-width="100"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
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>
|
|
@@ -330,7 +334,7 @@
|
|
prop="correspondName"
|
|
prop="correspondName"
|
|
min-width="160"
|
|
min-width="160"
|
|
show-overflow-tooltip
|
|
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="pickType" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.pickType == '1' ? '自提' : '物流快递' }}
|
|
{{ scope.row.pickType == '1' ? '自提' : '物流快递' }}
|
|
@@ -353,26 +357,25 @@
|
|
<div class="pagination clearfix">
|
|
<div class="pagination clearfix">
|
|
<div class="fr">
|
|
<div class="fr">
|
|
<el-pagination
|
|
<el-pagination
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
:page-sizes="[200, 300, 500]"
|
|
:page-sizes="[200, 300, 500]"
|
|
:page-size="10"
|
|
:page-size="10"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="listTotal"
|
|
:total="listTotal"
|
|
- >
|
|
|
|
- </el-pagination>
|
|
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="page-footer">
|
|
<div class="page-footer">
|
|
<div class="footer">
|
|
<div class="footer">
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="$checkBtnRole('print', $route.meta.roles)"
|
|
type="primary"
|
|
type="primary"
|
|
- @click="toPrint"
|
|
|
|
:disabled="tableSelection.length < 1"
|
|
:disabled="tableSelection.length < 1"
|
|
- v-if="$checkBtnRole('print', $route.meta.roles)"
|
|
|
|
- >打印发货单
|
|
|
|
|
|
+ @click="toPrint"
|
|
|
|
+ >打印发货单
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -389,12 +392,12 @@
|
|
<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-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">
|
|
<el-form-item label="操作人" prop="createMan">
|
|
<el-form-item label="操作人" prop="createMan">
|
|
- <el-input v-model="dialogForm.createMan" readonly></el-input>
|
|
|
|
|
|
+ <el-input v-model="dialogForm.createMan" readonly />
|
|
</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">
|
|
@@ -406,8 +409,7 @@
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -417,7 +419,7 @@
|
|
<el-button type="primary" @click="submitDialogForm">确 定</el-button>
|
|
<el-button type="primary" @click="submitDialogForm">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <print-preview ref="preView" @initPrint="handleInitPrint" @refreshList="handleRefreshList" :addPrint="addPrint" />
|
|
|
|
|
|
+ <print-preview ref="preView" :add-print="addPrint" :get-oval-dateil="getOvalDateil" :get-new-detail-print-dis-string="getNewDetailPrintDisString" @refreshTableSelection="refreshTableSelection" @initPrint="handleInitPrint" @refreshList="handleRefreshList" />
|
|
|
|
|
|
<!-- <PickupPrint :listItem="queryItem" v-if="isShowPrint" @backListFormDetail="backList" /> -->
|
|
<!-- <PickupPrint :listItem="queryItem" v-if="isShowPrint" @backListFormDetail="backList" /> -->
|
|
</div>
|
|
</div>
|
|
@@ -440,6 +442,7 @@ 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'
|
|
|
|
+import { async } from 'q'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -576,7 +579,7 @@ export default {
|
|
this.listTotal = res.data.total
|
|
this.listTotal = res.data.total
|
|
},
|
|
},
|
|
loadmore() {
|
|
loadmore() {
|
|
- let len = Math.ceil(this.listTotal / 50)
|
|
|
|
|
|
+ const len = Math.ceil(this.listTotal / 50)
|
|
if (this.pageNum <= len) {
|
|
if (this.pageNum <= len) {
|
|
this.pageNum++
|
|
this.pageNum++
|
|
this.getDealerList()
|
|
this.getDealerList()
|
|
@@ -691,7 +694,12 @@ export default {
|
|
logisticsId: this.screenForm.logisticsId,
|
|
logisticsId: this.screenForm.logisticsId,
|
|
invoiceId: this.screenForm.invoiceId
|
|
invoiceId: this.screenForm.invoiceId
|
|
}
|
|
}
|
|
- getPickupList(params).then(res => {
|
|
|
|
|
|
+ // getPickupList(params).then(res => {
|
|
|
|
+ // this.dataList = res.data.records
|
|
|
|
+ // this.listTotal = res.data.total
|
|
|
|
+ // this.listLoading = false
|
|
|
|
+ // })
|
|
|
|
+ return getPickupList(params).then(res => {
|
|
this.dataList = res.data.records
|
|
this.dataList = res.data.records
|
|
this.listTotal = res.data.total
|
|
this.listTotal = res.data.total
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
@@ -733,7 +741,7 @@ export default {
|
|
// 检查是否一致
|
|
// 检查是否一致
|
|
isAllEqual(array) {
|
|
isAllEqual(array) {
|
|
if (array.length > 0) {
|
|
if (array.length > 0) {
|
|
- return !array.some(function (item, index) {
|
|
|
|
|
|
+ return !array.some(function(item, index) {
|
|
return item.informationKey !== array[0].informationKey
|
|
return item.informationKey !== array[0].informationKey
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
@@ -743,6 +751,52 @@ export default {
|
|
|
|
|
|
// 点击打印
|
|
// 点击打印
|
|
async toPrint() {
|
|
async toPrint() {
|
|
|
|
+ this.getList().then(async res => {
|
|
|
|
+ if (this.dataList.length) {
|
|
|
|
+ const ids = this.tableSelection.map(k => k.id)
|
|
|
|
+ for (let i = 0; i < ids.length; i++) {
|
|
|
|
+ console.log(this.dataList.some(e => e.id === ids[i]))
|
|
|
|
+ if (!this.dataList.some(e => e.id === ids[i])) {
|
|
|
|
+ this.tableSelection= []
|
|
|
|
+ this.$errorMsg(`单被商家取消预约,重新选择`)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ this.tableSelection= []
|
|
|
|
+ this.$errorMsg(`单被商家取消预约,重新选择`)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ const { data } = await this.getNewDetailPrintDisString()
|
|
|
|
+ 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 {
|
|
|
|
+ this.getOvalDateil()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getOvalDateil() {
|
|
|
|
+ this.getDateil(this.tableSelection, 'getDtailPrintDis', this.check).then(res => {
|
|
|
|
+ this.$endLoading()
|
|
|
|
+ this.$refs.preView.show(this.hiprintTemplate, this.outputData)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ refreshTableSelection() {
|
|
|
|
+ this.$refs.table.clearSelection()
|
|
|
|
+ this.tableSelection = []
|
|
|
|
+ console.log(333,'清空');
|
|
|
|
+ },
|
|
|
|
+ async getNewDetailPrintDisString() {
|
|
const params = []
|
|
const params = []
|
|
const len = this.tableSelection.length
|
|
const len = this.tableSelection.length
|
|
this.queryItem = this.tableSelection
|
|
this.queryItem = this.tableSelection
|
|
@@ -752,29 +806,9 @@ export default {
|
|
invoiceId: this.tableSelection[i - 1].invoiceId
|
|
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 {
|
|
|
|
- this.getDateil(this.tableSelection, 'getDtailPrintDis', this.check).then(res => {
|
|
|
|
- this.tableSelection = []
|
|
|
|
- this.$endLoading()
|
|
|
|
- this.$refs.preView.show(this.hiprintTemplate, this.outputData)
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ console.log(params, this.tableSelection)
|
|
|
|
+ return await getDetailPrintDisString(params)
|
|
},
|
|
},
|
|
-
|
|
|
|
// 关闭弹窗
|
|
// 关闭弹窗
|
|
cancelDialogForm() {
|
|
cancelDialogForm() {
|
|
this.isShowDialog = false
|
|
this.isShowDialog = false
|
|
@@ -785,7 +819,7 @@ export default {
|
|
submitDialogForm() {
|
|
submitDialogForm() {
|
|
this.$refs.dialogForm.validate(valid => {
|
|
this.$refs.dialogForm.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- let params = {
|
|
|
|
|
|
+ const params = {
|
|
shipId: this.queryItem[0].invoiceId,
|
|
shipId: this.queryItem[0].invoiceId,
|
|
password: this.dialogForm.password
|
|
password: this.dialogForm.password
|
|
}
|
|
}
|