Explorar o código

金额计算与禁用状态

wolyshaw %!s(int64=4) %!d(string=hai) anos
pai
achega
769e19a9bd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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;