Browse Source

工单池

guarantee-lsq 2 years ago
parent
commit
c7dee393da

+ 2 - 1
src/utils/dict.js

@@ -922,7 +922,8 @@ DictCache.VALUE = {
     CALLER_REPAIR_VERIFY_FAIL_TWO: 18, // 计划报修二审被拒
     CALLER_REPAIR_VERIFYING_THREE: 19, // 计划报修三审中
     CALLER_REPAIR_VERIFY_FAIL_THREE: 20, // 	计划报修三审被拒
-    BIG_REPAIR_VERIFYING: 21 // 大修审核中
+    BIG_REPAIR_VERIFYING: 21, // 大修审核中
+    CALLER_REPAIR_VERIFY_SUCCESS_THREE: 22 // 计划维修报修成功
   },
   REPAIR_PREPARATION_STATUS: {
     NOT_ALLOCATED: 1, // 待分配

+ 37 - 57
src/views/repair/application-form/RepairFormPool.vue

@@ -97,7 +97,7 @@
       >
         <span slot="action" slot-scope="record">
           <template>
-            <a @click="handleView(record)">维修主页</a>
+            <a @click="handleView(record)">工单主页</a>
             <!-- <operation-button
               v-show="allocatedFlag"
               v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === record.status)"
@@ -213,10 +213,10 @@ export default {
           }
         },
         {
-          title: '设备编号',
+          title: '工单编号',
           checked: true,
           width: '100px',
-          dataIndex: 'sbNo'
+          dataIndex: 'no'
         },
         {
           title: '设备名称',
@@ -228,32 +228,55 @@ export default {
           }
         },
         {
-          title: '车间具体位置',
+          title: '设备位号',
           checked: true,
-          width: '120px',
-          dataIndex: 'sbCph'
+          width: '100px',
+          dataIndex: 'positionNo'
         },
         {
-          title: '故障描述',
+          title: '工作内容',
           checked: true,
           width: '150px',
           dataIndex: 'content',
           scopedSlots: { customRender: 'content' }
         },
         {
-          title: '工单类型',
+          title: '录入时间',
+          checked: true,
+          width: '200px',
+          dataIndex: 'applyTime'
+        },
+        {
+          title: '来源分类',
           checked: true,
           width: '100px',
-          dataIndex: 'category',
+          dataIndex: 'source',
           customRender: (text, record, index) => {
-            return this.BaseTool.Object.getField(this.planFlagMap, text)
+            if (text === 1) {
+              return '内部报修'
+            } else if (text === 2) {
+              return '生产报修'
+            } else if (text === 3) {
+              return '隐患排查'
+            } else if (text === 4) {
+              return '巡检'
+            }
           }
         },
         {
-          title: '报修时间',
+          title: '检修等级',
           checked: true,
-          width: '200px',
-          dataIndex: 'applyTime'
+          width: '100px',
+          dataIndex: 'repairPlanLevel'
+        },
+        {
+          title: '工单类型',
+          checked: true,
+          width: '100px',
+          dataIndex: 'category',
+          customRender: (text, record, index) => {
+            return this.BaseTool.Object.getField(this.planFlagMap, text)
+          }
         },
         /* {
           title: '紧急等级',
@@ -273,50 +296,7 @@ export default {
           }
         }, */
         {
-          title: '创建日期',
-          width: '200px',
-          dataIndex: 'createdTime'
-        },
-        {
-          title: '报修人',
-          checked: true,
-          width: '120px',
-          dataIndex: 'userName'
-        },
-        {
-          title: '维修人',
-          checked: true,
-          width: '120px',
-          dataIndex: 'repairUserName'
-        },
-        {
-          title: '接收超时',
-          checked: true,
-          width: '100px',
-          dataIndex: 'receiveOvertime',
-          customRender: (text, record, index) => {
-            if (text) {
-              return '是'
-            } else {
-              return '否'
-            }
-          }
-        },
-        {
-          title: '维修超时',
-          checked: true,
-          width: '100px',
-          dataIndex: 'repairOvertime',
-          customRender: (text, record, index) => {
-            if (text) {
-              return '是'
-            } else {
-              return '否'
-            }
-          }
-        },
-        {
-          title: '报修状态',
+          title: '工单状态',
           checked: true,
           width: '100px',
           fixed: 'right',

+ 1 - 0
src/views/repair/application-form/modules/DetailRepair.vue

@@ -301,6 +301,7 @@
       <div class="btn" v-else>
         <a-button style="margin-left: 8px" type="primary" @click="handleCancel">返回</a-button>
         <a-button v-show="model.status===15 || model.status===17 || model.status === 19 " style="margin-left: 8px" type="primary" @click="handleCheck">审核</a-button>
+        <a-button v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.CALLER_REPAIR_VERIFY_SUCCESS_THREE === model.status " style="margin-left: 16px" type="default" @click="handleAssign">派单</a-button>
         <a-button v-show="model.status===20" style="margin-left: 8px" type="primary" @click="handleCheck">再次发起审核</a-button>
         <a-button v-if="$auth('repair-application-forms-examine') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleFinish()">完成维修</a-button>
         <a-button v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleViewTicket()">维修票证</a-button>