diff --git a/src/api/distribution/distributionStockArticle.js b/src/api/distribution/distributionStockArticle.js index b786ad5c..7b6a60eb 100644 --- a/src/api/distribution/distributionStockArticle.js +++ b/src/api/distribution/distributionStockArticle.js @@ -159,6 +159,18 @@ export const update = (row) => { data: row }) } +/** + * 修改客户 + * @param row + * @returns {AxiosPromise} + */ +export const updateClient = (row) => { + return request({ + url: '/api/logpm-distribution/distributionStockArticle/updateClient', + method: 'post', + data: row + }) +} /** * 订单添加增值服务 diff --git a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue index ee7c027d..668ed5b0 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue @@ -238,7 +238,7 @@ > - + + + + +
@@ -3112,7 +3123,7 @@ export default { }, handleView(row) { console.log('查看>>>>>>>>>>', row); - this.title = '查看'; + this.title = '客户包件'; this.view = true; this.box = true; this.wid = row.id; diff --git a/src/views/distribution/reservation/reservationAddFrom.vue b/src/views/distribution/reservation/reservationAddFrom.vue index b8949ba3..08308e10 100644 --- a/src/views/distribution/reservation/reservationAddFrom.vue +++ b/src/views/distribution/reservation/reservationAddFrom.vue @@ -283,13 +283,13 @@ @selection="selectionChange" > @@ -308,6 +308,7 @@ layout="total, sizes, prev, pager, next, jumper" :total="page.total" > +
@@ -514,86 +515,33 @@ - - - {{ item.dictValue }} -  件数: - - - 公里: - - - 距离: - - - 人数: - - - 楼层: - - - 预计费用: - - - - - + + +
+ 商场名称:{{ clientData.mallName }} +
+
+
+ + + + + + + + + + + +
@@ -616,9 +564,9 @@ import { selectStockArticleInfoList, selectUpdateAvailableStockArticle, getZeroOrderDetail, + updateClient } from '@/api/distribution/distributionStockArticle'; import { getDetailDelivery } from '@/api/distribution/distributionDelivery'; -import { addIncrement } from '@/api/distribution/distributionStockArticle'; import { getInventoryList, selectInventoryDetail } from '@/api/distribution/distributionStockList'; import option from '@/option/distribution/distributionStockArticle'; @@ -1291,6 +1239,16 @@ export default { sortable: true, head: false, }, + { + prop: '', + label: '操作', + type: 6, + values: '', + width: '200', + checkarr: [], + fixed: 'right', + hide: true, + }, ], inventoryInfocolumnList: [ { @@ -1742,6 +1700,7 @@ export default { data: [], //增值服务弹窗 dialogVisible: false, + clientData: {}, textarea: '', //增值服务字典列表 addvalueServeTypeData: [], @@ -1867,44 +1826,6 @@ export default { init() { this.height = this.setPx(document.body.clientHeight - 340); }, - aaa() { - let addvalueInfos = []; - this.form.addvalueType.forEach((item, index) => { - let addvalueInfo = {}; - addvalueInfo.addvalueId = item; - if (item == 1 || item == 3 || item == 5 || item == 7) { - addvalueInfo.number = this.costList[item]; - } - if (item == 2) { - addvalueInfo.kilometer = this.costList[item]; - } - if (item == 4) { - addvalueInfo.distance = this.costList[item]; - } - if (item == 6) { - addvalueInfo.peopleNum = this.costList[item]; - } - if (this.floorList.length > 1) { - addvalueInfo.floor = this.floorList[1]; - this.floorList = []; - } - addvalueInfo.fee = this.feeList[item]; - addvalueInfos.push(addvalueInfo); - }); - let params = {}; - params.id = this.orderInfo.id; - params.addvalue = addvalueInfos; - params.relatedId = 1; - console.log('params>>>>>>>>>>>>', params); - addIncrement(params).then(res => { - this.dialogVisible = false; - this.$message({ - type: 'success', - message: '操作成功!', - }); - }); - this.onLoad(this.page); - }, tableAllSelection() {}, //查询出所有的市配订单 async handleAddOrder() { @@ -2069,6 +1990,14 @@ export default { this.zeroOrderShow = true; this.isrReservationEntry = false; }, + submitClient(){ + console.log("this.client===============>",this.clientData); + updateClient(this.clientData).then(res=>{ + console.log("res>>>>>>>>>>>",res.data.data); + this.onLoadOrder(this.page); + this.dialogVisible = false; + }) + }, // 选择包件信息 // selectionPackageChange(list) { @@ -2393,20 +2322,12 @@ export default { } console.log('>>>>>>>>>>>>>>>row', row); }, - removeStockList(row) { - if (this.inventoryData.length == 1 && this.orderData.length == 0 && this.reservationId) { - this.$message.warning('最少剩下一个数据'); - return; - } - this.inventoryData.forEach((item, index) => { - if (item.id === row.id) { - this.inventoryData.splice(index, 1); - } - console.log('item>>>>>>>>>>>', item); - }); - // 当两个列表没有数据时, 清空限制 - if (this.inventoryData.length === 0 && this.orderData.length === 0) this.marketName = ''; + updateClient(row) { console.log('>>>>>>>>>>>>>>>row', row); + this.dialogVisible = true; + Object.assign(this.clientData,row); + console.log("=============>",this.clientData); + }, showStockListEdit(row) { console.log('>>>>>>>>>>>>>>>row', row); @@ -2911,4 +2832,13 @@ input[type='number'] { margin-bottom: 8px; border-radius: 4px; } +.clientRow{ + display: block; + min-height: 1px; + margin-bottom: 32px; + font-size: larger; + margin-left: 24px; + font-weight: bold; + width: 2000px; + } diff --git a/src/views/distribution/signfor/distributionSignfor.vue b/src/views/distribution/signfor/distributionSignfor.vue index 6b8702ba..03c2a187 100644 --- a/src/views/distribution/signfor/distributionSignfor.vue +++ b/src/views/distribution/signfor/distributionSignfor.vue @@ -30,39 +30,64 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - @@ -243,6 +268,71 @@ export default { sortable: true, head: false, }, + { + prop: 'reservationCode', + label: '预约单号', + type: 2, + values: '', + width: '220', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'driverName', + label: '司机名称', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'driverPhone', + label: '司机电话', + type: 1, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'vehicleName', + label: '车牌号', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'taskTime', + label: '配送时间', + type: 4, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'signLoadingDate', + label: '装车时间', + type: 4, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, { prop: 'stockArticleId', label: '订单自编号', @@ -369,27 +459,27 @@ export default { fixed: false, sortable: true, }, - { - prop: 'deliveryDriverName', - label: '送货司机', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'deliveryDriverPhone', - label: '送货手机手机号', - type: 1, - values: '', - width: '180', - checkarr: [], - fixed: false, - sortable: true, - head: false, - }, + // { + // prop: 'deliveryDriverName', + // label: '送货司机', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'deliveryDriverPhone', + // label: '送货手机手机号', + // type: 1, + // values: '', + // width: '180', + // checkarr: [], + // fixed: false, + // sortable: true, + // head: false, + // }, { prop: 'signingTime', label: '文员签收时间', @@ -421,6 +511,17 @@ export default { sortable: true, head: false, }, + { + prop: 'examineUserName', + label: '审核人', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, { prop: 'sijiSigningStatus', label: '司机签收状态', diff --git a/src/views/distribution/signfor/distributionSignforedt.vue b/src/views/distribution/signfor/distributionSignforedt.vue index 7ad79809..aa940a1a 100644 --- a/src/views/distribution/signfor/distributionSignforedt.vue +++ b/src/views/distribution/signfor/distributionSignforedt.vue @@ -347,7 +347,7 @@ align="center" /> - @@ -458,7 +458,7 @@ align="center" /> - + + + + + + + + + @@ -506,7 +531,34 @@ export default { HomePhotos: [], // 签收照 SignForPhotos: [], - reservationId: null, //当前行的ID + reservationId: null, //当前行的ID, + pickerOptions: { + shortcuts: [{ + text: '最近一周', + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); + picker.$emit('pick', [start, end]); + } + }, { + text: '最近一个月', + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); + picker.$emit('pick', [start, end]); + } + }, { + text: '最近三个月', + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); + picker.$emit('pick', [start, end]); + } + }] + }, columnList: [ { prop: '', @@ -533,6 +585,61 @@ export default { label: '配送车次', type: 2, values: '', + width: '160', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'reservationCode', + label: '预约单号', + type: 2, + values: '', + width: '160', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'driverName', + label: '司机名称', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'driverPhone', + label: '司机电话', + type: 1, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'vehicleName', + label: '车牌号', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'taskTime', + label: '配送时间', + type: 4, + values: '', width: '130', checkarr: [], fixed: false, @@ -648,7 +755,7 @@ export default { // sortable: true // }, { - prop: 'deliveryTime', + prop: 'signLoadingDate', label: '装车时间', type: 4, values: '', @@ -1770,6 +1877,7 @@ export default { this.search = !this.search; }, searchChange() { + console.log("this.query>>>>>>>>>>>>>>",this.query); if (this.query.querySigningStatus) { this.query.signingStatus = this.query.querySigningStatus; } diff --git a/src/views/warehouse/warehouseRetentionRecord/warehouseRetentionDetails.vue b/src/views/warehouse/warehouseRetentionRecord/warehouseRetentionDetails.vue index bb3261f4..26f73f2c 100644 --- a/src/views/warehouse/warehouseRetentionRecord/warehouseRetentionDetails.vue +++ b/src/views/warehouse/warehouseRetentionRecord/warehouseRetentionDetails.vue @@ -30,13 +30,19 @@ 车次号:{{deliveryDate.trainNumber}} - + 配送司机:{{deliveryDate.driverName}} - + + 司机电话:{{deliveryDate.driverPhone}} + + + 车辆车牌:{{deliveryDate.vehicleName}} + + 计划数量:{{deliveryDate.deliveryNumber + this.retentionQuantity}} - + 滞留件数:{{this.retentionQuantity}} @@ -932,6 +938,7 @@ getRetentionPackage(type){ console.log("type>>>>>>>>>",type); console.log("this.retentionRecordId>>>>>>>>>",this.retentionRecordId); + this.loading = true; getRetentionPackageByType(this.retentionRecordId,type).then(res=>{ console.log("res>>>>>>>",res.data.data[0]); const data = res.data.data; @@ -950,6 +957,7 @@ break; } + this.loading = false; console.log("res>>>>>>>>>>>",res.data.data); @@ -1053,6 +1061,7 @@ this.onLoad(this.page); }, onLoad(page) { + this.loading = true; getDetail(this.retentionRecordId).then(res => { console.log('res<>>>>>>>>>>>>>>>>>>', res.data.data); const data = res.data.data;