+
提交流程
取 消
@@ -197,7 +197,7 @@ export default {
projectName: "",
files: "",
remark: "",
- subDeptScope:[],
+ subDeptScope: [],
},
// 表单校验
rules: {
@@ -275,10 +275,10 @@ export default {
taskOpen: false,
daterangeMarksTime: [],
fbAptitude: false,
- persChangeList1: ['flow_xmglzdl_xmzbdwrybg','flow_xmglzdl_xmjldwrybg'],
- persChangeList2: ['flow_xmglzdl_xmjlzjrybg','flow_xmglzdl_xmzbjlrybg'],
+ persChangeList1: ["flow_xmglzdl_xmzbdwrybg", "flow_xmglzdl_xmjldwrybg"],
+ persChangeList2: ["flow_xmglzdl_xmjlzjrybg", "flow_xmglzdl_xmzbjlrybg"],
persChange1: false,
- persChange2: false
+ persChange2: false,
};
},
computed: {},
@@ -295,7 +295,6 @@ export default {
return;
}
});
-
},
doCanel() {
this.onOpen = false;
@@ -303,17 +302,25 @@ export default {
show(options) {
this.options = options;
this.onOpen = true;
+ this.fbAptitude = false;
+ this.persChange1 = false;
+ this.persChange2 = false;
this.title = options.procDefName;
//初始化流程类型
if (options.procDefKey == "flow_fbzzsp_fbszzsp") {
this.fbAptitude = true;
- }
- if (this.persChangeList1.indexOf(options.flowKey)){
+ }else if (
+ options.procDefKey == "flow_xmglzdl_xmzbdwrybg" ||
+ options.procDefKey == "flow_xmglzdl_xmjldwrybg"
+ ) {
this.persChange1 = true;
- }
- if (this.persChangeList2.indexOf(options.flowKey)){
+ }else if (
+ options.procDefKey == "flow_xmglzdl_xmjlzjrybg" ||
+ options.procDefKey == "flow_xmglzdl_xmzbjlrybg"
+ ) {
this.persChange2 = true;
}
+ console.log("procDefKey==>"+options.procDefKey);
this.initFormDate(options.procInsId);
flowXmlAndNode({ procInsId: options.procInsId, deployId: options.deployId }).then(
(res) => {
@@ -346,8 +353,8 @@ export default {
const params = { procInsId: procInsId };
findFormDatasByProcInsId(params)
.then((res) => {
- if(res.data.subDeptScope){
- res.data.subDeptScope = res.data.subDeptScope.split(',');
+ if (res.data.subDeptScope) {
+ res.data.subDeptScope = res.data.subDeptScope.split(",");
}
this.form = res.data;
this.deptName = this.options.startDeptName;
@@ -378,22 +385,22 @@ export default {
this.$refs["form"].validate((valid) => {
if (valid) {
let fbAptitudeParams = {};
- if(this.fbAptitude){
- if(this.form.subDeptScope.length==0){
+ if (this.fbAptitude) {
+ if (this.form.subDeptScope.length == 0) {
this.$modal.msgError("请至少选择一个分包范围!");
return false;
- }else{
- fbAptitudeParams={
- subDeptType:this.form.subDeptType,
- subDeptScope:this.form.subDeptScope.toString(),
- subDeptName:this.form.subDeptName,
- subDeptAptitude:this.form.subDeptAptitude,
- subDeptChairman:this.form.subDeptChairman,
- subDeptSafetyCertificate:this.form.subDeptSafetyCertificate,
- subDeptCustodian:this.form.subDeptCustodian,
- subDeptCustodianCardId:this.form.subDeptCustodianCardId,
- subDeptApproachDate:this.form.subDeptApproachDate
- }
+ } else {
+ fbAptitudeParams = {
+ subDeptType: this.form.subDeptType,
+ subDeptScope: this.form.subDeptScope.toString(),
+ subDeptName: this.form.subDeptName,
+ subDeptAptitude: this.form.subDeptAptitude,
+ subDeptChairman: this.form.subDeptChairman,
+ subDeptSafetyCertificate: this.form.subDeptSafetyCertificate,
+ subDeptCustodian: this.form.subDeptCustodian,
+ subDeptCustodianCardId: this.form.subDeptCustodianCardId,
+ subDeptApproachDate: this.form.subDeptApproachDate,
+ };
}
}
this.loading = true;
@@ -403,7 +410,7 @@ export default {
files: this.form.files,
remark: this.form.remark,
INITIATOR: this.form.INITIATOR,
- ...fbAptitudeParams
+ ...fbAptitudeParams,
};
complete(this.form).then((res) => {
this.$store.dispatch("settingAwaitNum");
diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue
index d88a0370..c1918f3e 100644
--- a/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue
+++ b/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue
@@ -128,16 +128,16 @@
title="请至少上传报审表,营业执照,安全生产许可证,资质证书,人员证书等!缺少相关附件可能被驳回申请。"
type="warning"
show-icon
- />
-
+ >
+
-
-
+ "+options.flowKey);
const self = this;
this.onOpen = true;
flowXmlAndNode({ deployId: options.deploymentId }).then((res) => {