Commit 49678a0e authored by 我在何方's avatar 我在何方

收款单银行明细优化

parent c8c3e149
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item :label="$t('收款账户')" prop="accountNo"> <el-form-item :label="$t('收款账户')" prop="accountNo">
<span>{{ addForm.accountNo+'('+addForm.accountName+')' }}</span> <span>{{ addForm.accountNo}}{{'('+addForm.accountName+')' }}</span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('实收日期')" prop="amountDate"> <el-form-item :label="$t('实收日期')" prop="amountDate">
<span>{{ addForm.amountDate }}</span> <span>{{ addForm.amountDate }}</span>
...@@ -114,11 +114,12 @@ ...@@ -114,11 +114,12 @@
this.detailed = res.data.map(v => ({ this.detailed = res.data.map(v => ({
...v, ...v,
amountDate: this.parseTime(v.amountDate, '{y}-{m}-{d}'), amountDate: this.parseTime(v.amountDate, '{y}-{m}-{d}'),
accountNo: +v.accountNo,
rate:parseFloat(v.rate).toFixed(2), rate:parseFloat(v.rate).toFixed(2),
attr: v.attr ? v.attr.split(',').map(t => ({ name: t.slice(t.lastIndexOf('/') + 1), url: t })) : [] attr: v.attr ? v.attr.split(',').map(t => ({ name: t.slice(t.lastIndexOf('/') + 1), url: t })) : []
})) }))
console.log(this.detailed)
this.addForm = this.detailed.find((itt) => itt.id == this.bankId); this.addForm = this.detailed.find((itt) => itt.id == this.bankId);
console.log(this.addForm)
this.handleAddReceiptItem() this.handleAddReceiptItem()
}) })
}, },
......
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
<el-select v-if="!isView" v-model="addForm.accountId" :placeholder="$t('请选择收款账户')" style="width: 220px" @change="accountChange"> <el-select v-if="!isView" v-model="addForm.accountId" :placeholder="$t('请选择收款账户')" style="width: 220px" @change="accountChange">
<el-option v-for="item in bankData" :key="item.id" :label="item.baAccountName + '(' + item.baAccountNum + ')'" :value="item.id" /> <el-option v-for="item in bankData" :key="item.id" :label="item.baAccountName + '(' + item.baAccountNum + ')'" :value="item.id" />
</el-select> </el-select>
<span v-else>{{ addForm.accountNo+'('+addForm.accountName+')' }}</span> <span v-else>{{ addForm.accountNo}}{{'('+addForm.accountName+')' }}</span>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('实收日期')" :label="$t('实收日期')"
...@@ -1119,7 +1119,6 @@ export default { ...@@ -1119,7 +1119,6 @@ export default {
this.detailed = res.data.map(v => ({ this.detailed = res.data.map(v => ({
...v, ...v,
amountDate: this.parseTime(v.amountDate, '{y}-{m}-{d}'), amountDate: this.parseTime(v.amountDate, '{y}-{m}-{d}'),
accountNo: +v.accountNo,
rate:parseFloat(v.rate), rate:parseFloat(v.rate),
attr: v.attr ? v.attr.split(',').map(t => ({ name: t.slice(t.lastIndexOf('/') + 1), url: t })) : [] attr: v.attr ? v.attr.split(',').map(t => ({ name: t.slice(t.lastIndexOf('/') + 1), url: t })) : []
})) }))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment