|
@@ -7,18 +7,18 @@
|
|
|
<el-form-item label="融信编号" prop="zfiNumber">
|
|
|
<el-input v-model="form.zfiNumber" style="width: 200px" disabled/>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="创建时间" prop="createTime">
|
|
|
<el-date-picker disabled size="small" style="width: 200px" v-model="form.createTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="创建人" prop="createName">
|
|
|
<el-input v-model="form.createName" style="width: 200px" disabled/>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="开立方" prop="openName">
|
|
|
<el-input v-model="form.openName" style="width: 200px" disabled/>
|
|
@@ -43,7 +43,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="签发有效期" prop="zfiEffectiveDate">
|
|
|
+ <el-form-item label="签发有效期" prop="zfiEffectiveDate">
|
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
|
v-model="form.zfiEffectiveDate"
|
|
|
type="date"
|
|
@@ -59,7 +59,7 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="承诺还款日" prop="zfiExpireDate">
|
|
|
+ <el-form-item label="承诺还款日" prop="zfiExpireDate">
|
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
|
v-model="form.zfiExpireDate"
|
|
|
type="date"
|
|
@@ -68,7 +68,7 @@
|
|
|
:picker-options="pickerOptions">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="授信额度" prop="zfiCoreQuotaId">
|
|
|
<el-select
|
|
@@ -96,34 +96,34 @@
|
|
|
<span>最小融资金额:</span>
|
|
|
<span>{{zfpMinimumAmount}}</span>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
+ </el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="签发金额" prop="zfiAmount">
|
|
|
+ <el-form-item label="签发金额" prop="zfiAmount">
|
|
|
<el-input v-model="form.zfiAmount" style="width: 200px" @input="getBigSmall" @input.native="changeRate($event,form.zfiAmount)" />
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
+ </el-col>
|
|
|
+
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="金额大写" prop="issuedAmount">
|
|
|
+ <el-form-item label="金额大写" prop="issuedAmount">
|
|
|
{{issuedAmount}}
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-divider content-position="left" >应付账款</el-divider>
|
|
|
<el-form-item style="margin-left: 100px">
|
|
|
- <el-button type="success" @click="openTicket">选择</el-button>
|
|
|
+ <el-button type="success" @click="openTicket(form.zfiId)">选择</el-button>
|
|
|
<el-button type="primary" @click="addPay">新增应付账款</el-button>
|
|
|
<el-button size="mini" @click="deleteTicekt">清空全部</el-button>
|
|
|
- <el-form-item label="合计金额:">
|
|
|
+ <el-form-item label="合计金额:">
|
|
|
<span>{{checkTotalAmt}}</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="金额大写:">
|
|
|
+ <el-form-item label="金额大写:">
|
|
|
<span>{{checkTotalBigAmt}}</span>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
+
|
|
|
<el-table :data="ticketList" style="width: 1100px">
|
|
|
<el-table-column label="账款名称" align="center" prop="zbiName" show-overflow-tooltip />
|
|
|
<el-table-column label="应收企业" align="center" prop="receiveName"/>
|
|
@@ -234,7 +234,7 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
<!-- 应付账款信息 -->
|
|
|
- <el-dialog :title="payTitle" :visible.sync="open" width="1120px" append-to-body>
|
|
|
+ <el-dialog :title="payTitle" :visible.sync="open" width="1120px" append-to-body destroy-on-close>
|
|
|
<el-form :model="queryParamsPay" ref="formQuery" :inline="true" label-width="68px" style="margin-bottom: -21px">
|
|
|
<el-form-item label="账款名称" prop="zbiName">
|
|
|
<el-input
|
|
@@ -268,7 +268,7 @@
|
|
|
<el-table :data="payList"
|
|
|
ref="tablePay"
|
|
|
class="single-select-table"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
:row-key="rowkey">
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
@@ -297,7 +297,7 @@
|
|
|
<el-button size="mini" type="primary" @click="closeTicket">确认</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
+
|
|
|
<!-- 新增往来账款 -->
|
|
|
<el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
|
|
|
<add-bill :companyId="form.zfiSupplierId" companyType="00" :payDate="payDate" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
|
|
@@ -317,6 +317,7 @@
|
|
|
import {getCreditDetail,getReceiverList,listCreditLine,getAvailableBalance,getAccountsPay,updateCredit,getFile} from "@/api/service/credit/credit";
|
|
|
import {accAdd} from "@/utils/calculation";
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
+import {getBill} from "@/api/service/bill/bill";
|
|
|
import AddBill from "@/views/service/bill/addBill";
|
|
|
import EditBill from "@/views/service/bill/editBill";
|
|
|
export default {
|
|
@@ -334,7 +335,7 @@ export default {
|
|
|
},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- //授信额度
|
|
|
+ //授信额度
|
|
|
zfiCoreQuotaId: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -379,7 +380,7 @@ export default {
|
|
|
trigger: ["blur", "change"],
|
|
|
},
|
|
|
],
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
@@ -447,7 +448,7 @@ export default {
|
|
|
show:false,
|
|
|
heid:false,
|
|
|
chooseTicket:[],
|
|
|
- payDate:null
|
|
|
+ payDate:null
|
|
|
};
|
|
|
},
|
|
|
watch:{
|
|
@@ -462,7 +463,7 @@ export default {
|
|
|
getReceiverList(this.supplierForm).then((response) => {
|
|
|
this.supplierList = response.data.records.map(item => {
|
|
|
return { value: item.scyId, label: item.scyName};
|
|
|
- });
|
|
|
+ });
|
|
|
});
|
|
|
this.listCreditLine(response.data);
|
|
|
}
|
|
@@ -472,7 +473,7 @@ export default {
|
|
|
//附件
|
|
|
this.getFile(this.ticketList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
@@ -485,7 +486,7 @@ export default {
|
|
|
rowkeyCustomer(row) {
|
|
|
return row.cciId;
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//获取附件信息
|
|
|
getFile(datas){
|
|
|
var queryParamsFile = {};
|
|
@@ -512,18 +513,22 @@ export default {
|
|
|
this.getAccountsPay();
|
|
|
},
|
|
|
//打开应付账款选择列表
|
|
|
- openTicket() {
|
|
|
+ openTicket(id) {
|
|
|
if(!this.form.zfiSupplierId){
|
|
|
this.$message({
|
|
|
message: "请选择接收方",
|
|
|
type: "warning",
|
|
|
});
|
|
|
- return false;
|
|
|
+ return false;
|
|
|
}
|
|
|
//搜索条件清空
|
|
|
this.queryParamsPay.zbiName = "";
|
|
|
this.queryParamsPay.receiveName = "";
|
|
|
this.queryParamsPay.pageNum = 1;
|
|
|
+ if(id){
|
|
|
+ this.queryParamsPay.zfiId = id;
|
|
|
+ }
|
|
|
+ this.chooseTicket = eval("(" + JSON.stringify(this.ticketList) + ")");
|
|
|
this.getAccountsPay();
|
|
|
this.open = true;
|
|
|
this.payTitle = "应付账款";
|
|
@@ -536,7 +541,7 @@ export default {
|
|
|
return { value: item.zfpcrId, 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.form = data.financeInf;
|
|
|
//开立方
|
|
|
this.form.openName = data.openName;
|
|
@@ -545,10 +550,10 @@ export default {
|
|
|
//签发金额大写
|
|
|
this.issuedAmount = this.smallToBig(this.form.zfiAmount);
|
|
|
});
|
|
|
- },
|
|
|
+ },
|
|
|
//应付账款查询列表
|
|
|
getAccountsPay() {
|
|
|
- this.queryParamsPay.zbiPayeeId = this.form.zfiSupplierId;
|
|
|
+ this.queryParamsPay.zbiPayeeId = this.form.zfiSupplierId;
|
|
|
return getAccountsPay(this.queryParamsPay).then((response) => {
|
|
|
this.payList = response.data.records;
|
|
|
this.selectChecked();
|
|
@@ -558,8 +563,8 @@ export default {
|
|
|
},
|
|
|
selectChecked() {
|
|
|
//清空选择
|
|
|
- this.$refs.tablePay && this.$refs.tablePay.clearSelection();
|
|
|
- this.ticketList.forEach((item) => {
|
|
|
+// this.$refs.tablePay && this.$refs.tablePay.clearSelection();
|
|
|
+ this.chooseTicket.forEach((item) => {
|
|
|
this.payList.forEach(row => {
|
|
|
if (row.zbiId == item.zbiId) {
|
|
|
this.$nextTick(() => {
|
|
@@ -569,9 +574,9 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
//合计
|
|
|
- this.getReTotal(this.ticketList);
|
|
|
+ // this.getReTotal(this.ticketList);
|
|
|
//附件
|
|
|
- this.getFile(this.ticketList);
|
|
|
+ // this.getFile(this.ticketList);
|
|
|
},
|
|
|
/* 删除按钮 */
|
|
|
handleDelete(index, rows) {
|
|
@@ -622,7 +627,7 @@ export default {
|
|
|
this.getFile(this.ticketList);
|
|
|
this.open = false;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}else{
|
|
|
this.$message({
|
|
|
message: '请选择应付账款',
|
|
@@ -690,7 +695,7 @@ export default {
|
|
|
this.$refs.tablePay.clearSelection();
|
|
|
}
|
|
|
},
|
|
|
- //格式化金额
|
|
|
+ //格式化金额
|
|
|
amtFormat(cellValue) {
|
|
|
if(cellValue == null || cellValue== undefined || cellValue == ''){
|
|
|
cellValue = '0.00'
|
|
@@ -852,7 +857,7 @@ export default {
|
|
|
lock: true,
|
|
|
text: 'Loading',
|
|
|
background: 'rgba(0, 0, 0,0)'
|
|
|
- });
|
|
|
+ });
|
|
|
//如果签发金额小于合计金额
|
|
|
if((parseFloat(this.form.zfiAmount)) < (parseFloat(this.moneyDelete(this.checkTotalAmt)))){
|
|
|
var _this = this;
|
|
@@ -917,7 +922,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
+ },
|
|
|
//金额去掉千分位
|
|
|
moneyDelete(num){
|
|
|
if(num &&num != undefined && num != null){
|
|
@@ -945,7 +950,7 @@ export default {
|
|
|
pfiFileName.substr(-3) == "JPG" ||
|
|
|
pfiFileName.substr(-3) == "PNG" ||
|
|
|
pfiFileName.substr(-4) == "jpeg" ||
|
|
|
- pfiFileName.substr(-3) == "JPEG"
|
|
|
+ pfiFileName.substr(-3) == "JPEG"
|
|
|
) {
|
|
|
this.wordUrl =
|
|
|
pfiUrl +
|
|
@@ -1013,25 +1018,25 @@ export default {
|
|
|
},
|
|
|
//修改账款回调
|
|
|
emitEditClick(val) {
|
|
|
- var self = this
|
|
|
- this.getAccountsPay().then((response) => {
|
|
|
- //修改付款返回id直接选中
|
|
|
- if (val) {
|
|
|
- // self.payList.forEach(element => {
|
|
|
- // if (element.zbiId == val) {
|
|
|
- // // 将当前点击项选中
|
|
|
- // // self.chooseTicket.push(element)
|
|
|
- // //self.closeTicket()
|
|
|
- // }
|
|
|
- // });
|
|
|
- console.log(self.chooseTicket)
|
|
|
- self.ticketList = response.data.records
|
|
|
- self.closeTicket()
|
|
|
- }
|
|
|
- })
|
|
|
- self.openEditBill = false
|
|
|
- },
|
|
|
-
|
|
|
+ var self = this
|
|
|
+ getBill(val).then((response) => {
|
|
|
+ for (var i = 0; i < this.ticketList.length; i ++) {
|
|
|
+ if (response.data.zbiId == this.ticketList[i].zbiId) {
|
|
|
+ this.$set(this.ticketList, i, response.data)
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (var i = 0; i < this.ticketList.length; i ++) {
|
|
|
+ if (response.data.zbiId == this.ticketList[i].zbiId) {
|
|
|
+ this.$set(this.chooseTicket, i, response.data)
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ self.closeTicket();
|
|
|
+ })
|
|
|
+ self.openEditBill = false
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -1044,7 +1049,7 @@ export default {
|
|
|
line-height:110px;
|
|
|
}
|
|
|
.fjUoloadSty .el-upload--picture-card{
|
|
|
- display:none;
|
|
|
+ display:none;
|
|
|
}
|
|
|
|
|
|
table th.star div::before {
|
|
@@ -1052,4 +1057,4 @@ table th.star div::before {
|
|
|
color: red;
|
|
|
}
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|