浏览代码

no message

linwenxin 8 月之前
父节点
当前提交
3742a9a5cd
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/pandanxinxi.js

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

@@ -295,16 +295,16 @@ export default {
         status: true,
         type: 'C'
       }).then(res => {
-        var boll = !!res.data.find(item => item.ifDispatch)
+        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.id && boll) {
+          this.orderInfo.websitId = boll.websitId
+          this.orderInfo.websitName = boll.name
         }
       })
       // if (