Переглянути джерело

修改sop,作业票查看操作右侧tabbar标题;
修改添加尾部人员弹框的人员名称为人员ID

wangyani 1 рік тому
батько
коміт
02afb3847b

+ 7 - 3
src/views/mes/job/jobm/NewOperations.vue

@@ -399,10 +399,10 @@
           </el-select>
         </el-form-item>
 
-        <el-form-item label="人员名称" prop="mumberId" v-if="outsideMumber">
+        <el-form-item label="人员ID" prop="mumberId" v-if="outsideMumber">
           <el-input
             v-model="dialogForm.username"
-            placeholder="请输入人员名称"
+            placeholder="请输入人员ID"
             style="width: 100%"
             @change="outSideUserInput"
           />
@@ -574,7 +574,11 @@ export default {
     if (this.$route.query.ticketId !== "null") {
       this.getTicket();
       this.form.ticketId = this.$route.query.ticketId;
-      this.setTicketTitle("编辑作业票");
+      if (this.getSopLook) {
+        this.setTicketTitle("查看作业票");
+      } else {
+        this.setTicketTitle("编辑作业票");
+      }
     } else {
       this.setSelectSopPoints([]);
       this.setPointTableData([]);

+ 5 - 1
src/views/mes/sop/sopm/NewSop.vue

@@ -274,7 +274,11 @@ export default {
     if (this.$route.query.sopId !== "null") {
       // console.log(this.$route.query.sopId, "接受路由参数");
       this.getSopInfo();
-      this.setSopTitle("编辑SOP");
+      if (this.getSopLook) {
+        this.setSopTitle("查看SOP");
+      } else {
+        this.setSopTitle("编辑SOP");
+      }
     } else {
       this.setSelectSopPoints([]);
       this.setPointTableData([]);