|
|
@ -1,4 +1,4 @@ |
|
|
|
<temp<template> |
|
|
|
<template> |
|
|
|
<div class="app-container"> |
|
|
|
<div v-show="viewState == 1"> |
|
|
|
<div class="tab-header webtop"> |
|
|
@ -8,7 +8,7 @@ |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class=""> |
|
|
|
<div class="listconadd"> |
|
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|
|
|
<el-row style="border-top: 1px solid #e0e3eb"> |
|
|
|
<el-col :span="12"> |
|
|
@ -61,7 +61,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>后期是否有平仓付款</div> |
|
|
|
<el-form-item prop="isPay"> |
|
|
|
<el-radio-group class="addinputInfo" v-model="formobj.isPay"> |
|
|
|
<el-radio-group class="addinputInfo" disabled v-model="formobj.isPay"> |
|
|
|
<el-radio label="1">是</el-radio> |
|
|
|
<el-radio label="0">否</el-radio> |
|
|
|
</el-radio-group> |
|
|
@ -80,8 +80,7 @@ |
|
|
|
<el-button size="mini" type="danger" @click="toDelete(scope.$index)">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="costTitleValue" label="平仓款名称" align="center" /> |
|
|
|
<el-table-column label="期数" align="center"> |
|
|
|
<el-table-column label="期(台)数" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input @keyup.native="scope.row.period = getNumber(scope.row.period, 2)" v-model="scope.row.period" clearable placeholder="" /> |
|
|
|
</template> |
|
|
@ -96,6 +95,13 @@ |
|
|
|
<el-input @keyup.native="scope.row.exePayPrice = getNumber(scope.row.exePayPrice, 2)" v-model="scope.row.exePayPrice" clearable placeholder="" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="收款银行账号" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-select v-model="scope.row.receivingAccount" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in receivingAccount_list" :key="item.sid" :label="item.receivingAccount" :value="item.receivingAccount"></el-option> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="备注" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.remarks" clearable placeholder="" /> |
|
|
@ -130,11 +136,9 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="span-sty">业务类型</div> |
|
|
|
<div class="span-sty">银行简称</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" v-model="temp.businessTypeValue" placeholder="请选择" @change="businessTypeChange" clearable filterable> |
|
|
|
<el-option v-for="item in businessType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|
|
|
</el-select> |
|
|
|
<el-input class="addinputInfo addinputw" v-model="temp.bankShortName" clearable placeholder=""/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
@ -166,8 +170,7 @@ export default { |
|
|
|
costTitle_list: [], |
|
|
|
payment_list: [], |
|
|
|
receiveCompany_list: [], |
|
|
|
businessType_list: [], |
|
|
|
liquidationPayment: '', // 平仓款名称 |
|
|
|
receivingAccount_list: [], |
|
|
|
formobj: { |
|
|
|
sid: '', // sid |
|
|
|
costTitleKey: '', // 款项名称,数据字典 |
|
|
@ -176,6 +179,7 @@ export default { |
|
|
|
paymentType: '', // 付款方式value |
|
|
|
receiveCompany: '', // 收款单位名称 |
|
|
|
receiveCompanySid: '', // 收款单位sid |
|
|
|
bankShortName: '', // 银行简称 |
|
|
|
bank: '', // 开户行 |
|
|
|
receivingAccount: '', // 收款银行账号 |
|
|
|
payAccount: '', // 付款金额 |
|
|
@ -189,8 +193,7 @@ export default { |
|
|
|
companyName: '', // 单位名称 |
|
|
|
bank: '', // 开户行 |
|
|
|
receivingAccount: '', // 收款银行账号 |
|
|
|
businessTypeKey: '', // 业务类型key |
|
|
|
businessTypeValue: '', // 业务类型value |
|
|
|
bankShortName: '', |
|
|
|
remarks: '', // 备注 |
|
|
|
useOrgSid: '', // 分公司sid |
|
|
|
useOrgName: '' |
|
|
@ -216,19 +219,13 @@ export default { |
|
|
|
this.payment_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
typeValues({ type: 'cw_businessType' }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.businessType_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
showAdd(useOrgSid, liquidationPayment) { |
|
|
|
showAdd(useOrgSid) { |
|
|
|
this.viewTitle = '【新增】付款信息' |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.init() |
|
|
|
this.liquidationPayment = liquidationPayment |
|
|
|
this.temp.useOrgSid = useOrgSid |
|
|
|
this.selectByUseOrgSid(useOrgSid) |
|
|
|
}, |
|
|
@ -261,8 +258,14 @@ export default { |
|
|
|
const choose = this.costTitle_list.filter((item) => item.dictValue === value) |
|
|
|
if (choose !== null && choose.length > 0) { |
|
|
|
this.formobj.costTitleKey = choose[0].dictKey |
|
|
|
if (value === '银行保证金') { |
|
|
|
this.formobj.isPay = '1' |
|
|
|
} else { |
|
|
|
this.formobj.isPay = '0' |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.formobj.costTitleKey = '' |
|
|
|
this.formobj.isPay = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
paymentChange(value) { |
|
|
@ -279,10 +282,27 @@ export default { |
|
|
|
this.formobj.receiveCompanySid = choose[0].sid |
|
|
|
this.formobj.receiveCompany = choose[0].companyName |
|
|
|
this.formobj.bank = choose[0].bank |
|
|
|
this.formobj.bankShortName = choose[0].bankShortName |
|
|
|
if (this.formobj.costTitleValue === '银行保证金') { |
|
|
|
if (this.receiveCompany_list.length > 0) { |
|
|
|
this.receivingAccount_list = [] |
|
|
|
this.receiveCompany_list.forEach((e) => { |
|
|
|
if (e.companyName === this.formobj.receiveCompany && e.bank === this.formobj.bank) { |
|
|
|
this.receivingAccount_list.push({ |
|
|
|
sid: e.sid, |
|
|
|
receivingAccount: e.receivingAccount |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.receivingAccount_list = [] |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.formobj.receiveCompanySid = '' |
|
|
|
this.formobj.receiveCompany = '' |
|
|
|
this.formobj.bank = '' |
|
|
|
this.formobj.bankShortName = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
receiveCompanyAdd() { |
|
|
@ -303,18 +323,16 @@ export default { |
|
|
|
this.temp.companyName = '' // 单位名称 |
|
|
|
this.temp.bank = '' // 开户行 |
|
|
|
this.temp.receivingAccount = '' // 收款银行账号 |
|
|
|
this.temp.businessTypeKey = '' // 业务类型key |
|
|
|
this.temp.businessTypeValue = '' // 业务类型value |
|
|
|
this.temp.bankShortName = '' |
|
|
|
this.temp.remarks = '' // 备注 |
|
|
|
}, |
|
|
|
toAdd() { |
|
|
|
this.formobj.finPaymentapplyDetailsBelowEveList.push({ |
|
|
|
sid: '', // sid |
|
|
|
costTitleKey: '', // 款项名称,数据字典 |
|
|
|
costTitleValue: this.liquidationPayment, // 款项名称 |
|
|
|
detailSid: '', // 付款申请明细的明细sid |
|
|
|
openDate: '', // 融资付款开通日期 |
|
|
|
period: '', // 期数 |
|
|
|
period: '', // 期(台)数 |
|
|
|
payCompanySid: '', // 付款单位sid |
|
|
|
payCompany: '', // 付款单位名称 |
|
|
|
receiveCompany: '', // 收款单位名称 |
|
|
@ -330,14 +348,6 @@ export default { |
|
|
|
toDelete(index) { |
|
|
|
this.formobj.finPaymentapplyDetailsBelowEveList.splice(index, 1) |
|
|
|
}, |
|
|
|
businessTypeChange(value) { |
|
|
|
const choose = this.businessType_list.filter((item) => item.dictValue === value) |
|
|
|
if (choose !== null && choose.length > 0) { |
|
|
|
this.temp.businessTypeKey = choose[0].dictKey |
|
|
|
} else { |
|
|
|
this.temp.businessTypeKey = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
saveOrUpdate() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
@ -356,6 +366,7 @@ export default { |
|
|
|
receiveCompany: '', // 收款单位名称 |
|
|
|
receiveCompanySid: '', // 收款单位sid |
|
|
|
bank: '', // 开户行 |
|
|
|
bankShortName: '', // 银行简称 |
|
|
|
receivingAccount: '', // 收款银行账号 |
|
|
|
payAccount: '', // 付款金额 |
|
|
|
detailSid: '', // 付款申请明细sid |
|
|
|