From 42457d0d3db03fa5cdced73e5b04742fdcbc2023 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Fri, 5 Jan 2024 12:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=8C=85=E4=BB=B6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=89=B9=E9=87=8F=E7=AD=BE=E6=94=B6=EF=BC=8C=E5=8F=96?= =?UTF-8?q?=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aftersales/aftersalesWorkOrderAdd.vue | 39 ++++++++---- .../distributionDeliveryListedt.vue | 61 ++++++++++++++++++- 2 files changed, 87 insertions(+), 13 deletions(-) diff --git a/src/views/aftersales/aftersalesWorkOrderAdd.vue b/src/views/aftersales/aftersalesWorkOrderAdd.vue index c00ccf4a..acbc7277 100644 --- a/src/views/aftersales/aftersalesWorkOrderAdd.vue +++ b/src/views/aftersales/aftersalesWorkOrderAdd.vue @@ -298,7 +298,7 @@ - + @@ -307,10 +307,10 @@
- 责任方: + - + +
- 责任人: + + - + + +
- 占比: + % +
- 三方责任人: + +
- 说明: + +
@@ -398,7 +405,7 @@
- +
@@ -1008,6 +1015,8 @@ const rules = reactive({ orderCode: [{ required: true, message: '请填写订单自编号', trigger: 'change' }], waybillNumber: [{ required: true, message: '请填写运单号', trigger: 'change' }], brandName: [{ required: true, message: '请填写品牌', trigger: 'change' }], + businessName: [{ required: true, message: '请选择责任方', trigger: 'change' }], + personResponsibleName: [{ required: true, message: '请填写责任人', trigger: 'change' }], }); //表单提交 @@ -1484,7 +1493,6 @@ const ViewPackageDetails = val => { flex-wrap: wrap; justify-content: flex-start; border: 1px solid #ccc; - border-bottom: none; .el-form-item { height: 46px; display: flex; @@ -1616,17 +1624,22 @@ const ViewPackageDetails = val => { display: flex; flex-direction: column; .leftbox { - width: 80%; display: flex; justify-content: space-between; .el_zb { width: 140px; margin-right: 50px; text-align: right; + :deep(.el-form-item__label){ + width: auto !important; + } :deep(.el-input) { margin-left: 10px; text-align: right; } + :deep(.el-form-item__content){ + flex-wrap: nowrap; + } } } .maxBox { @@ -1634,6 +1647,7 @@ const ViewPackageDetails = val => { align-items: center; width: 30%; margin-right: 16px; + font-size: 14px; .title { width: 120px; font-size: 14px; @@ -1666,9 +1680,12 @@ const ViewPackageDetails = val => { align-items: center; width: 30%; margin-right: 20px; + :deep(.el-form-item){ margin: 0; margin-right: 10px; + + font-size: 12px; .el-form-item__label{ margin: 0; width: auto !important; diff --git a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue index 5fbf8962..faf5890f 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue @@ -465,6 +465,8 @@ --> + 批量签收 + 批量计划取消 { if (res.data.code === 200){ @@ -3367,7 +3369,7 @@ export default { let data = { deliveryId:this.deliveryId, reservationId:this.wid, - barcode:row.orderPackageCode + barcodes:row.orderPackageCode } //包件签收 deliverySign(data).then(res=>{ @@ -3379,6 +3381,54 @@ export default { }) // this.$message.warning('功能维护中...'); // return; + }, + // 批量签收 + Batchsigning(){ + console.log(this.selectionList,'this.selectionList'); + + let data = { + deliveryId:this.deliveryId, + reservationId:this.wid, + barcodes:this.selectionList.map(item=>item.orderPackageCode).join(',') + } + this.loading=true, + deliverySign(data).then(res=>{ + console.log('res>>>>>>>>>>>>>>>>>>>>>>>',res); + if (res.data.code === 200){ + this.$message.success(res.data.msg); + this.getWrapdetails(this.page); + + } + this.selectionList=[];//清空选择 + this.loading=false; + }).catch(res=>{ + this.selectionList=[];//清空选择 + this.loading=false; + + }) + }, + // 批量计划取消 + Batchcancellation(){ + let data = { + deliveryId:this.deliveryId, + reservationId:this.wid, + type:1, + packageIds:this.selectionList.map(item=>item.id).join(',') + } + this.loading=true; + cancelReservationPackage(data).then(res=>{ + if (res.data.code === 200){ + this.$message.success(res.data.msg); + this.getWrapdetails(this.page); + } + this.selectionList=[];//清空选择 + this.loading=false; + + }).catch(res=>{ + this.selectionList=[];//清空选择 + this.loading=false; + + }) }, /** * 打印 @@ -3643,6 +3693,8 @@ export default { this.data = data.records; this.ordpage.total = data.total; } + }).catch(res=>{ + this.listloading=false }); }, //订单列表 @@ -3709,6 +3761,7 @@ export default { }); }, async handleView(row) { + this.loading=true;//开启加载 console.log('查看>>>>>>>>>>', row); this.title = '客户包件'; this.view = true; @@ -3716,6 +3769,7 @@ export default { this.wid = row.id; this.getWrapdetails(this.wpage); await this.$nextTick(); + setNodeHeight(this.$refs.wtableBox.$el, '600px'); }, /** 是否全屏 */ @@ -3905,6 +3959,9 @@ export default { const data = res.data.data; this.wrapdata = data.records; this.wpage.total = data.total; + this.loading=false;//关闭加载 + }).catch(res=>{ + this.loading=false;//关闭加载 }); },