Преглед изворни кода

业务信息组件 根据环境ID动态显示负责人相关字段

yusheng пре 7 месеци
родитељ
комит
07a485a395

+ 7 - 4
src/views/ledgerAssets/components/businessInformation.vue

@@ -50,7 +50,7 @@
 
           <el-descriptions-item>
             <template slot="label">
-              <span class="is-required">片区负责人部门</span>
+              <span class="is-required">{{clientEnvironmentId==9?'所在班组(科室)':'片区负责人部门'}}</span>
             </template>
             <el-form-item label-width="0">
               <div class="input">
@@ -63,7 +63,7 @@
           </el-descriptions-item>
           <el-descriptions-item>
             <template slot="label">
-              <span class="is-required">片区负责人</span>
+              <span class="is-required">{{clientEnvironmentId==9?'责任人':'片区负责人'}}</span>
             </template>
             <el-form-item label-width="0">
               <el-select
@@ -83,7 +83,7 @@
             </el-form-item>
           </el-descriptions-item>
           <el-descriptions-item>
-            <template slot="label">片区负责人电话 </template>
+            <template slot="label">{{clientEnvironmentId==9?'责任人电话':'片区负责人电话'}} </template>
             <el-form-item label-width="0">
               <el-input
                 v-model="ywInfo.areaPersonInChargePhone"
@@ -378,10 +378,13 @@
         statusOptions: {},
         sourceStatus,
         // 网络状态
-        networkStatusOptions: {}
+        networkStatusOptions: {},
+        clientEnvironmentId: 0
       };
     },
     mounted() {
+      this.clientEnvironmentId =
+        this.$store.state.user.info.clientEnvironmentId;
       this.getFactoryareaList();
       this.getDeliveryCycleOptions();
       this.initStatusMapping();

+ 13 - 7
src/views/maintenance/repair/repairNotes/components/addDialog.vue

@@ -112,7 +112,7 @@
               />
             </el-form-item> -->
             <el-form-item
-              label="负责人部门:"
+             :label="clientEnvironmentId == '9'?'所在班组(科室):':'片区负责人部门:'"
               prop="areaPersonInChargeGroupId"
             >
               <dept-select
@@ -135,7 +135,7 @@
             </el-form-item>
           </el-col> -->
           <el-col :span="12">
-            <el-form-item label="负责人:" prop="areaPersonInChargeUserId">
+            <el-form-item :label="clientEnvironmentId == '9'?'责任人':'片区负责人:'" prop="areaPersonInChargeUserId">
               <person-select
                 v-model="addForm.areaPersonInChargeUserId"
                 clearable
@@ -144,14 +144,14 @@
               />
             </el-form-item>
           </el-col>
-          <!-- <el-col :span="12">
+          <el-col :span="12" v-if="clientEnvironmentId != '9'">
             <el-form-item label="领导部门:" prop="leaderDeptId">
               <dept-select
                 v-model="addForm.leaderDeptId"
                 @input="auditorDeptClick"
               />
             </el-form-item>
-          </el-col> -->
+          </el-col>
           <el-col :span="12">
             <el-form-item label="期望完成时间:" prop="expectedTime">
               <el-date-picker
@@ -165,7 +165,7 @@
             </el-form-item>
           </el-col>
 
-          <!-- <el-col :span="12">
+          <el-col :span="12" v-if="clientEnvironmentId != '9'">
             <el-form-item label="通知领导:" prop="leaderUserId">
               <el-select
                 style="width: 100%"
@@ -184,7 +184,7 @@
               </el-select>
 
             </el-form-item>
-          </el-col> -->
+          </el-col>
           <el-col :span="12">
             <el-form-item label="维修部门" prop="repairGroupId">
               <dept-select
@@ -376,11 +376,17 @@
         loading: false,
         row: null,
         receiverList: [],
-        executorList: []
+        executorList: [],
+        clientEnvironmentId: 0
       };
     },
     created() {
       this.getUserList();
+
+    },
+    mounted() {
+            this.clientEnvironmentId =
+        this.$store.state.user.info.clientEnvironmentId;
     },
     methods: {
       //选择部门(搜索)