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;