diff --git a/src/components/tablecmt/tablecmt.vue b/src/components/tablecmt/tablecmt.vue index 67e30fbb..6d5940d4 100644 --- a/src/components/tablecmt/tablecmt.vue +++ b/src/components/tablecmt/tablecmt.vue @@ -635,7 +635,7 @@ function copyContent(content: string) { align-items: center; } -.el-popper{ +.el-table .el-popper{ max-width:20% !important; } diff --git a/src/config/website.js b/src/config/website.js index 99e6d0f4..aeec4df4 100644 --- a/src/config/website.js +++ b/src/config/website.js @@ -21,7 +21,7 @@ export default { setting: { sidebar: 'vertical', tag: true, - debug: true, + debug: false, collapse: true, search: true, lock: true, diff --git a/src/option/distribution/distributionReservation.js b/src/option/distribution/distributionReservation.js index 928a9fe7..0413add0 100644 --- a/src/option/distribution/distributionReservation.js +++ b/src/option/distribution/distributionReservation.js @@ -468,7 +468,16 @@ export default { label: '顾客地址', prop: 'customerAddress', width: '100' - + }, + { + label: '库位信息', + prop: 'allocation', + width: '100' + }, + { + label: '托盘信息', + prop: 'trays', + width: '100' }, // { // label: '增值服务', diff --git a/src/views/basicdata/brand/basicClient.vue b/src/views/basicdata/brand/basicClient.vue index 0a850305..ba364d99 100644 --- a/src/views/basicdata/brand/basicClient.vue +++ b/src/views/basicdata/brand/basicClient.vue @@ -540,7 +540,10 @@ export default { type: 1, values: '', width: '180', - checkarr: [], + checkarr: [ + {value:false,label:'否'}, + {value:true,label:'是'}, + ], fixed: false, sortable: true, }, @@ -1465,6 +1468,7 @@ export default { // console.log("dzdz",dz); this.page.total = data.total; this.data = data.records; + this.data=this.$functions.newdatas(this.columnList, this.data); this.loading = false; this.selectionClear(); }); diff --git a/src/views/basicdata/brand/basicClientAccount.vue b/src/views/basicdata/brand/basicClientAccount.vue index ed6e083d..ed874f2e 100644 --- a/src/views/basicdata/brand/basicClientAccount.vue +++ b/src/views/basicdata/brand/basicClientAccount.vue @@ -138,7 +138,7 @@ export default { fixed: true, }, { - prop: 'no', + prop: 'phone', label: '账号', type: 2, values: '', diff --git a/src/views/basicdata/warehouse/tray/basicdataTrayedt.vue b/src/views/basicdata/warehouse/tray/basicdataTrayedt.vue index c01228e1..858b620b 100644 --- a/src/views/basicdata/warehouse/tray/basicdataTrayedt.vue +++ b/src/views/basicdata/warehouse/tray/basicdataTrayedt.vue @@ -272,6 +272,16 @@ export default { search: true, width: '100px', }, + { + label: '操作时间', + prop: 'operateTime', + width: '100px', + }, + { + label: '操作人', + prop: 'operateUserName', + width: '100px', + }, ], }, @@ -399,6 +409,16 @@ export default { prop: 'layerNum', width: '100px', }, + { + label: '操作时间', + prop: 'operateTime', + width: '100px', + }, + { + label: '操作人', + prop: 'operateUserName', + width: '100px', + }, ], }, // 库存品表单配置 @@ -471,6 +491,16 @@ export default { prop: 'layerNum', width: '100px', }, + { + label: '操作时间', + prop: 'operateTime', + width: '100px', + }, + { + label: '操作人', + prop: 'operateUserName', + width: '100px', + }, ], }, // 订单表单配置 @@ -776,6 +806,16 @@ export default { sortable: true, head: false, }, + { + label: '操作时间', + prop: 'operateTime', + width: '100px', + }, + { + label: '操作人', + prop: 'operateUserName', + width: '100px', + }, ], inventoryoptioncolumn: [ { @@ -845,8 +885,8 @@ export default { head: false, }, { - prop: 'shoppingMall', - label: '所属商场', + prop: 'marketName', + label: '商场名称', type: 1, values: '', width: '150', @@ -888,6 +928,27 @@ export default { sortable: true, head: false, }, + { + prop: 'num', + label: '数量', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + label: '操作时间', + prop: 'operateTime', + width: '150px', + }, + { + label: '操作人', + prop: 'operateUserName', + width: '150px', + }, ], optioncolumn: [ { @@ -989,6 +1050,16 @@ export default { sortable: true, head: false, }, + { + label: '操作时间', + prop: 'operateTime', + width: '100px', + }, + { + label: '操作人', + prop: 'operateUserName', + width: '100px', + }, ], }; }, diff --git a/src/views/basicdata/warehouse/tray/basicdataTrayhistory.vue b/src/views/basicdata/warehouse/tray/basicdataTrayhistory.vue index 99836bf3..f9f68134 100644 --- a/src/views/basicdata/warehouse/tray/basicdataTrayhistory.vue +++ b/src/views/basicdata/warehouse/tray/basicdataTrayhistory.vue @@ -485,8 +485,8 @@ export default { width: '100px', }, { - label: '所属商场', - prop: 'shoppingMall', + label: '商场名称', + prop: 'marketName', search: true, width: '100px', }, @@ -887,8 +887,8 @@ export default { head: false, }, { - prop: 'shoppingMall', - label: '所属商场', + prop: 'marketName', + label: '商场名称', type: 1, values: '', width: '150', diff --git a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue index 9e559ab5..8967bf9f 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue @@ -32,6 +32,11 @@ 卸车班组:{{ deliverydata.unloadingTeamName }} + + + 备注:{{ deliverydata.remarks }} + + 作业时间 @@ -41,9 +46,9 @@ - - 出库时间:{{ deliverydata.outboundDate }} - + + + 装车时间:{{ deliverydata.loadingTime }} @@ -594,6 +599,66 @@ export default { fixed: false, sortable: true, }, + { + prop: 'isUrgentName', + label: '是否加急', + type: 1, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'assignStatusName', + label: '备货指派状态', + type: 1, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'stockupStatusName', + label: '备货状态', + type: 1, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'forkliftName', + label: '备货人员', + type: 1, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'outboundDate', + label: '出库时间', + type: 1, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'stockupDate', + label: '备货时间', + type: 1, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, { prop: 'loadingStatus', label: '装车状态', @@ -2433,26 +2498,27 @@ export default { this.signform.deliverySignPictures ); row.id = this.signform.deliveryId; - row.deliverySignPictures = this.signform.deliverySignPictures.join(","); + row.deliverySignPictures = this.signform.deliverySignPictures; row.clerkSignRemarks = this.signform.clerkSignRemarks; row.signingTime = dayjs().format('YYYY-MM-DD HH:mm:ss'); row.signingStatus = '2'; console.log('更新参数>>>>>>>>', row); - // if (!!row.id){ - // updatesign(row).then( - // () => { - // this.$message({ - // type: 'success', - // message: '操作成功!', - // }); - // this.signBox = false; - // this.onLoad(); - // }, - // error => { - // console.log(error); - // this.signBox = false; - // } - // ); + if (!!row.id) { + updatesign(row).then( + () => { + this.$message({ + type: 'success', + message: '操作成功!', + }); + this.signBox = false; + this.onLoad(); + }, + error => { + console.log(error); + this.signBox = false; + } + ); + } } else { let data = {}; console.log("---------------->this.deliverydata",this.deliverydata); @@ -2685,10 +2751,12 @@ export default { console.log('res.data>>>>>>>>>>>>', res.data.data); const data = res.data.data; this.deliverydata = data - this.deliverydata.outboundDate = data.stockupInfo.outboundDate; + // this.deliverydata.outboundDate = data.stockupInfo.outboundDate; this.deliverydata.forkliftName = data.stockupInfo.forkliftName; console.log('this.deliverydata>>>>>>>>>>>>', this.deliverydata); + this.deliverydata.remarks = data.remarks; + // this.deliverydata.teamResponsibility = b.join(','); // console.log( // 'data.stockupInfo.teamResponsibility------------------->', @@ -2726,10 +2794,14 @@ export default { console.log("---------------------------->packNum",packNum); console.log("---------------------------->invenNum",invenNum); console.log("---------------------------->signNum",signNum); + this.handleOrder(this.packpage); + this.handlePackage(this.packpage); + console.log("--------->deliveryType",this.deliverydata); + if(this.deliverydata.deliveryType !=='商配'){ + this.handleInventory(this.packpage); + } }); - this.handleOrder(this.packpage); - this.handlePackage(this.packpage); - this.handleInventory(this.packpage); + this.loading = false; }, }, diff --git a/src/views/distribution/signfor/distributionSignforedt.vue b/src/views/distribution/signfor/distributionSignforedt.vue index 84186c34..3ac24891 100644 --- a/src/views/distribution/signfor/distributionSignforedt.vue +++ b/src/views/distribution/signfor/distributionSignforedt.vue @@ -1578,6 +1578,7 @@ export default { // this.getListOrders(this.page) this.getListPackage() + }); this.loading = false; @@ -1601,12 +1602,17 @@ export default { // this.page.total = data.total this.packageData =data }); - signforInventoryList(signforId).then(res => { - const data =res.data.data - console.log("------------>data",data); - // this.page.total = data.total + // console.log("data",data); + if (this.signfordata.deliveryType !== '商配' ){ + signforInventoryList(signforId).then(res => { + const data =res.data.data + console.log("------------>data",data); + // this.page.total = data.total this.inventoryData =data - }); + }); + } + + }, } }; diff --git a/src/views/distribution/signfor/distributionSignfortreat.vue b/src/views/distribution/signfor/distributionSignfortreat.vue index 1b6b13e3..6057d07f 100644 --- a/src/views/distribution/signfor/distributionSignfortreat.vue +++ b/src/views/distribution/signfor/distributionSignfortreat.vue @@ -128,7 +128,7 @@ > diff --git a/src/views/distribution/turndelivery/deliveryMarket.vue b/src/views/distribution/turndelivery/deliveryMarket.vue index 01321530..0c3c1b71 100644 --- a/src/views/distribution/turndelivery/deliveryMarket.vue +++ b/src/views/distribution/turndelivery/deliveryMarket.vue @@ -110,21 +110,21 @@
- - - - - - - - - + + + + + + + + + + + + + + + @@ -167,58 +167,6 @@ - - - - 市配  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -236,15 +184,68 @@ + + + + 市配  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + @@ -968,19 +969,17 @@ data.masterDriverName = this.driverForm.masterDriverName; data.masterVehicleNub = this.driverForm.masterVehicleNub; } - if (this.waixieForm.tripartiteSource) { - tripartite = this.waixieForm; - data.tripartite = tripartite; - } + + console.log("---------->tripartite",tripartite); + if (this.stockUpForm) { - let params = this.stockUpForm; - if (params.tripartiteSource) { + let params = this.waixieForm; //三方配送数据构建 if (params.driverName) { tripartite.driverName = params.driverName; } - if (params.deiverPhone) { - tripartite.deiverPhone = params.deiverPhone; + if (params.driverPhone) { + tripartite.driverPhone = params.driverPhone; } if (params.vehicleNum) { tripartite.vehicleNum = params.vehicleNum; @@ -990,65 +989,82 @@ } if (params.tripartiteSource) { this.tripartiteSourceData.forEach(item => { - if (params.tripartiteSource === item.dictValue) { + if (this.waixieForm.tripartiteSource == item.dictKey) { tripartite.distributionCompanyId = item.dictKey; tripartite.distributionCompany = item.dictValue; } }); + data.tripartite = tripartite; } - data.tripartite = tripartite; - } else { + // if (params.tripartiteSource) { + // this.tripartiteSourceData.forEach(item => { + // if (params.tripartiteSource === item.dictKey) { + // tripartite.distributionCompanyId = item.dictKey; + // tripartite.distributionCompany = item.dictValue; + // } + // }); + // } + // console.log(":-----------> data.tripartite", data.tripartite); // 自主配送 - if (params.loader) { + console.log("------------->this.stockUpForm.loader",this.stockUpForm.loader); + if (this.stockUpForm.loader) { this.loaderData.forEach(a => { - if (params.loader === a.dictKey) { + if (this.stockUpForm.loader === a.dictKey) { stockup.loaderName = a.dictValue; stockup.loaderId = a.dictKey; } }); } - - if (params.unloader) { + if (params.taskTime) { + stockup.taskTime = params.taskTime; + } + if (this.stockUpForm.unloader) { this.loaderData.forEach(a => { - if (params.loader === a.dictKey) { + if (this.stockUpForm.loader === a.dictKey) { stockup.unloaderName = a.dictValue; stockup.unloaderId = a.dictKey; } }); } - if (params.forklift) { - this.forkliftData.forEach(b => { - if (params.forklift === b.dictKey) { - stockup.forkliftName = b.dictValue; - stockup.forkliftId = b.dictKey; - } - }); - } - if (params.goodsAreaId) { - this.goodsAreaData.forEach(c => { - if (params.goodsAreaId === c.dictKey) { - stockup.goodsAreaId = c.dictKey; - stockup.goodsAreaName = c.dictValue; - } - }); - } - if (params.stockupDate) { - stockup.stockupDate = params.stockupDate; - } - if (params.remarks) { - data.remarks = params.remarks; + console.log("------------->stockup",stockup); + + // if (params.forklift) { + // this.forkliftData.forEach(b => { + // if (params.forklift === b.dictKey) { + // stockup.forkliftName = b.dictValue; + // stockup.forkliftId = b.dictKey; + // } + // }); + // } + // if (params.goodsAreaId) { + // this.goodsAreaData.forEach(c => { + // if (params.goodsAreaId === c.dictKey) { + // stockup.goodsAreaId = c.dictKey; + // stockup.goodsAreaName = c.dictValue; + // } + // }); + // } + // if (params.stockupDate) { + // stockup.stockupDate = params.stockupDate; + // } + if (this.stockUpForm.remarks) { + data.remarks = this.stockUpForm.remarks; } // if (this.loadAndUnload.length > 0) { // stockup.loadAndUnload = this.loadAndUnload.join(','); // } - if (params.outboundDate) { - stockup.outboundDate = params.outboundDate.toString(); + // if (params.outboundDate) { + // stockup.outboundDate = params.outboundDate.toString(); + // } + if (stockup){ + data.stockup = stockup; } - data.stockup = stockup; - } - if (this.stockUpForm.taskTime) { - data.taskTime = this.stockUpForm.taskTime.toString(); - } + if (this.stockUpForm.taskTime){ + data.taskTime = this.stockUpForm.taskTime; + } + // if (this.stockUpForm.taskTime) { + // data.taskTime = this.stockUpForm.taskTime.toString(); + // } } console.log('this.data------------>', this.data); if (!this.deliveryListId) { @@ -1060,6 +1076,7 @@ }); return; } + console.log('>>>>>>>>>>>>', data); deliveryTask(data).then((res) => { this.$router.push({ @@ -1071,11 +1088,37 @@ let updateDate = {}; updateDate.reservationInfos = this.reservationData; updateDate.id = this.deliveryListId; - updateDate.stockupInfo = stockup; - updateDate.remarks = data.remarks; + console.log("-------->stockup",stockup); + if (stockup.unloaderId){ + updateDate.unloadingTeamId = stockup.unloaderId; + updateDate.unloadingTeamName = stockup.unloaderName; + } + if (stockup.loaderId){ + updateDate.loadingTeamId = stockup.loaderId; + updateDate.loadingTeamName = stockup.loaderName; + } + if (stockup.taskTime){ + updateDate.taskTime = stockup.taskTime; + } + // updateDate.stockupInfo = stockup; + console.log("------------>this.tripartite",tripartite); + + if (tripartite){ + updateDate.tripartite= tripartite; + } + // if (tripartite){ + // updateDate.tripartite.distributionCompanyId = tripartite.distributionCompanyId; + // updateDate.tripartite.distributionCompany = tripartite.distributionCompany; + // } + console.log("---------------->data",data.remarks); + updateDate.remarks = this.stockUpForm.remarks; + updateDate.taskTime = this.stockUpForm.taskTime; + updateDate.otherFee = this.stockUpForm.otherFee; + console.log("------------>this.waixieForm",this.waixieForm); console.log('->>>>>>>', this.waixieForm.tripartiteSource); if (this.waixieForm.tripartiteSource) { updateDate.tripartite = data.tripartite; + } else { updateDate.allocationInfo = data.allocationInfo; updateDate.masterDriverName = data.masterDriverName; @@ -1233,6 +1276,8 @@ this.driverForm.driverPhone = ''; this.driverForm.vehicleNum = ''; this.driverForm.deliveryFee = ''; + this.waixieForm = {}; + } else { // this.loadAndUnload = []; this.serveType = []; @@ -1244,7 +1289,7 @@ this.stockUpForm.deliveryType = '2'; // this.stockUpForm.deliveryWay = '2'; this.stockUpForm.stockupDate = dayjs().format('YYYY-MM-DD HH:mm:ss'); - this.form.taskTime = dayjs().format('YYYY-MM-DD'); + this.stockUpForm.taskTime = dayjs().format('YYYY-MM-DD'); this.stockUpForm.outboundDate = dayjs().format('YYYY-MM-DD HH:mm:ss'); }, ddd() { @@ -1303,13 +1348,14 @@ getMarketDeliveryList(this.deliveryListId).then(async res => { console.log('--------------->', res.data.data); const deliveryData = res.data.data; - this.stockUpForm.outboundDate = deliveryData.stockupInfo.outboundDate; - this.stockUpForm.taskTime = deliveryData.stockupInfo.taskTime; - this.stockUpForm.goodsAreaId = deliveryData.stockupInfo.goodsAreaId; - this.stockUpForm.forklift = deliveryData.stockupInfo.forkliftId; - this.stockUpForm.loader = deliveryData.stockupInfo.loaderId; + // this.stockUpForm.outboundDate = deliveryData.stockupInfo.outboundDate; + // this.stockUpForm.taskTime = deliveryData.stockupInfo.taskTime; + // this.stockUpForm.goodsAreaId = deliveryData.stockupInfo.goodsAreaId; + // this.stockUpForm.forklift = deliveryData.stockupInfo.forkliftId; + this.stockUpForm.loader = deliveryData.loadingTeamId; + this.stockUpForm.unloader = deliveryData.unloadingTeamId; this.stockUpForm.taskTime = deliveryData.taskTime; - this.stockUpForm.stockupDate = deliveryData.stockupInfo.stockupDate; + // this.stockUpForm.stockupDate = deliveryData.stockupInfo.stockupDate; this.stockUpForm.remarks = deliveryData.remarks; // if (deliveryData.stockupInfo.teamResponsibility) { // this.loadAndUnload = deliveryData.stockupInfo.teamResponsibility.split(',');