Forráskód Böngészése

fix:合同变更时页面修改禁用,在客户有进行的服务时

ly 10 hónapja
szülő
commit
6b2988f28b
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/views/business/crm/order/form.vue

+ 3 - 3
src/views/business/crm/order/form.vue

@@ -217,7 +217,7 @@
                         <el-col :span="4" style="padding-top: 18px">
                           <el-form-item label="服务月数">
                             <el-input-number v-if="editStatus" v-model="item.serviceNum" :step="1" step-strictly
-                                             :min="0" :controls="false" @change="
+                                             :min="0" :disabled="item.disabled" :controls="false" @change="
                                 (arg) =>
                                   inputChangeHandler(
                                     'loop',
@@ -232,7 +232,7 @@
                         <el-col :span="4" style="padding-top: 18px">
                           <el-form-item label="赠送月数">
                             <el-input-number v-if="editStatus" v-model="item.freeNum" :step="1" step-strictly :min="0"
-                                             :controls="false" @change="
+                                             :disabled="item.disabled"     :controls="false" @change="
                                 (arg) =>
                                   inputChangeHandler(
                                     'loop',
@@ -709,7 +709,7 @@
                   <i class="fa fa-th-list" aria-hidden="true" /> 合同附件
                 </div>
                 <div class="details-btns-container" style="display: flex">
-                  <el-upload v-if="editStatus && type != 'alterOrder'" action="#" :http-request="upload"
+                  <el-upload v-if="editStatus" action="#" :http-request="upload"
                              :with-credentials="true" :show-file-list="false" multiple>
                     <el-button style="margin-top: 10px; margin-bottom:10px;" size="small" type="primary"
                                icon="Upload">点击上传</el-button>