Przeglądaj źródła

工单添加过滤显示状态

long 3 lat temu
rodzic
commit
60f67d3ae5

+ 27 - 1
operationSupport/src/utils/filters.js

@@ -10,6 +10,23 @@ let filterTimeNumber = (val) => {
 let filterComplaintStatus = (val) => {
     return val == '1' ? '未处理' : val == '2' ? '已处理' : val == '3' ? '处理中' : val == '4' ? '待评价' : '已评价';
 };
+// 处理工单状态
+let filterWorkStatus = (val) => {
+    // 0未处理 1处理中 2已完成 3已完成(超时)4已关闭 5待评价 6已评价
+    return val == 0
+        ? '未处理'
+        : val == 1
+        ? '处理中'
+        : val == 2
+        ? '已完成'
+        : val == 3
+        ? '已完成(超时'
+        : val == 4
+        ? '已关闭'
+        : val == 5
+        ? '待评价'
+        : '已评价';
+};
 // 投诉类型
 let filtercomplaintType = (val) => {
     switch (val) {
@@ -60,4 +77,13 @@ let filterHtmlImage = (val) => {
     // }
     return 'content';
 };
-export default { filterTime, filterTimeNumber, filterComplaintStatus, filtercomplaintType, filterHouseType, filterHtml, filterHtmlImage };
+export default {
+    filterTime,
+    filterTimeNumber,
+    filterComplaintStatus,
+    filtercomplaintType,
+    filterWorkStatus,
+    filterHouseType,
+    filterHtml,
+    filterHtmlImage
+};

+ 3 - 1
operationSupport/src/views/workOrders/popups/details.vue

@@ -69,7 +69,9 @@
                         <div class="steps-right">
                             <div class="steps-right-title">
                                 <span>{{ item.createDate }}</span>
-                                <span class="status" v-if="index === thisItem['progressList'].length - 1">{{ item.operation }}</span>
+                                <span class="status" v-if="index === thisItem['progressList'].length - 1">{{
+                                    thisItem.orderStatus | filterWorkStatus
+                                }}</span>
                             </div>
                             <div class="steps-right-content" v-if="item.type == 1">
                                 <span>报修人:</span>

+ 2 - 0
operationSupport/src/views/workOrders/records.vue

@@ -10,6 +10,8 @@
                 <el-option label="已完成" :value="2"></el-option>
                 <el-option label="已完成(超时)" :value="3"></el-option>
                 <el-option label="已关闭" :value="4"></el-option>
+                <el-option label="待评价" :value="5"></el-option>
+                <el-option label="已评价" :value="6"></el-option>
             </el-select>
             <el-date-picker
                 v-model="times"