Browse Source

no message

linwenxin 1 month ago
parent
commit
e3625c468b

+ 16 - 16
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/workOrderLogic.js

@@ -107,23 +107,23 @@ export default {
                 { param: 'a.dict_type', compare: '=', value: 'SALES_TYPE' }
               ]
             }).then(res => {
-              // this.SALES_TYPE_LIST = res.data.records
-              //   .filter(item => {
-              //     if (this.orderInfo?.isImportExcel) {
-              //       return Number(item.dictCode) < 100
-              //     } else {
-              //       return Number(item.dictCode) >= 100
-              //     }
-              //   })
-              //   .map(item => ({
-              //     value: Number(item.dictCode),
-              //     label: item.dictValue
-              //   }))
+              this.SALES_TYPE_LIST = res.data.records
+                .filter(item => {
+                  if (this.orderInfo?.isImportExcel || this.orderInfo?.isThreeOrder) {
+                    return Number(item.dictCode) < 100
+                  } else {
+                    return Number(item.dictCode) >= 100
+                  }
+                })
+                .map(item => ({
+                  value: Number(item.dictCode),
+                  label: item.dictValue
+                }))
 
-              this.SALES_TYPE_LIST = res.data.records.map(item => ({
-                value: Number(item.dictCode),
-                label: item.dictValue
-              }))
+              // this.SALES_TYPE_LIST = res.data.records.map(item => ({
+              //   value: Number(item.dictCode),
+              //   label: item.dictValue
+              // }))
             })
             console.log(this?.workOrderType, '-----------------------')
             if (!!~[1, 2, 3].indexOf(this?.workOrderType)) {