yangys
2025-09-19 ce70bd97c7f2577f0978b39b9da1ccdd8d5b768f
src/views/flowmgr/taskassigntemp.vue
@@ -92,7 +92,7 @@
            },
          },
          {
            label: '图号版次',
            label: '图纸版次',
            prop: 'drawingNoEdition',
            type: 'input',
            span: 12,
@@ -191,7 +191,25 @@
            dataType: 'string',
            rules: [{ required: true, message: '必填', trigger: 'blur' }],
          },
          {
            label: '主管工艺',
            prop: 'producePlanId',
            type: 'select',//column 12
            remote: true,
            placeholder:'无法匹配人员职责表时请选择主管工艺',
            dicUrl: `/blade-mdm/producedivision/select-programmer?programmer={{key}}`,
            dicFormatter:(res)=>{
              return res.data.map(obj => {
                let item = new Object();
                item.value = obj.id;
                item.label = obj.programmerName;
                item.desc = `专业组长:${obj.teamLeaderName},校对:${obj.checkerName},审核:${obj.seniorName}`
                return item;
              }); ;
            },
            span: 12,
            dataType: 'string',
          },
          {
            type:'hidden',
            prop:'isTempFlow',
@@ -299,7 +317,44 @@
          form.machineMode = item.name;
        }
      })
      if(this.attachForm.producePlanId){
        //手动指定了人员职责表id,不用继续从服务端验证
         this.startDispatch(form,done);
      }else{
        axios({
          url: '/blade-mdm/producedivision/select-by-drawingno',
          method: 'get',
          params: {drawingNo:this.attachForm.drawingNo},
        }).then(
          res => {
            if(res.data.code == 200){
              this.$message({
                type: 'success',
                message: '操作成功!',
              });
              this.attachForm.producePlanId = res.data.data.id;
              console.log('planid',this.attachForm.productPlanId)
              this.startDispatch(form,done);
            }else{
              this.$alert(res.data.msg+".重新输入或者手动选择主管工艺。", '发起任务失败',{type:'error',confirmButtonText:'关闭'});
            }
            done();
          },
          error => {
            console.log(error);
            done();
          }
        );
      }
    },
    startDispatch(form,done){
      axios({
        url: '/blade-mdm/flow/dispatch/start',
        method: 'post',