Kaynağa Gözat

驳回按钮增加弹窗提示

wulanhaote
QI_YUJIE 2 yıl önce
ebeveyn
işleme
c9c0ad7517
2 değiştirilmiş dosya ile 54 ekleme ve 6 silme
  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 Dosyayı Görüntüle

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


+ 46
- 2
src/views/onlineHome/homestead/paidExit/paidExitDetail.vue Dosyayı Görüntüle

@@ -160,7 +160,7 @@ export default {
this.notify("请填写审批意见", 'danger');
return false;
}
let data = {
/*let data = {
taskId: this.approval.taskId,
instanceId: this.approval.instanceId,
variables: JSON.stringify({
@@ -177,7 +177,51 @@ export default {
this.$router.back();
}).catch(e => {
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;
},
notify(message, type) {


Yükleniyor…
İptal
Kaydet