Browse Source

金额计算与禁用状态

wolyshaw 4 years ago
parent
commit
769e19a9bd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/resetTeaming/modals/user-pay-form.vue

+ 3 - 1
src/views/resetTeaming/modals/user-pay-form.vue

@@ -49,7 +49,7 @@
                     :isUserType="isUserType"
                     :form.sync="cycle"
                     :isCommon="isCommon"
-                    :isDisabled="form.leixing === '1' || paymentType == '0'" />
+                    :isDisabled="true" />
     </template>
     <el-alert title="其它"
               :closable="false"
@@ -210,6 +210,7 @@ export default {
       }
     },
     priceChange (item, index) {
+      console.log({...item})
       const _ = [...this.eclass]
       const active = this.organizationCourseUnitPriceSettingsByType[item.courseType] || {}
       const price = Math.ceil((item.courseTotalMinuties || 1) * (active.unitPrice || 1))
@@ -217,6 +218,7 @@ export default {
       item.courseOriginalPrice = price
       _[index] = item
       this.eclass = [..._]
+      this.syncAllMoney()
     },
     syncAllMoney () {
       let money = 0;