|
@@ -10,7 +10,7 @@
|
|
|
<detailTop @goBack="goBack"></detailTop>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
- <followForm :ruleForm="followForm" @shouxin = "shouxin"></followForm>
|
|
|
+ <followForm :ruleForm="followForm" :orcredit="finorcredit" @shouxin = "shouxin"></followForm>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -40,9 +40,11 @@
|
|
|
charList: {
|
|
|
name: '10',
|
|
|
},
|
|
|
+ finorcredit:''
|
|
|
}),
|
|
|
created() {
|
|
|
this.searchInfo();
|
|
|
+ this.setorcredit();
|
|
|
},
|
|
|
computed: {
|
|
|
id() {
|
|
@@ -51,6 +53,9 @@
|
|
|
sxid(){
|
|
|
return this.$route.query.sxid;
|
|
|
},
|
|
|
+ orcredit(){
|
|
|
+ return this.$route.query.orcredit;
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
...claimneed(['one']),
|
|
@@ -61,28 +66,69 @@
|
|
|
this.$set(this, `followForm`, res.data);
|
|
|
}
|
|
|
},
|
|
|
+ setorcredit() {
|
|
|
+ this.$set(this, `finorcredit`, this.orcredit);
|
|
|
+ },
|
|
|
// 授信
|
|
|
async shouxin() {
|
|
|
- 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: '取消输入'
|
|
|
+ if(this.orcredit==0){
|
|
|
+ this.$prompt('请输审核信息', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消'
|
|
|
+ })
|
|
|
+ .then(({ value }) => {
|
|
|
+ this.finalshenhe(value);
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '取消输入'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }else if(this.orcredit==2){
|
|
|
+ this.$prompt('请输尽调信息', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消'
|
|
|
+ })
|
|
|
+ .then(({ value }) => {
|
|
|
+ this.finaljindiao(value);
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '取消输入'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }else if(this.orcredit==3){
|
|
|
+ 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: '取消输入'
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
},
|
|
|
async finalSx(value){
|
|
|
- const res = await this.credit({id:this.sxid,money: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, '审核成功', '审核失败');
|
|
|
+ this.goBack();
|
|
|
+ },
|
|
|
+ async finaljindiao(value){
|
|
|
+ const res = await this.credit({id:this.sxid,jindiaomessage:value,orcredit:'3'});
|
|
|
+ this.$checkRes(res, '尽调成功', '尽调失败');
|
|
|
+ this.goBack();
|
|
|
+ },
|
|
|
// 返回
|
|
|
goBack() {
|
|
|
this.$router.go(-1);
|