|
@@ -10,288 +10,223 @@
|
|
|
</template>
|
|
|
|
|
|
<template #search>
|
|
|
- <el-form
|
|
|
- ref="screenForm"
|
|
|
- :model="screenForm"
|
|
|
- label-width="120px"
|
|
|
- size="mini"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="产品名称" prop="goodsName">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.goodsName"
|
|
|
- placeholder="请输入产品名称"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="物料编码" prop="goodsCode">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.goodsCode"
|
|
|
- placeholder="请输入物料编码"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="产品编码" prop="goodsOldCode">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.goodsOldCode"
|
|
|
- placeholder="请输入产品编码"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="规格型号" prop="model">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.model"
|
|
|
- placeholder="请输入规格型号"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="制单日期" prop="createDate">
|
|
|
- <el-date-picker
|
|
|
- v-model="screenForm.createDate"
|
|
|
- type="datetimerange"
|
|
|
- range-separator="至"
|
|
|
- style="width: 100%"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="发货日期" prop="deliverDate">
|
|
|
- <el-date-picker
|
|
|
- v-model="screenForm.deliverDate"
|
|
|
- type="datetimerange"
|
|
|
- range-separator="至"
|
|
|
- style="width: 100%"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="经销商编号" prop="jxsNum">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.jxsNum"
|
|
|
- placeholder="请输入经销商编号"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="经销商名称" prop="jxsName">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.jxsName"
|
|
|
- placeholder="请输入经销商名称"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="发货单号" prop="orderNum">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.orderNum"
|
|
|
- placeholder="请输入发货单号"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="订单" prop="mainOrderId">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.mainOrderId"
|
|
|
- placeholder="请输入订单"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="存货类别" prop="type">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.type"
|
|
|
- placeholder="选择存货类别"
|
|
|
- style="width: 100%"
|
|
|
- clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in categoryList"
|
|
|
- :key="item.name"
|
|
|
- :label="item.name"
|
|
|
- :value="item.name"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="仓库" prop="correspondId">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.correspondId"
|
|
|
- multiple
|
|
|
- style="width: 100%"
|
|
|
- placeholder="请选择仓库"
|
|
|
- size="mini"
|
|
|
- filterable
|
|
|
- clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in warehouseList"
|
|
|
- :key="index"
|
|
|
- :label="item.name"
|
|
|
- :value="item.id"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="表头业务员" prop="k3ServiceId">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.k3ServiceId"
|
|
|
- placeholder="选择表头业务员"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in salesmanList"
|
|
|
- :key="item.adminUserId"
|
|
|
- :label="item.nickName"
|
|
|
- :value="item.adminUserId"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="表体业务员" prop="salesMan">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.salesMan"
|
|
|
- placeholder="选择表体业务员"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in salesmanList"
|
|
|
- :key="item.adminUserId"
|
|
|
- :label="item.nickName"
|
|
|
- :value="item.adminUserId"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="审核时间" prop="approvaTime">
|
|
|
- <el-date-picker
|
|
|
- v-model="screenForm.approvaTime"
|
|
|
- type="datetimerange"
|
|
|
- range-separator="至"
|
|
|
- style="width: 100%"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="申请发货单类型" prop="types">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.types"
|
|
|
- placeholder="选择申请发货单类型"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in invoiceList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="预约提货打印" prop="printStatus">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.printStatus"
|
|
|
- placeholder="选择预约提货打印"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- label="是"
|
|
|
- :value="1"
|
|
|
- />
|
|
|
- <el-option
|
|
|
- label="否"
|
|
|
- :value="0"
|
|
|
- />
|
|
|
-
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="区域" prop="discriminate">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.discriminate"
|
|
|
- placeholder="选择区域"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- label="广州"
|
|
|
- value="GZ"
|
|
|
- />
|
|
|
- <el-option
|
|
|
- label="佛山"
|
|
|
- value="FS"
|
|
|
- />
|
|
|
-
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="工程登录单号" prop="refEnginRecordNo">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.refEnginRecordNo"
|
|
|
- placeholder="请输入工程登录单号"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="制单人" prop="createBy">
|
|
|
- <el-input v-model="screenForm.createBy" placeholder="请输入制单人" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="发货汇总打印" prop="invoicePrintStatus">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.invoicePrintStatus"
|
|
|
- placeholder="选择发货汇总打印"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- label="是"
|
|
|
- :value="1"
|
|
|
- />
|
|
|
- <el-option
|
|
|
- label="否"
|
|
|
- :value="0"
|
|
|
- />
|
|
|
-
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </template>
|
|
|
+ <el-form ref="screenForm" :model="screenForm" label-width="120px" size="mini" label-position="left">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="产品名称" prop="goodsName">
|
|
|
+ <el-input v-model="screenForm.goodsName" placeholder="请输入产品名称" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="物料编码" prop="goodsCode">
|
|
|
+ <el-input v-model="screenForm.goodsCode" placeholder="请输入物料编码" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="产品编码" prop="goodsOldCode">
|
|
|
+ <el-input v-model="screenForm.goodsOldCode" placeholder="请输入产品编码" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="规格型号" prop="model">
|
|
|
+ <el-input v-model="screenForm.model" placeholder="请输入规格型号" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="制单日期" prop="createDate">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="screenForm.createDate"
|
|
|
+ type="datetimerange"
|
|
|
+ range-separator="至"
|
|
|
+ style="width: 100%"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="发货日期" prop="deliverDate">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="screenForm.deliverDate"
|
|
|
+ type="datetimerange"
|
|
|
+ range-separator="至"
|
|
|
+ style="width: 100%"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="经销商编号" prop="jxsNum">
|
|
|
+ <el-input v-model="screenForm.jxsNum" placeholder="请输入经销商编号" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="经销商名称" prop="jxsName">
|
|
|
+ <el-input v-model="screenForm.jxsName" placeholder="请输入经销商名称" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="发货单号" prop="orderNum">
|
|
|
+ <el-input v-model="screenForm.orderNum" placeholder="请输入发货单号" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="订单" prop="mainOrderId">
|
|
|
+ <el-input v-model="screenForm.mainOrderId" placeholder="请输入订单" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="存货类别" prop="type">
|
|
|
+ <el-select v-model="screenForm.type" placeholder="选择存货类别" style="width: 100%" clearable>
|
|
|
+ <el-option v-for="item in categoryList" :key="item.name" :label="item.name" :value="item.name" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="仓库" prop="correspondId">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.correspondId"
|
|
|
+ multiple
|
|
|
+ style="width: 100%"
|
|
|
+ placeholder="请选择仓库"
|
|
|
+ size="mini"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in warehouseList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="表头业务员" prop="k3ServiceId">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.k3ServiceId"
|
|
|
+ placeholder="选择表头业务员"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in salesmanList"
|
|
|
+ :key="item.adminUserId"
|
|
|
+ :label="item.nickName"
|
|
|
+ :value="item.adminUserId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="表体业务员" prop="salesMan">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.salesMan"
|
|
|
+ placeholder="选择表体业务员"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in salesmanList"
|
|
|
+ :key="item.adminUserId"
|
|
|
+ :label="item.nickName"
|
|
|
+ :value="item.adminUserId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="审核时间" prop="approvaTime">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="screenForm.approvaTime"
|
|
|
+ type="datetimerange"
|
|
|
+ range-separator="至"
|
|
|
+ style="width: 100%"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="申请发货单类型" prop="types">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.types"
|
|
|
+ placeholder="选择申请发货单类型"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in invoiceList"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="预约提货打印" prop="printStatus">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.printStatus"
|
|
|
+ placeholder="选择预约提货打印"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option label="是" :value="1" />
|
|
|
+ <el-option label="否" :value="0" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="区域" prop="discriminate">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.discriminate"
|
|
|
+ placeholder="选择区域"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option label="广州" value="GZ" />
|
|
|
+ <el-option label="佛山" value="FS" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="工程登录单号" prop="refEnginRecordNo">
|
|
|
+ <el-input v-model="screenForm.refEnginRecordNo" placeholder="请输入工程登录单号" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="制单人" prop="createBy">
|
|
|
+ <el-input v-model="screenForm.createBy" placeholder="请输入制单人" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="发货汇总打印" prop="invoicePrintStatus">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.invoicePrintStatus"
|
|
|
+ placeholder="选择发货汇总打印"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option label="是" :value="1" />
|
|
|
+ <el-option label="否" :value="0" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
</Collapse>
|
|
|
</div>
|
|
|
|
|
@@ -405,15 +340,13 @@
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton
|
|
|
:copy-text="
|
|
|
- scope.row.enginOrderType == 'HOME' ||
|
|
|
- scope.row.enginOrderType == 'TRADE'
|
|
|
+ scope.row.enginOrderType == 'HOME' || scope.row.enginOrderType == 'TRADE'
|
|
|
? scope.row.enginOrderNo
|
|
|
: scope.row.mainOrderId
|
|
|
"
|
|
|
/>
|
|
|
<span>{{
|
|
|
- scope.row.enginOrderType == "HOME" ||
|
|
|
- scope.row.enginOrderType == "TRADE"
|
|
|
+ scope.row.enginOrderType == 'HOME' || scope.row.enginOrderType == 'TRADE'
|
|
|
? scope.row.enginOrderNo
|
|
|
: scope.row.mainOrderId
|
|
|
}}</span>
|
|
@@ -737,13 +670,7 @@
|
|
|
min-width="100"
|
|
|
show-overflow-tooltip
|
|
|
/>
|
|
|
- <el-table-column
|
|
|
- align="left"
|
|
|
- label="制单人"
|
|
|
- prop="createBy"
|
|
|
- min-width="100"
|
|
|
- show-overflow-tooltip
|
|
|
- />
|
|
|
+ <el-table-column align="left" label="制单人" prop="createBy" min-width="100" show-overflow-tooltip />
|
|
|
|
|
|
<el-table-column
|
|
|
align="left"
|
|
@@ -905,16 +832,16 @@ export default {
|
|
|
invoiceList: [
|
|
|
{
|
|
|
value: 1,
|
|
|
- label: "申请发货单",
|
|
|
+ label: '申请发货单'
|
|
|
},
|
|
|
{
|
|
|
value: 2,
|
|
|
- label: "退货单",
|
|
|
+ label: '退货单'
|
|
|
},
|
|
|
{
|
|
|
value: 3,
|
|
|
- label: "直调发货单",
|
|
|
- },
|
|
|
+ label: '直调发货单'
|
|
|
+ }
|
|
|
],
|
|
|
categoryList: [],
|
|
|
salesmanList: [],
|
|
@@ -924,24 +851,24 @@ export default {
|
|
|
totalNum: 0,
|
|
|
isShowDialog: false,
|
|
|
dialogForm: {
|
|
|
- password: "",
|
|
|
- createMan: "",
|
|
|
- createDate: "",
|
|
|
+ password: '',
|
|
|
+ createMan: '',
|
|
|
+ createDate: ''
|
|
|
},
|
|
|
warehouseList: [],
|
|
|
dialogFormRules: {
|
|
|
- password: [{ required: true, message: "请输入密码", trigger: "blur" }],
|
|
|
+ password: [{ required: true, message: '请输入密码', trigger: 'blur' }]
|
|
|
},
|
|
|
dialogVisible: false,
|
|
|
excelData: [
|
|
|
{
|
|
|
value: 1,
|
|
|
- name: "状态",
|
|
|
+ name: '状态'
|
|
|
},
|
|
|
{
|
|
|
value: 2,
|
|
|
- name: "打印时间",
|
|
|
- },
|
|
|
+ name: '打印时间'
|
|
|
+ }
|
|
|
],
|
|
|
check: [],
|
|
|
checkAll: false,
|
|
@@ -959,18 +886,10 @@ export default {
|
|
|
discriminate: this.screenForm.discriminate,
|
|
|
refEnginRecordNo: this.screenForm.refEnginRecordNo,
|
|
|
createBy: this.screenForm.createBy,
|
|
|
- createStartTime: this.screenForm.createDate
|
|
|
- ? this.screenForm.createDate[0]
|
|
|
- : "",
|
|
|
- createEndTime: this.screenForm.createDate
|
|
|
- ? this.screenForm.createDate[1]
|
|
|
- : "",
|
|
|
- startTime: this.screenForm.deliverDate
|
|
|
- ? this.screenForm.deliverDate[0]
|
|
|
- : "",
|
|
|
- endTime: this.screenForm.deliverDate
|
|
|
- ? this.screenForm.deliverDate[1]
|
|
|
- : "",
|
|
|
+ createStartTime: this.screenForm.createDate ? this.screenForm.createDate[0] : '',
|
|
|
+ createEndTime: this.screenForm.createDate ? this.screenForm.createDate[1] : '',
|
|
|
+ startTime: this.screenForm.deliverDate ? this.screenForm.deliverDate[0] : '',
|
|
|
+ endTime: this.screenForm.deliverDate ? this.screenForm.deliverDate[1] : '',
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
id: this.screenForm.orderNum,
|
|
@@ -980,75 +899,66 @@ export default {
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
printStatus: this.screenForm.printStatus,
|
|
|
invoicePrintStatus: this.screenForm.invoicePrintStatus,
|
|
|
- approvalEndTime: this.screenForm.approvaTime
|
|
|
- ? this.screenForm.approvaTime[1]
|
|
|
- : "",
|
|
|
- approvalStartTime: this.screenForm.approvaTime
|
|
|
- ? this.screenForm.approvaTime[0]
|
|
|
- : "",
|
|
|
- correspondId: this.screenForm.correspondId.join(","),
|
|
|
- type: this.screenForm.types,
|
|
|
- };
|
|
|
+ approvalEndTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[1] : '',
|
|
|
+ approvalStartTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[0] : '',
|
|
|
+ correspondId: this.screenForm.correspondId.join(','),
|
|
|
+ type: this.screenForm.types
|
|
|
+ }
|
|
|
},
|
|
|
comRefundableQty() {
|
|
|
return (type, status, row) => {
|
|
|
if (type == 2) {
|
|
|
- return "";
|
|
|
+ return ''
|
|
|
} else {
|
|
|
- if (status == "OK") {
|
|
|
- return 0;
|
|
|
+ if (status == 'OK') {
|
|
|
+ return 0
|
|
|
} else {
|
|
|
- return row.refundableQty;
|
|
|
+ return row.refundableQty
|
|
|
}
|
|
|
}
|
|
|
- };
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
dataList: {
|
|
|
handler(newValue, oldValue) {
|
|
|
if (newValue && newValue.length) {
|
|
|
newValue.forEach((item, index) => {
|
|
|
- this.dataList[index].compute_zkeAmount =
|
|
|
- item.totalDiscAmount + item.payRebateAmount;
|
|
|
- this.dataList[index].compute_wckNum = this.comRefundableQty(
|
|
|
- item.type,
|
|
|
- item.salesExamineStatus,
|
|
|
- item
|
|
|
- );
|
|
|
- });
|
|
|
+ this.dataList[index].compute_zkeAmount = item.totalDiscAmount + item.payRebateAmount
|
|
|
+ this.dataList[index].compute_wckNum = this.comRefundableQty(item.type, item.salesExamineStatus, item)
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
immediate: true,
|
|
|
- deep: true,
|
|
|
- },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
- this.getSalesmanList();
|
|
|
- this.getCategoryList();
|
|
|
- this.getList();
|
|
|
- this.getWarehouseList();
|
|
|
+ this.getSalesmanList()
|
|
|
+ this.getCategoryList()
|
|
|
+ this.getList()
|
|
|
+ this.getWarehouseList()
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.initPrint();
|
|
|
+ this.initPrint()
|
|
|
},
|
|
|
methods: {
|
|
|
handleFilterData() {
|
|
|
- this.dialogVisible = true;
|
|
|
+ this.dialogVisible = true
|
|
|
},
|
|
|
|
|
|
handleCheckAllChange(val) {
|
|
|
- const arr = [];
|
|
|
+ const arr = []
|
|
|
if (val) {
|
|
|
for (let i = 1; i <= this.excelData.length; i++) {
|
|
|
- arr.push(i);
|
|
|
+ arr.push(i)
|
|
|
}
|
|
|
}
|
|
|
- this.check = val ? arr : [];
|
|
|
- this.isIndeterminate = false;
|
|
|
+ this.check = val ? arr : []
|
|
|
+ this.isIndeterminate = false
|
|
|
},
|
|
|
handleCheckedCitiesChange() {
|
|
|
- console.log(this.checkAll);
|
|
|
+ console.log(this.checkAll)
|
|
|
},
|
|
|
// 获取业务员列表
|
|
|
getSalesmanList() {
|
|
@@ -1056,33 +966,33 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: -1,
|
|
|
isCustomer: 0,
|
|
|
- status: true,
|
|
|
- }).then((res) => {
|
|
|
- this.salesmanList = res.data.records;
|
|
|
- });
|
|
|
+ status: true
|
|
|
+ }).then(res => {
|
|
|
+ this.salesmanList = res.data.records
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
// 获取存货类别列表
|
|
|
getCategoryList() {
|
|
|
getCategoryList({
|
|
|
pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- }).then((res) => {
|
|
|
- this.categoryList = res.data.records;
|
|
|
- });
|
|
|
+ pageSize: -1
|
|
|
+ }).then(res => {
|
|
|
+ this.categoryList = res.data.records
|
|
|
+ })
|
|
|
},
|
|
|
// 获取仓库列表
|
|
|
getWarehouseList() {
|
|
|
getWarehouseList({
|
|
|
pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- }).then((res) => {
|
|
|
- this.warehouseList = res.data.records;
|
|
|
- });
|
|
|
+ pageSize: -1
|
|
|
+ }).then(res => {
|
|
|
+ this.warehouseList = res.data.records
|
|
|
+ })
|
|
|
},
|
|
|
// 查询列表
|
|
|
getList() {
|
|
|
- this.listLoading = true;
|
|
|
+ this.listLoading = true
|
|
|
const params = {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
@@ -1097,18 +1007,10 @@ export default {
|
|
|
|
|
|
refEnginRecordNo: this.screenForm.refEnginRecordNo,
|
|
|
|
|
|
- createStartTime: this.screenForm.createDate
|
|
|
- ? this.screenForm.createDate[0]
|
|
|
- : "",
|
|
|
- createEndTime: this.screenForm.createDate
|
|
|
- ? this.screenForm.createDate[1]
|
|
|
- : "",
|
|
|
- startTime: this.screenForm.deliverDate
|
|
|
- ? this.screenForm.deliverDate[0]
|
|
|
- : "",
|
|
|
- endTime: this.screenForm.deliverDate
|
|
|
- ? this.screenForm.deliverDate[1]
|
|
|
- : "",
|
|
|
+ createStartTime: this.screenForm.createDate ? this.screenForm.createDate[0] : '',
|
|
|
+ createEndTime: this.screenForm.createDate ? this.screenForm.createDate[1] : '',
|
|
|
+ startTime: this.screenForm.deliverDate ? this.screenForm.deliverDate[0] : '',
|
|
|
+ endTime: this.screenForm.deliverDate ? this.screenForm.deliverDate[1] : '',
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
id: this.screenForm.orderNum,
|
|
@@ -1116,34 +1018,30 @@ export default {
|
|
|
serviceId: this.screenForm.salesMan,
|
|
|
k3ServiceId: this.screenForm.k3ServiceId,
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
- approvalEndTime: this.screenForm.approvaTime
|
|
|
- ? this.screenForm.approvaTime[1]
|
|
|
- : "",
|
|
|
- approvalStartTime: this.screenForm.approvaTime
|
|
|
- ? this.screenForm.approvaTime[0]
|
|
|
- : "",
|
|
|
- correspondId: this.screenForm.correspondId.join(","),
|
|
|
- type: this.screenForm.types,
|
|
|
- };
|
|
|
+ approvalEndTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[1] : '',
|
|
|
+ approvalStartTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[0] : '',
|
|
|
+ correspondId: this.screenForm.correspondId.join(','),
|
|
|
+ type: this.screenForm.types
|
|
|
+ }
|
|
|
|
|
|
- getSumList(params).then((res) => {
|
|
|
- res.data.records.forEach((item) => {
|
|
|
- item.notOutNumber = item.salesStatus ? 0 : item.refundableQty;
|
|
|
- item.sums1 = ["refundableQty", "compute_wckNum"];
|
|
|
+ getSumList(params).then(res => {
|
|
|
+ res.data.records.forEach(item => {
|
|
|
+ item.notOutNumber = item.salesStatus ? 0 : item.refundableQty
|
|
|
+ item.sums1 = ['refundableQty', 'compute_wckNum']
|
|
|
item.sums2 = [
|
|
|
- "payAmount",
|
|
|
- "payRebateAmount",
|
|
|
- "discAmount",
|
|
|
- "totalDiscAmount",
|
|
|
- "singlePayPrice",
|
|
|
- "compute_zkeAmount",
|
|
|
- ];
|
|
|
- });
|
|
|
- this.dataList = res.data.records;
|
|
|
- this.listTotal = res.data.total;
|
|
|
- this.listLoading = false;
|
|
|
- });
|
|
|
- this.getListInvoiceNumber();
|
|
|
+ 'payAmount',
|
|
|
+ 'payRebateAmount',
|
|
|
+ 'discAmount',
|
|
|
+ 'totalDiscAmount',
|
|
|
+ 'singlePayPrice',
|
|
|
+ 'compute_zkeAmount'
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ this.dataList = res.data.records
|
|
|
+ this.listTotal = res.data.total
|
|
|
+ this.listLoading = false
|
|
|
+ })
|
|
|
+ this.getListInvoiceNumber()
|
|
|
},
|
|
|
|
|
|
getListInvoiceNumber() {
|
|
@@ -1154,18 +1052,10 @@ export default {
|
|
|
specification: this.screenForm.model,
|
|
|
createBy: this.screenForm.createBy,
|
|
|
|
|
|
- createStartTime: this.screenForm.createDate
|
|
|
- ? this.screenForm.createDate[0]
|
|
|
- : "",
|
|
|
- createEndTime: this.screenForm.createDate
|
|
|
- ? this.screenForm.createDate[1]
|
|
|
- : "",
|
|
|
- startTime: this.screenForm.deliverDate
|
|
|
- ? this.screenForm.deliverDate[0]
|
|
|
- : "",
|
|
|
- endTime: this.screenForm.deliverDate
|
|
|
- ? this.screenForm.deliverDate[1]
|
|
|
- : "",
|
|
|
+ createStartTime: this.screenForm.createDate ? this.screenForm.createDate[0] : '',
|
|
|
+ createEndTime: this.screenForm.createDate ? this.screenForm.createDate[1] : '',
|
|
|
+ startTime: this.screenForm.deliverDate ? this.screenForm.deliverDate[0] : '',
|
|
|
+ endTime: this.screenForm.deliverDate ? this.screenForm.deliverDate[1] : '',
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
id: this.screenForm.orderNum,
|
|
@@ -1173,83 +1063,77 @@ export default {
|
|
|
serviceId: this.screenForm.salesMan,
|
|
|
k3ServiceId: this.screenForm.k3ServiceId,
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
- approvalEndTime: this.screenForm.approvaTime
|
|
|
- ? this.screenForm.approvaTime[1]
|
|
|
- : "",
|
|
|
- approvalStartTime: this.screenForm.approvaTime
|
|
|
- ? this.screenForm.approvaTime[0]
|
|
|
- : "",
|
|
|
- correspondId: this.screenForm.correspondId.join(","),
|
|
|
- type: this.screenForm.types,
|
|
|
- };
|
|
|
- getListInvoiceNumber(params).then((res) => {
|
|
|
+ approvalEndTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[1] : '',
|
|
|
+ approvalStartTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[0] : '',
|
|
|
+ correspondId: this.screenForm.correspondId.join(','),
|
|
|
+ type: this.screenForm.types
|
|
|
+ }
|
|
|
+ getListInvoiceNumber(params).then(res => {
|
|
|
// console.log(res,'ii');
|
|
|
- this.totalNum = res.data;
|
|
|
- });
|
|
|
+ this.totalNum = res.data
|
|
|
+ })
|
|
|
},
|
|
|
// 提交筛选表单
|
|
|
submitScreenForm() {
|
|
|
- this.currentPage = 1;
|
|
|
- this.getList();
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
// 重置筛选表单
|
|
|
resetScreenForm() {
|
|
|
- this.$refs.screenForm.resetFields();
|
|
|
- this.currentPage = 1;
|
|
|
- this.getList();
|
|
|
+ this.$refs.screenForm.resetFields()
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
// 更改每页数量
|
|
|
handleSizeChange(val) {
|
|
|
- this.pageSize = val;
|
|
|
- this.currentPage = 1;
|
|
|
- this.getList();
|
|
|
+ this.pageSize = val
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
// 更改当前页
|
|
|
handleCurrentChange(val) {
|
|
|
- this.currentPage = val;
|
|
|
- this.getList();
|
|
|
+ this.currentPage = val
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
handleSelect(selection, row) {
|
|
|
- this.$refs.table.toggleRowSelection(row);
|
|
|
- this.dataList.forEach((item) => {
|
|
|
+ this.$refs.table.toggleRowSelection(row)
|
|
|
+ this.dataList.forEach(item => {
|
|
|
if (item.id === row.id) {
|
|
|
- this.$refs.table.toggleRowSelection(item);
|
|
|
+ this.$refs.table.toggleRowSelection(item)
|
|
|
}
|
|
|
- });
|
|
|
- this.tableSelection = this.$refs.table.selection;
|
|
|
+ })
|
|
|
+ this.tableSelection = this.$refs.table.selection
|
|
|
},
|
|
|
|
|
|
handleSelectAll(selection) {
|
|
|
- this.tableSelection = this.$refs.table.selection;
|
|
|
+ this.tableSelection = this.$refs.table.selection
|
|
|
},
|
|
|
|
|
|
// 点击打印
|
|
|
toPrint() {
|
|
|
- this.queryItem = this.tableSelection;
|
|
|
+ this.queryItem = this.tableSelection
|
|
|
if (!this.tableSelection[0].printNum) {
|
|
|
- this.queryItem = this.tableSelection;
|
|
|
- this.getDateil(this.tableSelection, "getDeliverDetail").then((res) => {
|
|
|
- this.$endLoading();
|
|
|
- this.$refs.preView.show(this.hiprintTemplate, this.outputData);
|
|
|
- });
|
|
|
+ this.queryItem = this.tableSelection
|
|
|
+ this.getDateil(this.tableSelection, 'getDeliverDetail').then(res => {
|
|
|
+ this.$endLoading()
|
|
|
+ this.$refs.preView.show(this.hiprintTemplate, this.outputData)
|
|
|
+ })
|
|
|
} else {
|
|
|
- this.queryItem = this.tableSelection;
|
|
|
- this.dialogForm.createMan = JSON.parse(
|
|
|
- localStorage.getItem("supply_user")
|
|
|
- ).nickName;
|
|
|
- this.dialogForm.createDate = this.getDate();
|
|
|
- this.isShowDialog = true;
|
|
|
+ this.queryItem = this.tableSelection
|
|
|
+ this.dialogForm.createMan = JSON.parse(localStorage.getItem('supply_user')).nickName
|
|
|
+ this.dialogForm.createDate = this.getDate()
|
|
|
+ this.isShowDialog = true
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// 关闭弹窗
|
|
|
cancelDialogForm() {
|
|
|
- this.isShowDialog = false;
|
|
|
- this.$refs.dialogForm.resetFields();
|
|
|
+ this.isShowDialog = false
|
|
|
+ this.$refs.dialogForm.resetFields()
|
|
|
},
|
|
|
|
|
|
// 提交 弹窗
|
|
@@ -1258,43 +1142,41 @@ export default {
|
|
|
if (valid) {
|
|
|
const params = {
|
|
|
shipId: this.queryItem[0].invoiceId,
|
|
|
- password: this.dialogForm.password,
|
|
|
- };
|
|
|
- checkPassword(params).then((res) => {
|
|
|
- this.getDateil(this.tableSelection, "getDeliverDetail").then(
|
|
|
- (res) => {
|
|
|
- this.$endLoading();
|
|
|
- this.$refs.preView.show(this.hiprintTemplate, this.outputData);
|
|
|
- }
|
|
|
- );
|
|
|
- this.cancelDialogForm();
|
|
|
- });
|
|
|
+ password: this.dialogForm.password
|
|
|
+ }
|
|
|
+ checkPassword(params).then(res => {
|
|
|
+ this.getDateil(this.tableSelection, 'getDeliverDetail').then(res => {
|
|
|
+ this.$endLoading()
|
|
|
+ this.$refs.preView.show(this.hiprintTemplate, this.outputData)
|
|
|
+ })
|
|
|
+ this.cancelDialogForm()
|
|
|
+ })
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
getDate() {
|
|
|
- var date = new Date();
|
|
|
- var seperator1 = "-";
|
|
|
- var year = date.getFullYear();
|
|
|
- var month = date.getMonth() + 1;
|
|
|
- var strDate = date.getDate();
|
|
|
+ var date = new Date()
|
|
|
+ var seperator1 = '-'
|
|
|
+ var year = date.getFullYear()
|
|
|
+ var month = date.getMonth() + 1
|
|
|
+ var strDate = date.getDate()
|
|
|
if (month >= 1 && month <= 9) {
|
|
|
- month = "0" + month;
|
|
|
+ month = '0' + month
|
|
|
}
|
|
|
if (strDate >= 0 && strDate <= 9) {
|
|
|
- strDate = "0" + strDate;
|
|
|
+ strDate = '0' + strDate
|
|
|
}
|
|
|
- var currentdate = year + seperator1 + month + seperator1 + strDate;
|
|
|
- return currentdate;
|
|
|
+ var currentdate = year + seperator1 + month + seperator1 + strDate
|
|
|
+ return currentdate
|
|
|
},
|
|
|
|
|
|
backList() {
|
|
|
- this.queryItem = {};
|
|
|
- this.isShowPrint = false;
|
|
|
- },
|
|
|
- },
|
|
|
-};
|
|
|
+ this.queryItem = {}
|
|
|
+ this.isShowPrint = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|