<template>
|
<div class="product">
|
<div class="borrower">
|
<template v-if="applyInfo.productID != 'CFD_ESCKRD'">
|
<template v-if="applyInfo.productID != 'OFF_CDZY'">
|
<p class="title">
|
<span></span>
|
应收账款汇总
|
</p>
|
|
<el-form
|
:model="creditLineForm"
|
ref="creditLineForm"
|
inline
|
label-width="165px"
|
size="small"
|
style="margin-bottom: 36px"
|
>
|
<el-form-item label="应收账款总额" prop="totalAccounts">
|
<el-input
|
:value="formatMoney(creditLineForm.accountsAmt.value)"
|
disabled
|
></el-input>
|
</el-form-item>
|
</el-form>
|
<p class="title">
|
<span></span>
|
应收账款明细
|
</p>
|
<el-button
|
type="primary"
|
icon="el-icon-circle-plus-outline"
|
v-if="applyInfo.phaseNo <= '0060'"
|
@click="addCreditLine"
|
size="medium"
|
>新增</el-button
|
>
|
|
<el-table
|
stripe
|
:data="creditLineArray"
|
style="margin-top: 30px; margin-bottom: 30px"
|
highlight-current-row
|
:cell-style="cell"
|
:header-cell-style="{ background: '#f5f5f5', color: '#222222' }"
|
>
|
<el-table-column min-width="200">
|
<template slot="header">
|
<span>
|
<span style="padding-left: 8px">基础合同名称</span>
|
</span>
|
</template>
|
<template slot-scope="{ row }">
|
<span style="padding-left: 15px" v-show="!row.isEdit">{{
|
row.contractname
|
}}</span>
|
<el-select
|
style="display: block; padding-left: 15px"
|
v-model="row.contractid"
|
filterable
|
placeholder="请选择"
|
size="small"
|
v-show="row.isEdit"
|
@change="contractChange(row)"
|
>
|
<el-option
|
v-for="item in contractInfoList"
|
:key="item.contractId"
|
:label="item.contractName"
|
:value="item.contractId"
|
></el-option>
|
</el-select>
|
</template>
|
</el-table-column>
|
|
<el-table-column min-width="200">
|
<template slot="header">
|
<span>
|
<span style="padding-left: 8px">应收账款名称</span>
|
</span>
|
</template>
|
<template slot-scope="{ row }">
|
<span style="padding-left: 15px" v-show="!row.isEdit">{{
|
row.billname ? row.billname : "--"
|
}}</span>
|
<el-input
|
style="padding-left: 15px"
|
size="small"
|
v-show="row.isEdit"
|
v-model="row.billname"
|
placeholder="请输入"
|
></el-input>
|
</template>
|
</el-table-column>
|
|
<el-table-column min-width="200">
|
<template slot="header">
|
<span>
|
<!-- <span class="red-star">*</span> -->
|
<span style="padding-left: 8px">应收账款凭证类型</span>
|
</span>
|
</template>
|
<template slot-scope="{ row }">
|
<span style="padding-left: 8px" v-show="!row.isEdit">{{
|
row.billtypeDesc
|
}}</span>
|
<el-select
|
style="display: block; padding-left: 15px"
|
v-model="row.billtype"
|
filterable
|
placeholder="请选择"
|
size="small"
|
v-show="row.isEdit"
|
>
|
<el-option
|
v-for="item in billtypeArr"
|
:key="item.itemno"
|
:label="item.itemname"
|
:value="item.itemno"
|
></el-option>
|
</el-select>
|
</template>
|
</el-table-column>
|
|
<el-table-column min-width="200">
|
<template slot="header">
|
<span>
|
<span style="padding-left: 8px">应收账款凭证编号</span>
|
</span>
|
</template>
|
<template slot-scope="{ row }">
|
<span style="padding-left: 15px" v-show="!row.isEdit">{{
|
row.billno ? row.billno : "--"
|
}}</span>
|
<el-input
|
style="padding-left: 15px"
|
size="small"
|
v-show="row.isEdit"
|
v-model="row.billno"
|
placeholder="请输入"
|
></el-input>
|
</template>
|
</el-table-column>
|
|
<el-table-column min-width="200">
|
<template slot="header">
|
<span>
|
<span style="padding-left: 8px">应收账款金额</span>
|
</span>
|
</template>
|
<template slot-scope="{ row }">
|
<span style="padding-left: 15px" v-show="!row.isEdit">{{
|
row.billsum ? formatMoney(row.billsum) : "--"
|
}}</span>
|
<el-input
|
style="padding-left: 15px"
|
size="small"
|
v-show="row.isEdit"
|
v-model="row.billsum"
|
placeholder="请输入"
|
@blur="row.billsum = formatMoney(row.billsum)"
|
></el-input>
|
</template>
|
</el-table-column>
|
|
<el-table-column min-width="200">
|
<template slot="header">
|
<span>
|
<span style="padding-left: 8px">应收账款到期日</span>
|
</span>
|
</template>
|
<template slot-scope="{ row }">
|
<span style="padding-left: 15px" v-show="!row.isEdit">{{
|
row.pjpamentendday ? row.pjpamentendday : "--"
|
}}</span>
|
<div style="padding-left: 15px">
|
<el-date-picker
|
v-model="row.pjpamentendday"
|
type="date"
|
v-show="row.isEdit"
|
format="yyyy/MM/dd"
|
value-format="yyyy/MM/dd"
|
size="small"
|
placeholder="选择日期"
|
>
|
</el-date-picker>
|
</div>
|
</template>
|
</el-table-column>
|
<el-table-column
|
label="操作"
|
min-width="110"
|
v-if="applyInfo.phaseNo <= '0060'"
|
>
|
<template slot-scope="scope">
|
<el-button
|
type="text"
|
@click.native="handleEdit(scope.row)"
|
v-if="!scope.row.isEdit"
|
>修改</el-button
|
>
|
<el-button
|
type="text"
|
@click.native="handleSave(scope.row, scope.$index)"
|
v-else
|
>保存</el-button
|
>
|
<el-button
|
type="text"
|
@click.native="handleCancel(scope.row, scope.$index)"
|
v-if="scope.row.isCancel"
|
>取消</el-button
|
>
|
<el-button
|
type="text"
|
@click.native="handleDelete(scope.row, scope.$index)"
|
v-else
|
>删除</el-button
|
>
|
</template>
|
</el-table-column>
|
</el-table>
|
</template>
|
|
<p class="title">
|
<span></span>
|
授信额度信息
|
</p>
|
<el-form
|
ref="creditLineForm"
|
inline
|
label-width="165px"
|
size="small"
|
style="margin-bottom: 36px"
|
>
|
<template v-if="applyInfo.productID == 'OFF_CDZY'">
|
<el-form-item
|
:label="creditLineForm.productCreditAmt.filedDescription"
|
v-if="creditLineForm.productCreditAmt.visible"
|
prop="productCreditAmt"
|
>
|
<el-input
|
v-model="creditLineForm.productCreditAmt.value"
|
:disabled="!creditLineForm.productCreditAmt.writeAble"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="creditLineForm.businesssum.filedDescription"
|
v-if="creditLineForm.businesssum.visible"
|
prop="businesssum"
|
>
|
<el-input
|
:value="creditLineForm.businesssum.value"
|
:disabled="!creditLineForm.businesssum.writeAble"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="creditLineForm.creditUsedAmt.filedDescription"
|
v-if="creditLineForm.creditUsedAmt.visible"
|
prop="creditUsedAmt"
|
>
|
<el-input
|
:value="creditLineForm.creditUsedAmt.value"
|
:disabled="!creditLineForm.creditUsedAmt.writeAble"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="creditLineForm.creditRemainAmt.filedDescription"
|
v-if="creditLineForm.creditRemainAmt.visible"
|
prop="creditRemainAmt"
|
>
|
<el-input
|
:value="creditLineForm.creditRemainAmt.value"
|
:disabled="!creditLineForm.creditRemainAmt.writeAble"
|
></el-input>
|
</el-form-item>
|
</template>
|
<template v-else>
|
<el-form-item
|
:label="creditLineForm.addcreditamtlimit.filedDescription"
|
v-if="creditLineForm.addcreditamtlimit.visible"
|
prop="newCreditLine"
|
>
|
<el-input
|
:value="formatMoney(creditLineForm.addcreditamtlimit.value)"
|
disabled
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="creditLineForm.useSumNum.filedDescription"
|
v-if="creditLineForm.useSumNum.visible"
|
prop="useSumNum"
|
>
|
<el-input
|
:value="
|
formatMoney(
|
creditLineForm.useSumNum && creditLineForm.useSumNum.value
|
)
|
"
|
disabled
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="creditLineForm.remanentAmt.filedDescription"
|
v-if="creditLineForm.remanentAmt.visible"
|
prop="remanentAmt"
|
>
|
<el-input
|
:value="formatMoney(creditLineForm.remanentAmt.value)"
|
disabled
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="creditLineForm.creditbaseamt.filedDescription"
|
prop="creditbaseamt"
|
v-if="creditLineForm.creditbaseamt.visible"
|
>
|
<el-input
|
v-model="creditLineForm.creditbaseamt.value"
|
:disabled="!creditLineForm.creditbaseamt.writeAble"
|
@blur="
|
creditLineForm.creditbaseamt.value = formatMoney(
|
creditLineForm.creditbaseamt.value
|
)
|
"
|
></el-input>
|
<span
|
style="
|
position: absolute;
|
left: -125px;
|
color: red;
|
font-size: 14px;
|
"
|
><br />剩余授信额度=授信总额(100万)-在贷余额</span
|
>
|
</el-form-item>
|
</template>
|
</el-form>
|
</template>
|
<template
|
v-if="
|
applyInfo.productID == 'CFD_ESCKRD' &&
|
creditLineForm.creditEffectiveDate
|
"
|
>
|
<p class="title">
|
<span></span>
|
授信额度有效期
|
</p>
|
<el-form
|
:model="creditLineForm"
|
ref="creditLineForm"
|
inline
|
label-width="165px"
|
size="small"
|
style="margin-bottom: 36px"
|
>
|
<el-form-item
|
label="授信有效期起"
|
prop="totalAccounts"
|
v-if="creditLineForm.creditEffectiveDate.visible"
|
>
|
<el-input
|
v-model="creditLineForm.creditEffectiveDate.value"
|
:disabled="!creditLineForm.creditEffectiveDate.writeAble"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
label="授信失效期"
|
prop="totalAccounts"
|
v-if="creditLineForm.creditDiseffectiveDate.visible"
|
>
|
<el-input
|
v-model="creditLineForm.creditDiseffectiveDate.value"
|
:disabled="!creditLineForm.creditDiseffectiveDate.writeAble"
|
></el-input>
|
</el-form-item>
|
</el-form>
|
|
<p class="title">
|
<span></span>
|
授信额度信息
|
</p>
|
|
<el-form
|
ref="creditLineForm"
|
inline
|
label-width="165px"
|
size="small"
|
style="margin-bottom: 36px"
|
>
|
<el-form-item
|
:label="creditLineForm.creditbaseamt.filedDescription"
|
prop="creditbaseamt"
|
v-if="creditLineForm.creditbaseamt.visible"
|
>
|
<el-input
|
v-model="creditLineForm.creditbaseamt.value"
|
:disabled="!creditLineForm.creditbaseamt.writeAble"
|
@blur="
|
creditLineForm.creditbaseamt.value = formatMoney(
|
creditLineForm.creditbaseamt.value
|
)
|
"
|
></el-input>
|
</el-form-item>
|
</el-form>
|
</template>
|
|
<div class="btn">
|
<el-button
|
size="medium"
|
plain
|
@click="submit(creditLineForm, true)"
|
v-if="(applyInfo.phaseNo == '0040' || applyInfo.phaseNo == '0010') && 'OFF_CDZY' != applyInfo.productID"
|
>保存草稿</el-button
|
>
|
<el-button
|
size="medium"
|
plain
|
@click="prevStep"
|
v-if="
|
applyInfo.phaseNo == '0040' ||
|
applyInfo.phaseNo == '0010' ||
|
applyInfo.phaseNo == '0060'
|
"
|
>上一步</el-button
|
>
|
<el-button size="medium" plain @click="prevStep" v-else
|
>上一步</el-button
|
>
|
<el-button
|
size="medium"
|
type="primary"
|
@click="submit(creditLineForm)"
|
v-if="
|
applyInfo.phaseNo == '0040' ||
|
applyInfo.phaseNo == '0010' ||
|
applyInfo.phaseNo == '0060'
|
"
|
>下一步</el-button
|
>
|
<el-button
|
size="medium"
|
type="primary"
|
@click="submit(creditLineForm)"
|
v-else
|
>下一步</el-button
|
>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import common from "@/utils/common";
|
import {
|
getDictionaryList, //请求字段选择项
|
qryCreditorInfo, //查询应收账款信息
|
qryCreditorBillInfo, //查询应收账款明细信息(单个)
|
delCreditorBillInfo, //删除应收账款明细
|
saveCreditorBillInfo, //新增/修改明细
|
saveCreditorInfo, //保存应收账款信息草稿
|
saveCustomerQuotaInfo, //仓单质押授信额度保存
|
submitCreditorInfo, //提交/保存应收账款信息
|
qryBaseContractList,
|
queryCustomerQuotaInfo,
|
queryCustomerQuotaInfoMap,
|
} from "@/api/product";
|
export default {
|
data() {
|
return {
|
applyInfo: this.$store.state.product.applyInfo,
|
applyMenu: this.$store.state.product.applyMenu,
|
creditLineForm: [], //明细网络请求值
|
creditLineArray: [], //应收账款明细数组
|
initialArr: [], //取消中会用到
|
billtypeArr: [], //应收账款凭证类型
|
contractInfoList: [],
|
};
|
},
|
async created() {
|
console.log("applyInfo", this.applyInfo.productID);
|
console.log("applyMenu", this.applyMenu);
|
if ("OFF_CDZY" === this.applyInfo.productID) {
|
this.requestQueryCustomerQuotaInfo();
|
} else {
|
this.onGetCreditorInfo();
|
// this.onGetCreditorBillInfo();
|
this.billtypeArr = await this.qryDictionaryList("AccountsCertType");
|
this.contractInfoList = await this.getBaseContractList();
|
}
|
},
|
components: {},
|
methods: {
|
// 金额格式化
|
formatMoney(value) {
|
if (value) {
|
value =
|
parseFloat((value + "").replace(/[^\d\.-]/g, "")).toFixed(2) + "";
|
if (value == "NaN") return;
|
let l = value.split(".")[0].split("").reverse();
|
let r = value.split(".")[1];
|
let t = "";
|
for (let i = 0; i < l.length; i++) {
|
t += l[i] + ((i + 1) % 3 === 0 && i + 1 !== l.length ? "," : "");
|
}
|
return t.split("").reverse().join("") + "." + r;
|
}
|
},
|
|
//金额变成数字
|
moneyFomatNumber(number, n) {
|
if (typeof number == "number") return number;
|
if (number != null && number != "" && number != undefined) {
|
number = number.replace(/,/g, ""); //去除千分位的','
|
if (isNaN(number)) {
|
//判断是否是数字
|
number = "0";
|
} else {
|
number = Math.round(number * Math.pow(10, n)) / Math.pow(10, n); //n幂
|
number = number.toString();
|
}
|
} else {
|
number = "0";
|
}
|
//a.indexOf(x,y);返回x值在a字符串值中从y位置开始检索首次出现的位置
|
var numLength = number.indexOf(".");
|
//判断传递的值是整数增加小数点再补"0"
|
if (numLength < 0) {
|
numLength = number.length;
|
number += ".";
|
}
|
//不足n位小数的,循环补"0"
|
while (number.length <= numLength + n) {
|
number += "0";
|
}
|
return number;
|
},
|
//单元格css
|
cell({ row, column, rowIndex, columnIndex }) {
|
const { applyInfo, index } = this;
|
const { refuseFlag } = applyInfo;
|
if (refuseFlag == 1) {
|
const { houseInfoBatch } = this.$store.state.product.fields;
|
const { propertyList } = houseInfoBatch[index];
|
for (let i = 0; i < propertyList.length; i++) {
|
const object = propertyList[i];
|
for (const key in object) {
|
if (row[key] != object[key] && column.property == key) {
|
return { color: "#222", "font-weight": "700" };
|
}
|
}
|
}
|
}
|
},
|
// 查询基础合同信息
|
getBaseContractList() {
|
return new Promise((resolve) => {
|
qryBaseContractList({
|
relativeSerialNo: this.applyInfo.serialNo,
|
}).then((res) => {
|
resolve(res.result);
|
});
|
});
|
},
|
contractChange(row) {
|
const item = this.contractInfoList.find(
|
(res) => res.contractId == row.contractid
|
);
|
row.contractno = item.contractNo;
|
row.contractname = item.contractName;
|
},
|
// 查询客户额度信息
|
async requestQueryCustomerQuotaInfo() {
|
const resp = await queryCustomerQuotaInfoMap({
|
applyserialno: this.applyInfo.serialNo,
|
});
|
if (resp.code == "00") {
|
this.creditLineForm = resp.result;
|
}
|
},
|
// 查询应收账款/票据信息
|
onGetCreditorInfo() {
|
qryCreditorInfo({
|
applySerialNo: this.applyInfo.serialNo,
|
}).then((res) => {
|
this.creditLineForm = res.result;
|
this.creditLineForm.creditbaseamt.value = this.formatMoney(
|
this.creditLineForm.creditbaseamt.value
|
);
|
|
this.creditLineArray = [];
|
this.initialArr = [];
|
|
if (res.result.creditorBills.length) {
|
res.result.creditorBills.forEach((val) => {
|
const obj = {};
|
for (const key in val) {
|
obj[key] = val[key];
|
}
|
this.billtypeArr.map((item, index) => {
|
if (obj.billtype === item.itemno) {
|
obj.billtypeDesc = item.itemname;
|
}
|
});
|
this.creditLineArray.push(obj);
|
this.initialArr.push(Object.assign({}, obj));
|
});
|
}
|
|
console.log(this.creditLineArray, this.creditLineForm, this.initialArr);
|
});
|
},
|
//查询应收账款明细信息(单个)
|
onGetCreditorBillInfo() {
|
qryCreditorBillInfo({
|
serialno: this.applyInfo.serialNo,
|
}).then((res) => {
|
console.log(res);
|
});
|
},
|
//请求字典项,应收账款类型
|
qryDictionaryList(code) {
|
return new Promise((resolve) => {
|
getDictionaryList({
|
codeNo: code,
|
}).then((res) => {
|
resolve(res.result);
|
});
|
});
|
},
|
//添加应收账款明细
|
addCreditLine() {
|
for (let i = 0; i < this.creditLineArray.length; i++) {
|
if (this.creditLineArray[i].isEdit) {
|
this.$message.warning("请先保存当前凭证信息再新增");
|
return;
|
}
|
}
|
this.creditLineArray.unshift({
|
billname: "",
|
billtype: "",
|
billno: "",
|
pjpamentendday: "",
|
billsum: "",
|
serialno: "",
|
isEdit: true,
|
});
|
},
|
//保存选中应收账款明细
|
async handleSave(row, index) {
|
if (!row.contractid) {
|
this.$message.warning("基础合同名称不能为空");
|
return;
|
}
|
if (!row.billname) {
|
this.$message.warning("应收账款名称不能为空");
|
return;
|
}
|
if (!row.billtype) {
|
this.$message.warning("应收账款凭证类型不能为空");
|
return;
|
}
|
// if (!row.billno) {
|
// this.$message.warning("应收账款凭证编号不能为空");
|
// return;
|
// }
|
if (!row.billsum) {
|
this.$message.warning("应收账款金额不能为空");
|
return;
|
}
|
// if (!row.pjpamentendday) {
|
// this.$message.warning("应收账款到期日不能为空");
|
// return;
|
// }
|
|
for (let i = 0; i < this.creditLineArray.length; i++) {
|
if (
|
index != i &&
|
row.billname == this.creditLineArray[i].billname &&
|
row.billtype == this.creditLineArray[i].billtype &&
|
row.billno == this.creditLineArray[i].billno
|
) {
|
this.$message.warning("应收账款已存在,请重新填写");
|
return;
|
}
|
}
|
|
if (this.applyInfo.serialNo) {
|
row.objectno = this.applyInfo.serialNo;
|
row.billsum = this.moneyFomatNumber(row.billsum, 2);
|
// 同步返回保存是否成功
|
const res = await this.save(row);
|
if (res.code == "00") {
|
this.onGetCreditorInfo();
|
} else {
|
return;
|
}
|
}
|
},
|
|
//修改选中应收账款明细
|
handleEdit(row) {
|
for (let i = 0; i < this.creditLineArray.length; i++) {
|
if (this.creditLineArray.length > 1 && this.creditLineArray[i].isEdit) {
|
this.$message.warning("请先保存当前凭证信息");
|
return;
|
}
|
}
|
this.$set(row, "isEdit", true);
|
this.$set(row, "isCancel", true);
|
},
|
|
//取消选中应收账款明细
|
handleCancel(row, index) {
|
const arr = [];
|
for (let i = 0; i < this.initialArr.length; i++) {
|
if (i == index) {
|
for (const key in row) {
|
if (
|
key != "isEdit" &&
|
key != "isCancel" &&
|
row[key] != this.initialArr[i][key]
|
) {
|
arr.push(key);
|
}
|
}
|
}
|
}
|
if (arr.length) {
|
common.comfirm("提示", "当前有数据未保存,是否放弃保存?", () => {
|
this.$set(row, "isEdit", false);
|
this.$set(row, "isCancel", false);
|
arr.forEach((val) => {
|
for (const key in this.initialArr[index]) {
|
if (this.initialArr[index].hasOwnProperty(val)) {
|
this.creditLineArray[index][key] = this.initialArr[index][key];
|
}
|
}
|
});
|
});
|
} else {
|
this.$set(row, "isEdit", false);
|
this.$set(row, "isCancel", false);
|
}
|
},
|
//删除选中应收账款明细
|
handleDelete(row, index) {
|
if (!row.isEdit) {
|
common.comfirm(
|
"提示",
|
`请确认是否需要删除:${row.billname}?`,
|
async () => {
|
if (row.serialno) {
|
const res = await this.del(row.serialno);
|
if (res.code == "00") {
|
this.$message.success("删除成功");
|
this.onGetCreditorInfo();
|
}
|
} else {
|
this.onGetCreditorInfo();
|
}
|
}
|
);
|
} else {
|
this.onGetCreditorInfo();
|
}
|
},
|
|
// 保存接口
|
save(row) {
|
return new Promise((resolve) => {
|
saveCreditorBillInfo(row).then((res) => {
|
resolve(res);
|
});
|
});
|
},
|
// 删除接口
|
del(serialno) {
|
if (this.applyInfo.serialNo) {
|
return new Promise((resolve) => {
|
delCreditorBillInfo({
|
serialno: serialno,
|
objectno: this.applyInfo.serialNo,
|
}).then((res) => {
|
resolve(res);
|
});
|
});
|
} else {
|
this.$message.warning("列表信息获取失败");
|
}
|
},
|
|
prevStep() {
|
this.applyMenu.forEach((val, index) => {
|
if (val.tabname == "授信额度信息") {
|
common.tabInfo(
|
this.applyMenu[index - 1].tabname,
|
this.applyInfo.flowno,
|
this
|
);
|
}
|
});
|
},
|
submit(data, isDraft) {
|
let creditLineForm = JSON.parse(JSON.stringify(data));
|
if ("OFF_CDZY" === this.applyInfo.productID) {
|
let tempCreditLineForm = {};
|
Object.keys(creditLineForm).forEach((key) => {
|
console.log('1111',key,creditLineForm[key].value)
|
tempCreditLineForm[key] = creditLineForm[key].value;
|
})
|
tempCreditLineForm.applyserialno = this.applyInfo.serialNo
|
console.log("tempCreditLineForm submit", tempCreditLineForm, 'applyInfo',this.applyInfo);
|
let _this = this
|
saveCustomerQuotaInfo(tempCreditLineForm).then((res) => {
|
if (res.code === "00") {
|
if (isDraft) {
|
_this.$message.success("保存成功");
|
} else {
|
_this.$parent.updateApplyTabTree("授信额度信息");
|
}
|
}
|
})
|
} else {
|
creditLineForm.creditbaseamt.value = this.moneyFomatNumber(
|
creditLineForm.creditbaseamt.value,
|
2
|
);
|
let tempCreditLineForm = {};
|
//遍历对象属性
|
Object.keys(creditLineForm).forEach((key) => {
|
console.log(key);
|
tempCreditLineForm[key] = creditLineForm[key].value;
|
});
|
if (this.applyInfo.serialNo) {
|
tempCreditLineForm.objectno = this.applyInfo.serialNo;
|
}
|
|
let _this = this;
|
saveCreditorInfo(tempCreditLineForm).then((res) => {
|
if (res.code === "00") {
|
if (isDraft) {
|
this.$message.success("保存成功");
|
} else {
|
_this.$parent.updateApplyTabTree("授信额度信息");
|
}
|
}
|
});
|
}
|
},
|
},
|
};
|
</script>
|