From 9f033955345b73d00ab5143da01c8a96a7e7e0f0 Mon Sep 17 00:00:00 2001
From: zhouxueli <2841188632@qq.com>
Date: Mon, 6 Nov 2023 14:36:14 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E8=B4=A6=E6=8F=90=E4=BA=A4=E5=92=8C?=
=?UTF-8?q?=E7=A1=AE=E5=AE=9A=E5=AE=A1=E6=A0=B8=E6=8C=89=E9=92=AE=E9=9C=80?=
=?UTF-8?q?=E5=8A=A0=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/workOrder/accounting.vue | 103 ++++-------------------------
1 file changed, 12 insertions(+), 91 deletions(-)
diff --git a/src/views/workOrder/accounting.vue b/src/views/workOrder/accounting.vue
index 906c9e4e..4ed19b90 100644
--- a/src/views/workOrder/accounting.vue
+++ b/src/views/workOrder/accounting.vue
@@ -122,11 +122,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -222,11 +222,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -239,7 +239,7 @@ import {
selectRecordPictureList, deleteImage
} from "@/api/mine"
import { ImagePreview } from "vant";
-// import TwoCommonBtn from "@/components/twoBtnCommon.vue"
+import TwoCommonBtn from "@/components/twoBtnCommon.vue"
export default {
name: "accountingView",
mixins:[myMixins],
@@ -349,9 +349,6 @@ export default {
auditSuccessRemark:'',
accountStatus: ''
},
- noClick:true,
- loading: false,
- loading1: false
}
},
async mounted() {
@@ -530,7 +527,6 @@ export default {
this.$alert('已进入后续流程,不允许操作');
return;
}
- this.loading1=true;
let accountStatus = 0
if(this.accountStatus == 0) accountStatus = 1
if(this.accountStatus == 1) accountStatus = 1
@@ -569,56 +565,7 @@ export default {
this.$router.back()
},2000)
}
- this.loading1=false
},
- async confirmAudit(){
- if(this.accountStatus >= 4){
- this.$alert('已进入后续流程,不允许操作');
- return;
- }
- this.loading = true;
- this.form.supplierExtraPrice = this.form.extraPrice || 0
- this.form.supplierBasePrice = this.form.basePrice || 0
- this.form.supplierBridgeAmountAb = this.form.bridgeAmountAb || 0
- this.form.supplierBridgeAmountBc = this.form.bridgeAmountBc || 0
- this.form.supplierBridgeAmountCa = this.form.bridgeAmountCa || 0
- this.form.supplierBridgeAmount = this.form.supplierBridgeAmountAb + this.form.supplierBridgeAmountBc + this.form.supplierBridgeAmountCa
- this.form.supplierCustomerAmount = this.form.customerAmount || 0
- this.form.supplierDilemmaAmount = this.form.dilemmaAmount || 0
- this.form.supplierOtherAmount = this.form.otherAmount || 0
- this.form.supplierSettleAmount = this.form.settleAmount || 0
- this.form.supplierTyreAmount = this.form.tyreAmount || 0
- this.form.supplierSettleMileageAb = this.form.settleMileageAb || 0
- this.form.supplierSettleMileageBc = this.form.settleMileageBc || 0
- this.form.supplierSettleMileageCa = this.form.settleMileageCa || 0
- this.form.supplierWaitAmount = this.form.waitAmount || 0
- this.form.supplierBasementFee = this.form.basementFee || 0
- let accountStatus = 11
- if(this.form.financePrice >= this.form.settleAmount){//服务商确认中道价格,且等于财务金额,则直接到审核完成
- accountStatus = 4
- }
- const formData = new FormData();
- let obj = this.form;
- Object.keys(obj).forEach((key) => {
- formData.append(key, obj[key]);
- });
- this.files.forEach((file) => {
- formData.append('file', file.file);
- });
- formData.append('accountStatus', accountStatus);
- 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);
- if(res.code === 200){
- this.$toast('操作成功')
- setTimeout(()=>{
- this.$router.back()
- },2000)
- }
- this.loading = false;
- },
-
async delSupplierPhoto(item){
this.show = true
this.imgId=item.id
@@ -632,7 +579,7 @@ export default {
},
},
components:{
- // TwoCommonBtn
+ TwoCommonBtn
}
}
@@ -640,32 +587,6 @@ export default {