695593266@qq.com пре 2 месеци
родитељ
комит
bd4c2aa180

+ 7 - 1
src/views/produceOrder/components/releaseDialog/index.vue

@@ -646,9 +646,9 @@
           console.log(res, 'resresresres');
           let list = [];
           res.forEach((item, index) => {
-            console.log(item.type, 'itemitemitemitem');
             let obj = {
               id: item.sourceTaskId, //工序 id
+              type: item.type, // 工序类型(2/3/6 需走质检派单)
               name: item.name, //工序 名称
               assignType: 1, // 默认的指派数据
               assignName: '工位', // 默认指派数据名称
@@ -1154,6 +1154,12 @@
         this.isTask = false;
         await this.FirstTaskIdFn(id);
         let data = this.processList.find((item) => item.id == this.processId);
+        if (
+          data &&
+          (data.type == 2 || data.type == 3 || data.type == 6)
+        ) {
+          this.$message.warning('请前往质检系统派单');
+        }
         await this.changeRadio(data.assignType, data.index);
       },
       // 指派选择

+ 4 - 0
src/views/produceOrder/components/releaseDialog/planDotLineReleaseDialog.vue

@@ -1017,11 +1017,15 @@
         this.getAssignData(row.index, arr);
       },
       async handleClick(tab) {
+        console.log(tab, 'tabtabtabtab');
         if (this.tabLoading) return;
         let id = tab.name;
         this.processId = id;
         await this.FirstTaskIdFn(id);
         let data = this.processList.find((item) => item.id == this.processId);
+        if (data && (data.type == 2 || data.type == 3 || data.type == 6)) {
+          this.$message.warning('请前往质检系统派单');
+        }
         if (data) {
           // 点击工序后,班组显示以工序返回的 executionTeamName 为准
           this.form.taskAss = 0;