|
@@ -324,6 +324,7 @@ import {
|
|
|
} from "@/api/service/credit/cfcaProject";
|
|
|
import pdfShow from "../financeRecord/pdfShow";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
+import { balance,transfer } from "@/api/bank/bankInterface";
|
|
|
export default {
|
|
|
name: "RecordSeal",
|
|
|
components: { pdfShow },
|
|
@@ -428,7 +429,9 @@ export default {
|
|
|
},
|
|
|
openFile: false,
|
|
|
wordUrl: "",
|
|
|
- heid: false
|
|
|
+ heid: false,
|
|
|
+ //电子账户
|
|
|
+ paiAccno:null,
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
@@ -755,50 +758,79 @@ export default {
|
|
|
//选择类型
|
|
|
selectType() {
|
|
|
listCompanyHandler().then(response => {
|
|
|
+ var self = this;
|
|
|
+ // self.paiAccno = '3115730025230000214';
|
|
|
if (response.data == true) {
|
|
|
cfcaProjectNo().then(response => {
|
|
|
- debugger;
|
|
|
if (response.data.scyCfcaAuthNumber == null) {
|
|
|
this.messageIfShow = true;
|
|
|
- } else {
|
|
|
- var zfrId = this.zfrId;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ var zfrId = self.zfrId;
|
|
|
listChargeStatus(zfrId).then(response => {
|
|
|
- if (response.data[0]) {
|
|
|
- if (response.data[0].zciStatus == "00") {
|
|
|
- this.$confirm(
|
|
|
- "请缴纳手续费" + this.needPay + "元",
|
|
|
- "警告",
|
|
|
+ if(response.data.accInfList[0]){
|
|
|
+ self.paiAccno = response.data.accInfList[0].paiAccno
|
|
|
+ }
|
|
|
+ if (response.data.chargeInfList[0]) {
|
|
|
+ if (response.data.chargeInfList[0].zciStatus == "00") {
|
|
|
+ self.$confirm(
|
|
|
+ "请缴纳手续费" + self.needPay + "元","警告",
|
|
|
{
|
|
|
confirmButtonText: "去缴费",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
- }
|
|
|
- )
|
|
|
- .then(function() {
|
|
|
- return updateChargeStatus(zfrId);
|
|
|
+ }).then(function() {
|
|
|
+ const loading = self.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "Loading",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
+ });
|
|
|
+ balance(self.paiAccno).then(response => {
|
|
|
+ if(eval(self.needPay) > eval(response.data.list.row.KYAMT)){
|
|
|
+ self.$message({
|
|
|
+ message: '余额为'+response.data.list.row.KYAMT+'不足以抵扣本次缴费费用,请及时充值',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ loading.close();
|
|
|
+ }else{
|
|
|
+ var map = {'recvAccNo':'','recvAccNm':'','tranAmt':self.needPay}
|
|
|
+ transfer(map).then(response => {
|
|
|
+ loading.close();
|
|
|
+ //return updateChargeStatus(zfrId);
|
|
|
+ self.msgSuccess("缴费成功");
|
|
|
+ setTimeout(() => {
|
|
|
+ // if(response.data.status == "AAAAAAA"){
|
|
|
+ //选择签署意愿
|
|
|
+ if (self.zfpAuthType == "00") {
|
|
|
+ self.confirmIsShow = true;
|
|
|
+ } else {
|
|
|
+ self.checking();
|
|
|
+ }
|
|
|
+ // }
|
|
|
+ }, 1000);
|
|
|
+ }).catch(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- //选择签署意愿
|
|
|
- if (this.zfpAuthType == "00") {
|
|
|
- this.confirmIsShow = true;
|
|
|
- } else {
|
|
|
- this.checking();
|
|
|
- }
|
|
|
- });
|
|
|
} else {
|
|
|
//选择签署意愿
|
|
|
- if (this.zfpAuthType == "00") {
|
|
|
- this.confirmIsShow = true;
|
|
|
+ if (self.zfpAuthType == "00") {
|
|
|
+ self.confirmIsShow = true;
|
|
|
} else {
|
|
|
- this.checking();
|
|
|
+ self.checking();
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
//选择签署意愿
|
|
|
- if (this.zfpAuthType == "00") {
|
|
|
- this.confirmIsShow = true;
|
|
|
+ if (self.zfpAuthType == "00") {
|
|
|
+ self.confirmIsShow = true;
|
|
|
} else {
|
|
|
- this.checking();
|
|
|
+ self.checking();
|
|
|
}
|
|
|
}
|
|
|
});
|