Преглед на файлове

驳回按钮增加弹窗提示

wulanhaote
QI_YUJIE преди 2 години
родител
ревизия
c9c0ad7517
променени са 2 файла, в които са добавени 54 реда и са изтрити 6 реда
  1. +8
    -4
      src/views/onlineHome/homestead/homeApplication/proposerLite.vue
  2. +46
    -2
      src/views/onlineHome/homestead/paidExit/paidExitDetail.vue

+ 8
- 4
src/views/onlineHome/homestead/homeApplication/proposerLite.vue Целия файл

@@ -2803,7 +2803,11 @@ export default {
this.auditProposer(true); this.auditProposer(true);
break; break;
case 'reject': case 'reject':
this.auditProposer(false);
this.$dialog.confirm({
message: '是否确认驳回此条申请',
}).then(() => {
this.auditProposer(false);
});
break; break;
case 'start': case 'start':
this.startProposerApply(); this.startProposerApply();
@@ -3941,16 +3945,16 @@ export default {
return "说明不能为空"; return "说明不能为空";
} }
if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.approveLeader)) { if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.approveLeader)) {
return "其他部门签名不能为空";
return "住建部门签名不能为空";
} }
if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint)) { if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint)) {
return "其他部门现场定位不能为空";
return "住建部门现场定位不能为空";
} }
if(this.$refs.pictureUploadApplyingTHouseApproveOther && this.$refs.pictureUploadApplyingTHouseApproveOther.isValid()) { if(this.$refs.pictureUploadApplyingTHouseApproveOther && this.$refs.pictureUploadApplyingTHouseApproveOther.isValid()) {
this.submitHouseApproveOtherOptions(); this.submitHouseApproveOtherOptions();
} else { } else {
if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.otherPlan)) { if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.otherPlan)) {
return "其他部门现场拍照不能为空";
return "住建部门现场拍照不能为空";
} }
} }
return false; return false;


+ 46
- 2
src/views/onlineHome/homestead/paidExit/paidExitDetail.vue Целия файл

@@ -160,7 +160,7 @@ export default {
this.notify("请填写审批意见", 'danger'); this.notify("请填写审批意见", 'danger');
return false; return false;
} }
let data = {
/*let data = {
taskId: this.approval.taskId, taskId: this.approval.taskId,
instanceId: this.approval.instanceId, instanceId: this.approval.instanceId,
variables: JSON.stringify({ variables: JSON.stringify({
@@ -177,7 +177,51 @@ export default {
this.$router.back(); this.$router.back();
}).catch(e => { }).catch(e => {
this.notify("操作失败!", 'danger'); this.notify("操作失败!", 'danger');
});
});*/
if (pass) {
let data = {
taskId: this.approval.taskId,
instanceId: this.approval.instanceId,
variables: JSON.stringify({
pass: "true",
comment: this.approval.comment ? this.approval.comment : "同意",
}),
};
request({
url: "/activiti/process/complete",
method: "post",
params: data,
}).then((response) => {
this.notify("操作成功", 'success');
this.$router.back();
}).catch(e => {
this.notify("操作失败!", 'danger');
});
} else {
let _this = this;
_this.$dialog.confirm({
message: '是否确认驳回此条申请',
}).then(() => {
let data = {
taskId: _this.approval.taskId,
instanceId: _this.approval.instanceId,
variables: JSON.stringify({
pass: "false",
comment: _this.approval.comment ? _this.approval.comment : "驳回",
}),
};
request({
url: "/activiti/process/complete",
method: "post",
params: data,
}).then((response) => {
_this.notify("操作成功", 'success');
_this.$router.back();
}).catch(e => {
_this.notify("操作失败!", 'danger');
});
});
}
return true; return true;
}, },
notify(message, type) { notify(message, type) {


Зареждане…
Отказ
Запис