|
@@ -27,20 +27,24 @@
|
|
|
<template v-if="!radio">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
|
- <el-form-item label="物流公司">
|
|
|
- <el-select v-model="screenForm.logistics" placeholder="选择物流公司" clearable filterable >
|
|
|
- <el-option v-for="item in logisticsArr"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
-
|
|
|
+ <el-form-item label="物流公司" prop="logisticsId">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.logisticsId"
|
|
|
+ placeholder="全部"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ :label="item.logisticsCompany"
|
|
|
+ :value="item.id"
|
|
|
+ v-for="(item, index) in companyList"
|
|
|
+ :key="index"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
|
- <el-form-item label="经销商">
|
|
|
- <el-select v-model="screenForm.customerId" placeholder="选择经销商" clearable filterable >
|
|
|
+ <el-form-item label="经销商" prop="customerId">
|
|
|
+ <el-select v-model="screenForm.customerId" v-select-loadmore:[myData]="loadmore" placeholder="选择经销商" clearable filterable >
|
|
|
<el-option v-for="item in dealerList"
|
|
|
:key="item.id"
|
|
|
:label="item.name"
|
|
@@ -51,7 +55,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
|
- <el-form-item label="仓库">
|
|
|
+ <el-form-item label="仓库" prop="warehouse">
|
|
|
<el-select v-model="screenForm.warehouse" placeholder="选择仓库" clearable filterable >
|
|
|
<el-option v-for="item in warehouseList"
|
|
|
:key="item.id"
|
|
@@ -535,6 +539,7 @@
|
|
|
import {
|
|
|
getPickupList,
|
|
|
getCode,
|
|
|
+ getCompanyList,
|
|
|
getPickupManInfo,
|
|
|
checkPassword,
|
|
|
getWarehouseList,
|
|
@@ -571,7 +576,7 @@ export default {
|
|
|
customerName: "",
|
|
|
warehouse: "",
|
|
|
customerId: "",
|
|
|
- logistics:"",
|
|
|
+ logisticsId:"",
|
|
|
storeId:""
|
|
|
},
|
|
|
statusList: [
|
|
@@ -583,9 +588,11 @@ export default {
|
|
|
getCodeText: "获取验证码",
|
|
|
countDown: 60,
|
|
|
timer: null,
|
|
|
-
|
|
|
+ myData:{
|
|
|
+ class:".el-select-dropdown .el-select-dropdown__wrap"
|
|
|
+ },
|
|
|
tableSelection: [],
|
|
|
-
|
|
|
+ companyList:[],
|
|
|
queryItem: {},
|
|
|
isShowPrint: false,
|
|
|
dealerList: [],
|
|
@@ -601,7 +608,9 @@ export default {
|
|
|
userList: [],
|
|
|
isShowDialog: false,
|
|
|
radio: 0,
|
|
|
- logisticsArr:[]
|
|
|
+ logisticsArr:[],
|
|
|
+ pageNum:1,
|
|
|
+ listTotal:0
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -616,6 +625,7 @@ export default {
|
|
|
|
|
|
created() {
|
|
|
this.getDealerList()
|
|
|
+ this.getCompanyList()
|
|
|
this.getWarehouseList();
|
|
|
},
|
|
|
// activated(){
|
|
@@ -626,6 +636,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleReset(){
|
|
|
+ this.screenForm.customerId = ''
|
|
|
this.$refs.screenForm.resetFields()
|
|
|
},
|
|
|
getDate() {
|
|
@@ -644,10 +655,31 @@ export default {
|
|
|
return currentdate;
|
|
|
},
|
|
|
async getDealerList() {
|
|
|
- const res = await getDealerList({ pageNum: 1, pageSize: -1 });
|
|
|
- this.dealerList = res.data.records;
|
|
|
+ const res = await getDealerList({ pageNum: 30, pageSize: 50 });
|
|
|
+ this.dealerList = [...this.dealerList,...res.data.records];
|
|
|
+ this.listTotal = res.data.total
|
|
|
},
|
|
|
+ loadmore() {
|
|
|
+ let len = Math.ceil(this.listTotal/50)
|
|
|
+ if (this.pageNum<=len) {
|
|
|
+ this.pageNum++
|
|
|
+ this.getDealerList()
|
|
|
+ }
|
|
|
|
|
|
+ },
|
|
|
+ // 获取物流公司列表
|
|
|
+ getCompanyList() {
|
|
|
+ getCompanyList({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ }).then((res) => {
|
|
|
+ this.companyList = res.data.records;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getLogisticsId(e){
|
|
|
+ const item = this.companyList.find(k=>k.id===e)
|
|
|
+ this.screenForm.company = item.logisticsCompany
|
|
|
+ },
|
|
|
// 获取仓库列表
|
|
|
getWarehouseList() {
|
|
|
getWarehouseList({
|
|
@@ -717,12 +749,15 @@ export default {
|
|
|
// 查询列表
|
|
|
getList() {
|
|
|
console.log(this.screenForm.customerId);
|
|
|
- if (!this.screenForm.manId) {
|
|
|
+ if (this.radio==='1') {
|
|
|
+ if (!this.screenForm.manId) {
|
|
|
return this.$errorMsg("请先查询提货人信息");
|
|
|
}
|
|
|
if (!this.screenForm.warehouse) {
|
|
|
return this.$errorMsg("请选择仓库");
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
this.listLoading = true;
|
|
|
|
|
|
let params = {
|
|
@@ -734,6 +769,7 @@ export default {
|
|
|
// customerName:this.screenForm.customerName,
|
|
|
correspondId: this.screenForm.warehouse,
|
|
|
customerId: this.screenForm.customerId,
|
|
|
+ logisticsId:this.screenForm.logisticsId
|
|
|
};
|
|
|
getPickupList(params).then((res) => {
|
|
|
this.dataList = res.data.records;
|