Ver código fonte

客户退货流程标签显示有误处理

Z 2 anos atrás
pai
commit
a94917d94e

+ 7 - 12
src/views/bpm/handleTask/components/saleOrder/customerReturnGoods/customerReturnOrderDialog.vue

@@ -170,14 +170,14 @@
             permissionType: 'update',
             isShowReturnOrder: false,
             name: '外部处理',
-            isShow: true
+            isShow: [2, 9].includes(this.innerOuterBoth)
           },
           {
             key: 'innerStore',
             permissionType: 'update',
             isShowReturnOrder: false,
             name: '内部处理',
-            isShow: true
+            isShow: [1, 9].includes(this.innerOuterBoth)
           },
           {
             key: 'QCApprove2',
@@ -192,21 +192,16 @@
     },
     async created() {
       //返修节点中有可能多流程
-      let find =
-        this.repairTabsOptions.find(
-          (item) => item.name == this.taskDefinitionKey
-        )?.isOutOrIn || '';
+      let find = this.repairTabsOptions.find((item) => item.name == this.taskDefinitionKey)?.isOutOrIn || '';
       let optionKey = find || this.taskDefinitionKey;
       this.activeComp = optionKey || 'stater';
       //获取当前流程标签信息
-      let currentTab =
-        this.tabOptions.find((item) => item.key == this.activeComp) || {};
+      let currentTab = this.tabOptions.find((item) => item.key == this.activeComp) || {};
       this.permissionType = currentTab?.permissionType;
       this.isShowReturnOrder = currentTab?.isShowReturnOrder;
-      find && (await this.getReturnInfo(this.businessId));
-      this.pageName = ['outerStore', 'innerStore'].includes(this.activeComp)
-        ? 'repairTabsPage'
-        : 'customerReturnOrder';
+      //
+      await this.getReturnInfo(this.businessId)
+      this.pageName = ['outerStore', 'innerStore'].includes(this.activeComp) ? 'repairTabsPage' : 'customerReturnOrder';
     },
     mounted() {
       setTimeout(() => {