1178232204@qq.com 3 年之前
父节点
当前提交
d8c201f900
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 3 1
      src/components/cdssManage/plan/AddPlan.vue
  2. 4 3
      src/components/cdssManage/plan/Plan.vue

+ 3 - 1
src/components/cdssManage/plan/AddPlan.vue

@@ -158,12 +158,14 @@
               <el-input
                 v-model="form.planName"
                 placeholder="2-30位,可输入汉字、字母、数字和下划线"
+                :disabled="this.hospitalId == -1?true:false"
               ></el-input>
             </el-form-item>
             <el-form-item label="方案编码" prop="planCode">
               <el-input
                 v-model="form.planCode"
                 placeholder="可输入字母、数字和下划线"
+                :disabled="this.hospitalId == -1?true:false"
               ></el-input>
             </el-form-item>
             <el-form-item label="方案配置">
@@ -657,7 +659,7 @@ export default {
     if (isEdit) {
       // 编辑页面
       this.isEdit = true;
-
+      this.hospitalId = data.hospitalId
       let params = {
         hospitalId: data.hospitalId,
         id: data.id

+ 4 - 3
src/components/cdssManage/plan/Plan.vue

@@ -63,10 +63,11 @@
               size="small"
               class="delete"
               @click="enableOrAble(scope.row,0)"
-              v-if="scope.row.planStatus === 1"
+              v-if="scope.row.planStatus === 1 && scope.row.hospitalId !=-1"
+              :disabled="scope.row.hospitalId ==-1?true:false"
             >禁用</el-button>
-            <el-button type="text" size="small" @click="enableOrAble(scope.row,1)" v-else>启用</el-button>
-            <span style="margin:0 3px;">|</span>
+            <el-button type="text" size="small" @click="enableOrAble(scope.row,1)" :disabled="scope.row.hospitalId ==-1?true:false" v-else>启用</el-button>
+            <span style="margin:0 3px;" >|</span>
             <el-button
               v-if="scope.row.planStatus !== 1"
               @click="showDelDialog(scope.row.id,scope.row.planStatus,scope.row.planName,scope.row)"