|
|
@@ -383,7 +383,9 @@
|
|
|
<!-- @click="() => (active = 0)"-->
|
|
|
<!-- >上一步-->
|
|
|
<!-- </el-button>-->
|
|
|
- <el-button type="primary" size="small" v-click-once @click="submit">提交</el-button>
|
|
|
+ <el-button type="primary" size="small" v-click-once @click="submit"
|
|
|
+ >提交</el-button
|
|
|
+ >
|
|
|
<el-button size="small" @click="cancel">关闭</el-button>
|
|
|
<!-- <visibility-range-dialog-->
|
|
|
<!-- :visibilityRangeDialogFlag.sync="visibilityRangeDialogFlag"-->
|
|
|
@@ -731,7 +733,7 @@ this.postOptions.push(...response.data);
|
|
|
parameterGetByCode({
|
|
|
code: 'wt_collaborative_bpm'
|
|
|
}).then((res) => {
|
|
|
- if (!res.value||res.value=='1') {
|
|
|
+ if (!res.value || res.value == '1') {
|
|
|
this.form.FQLC = info?.id;
|
|
|
this.form.name = this.title;
|
|
|
this.form.key = info?.key;
|
|
|
@@ -787,6 +789,12 @@ this.postOptions.push(...response.data);
|
|
|
return roleOption.name;
|
|
|
}
|
|
|
}
|
|
|
+ } else if (row.type == 11) {
|
|
|
+ for (const roleOption of this.roleOptions) {
|
|
|
+ if (roleOption.id === option) {
|
|
|
+ return roleOption.name;
|
|
|
+ }
|
|
|
+ }
|
|
|
} else if (row.type === 20 || row.type === 21) {
|
|
|
for (const deptOption of this.deptOptions) {
|
|
|
if (deptOption.id === option) {
|
|
|
@@ -886,13 +894,16 @@ this.postOptions.push(...response.data);
|
|
|
});
|
|
|
},
|
|
|
generateFormValid(validate = true) {
|
|
|
- return this.$refs.generateForm.getData(validate).then((data) => {
|
|
|
- return data;
|
|
|
- }).catch((err) => {
|
|
|
- this.$message.error(err);
|
|
|
- console.log(err);
|
|
|
- throw err;
|
|
|
- });
|
|
|
+ return this.$refs.generateForm
|
|
|
+ .getData(validate)
|
|
|
+ .then((data) => {
|
|
|
+ return data;
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.$message.error(err);
|
|
|
+ console.log(err);
|
|
|
+ throw err;
|
|
|
+ });
|
|
|
},
|
|
|
handleTreeChange() {
|
|
|
this.$nextTick(() => {
|
|
|
@@ -950,7 +961,11 @@ this.postOptions.push(...response.data);
|
|
|
|
|
|
// 如果有未填写的组件,显示提示信息
|
|
|
if (emptyComponents.length > 0) {
|
|
|
- this.$message.warning(`请填写完整信息:${emptyComponents.map(comp => this.getComponentName(comp)).join('、')}`);
|
|
|
+ this.$message.warning(
|
|
|
+ `请填写完整信息:${emptyComponents
|
|
|
+ .map((comp) => this.getComponentName(comp))
|
|
|
+ .join('、')}`
|
|
|
+ );
|
|
|
// this.$message.warning(`请填写完整信息`);
|
|
|
return false;
|
|
|
}
|
|
|
@@ -976,11 +991,13 @@ this.postOptions.push(...response.data);
|
|
|
console.log('this.form.dictList', this.dictList);
|
|
|
await processInstanceCreateAPI({
|
|
|
...this.form,
|
|
|
- variables: {
|
|
|
- ...this.form.valueJson,
|
|
|
+ variables: {
|
|
|
+ ...this.form.valueJson,
|
|
|
businessCode: this.form.code,
|
|
|
businessName: this.form.name,
|
|
|
- businessType: this.dictList['collaborative_type']?.find(item => item.value == this.form.dictType)?.label
|
|
|
+ businessType: this.dictList['collaborative_type']?.find(
|
|
|
+ (item) => item.value == this.form.dictType
|
|
|
+ )?.label
|
|
|
}
|
|
|
});
|
|
|
this.$message('提交审核成功');
|