From 11e43b1ec36fb15ae71f91e0ee36d858d2ff3e5e Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 4 Sep 2023 09:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=B4=B7=E5=89=8D=E4=BF=A1?= =?UTF-8?q?=E7=94=A8=E5=AE=A1=E6=A0=B8=E3=80=81=E8=B4=B7=E5=89=8D=E4=BF=A1?= =?UTF-8?q?=E7=94=A8=E9=87=91=E8=9E=8D=E5=86=85=E5=8B=A4=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../creditauditmanagementAdd.vue | 2 + .../financialclerkbycreditvettingAdd.vue | 86 ++++++++++++++----- 2 files changed, 66 insertions(+), 22 deletions(-) diff --git a/anrui-riskcenter-ui/src/views/creditauditmanagement/creditauditmanagementAdd.vue b/anrui-riskcenter-ui/src/views/creditauditmanagement/creditauditmanagementAdd.vue index 26002073ce..0263753c78 100644 --- a/anrui-riskcenter-ui/src/views/creditauditmanagement/creditauditmanagementAdd.vue +++ b/anrui-riskcenter-ui/src/views/creditauditmanagement/creditauditmanagementAdd.vue @@ -379,8 +379,10 @@ export default { const choose = this.customer_list.filter((item) => item.name === value) if (choose.length > 0) { this.formobj.custSid = choose[0].sid + this.formobj.mobile = choose[0].mobile } else { this.formobj.custSid = '' + this.formobj.mobile = '' } }, capitalChange(value) { diff --git a/anrui-riskcenter-ui/src/views/financialclerkbycreditvetting/financialclerkbycreditvettingAdd.vue b/anrui-riskcenter-ui/src/views/financialclerkbycreditvetting/financialclerkbycreditvettingAdd.vue index 27e6dabc15..bcdb132226 100644 --- a/anrui-riskcenter-ui/src/views/financialclerkbycreditvetting/financialclerkbycreditvettingAdd.vue +++ b/anrui-riskcenter-ui/src/views/financialclerkbycreditvetting/financialclerkbycreditvettingAdd.vue @@ -323,36 +323,78 @@ export default { saveOrUpdate() { this.$refs['form_obj'].validate((valid) => { if (valid) { - this.getUrl() - this.submitdisabled = true - req.saveOrUpdate(this.formobj).then((res) => { - if (res.success) { - this.$message({ showClose: true, type: 'success', message: '保存成功' }) - this.handleReturn('true') - } else { + if (this.formobj.zffkjg === '' || this.formobj.gsfkjg === '') { + this.$confirm('仅填写了部分审核结果,是否继续提交', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.getUrl() + this.submitdisabled = true + req.saveOrUpdate(this.formobj).then((res) => { + if (res.success) { + this.$message({ showClose: true, type: 'success', message: '保存成功' }) + this.handleReturn('true') + } else { + this.submitdisabled = false + } + }).catch(() => { + this.submitdisabled = false + }) + }) + } else { + this.getUrl() + this.submitdisabled = true + req.saveOrUpdate(this.formobj).then((res) => { + if (res.success) { + this.$message({ showClose: true, type: 'success', message: '保存成功' }) + this.handleReturn('true') + } else { + this.submitdisabled = false + } + }).catch(() => { this.submitdisabled = false - } - }).catch(() => { - this.submitdisabled = false - }) + }) + } } }) }, handleConfirm() { this.$refs['form_obj'].validate((valid) => { if (valid) { - this.getUrl() - this.submitdisabled = true - req.finStaffConfirm(this.formobj).then((res) => { - if (res.success) { - this.$message({ showClose: true, type: 'success', message: '操作成功' }) - this.handleReturn('true') - } else { + if (this.formobj.zffkjg === '' || this.formobj.gsfkjg === '') { + this.$confirm('仅填写了部分审核结果,是否继续提交', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.getUrl() + this.submitdisabled = true + req.finStaffConfirm(this.formobj).then((res) => { + if (res.success) { + this.$message({ showClose: true, type: 'success', message: '操作成功' }) + this.handleReturn('true') + } else { + this.submitdisabled = false + } + }).catch(() => { + this.submitdisabled = false + }) + }) + } else { + this.getUrl() + this.submitdisabled = true + req.finStaffConfirm(this.formobj).then((res) => { + if (res.success) { + this.$message({ showClose: true, type: 'success', message: '操作成功' }) + this.handleReturn('true') + } else { + this.submitdisabled = false + } + }).catch(() => { this.submitdisabled = false - } - }).catch(() => { - this.submitdisabled = false - }) + }) + } } }) },