|
@@ -10,7 +10,9 @@
|
|
|
<detailTop @goBack="goBack"></detailTop>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
- <followForm :ruleForm="followForm" :orcredit="finorcredit" @shouxin="shouxin"></followForm>
|
|
|
+ <followForm :ruleForm="followForm" :orcredit="finorcredit" @shouxin="shouxin"
|
|
|
+ :dialogFormVisible="dialogFormVisible" :dialogform="dialogform"
|
|
|
+ @queding = "queding" @quxiao="quxiao" @deleteRow="deleteRow"></followForm>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -41,6 +43,8 @@ export default {
|
|
|
name: '10',
|
|
|
},
|
|
|
finorcredit: '',
|
|
|
+ dialogFormVisible: false,
|
|
|
+ dialogform:{},
|
|
|
}),
|
|
|
created() {
|
|
|
this.searchInfo();
|
|
@@ -72,42 +76,27 @@ export default {
|
|
|
// 授信
|
|
|
async shouxin() {
|
|
|
if (this.orcredit == 0) {
|
|
|
- this.$prompt('请输审批信息', '提示', {
|
|
|
+ this.$confirm('此操作将通过审批, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
- })
|
|
|
- .then(({ value }) => {
|
|
|
- this.finalshenhe(value);
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'info',
|
|
|
- message: '取消输入',
|
|
|
- });
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.finalshenhe("审批通过");
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
});
|
|
|
+ });
|
|
|
} else if (this.orcredit == 2) {
|
|
|
- this.$prompt('请输入授信额度(万元)', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- inputPattern: /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/,
|
|
|
- inputErrorMessage: '请输入正确金额',
|
|
|
- })
|
|
|
- .then(({ value }) => {
|
|
|
- this.finalSx(value);
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'info',
|
|
|
- message: '取消输入',
|
|
|
- });
|
|
|
- });
|
|
|
+ this.dialogFormVisible = true;
|
|
|
}
|
|
|
},
|
|
|
- async finalSx(value) {
|
|
|
- const res = await this.credit({ id: this.sxid, money: value, orcredit: '1' });
|
|
|
- this.$checkRes(res, '授信成功', '授信失败');
|
|
|
- this.goBack();
|
|
|
- },
|
|
|
+ // async finalSx(value) {
|
|
|
+ // const res = await this.credit({ id: this.sxid, money: value, orcredit: '1' });
|
|
|
+ // this.$checkRes(res, '授信成功', '授信失败');
|
|
|
+ // this.goBack();
|
|
|
+ // },
|
|
|
async finalshenhe(value) {
|
|
|
const res = await this.credit({ id: this.sxid, senhemessage: value, orcredit: '2' });
|
|
|
this.$checkRes(res, '审核成功', '审核失败');
|
|
@@ -122,6 +111,53 @@ export default {
|
|
|
goBack() {
|
|
|
this.$router.go(-1);
|
|
|
},
|
|
|
+ async queding({ data }) {
|
|
|
+ if(!data.money){
|
|
|
+ alert("请输入金额");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(!data.sxcpname){
|
|
|
+ alert("产品名称");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(!data.sxhowlong){
|
|
|
+ alert("请输入产品期限");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(!data.sxcplilue){
|
|
|
+ alert("请输入产品利率");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ const res = await this.credit({ id: this.sxid, money: data.money,sxcpname:data.sxcpname,sxhowlong:data.sxhowlong,sxcplilue:data.sxcplilue, orcredit: '1' });
|
|
|
+ this.$checkRes(res, '授信成功', '授信失败');
|
|
|
+ this.dialogform={};
|
|
|
+ this.dialogFormVisible = false;
|
|
|
+ this.$router.go(-1);
|
|
|
+ },
|
|
|
+ quxiao() {
|
|
|
+ this.dialogform={};
|
|
|
+ this.dialogFormVisible = false;
|
|
|
+ },
|
|
|
+ async deleteRow() {
|
|
|
+ this.$prompt('请输拒绝信息', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ })
|
|
|
+ .then(({ value }) => {
|
|
|
+ this.jujue(value);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '取消输入',
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ async jujue(value) {
|
|
|
+ const res = await this.credit({id:this.sxid,jindiaomessage:value,orcredit:'3'});
|
|
|
+ this.$checkRes(res, '拒绝成功', '拒绝失败');
|
|
|
+ this.$router.go(-1);
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|