|
@@ -391,6 +391,8 @@ export default {
|
|
zfpSplit: "",
|
|
zfpSplit: "",
|
|
//融资放款方式
|
|
//融资放款方式
|
|
zfpcrLoanType: "",
|
|
zfpcrLoanType: "",
|
|
|
|
+ //额度id
|
|
|
|
+ zfsqId: "",
|
|
//产品编号
|
|
//产品编号
|
|
zfpId: "",
|
|
zfpId: "",
|
|
//利率
|
|
//利率
|
|
@@ -417,6 +419,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+
|
|
//获取当前公司
|
|
//获取当前公司
|
|
getRandom().then(response => {
|
|
getRandom().then(response => {
|
|
if (response.data) {
|
|
if (response.data) {
|
|
@@ -428,6 +431,35 @@ export default {
|
|
this.creditLineList = response.data.map(item => {
|
|
this.creditLineList = response.data.map(item => {
|
|
return {
|
|
return {
|
|
value: item.zfsqId,
|
|
value: item.zfsqId,
|
|
|
|
+ zfsqId: item.zfsqId,
|
|
|
|
+ label: item.zfpName,
|
|
|
|
+ zfpcrDateType: item.zfpcrDateType,
|
|
|
|
+ zfpcrEndDate: item.zfpcrEndDate,
|
|
|
|
+ zfpcrLoanType: item.zfpcrLoanType,
|
|
|
|
+ zfpSplit: item.zfpSplit,
|
|
|
|
+ zfpId: item.zfpId,
|
|
|
|
+ zfpcrRate: item.zfpcrRate,
|
|
|
|
+ remaining: item.remaining,
|
|
|
|
+ zfpMinimumAmount: item.zfpMinimumAmount
|
|
|
|
+ };
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ //签发金额
|
|
|
|
+ this.$set(this.form, "zfiAmount", "0.00");
|
|
|
|
+ },
|
|
|
|
+ activated() {
|
|
|
|
+ //获取当前公司
|
|
|
|
+ getRandom().then(response => {
|
|
|
|
+ if (response.data) {
|
|
|
|
+ this.$set(this.form, "receiveName", response.data.companyName);
|
|
|
|
+ }
|
|
|
|
+ }),
|
|
|
|
+ //获取授信额度
|
|
|
|
+ listSupplierCreditLine(this.creditParams).then(response => {
|
|
|
|
+ this.creditLineList = response.data.map(item => {
|
|
|
|
+ return {
|
|
|
|
+ value: item.zfsqId,
|
|
|
|
+ zfsqId: item.zfsqId,
|
|
label: item.zfpName,
|
|
label: item.zfpName,
|
|
zfpcrDateType: item.zfpcrDateType,
|
|
zfpcrDateType: item.zfpcrDateType,
|
|
zfpcrEndDate: item.zfpcrEndDate,
|
|
zfpcrEndDate: item.zfpcrEndDate,
|
|
@@ -720,6 +752,10 @@ export default {
|
|
}
|
|
}
|
|
var lineQueryParam = {};
|
|
var lineQueryParam = {};
|
|
lineQueryParam.zfsqId = val;
|
|
lineQueryParam.zfsqId = val;
|
|
|
|
+ console.log(val,'val');
|
|
|
|
+ //额度id
|
|
|
|
+ this.zfsqId =val;
|
|
|
|
+ console.log(this.zfsqId,'this.zfsqId');
|
|
//获取可用额度
|
|
//获取可用额度
|
|
getSupplierAvailableBalance(lineQueryParam).then(response => {
|
|
getSupplierAvailableBalance(lineQueryParam).then(response => {
|
|
this.availableAmt = response.data.remaining;
|
|
this.availableAmt = response.data.remaining;
|
|
@@ -907,6 +943,8 @@ export default {
|
|
.then(function() {
|
|
.then(function() {
|
|
//应收账款
|
|
//应收账款
|
|
_this.form.ticketList = _this.ticketList;
|
|
_this.form.ticketList = _this.ticketList;
|
|
|
|
+ //额度id
|
|
|
|
+ _this.form.zfsqId = _this.zfsqId;
|
|
//产品是否可拆分
|
|
//产品是否可拆分
|
|
_this.form.zfpSplit = _this.zfpSplit;
|
|
_this.form.zfpSplit = _this.zfpSplit;
|
|
//放款方式
|
|
//放款方式
|
|
@@ -925,6 +963,7 @@ export default {
|
|
_this.form.checkTotalAmt = _this.moneyDelete(
|
|
_this.form.checkTotalAmt = _this.moneyDelete(
|
|
_this.checkTotalAmt
|
|
_this.checkTotalAmt
|
|
);
|
|
);
|
|
|
|
+ console.log(_this.form,"this.form2");
|
|
addCredit(_this.form)
|
|
addCredit(_this.form)
|
|
.then(response => {
|
|
.then(response => {
|
|
//获取融信编号
|
|
//获取融信编号
|
|
@@ -934,9 +973,16 @@ export default {
|
|
listCompanyHandler().then(response => {
|
|
listCompanyHandler().then(response => {
|
|
if (false == response.data) {
|
|
if (false == response.data) {
|
|
//当前用户不是经办人,返回到列表页
|
|
//当前用户不是经办人,返回到列表页
|
|
|
|
+ console.log(_this,"this====>");
|
|
|
|
+ console.log(_this.$store,"this====>")
|
|
_this.msgSuccess("融信资料已提交企业内部审批");
|
|
_this.msgSuccess("融信资料已提交企业内部审批");
|
|
- _this.$store.dispatch("tagsView/delView", _this.$route);
|
|
|
|
- _this.$router.go(-1);
|
|
|
|
|
|
+ _this.$store.dispatch(
|
|
|
|
+ "tagsView/delView",
|
|
|
|
+ _this.$route
|
|
|
|
+ );
|
|
|
|
+ _this.$router.push("/Bill/credit")
|
|
|
|
+ // _this.$store.dispatch("tagsView/delView", _this.$route);
|
|
|
|
+ // _this.$router.go(-1);
|
|
} else {
|
|
} else {
|
|
//当前用户是经办人,判断有无融信开立融信的内部审批
|
|
//当前用户是经办人,判断有无融信开立融信的内部审批
|
|
//查询有无融信开立内部审批
|
|
//查询有无融信开立内部审批
|
|
@@ -946,12 +992,15 @@ export default {
|
|
var result = response.data.isOpen;
|
|
var result = response.data.isOpen;
|
|
//有融信开立内部审批
|
|
//有融信开立内部审批
|
|
if (true == result) {
|
|
if (true == result) {
|
|
|
|
+ debugger;
|
|
|
|
+ console.log(_this,"this====>");
|
|
|
|
+ console.log(_this.$store,"this====>")
|
|
_this.msgSuccess("融信资料已提交企业内部审批");
|
|
_this.msgSuccess("融信资料已提交企业内部审批");
|
|
- _this.$store.dispatch(
|
|
|
|
|
|
+ _this.$store.dispatch(
|
|
"tagsView/delView",
|
|
"tagsView/delView",
|
|
_this.$route
|
|
_this.$route
|
|
- );
|
|
|
|
- _this.$router.go(-1);
|
|
|
|
|
|
+ );
|
|
|
|
+ _this.$router.push("/Bill/credit")
|
|
} else {
|
|
} else {
|
|
//无融信开立内部审批
|
|
//无融信开立内部审批
|
|
//查询有无平台审批
|
|
//查询有无平台审批
|
|
@@ -967,11 +1016,13 @@ export default {
|
|
_this.msgSuccess(
|
|
_this.msgSuccess(
|
|
"融信资料已提交平台审核,平台审核时间为工作日:9:00—18:00;当日16:00之前提交资料,预计2小时内完成,请留意站内信息"
|
|
"融信资料已提交平台审核,平台审核时间为工作日:9:00—18:00;当日16:00之前提交资料,预计2小时内完成,请留意站内信息"
|
|
);
|
|
);
|
|
|
|
+ console.log(_this,"this====>");
|
|
|
|
+ console.log(_this.$store,"this====>")
|
|
_this.$store.dispatch(
|
|
_this.$store.dispatch(
|
|
"tagsView/delView",
|
|
"tagsView/delView",
|
|
_this.$route
|
|
_this.$route
|
|
);
|
|
);
|
|
- _this.$router.go(-1);
|
|
|
|
|
|
+ _this.$router.push("/Bill/credit")
|
|
} else {
|
|
} else {
|
|
//未开启平台审批
|
|
//未开启平台审批
|
|
//关闭当前页面
|
|
//关闭当前页面
|
|
@@ -1004,6 +1055,8 @@ export default {
|
|
} else {
|
|
} else {
|
|
//应收账款
|
|
//应收账款
|
|
this.form.ticketList = this.ticketList;
|
|
this.form.ticketList = this.ticketList;
|
|
|
|
+ //额度id
|
|
|
|
+ this.form.zfsqId = this.zfsqId;
|
|
//产品是否可拆分
|
|
//产品是否可拆分
|
|
this.form.zfpSplit = this.zfpSplit;
|
|
this.form.zfpSplit = this.zfpSplit;
|
|
//放款方式
|
|
//放款方式
|
|
@@ -1020,6 +1073,7 @@ export default {
|
|
this.form.zfpMinimumAmount = this.zfpMinimumAmount;
|
|
this.form.zfpMinimumAmount = this.zfpMinimumAmount;
|
|
//合计金额
|
|
//合计金额
|
|
this.form.checkTotalAmt = this.moneyDelete(this.checkTotalAmt);
|
|
this.form.checkTotalAmt = this.moneyDelete(this.checkTotalAmt);
|
|
|
|
+ console.log(this.form,"this.form2")
|
|
addCredit(this.form)
|
|
addCredit(this.form)
|
|
.then(response => {
|
|
.then(response => {
|
|
loading.close();
|
|
loading.close();
|
|
@@ -1028,6 +1082,7 @@ export default {
|
|
//查询当前用户是否为经办人
|
|
//查询当前用户是否为经办人
|
|
listCompanyHandler().then(response => {
|
|
listCompanyHandler().then(response => {
|
|
if (false == response.data) {
|
|
if (false == response.data) {
|
|
|
|
+ debugger;
|
|
//当前用户不是经办人,返回到列表页
|
|
//当前用户不是经办人,返回到列表页
|
|
this.msgSuccess("融信资料已提交企业内部审批");
|
|
this.msgSuccess("融信资料已提交企业内部审批");
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
@@ -1041,6 +1096,7 @@ export default {
|
|
var result = response.data.isOpen;
|
|
var result = response.data.isOpen;
|
|
//有融信开立内部审批
|
|
//有融信开立内部审批
|
|
if (true == result) {
|
|
if (true == result) {
|
|
|
|
+ debugger;
|
|
this.msgSuccess("融信资料已提交企业内部审批");
|
|
this.msgSuccess("融信资料已提交企业内部审批");
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|