|
|
@@ -852,6 +852,16 @@
|
|
|
},
|
|
|
|
|
|
submit(item) {
|
|
|
+ const beEntrustedDeptId = item && item.beEntrustedDeptId;
|
|
|
+ if (
|
|
|
+ beEntrustedDeptId === null ||
|
|
|
+ beEntrustedDeptId === undefined ||
|
|
|
+ (typeof beEntrustedDeptId === 'string' &&
|
|
|
+ beEntrustedDeptId.trim() === '')
|
|
|
+ ) {
|
|
|
+ this.$message.warning('请先完善请托单的受托部门信息');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$confirm('是否提交该请托单的审核流程?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
@@ -860,7 +870,7 @@
|
|
|
.then(() => {
|
|
|
submit({
|
|
|
businessId: item.id,
|
|
|
- beEntrustedDeptId: item.beEntrustedDeptId
|
|
|
+ beEntrustedDeptId
|
|
|
}).then((res) => {
|
|
|
this.$message.success('提交' + res.message);
|
|
|
this.reloads();
|