From e9cc5e269e01a71c782f71e9bcbf2e10d0ec4df2 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Wed, 6 Apr 2022 11:42:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=93=E7=AE=97=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/workOrder/workOrderThree.vue | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/pages/workOrder/workOrderThree.vue b/pages/workOrder/workOrderThree.vue index ca18006..588db9a 100644 --- a/pages/workOrder/workOrderThree.vue +++ b/pages/workOrder/workOrderThree.vue @@ -21,7 +21,7 @@ 结算方式 - + {{item.title}} @@ -66,12 +66,12 @@ 是否开票 - + - + @@ -79,12 +79,12 @@ 是否收款 - + - + @@ -160,11 +160,12 @@ data() { return { clearingForm: [ - {title: '单次付费',state: true,}, - {title: '质保免费',state: false,}, - {title: '验收扫尾',state: false,}, - {title: '包年签单',state: false,}, + {title: '单次付费'}, + {title: '质保免费'}, + {title: '验收扫尾'}, + {title: '包年签单'}, ], + currentWay:0,//结束方式类型 signatureState:false, array: ['微信', '支付宝', '现金', '类型'], paymentModeIndex:0, @@ -189,7 +190,7 @@ ifCollectionCode:false,//是否显示收款码 remarkText:'',//备注内容 saveTimer:null,//保存签名延迟时间事件 - flag:true//防抖 + flag:true,//防抖 } }, computed:{ @@ -219,9 +220,8 @@ if(this.checkEmpty()) { if(this.flag) { this.flag = false; - let exist = this.clearingForm.findIndex(item=>item.state==true); let params = { - a:this.clearingForm[exist].title, + a:this.clearingForm[this.currentWay].title, b:this.serviceTime, c:this.detailObj.doorToDoorFee, d:this.detailObj.taxes, @@ -257,10 +257,7 @@ this.ifCollectionCode = !this.ifCollectionCode; }, clearingFormFun(index) { - for (var i = 0; i < this.clearingForm.length; i++) { - this.clearingForm[i].state = false - } - this.clearingForm[index].state = true + this.currentWay = index; }, bindPickerChange(data) { this.paymentModeIndex = data.detail.value;