From 424ef9879812be182e1fa3136c855b3d819f6c9c Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Mon, 27 Apr 2026 15:04:17 +0800 Subject: [PATCH] =?UTF-8?q?CRM=5F26-04-29#story#8528,=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E8=AE=B0=E8=B4=A6=E6=A8=A1=E5=9D=97=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E2=80=94=E5=BE=90=E5=8A=9B=E9=9B=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/workOrder/accounting.vue | 120 +++++++++++++++++++++++++---- 1 file changed, 106 insertions(+), 14 deletions(-) diff --git a/src/views/workOrder/accounting.vue b/src/views/workOrder/accounting.vue index ec16c3ff..4490ea32 100644 --- a/src/views/workOrder/accounting.vue +++ b/src/views/workOrder/accounting.vue @@ -54,6 +54,11 @@ {{ orderInfo.carClothingToolAmount }} +
+ 免拖: + {{ orderInfo.customerDistanceLimit }} {{orderInfo.hedgingMileage && orderInfo.hedgingMileage > 0 ? '(超限对冲,只结免拖)' : ''}} +
换电瓶费用:
-
到事发地距离:
+
* 到事发地距离:
公里
-
拖车里程:
+
* 拖车里程:
公里
-
返程里程:
+
*返程里程:
公里
-
ab路桥费:
+
*ab路桥费:
-
bc路桥费:
+
*bc路桥费:
-
ca路桥费:
+
*ca路桥费:
-
等候费:
+
*等候费:
-
小轮个数:
+
*小轮个数:
@@ -108,11 +113,11 @@
-
困境费:
+
*困境费:
-
地库费:
+
*地库费:
@@ -120,7 +125,7 @@
-
基本费用:
+
*基本费用:
@@ -657,6 +662,50 @@ export default { this.goback() }, async save() { + const isBlank = (v) => v === '' || v === null || v === undefined || parseFloat(v) <= 0 + if (this.abState && isBlank(this.form.supplierSettleMileageAb)) { + this.$toast('请填写到事发地距离'); return; + } + if (this.bcState && isBlank(this.form.supplierSettleMileageBc)) { + this.$toast('请填写拖车里程'); return; + } + if (this.caState && isBlank(this.form.supplierSettleMileageCa)) { + this.$toast('请填写返程里程'); return; + } + if (this.bridgeAbState && !this.isUnsuccessfulSettle && isBlank(this.form.supplierBridgeAmountAb)) { + this.$toast('请填写ab路桥费'); return; + } + if (this.bridgeBcState && !this.isUnsuccessfulSettle && isBlank(this.form.supplierBridgeAmountBc)) { + this.$toast('请填写bc路桥费'); return; + } + if (this.bridgeCaState && !this.isUnsuccessfulSettle && isBlank(this.form.supplierBridgeAmountCa)) { + this.$toast('请填写ca路桥费'); return; + } + if (this.waitAmountState && isBlank(this.form.supplierWaitAmount)) { + this.$toast('请填写等候费'); return; + } + if (this.tyreAmountState && !this.isUnsuccessfulSettle && isBlank(this.form.tyreNumber)) { + this.$toast('请填写小轮个数'); return; + } + if (this.dilemmaAmountState && this.basePriceDisabled && isBlank(this.form.supplierDilemmaAmount)) { + this.$toast('请填写困境费'); return; + } + if (this.basementFeeState && this.isBasementSettle && !this.isUnsuccessfulSettle && isBlank(this.form.supplierBasementFee)) { + this.$toast('请填写地库费'); return; + } + if (!this.basePriceDisabled && !this.isBasementSettle && isBlank(this.form.supplierBasePrice)) { + this.$toast('请填写基本费用'); return; + } + if ( + this.orderInfo.customerDistanceLimit && + parseFloat(this.form.supplierSettleMileageBc) > parseFloat(this.orderInfo.customerDistanceLimit) + ) { + console.log(11111111) + if (!this.form.supplierCustomerAmount || parseFloat(this.form.supplierCustomerAmount) == 0) { + this.$toast('拖车里程超出免拖范围,请填写收取客户金额'); + return; + } + } if (this.form.supplierOtherAmount > 0) { if (this.form.supplierOtherAmountRemark == '') { this.$toast('请填写其他费用说明'); @@ -704,7 +753,7 @@ export default { formData.append('state', 0); formData.append('postfix', this.postfix); formData.append('supplierBridgeAmount', parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0)); - let res = await updateAccountRecordInfo(formData); + /* let res = await updateAccountRecordInfo(formData); if (res.code === 200) { this.$toast('操作成功') setTimeout(() => { @@ -717,7 +766,7 @@ export default { } }) }, 2000) - } + }*/ this.loading = false; }, async confirmAudit() { @@ -725,6 +774,49 @@ export default { this.$toast('已进入后续流程,不允许操作'); return; } + const isBlank = (v) => v === '' || v === null || v === undefined || parseFloat(v) <= 0 + if (this.abState && isBlank(this.form.settleMileageAb)) { + this.$toast('请填写到事发地距离'); return; + } + if (this.bcState && isBlank(this.form.settleMileageBc)) { + this.$toast('请填写拖车里程'); return; + } + if (this.caState && isBlank(this.form.settleMileageCa)) { + this.$toast('请填写返程里程'); return; + } + if (this.bridgeAbState && !this.isUnsuccessfulSettle && isBlank(this.form.bridgeAmountAb)) { + this.$toast('请填写ab路桥费'); return; + } + if (this.bridgeBcState && !this.isUnsuccessfulSettle && isBlank(this.form.bridgeAmountBc)) { + this.$toast('请填写bc路桥费'); return; + } + if (this.bridgeCaState && !this.isUnsuccessfulSettle && isBlank(this.form.bridgeAmountCa)) { + this.$toast('请填写ca路桥费'); return; + } + if (this.waitAmountState && isBlank(this.form.waitAmount)) { + this.$toast('请填写等候费'); return; + } + if (this.tyreAmountState && !this.isUnsuccessfulSettle && isBlank(this.form.tyreNumber)) { + this.$toast('请填写小轮个数'); return; + } + if (this.dilemmaAmountState && this.basePriceDisabled && isBlank(this.form.dilemmaAmount)) { + this.$toast('请填写困境费'); return; + } + if (this.basementFeeState && this.isBasementSettle && !this.isUnsuccessfulSettle && isBlank(this.form.basementFee)) { + this.$toast('请填写地库费'); return; + } + if (!this.basePriceDisabled && !this.isBasementSettle && isBlank(this.form.basePrice)) { + this.$toast('请填写基本费用'); return; + } + if ( + this.orderInfo.customerDistanceLimit && + parseFloat(this.form.settleMileageBc) > parseFloat(this.orderInfo.customerDistanceLimit) + ) { + if (!this.form.customerAmount || parseFloat(this.form.customerAmount) == 0) { + this.$toast('拖车里程超出免拖范围,请填写收取客户金额'); + return; + } + } this.loading1 = true; this.form.supplierExtraPrice = this.form.extraPrice || 0 this.form.supplierBasePrice = this.form.basePrice || 0 @@ -942,7 +1034,7 @@ img { } .baseInfo { - @include wh(100%, 344px); + width: 100%; }