瀏覽代碼

no message

linwenxin 5 月之前
父節點
當前提交
e484a9b0e7

+ 1 - 0
src/views/workOrder/workOrderPool/index.vue

@@ -155,6 +155,7 @@ import zj from '@/assets/order/自建@2x.png'
 import pjsq from '@/assets/order/配件申请中@2x.png'
 import pjdh from '@/assets/order/配件已到货@2x.png'
 import pjqx from '@/assets/order/配件已取消@2x.png'
+import { orderStatus_v_fh } from '@/views/workOrder/workOrderPool/mixins/orderStatus_FH.js'
 export default {
   components: {
     TemplatePage,

+ 53 - 0
src/views/workOrder/workOrderPool/mixins/orderStatus_FH.js

@@ -0,0 +1,53 @@
+export function orderStatus_v_fh(orderStatus) {
+  if (['DYY'].includes(orderStatus)) {
+    // 待预约
+    return 'DYY'
+  } else if (['DQD'].includes(orderStatus)) {
+    // 待抢单
+    return 'DQD'
+  } else if (
+    [
+      'DSHPG',
+      'CJ',
+      'YPD',
+      'DXSPD',
+      'DZBPG',
+      'DWDSPGP',
+      'DXSSPGP',
+      'DTJXSSPGP',
+      'DZBSPGP',
+      'DFZXPD',
+      'DFZXSPGP',
+      'XSBH',
+      'TJXSBH',
+      'ZBBH',
+      'FZXBH',
+      'FL'
+    ].includes(orderStatus)
+  ) {
+    // 待商户派工
+    return 'DSHPG'
+  } else if (['DWDPG', 'DWDPD', 'WDBH'].includes(orderStatus)) {
+    // 待网点派工
+    return 'DWDPG'
+  } else if (['DJD'].includes(orderStatus)) {
+    // 待接单
+    return 'DJD'
+  } else if (['FWZ', 'GCSZT', 'BFWG', 'DSM', 'YZP'].includes(orderStatus)) {
+    // 服务中
+    return 'FWZ'
+  } else if (['YCD'].includes(orderStatus)) {
+    // 异常单
+    return 'YCD'
+  } else if (['YWG', 'GCSZX', 'WDWG', 'YWGO'].includes(orderStatus)) {
+    // 已完工待结算
+    return 'YWG'
+  } else if (['YJS', 'LRCD'].includes(orderStatus)) {
+    // 已结算
+    return 'YJS'
+  } else if (['YQX', 'FWZT', 'YCGB', 'FWQX'].includes(orderStatus)) {
+    // 已取消
+    return 'YQX'
+  }
+  return ''
+}