linwenxin 8 ماه پیش
والد
کامیت
2313974771
1فایلهای تغییر یافته به همراه50 افزوده شده و 29 حذف شده
  1. 50 29
      src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/pandanxinxi.js

+ 50 - 29
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/pandanxinxi.js

@@ -286,35 +286,56 @@ export default {
         this.workerList = []
         this.orderInfo.orderWorkers = []
       }
-      if (
-        this.orderInfo.orderChannelId &&
-        this.orderInfo?.orderProducts?.find(item => item?.mainId)?.mainId &&
-        this.orderInfo.source &&
-        this.orderInfo.orderSmallType &&
-        this.orderInfo.streetId
-      ) {
-        adminWebsitWebsitList({
-          channelId: this.orderInfo.orderChannelId,
-          categoryId: this.orderInfo?.orderProducts?.find(item => item?.mainId)?.mainId,
-          orderSource: this.orderInfo.source,
-          orderSmallId: this.orderInfo.orderSmallType,
-          streetCode: this.orderInfo.streetId,
-          status: true,
-          type: 'C'
-        }).then(res => {
-          var boll = !!res.data.find(item => item.ifDispatch)
-          this.websitList = res.data.map(item => ({
-            label: item.name,
-            value: item.websitId,
-            disabled: boll ? item.ifDispatch : true,
-            data: item
-          }))
-          if (!this.orderInfo.id && this.websitList.length === 1) {
-            this.orderInfo.websitId = this.websitList[0].websitId
-            this.orderInfo.websitName = this.websitList[0].name
-          }
-        })
-      }
+      adminWebsitWebsitList({
+        channelId: this.orderInfo?.orderChannelId,
+        categoryId: this.orderInfo?.orderProducts?.find(item => item?.mainId)?.mainId,
+        orderSource: this.orderInfo?.source,
+        orderSmallId: this.orderInfo?.orderSmallType,
+        streetCode: this.orderInfo?.streetId,
+        status: true,
+        type: 'C'
+      }).then(res => {
+        var boll = !!res.data.find(item => item.ifDispatch)
+        this.websitList = res.data.map(item => ({
+          label: item.name,
+          value: item.websitId,
+          disabled: boll ? item.ifDispatch : true,
+          data: item
+        }))
+        if (!this.orderInfo.id && this.websitList.length === 1) {
+          this.orderInfo.websitId = this.websitList[0].websitId
+          this.orderInfo.websitName = this.websitList[0].name
+        }
+      })
+      // if (
+      //   this.orderInfo.orderChannelId &&
+      //   this.orderInfo?.orderProducts?.find(item => item?.mainId)?.mainId &&
+      //   this.orderInfo.source &&
+      //   this.orderInfo.orderSmallType &&
+      //   this.orderInfo.streetId
+      // ) {
+      //   adminWebsitWebsitList({
+      //     channelId: this.orderInfo?.orderChannelId,
+      //     categoryId: this.orderInfo?.orderProducts?.find(item => item?.mainId)?.mainId,
+      //     orderSource: this.orderInfo?.source,
+      //     orderSmallId: this.orderInfo?.orderSmallType,
+      //     streetCode: this.orderInfo?.streetId,
+      //     status: true,
+      //     type: 'C'
+      //   }).then(res => {
+      //     var boll = !!res.data.find(item => item.ifDispatch)
+      //     this.websitList = res.data.map(item => ({
+      //       label: item.name,
+      //       value: item.websitId,
+      //       disabled: boll ? item.ifDispatch : true,
+      //       data: item
+      //     }))
+      //     if (!this.orderInfo.id && this.websitList.length === 1) {
+      //       this.orderInfo.websitId = this.websitList[0].websitId
+      //       this.orderInfo.websitName = this.websitList[0].name
+      //     }
+      //   })
+      // }
     },
     getWorkers() {
       if (this.orderInfo.websitId) {