diff --git a/src/views/tool/Instead/components/pay-type.vue b/src/views/tool/Instead/components/pay-type.vue index f5f672d..884fd53 100644 --- a/src/views/tool/Instead/components/pay-type.vue +++ b/src/views/tool/Instead/components/pay-type.vue @@ -10,6 +10,7 @@ v-for="(item, index) in list" :key="index" :type="sel === item.payType ? 'primary' : ''" + :disabled="disabledPayType.includes(item.payType)" > {{ item.payName }} @@ -30,6 +31,10 @@ export default { type: [String, Number], default: '', }, + disabledPayType:{ + type:Array, + default:()=>[] + } }, data() { return { @@ -38,6 +43,10 @@ export default { }; }, watch: { + disabledPayType(){ + const item = this.list.find(v=>!this.disabledPayType.includes(v.payType)) + this.sel=item.payType + }, sel(newval) { console.log(newval); this.$emit("input", newval); diff --git a/src/views/tool/Instead/components/quans.vue b/src/views/tool/Instead/components/quans.vue index 2de1167..7540356 100644 --- a/src/views/tool/Instead/components/quans.vue +++ b/src/views/tool/Instead/components/quans.vue @@ -16,11 +16,7 @@ :data="quans.fullReductionCoupon" @cell-click="fullReductionCouponClick" > - +