whj 2 ヶ月 前
コミット
b84237d95d
1 ファイル変更28 行追加27 行削除
  1. 28 27
      src/views/repair/application-form/modules/TicketForm.vue

+ 28 - 27
src/views/repair/application-form/modules/TicketForm.vue

@@ -284,13 +284,22 @@
               </a-checkbox-group>
             </td>
           </tr>
+          <tr>
+            <td colspan="29">
+              <div style="display:flex;justify-content:space-around;align-items: center;">
+                <div style="flex:1">检维修前安全条件确认:</div>
+                <div style="flex:1">检修后安全条件确认:
+                </div>
+              </div>
+            </td>
+          </tr>
           <tr>
             <td colspan="29">
               <div style="display:flex;justify-content:space-around;align-items: center;">
                 <div style="flex:1">委修人:{{ model.caller }}</div>
                 <div style="flex:1">允许开工人: <span>
-                  {{ model.trustDeptManager }}
-                </span>
+                    {{ model.trustDeptManager }}
+                  </span>
                   <!-- <operation-button
                     v-if="(!model.trustDeptManager ||model.trustDeptManager ==='')"
                     :type="2"
@@ -332,11 +341,7 @@
             <td colspan="29">
               <div>
                 1、维修工作描述:(派工工程师填写)<br />
-                <a-textarea
-                  v-model="model.repairContent "
-                  style="resize:none;border:none;width:100%;"
-                  :rows="4"
-                  placeholder="(1)判断故障原因或明确改造内容;
+                <a-textarea v-model="model.repairContent " style="resize:none;border:none;width:100%;" :rows="4" placeholder="(1)判断故障原因或明确改造内容;
 (2)简述维修方案或施工方案、步骤,分解工单任务;分解搭架、保温、其他专业维修需求等辅助工作;
 (3)维修/施工计划,使用人工时、机械台班;(后续制定相应作业维修包);
 (4)所需备件。" />
@@ -348,11 +353,7 @@
             <td colspan="29">
               <div>
                 2、检修结果描述:(检维修人填写)<br />
-                <a-textarea
-                  v-model="model.repairResultContent "
-                  style="resize:none;border:none;width:100%;"
-                  :rows="4"
-                  placeholder="(1)检修前、技改施工前数据确认;
+                <a-textarea v-model="model.repairResultContent " style="resize:none;border:none;width:100%;" :rows="4" placeholder="(1)检修前、技改施工前数据确认;
 (2)维修/施工步骤记录(检修数据或照片、损坏部位的微距拍摄;
 (3)维修/施工结果,使用人工时、机械台班;
 (4)实际消耗备件。" />
@@ -396,8 +397,8 @@
                 <div style="flex:1">检维修人:{{ model.repairMan }}</div>
                 <div style="flex:1">工时统计:{{ model.repairMin }}</div>
                 <div style="flex:1">主管确认: <span>
-                  {{ model.repairManager }}
-                </span>
+                    {{ model.repairManager }}
+                  </span>
                   <operation-button v-if="(!model.repairManager ||model.repairManager ==='')" :type="2" title="确定签字?" :showDivider="false" @confirm="handleSign('repairManager')">签字</operation-button>
                 </div>
               </div>
@@ -417,7 +418,7 @@
 <script>
 import { changeFieldTemplateData } from '@/api/repair/application-form'
 export default {
-  data () {
+  data() {
     return {
       visible: false,
       disabled: false,
@@ -453,16 +454,16 @@ export default {
         planStartTime: null,
         planEndTime: null,
         repairMin: null,
-        repairFormType: null
+        repairFormType: null,
       },
       trustMap: {},
       professorMap: {},
       repairTypeMap: {},
       levelMap: {},
-      repairFormTypeMap: {}
+      repairFormTypeMap: {},
     }
   },
-  created () {
+  created() {
     this.repairFormTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_FORM_TYPE)
     this.trustMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.TRUST_DEPT_TYPE)
     this.professorMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_PROFESSOR)
@@ -470,14 +471,14 @@ export default {
     this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LEVEL_TYPE)
   },
   methods: {
-    onChange (checkedValues) {
+    onChange(checkedValues) {
       console.log(this.value8, this.value8.includes(1))
     },
-    handleSign (val) {
+    handleSign(val) {
       this.model[val] = this.$store.getters.userInfo.realName
       console.log(this.$store.getters.userInfo.realName)
     },
-    base (record, id) {
+    base(record, id) {
       this.visible = true
       this.model = record
       this.id = id
@@ -490,7 +491,7 @@ export default {
       this.value8 = this.model.repairUnitStatus || []
       this.value10 = this.model.exceptions || []
     },
-    save () {
+    save() {
       const params = {
         ...this.model,
         trustDept: this.value1,
@@ -500,7 +501,7 @@ export default {
         content: this.value5,
         repairUnitStatus: this.value8,
         exceptions: this.value10,
-        id: this.id
+        id: this.id,
       }
       console.log(params)
       changeFieldTemplateData(params).then((res) => {
@@ -509,11 +510,11 @@ export default {
         this.handleCancel()
       })
     },
-    handleCancel () {
+    handleCancel() {
       this.visible = false
       this.$emit('ok')
-    }
-  }
+    },
+  },
 }
 </script>
 
@@ -533,7 +534,7 @@ export default {
   position: relative;
   table {
     min-width: 100%;
-     max-width: 830px;
+    max-width: 830px;
     margin: 0 auto;
     border: 1px solid #d6d6d6;
     border-radius: 6px;