Commit 037b54a0 authored by linxin's avatar linxin

fixed

parent 9813631d
Pipeline #3061 canceled with stages
...@@ -36,9 +36,7 @@ ...@@ -36,9 +36,7 @@
<div class="item-right"> <div class="item-right">
<p>{{ parseFloat(e.due_amount).toFixed(2)|currency }}</p> <p>{{ parseFloat(e.due_amount).toFixed(2)|currency }}</p>
<p>{{ e.received_amount|currency }}</p> <p>{{ e.received_amount|currency }}</p>
<!-- <input v-model="e.amount" type="number" placeholder="请输入还款金额"> --> <input v-model="e.amount" type="number" placeholder="请输入还款金额">
<input :value="e.amount" type="number" placeholder="请输入还款金额">
</div> </div>
</div> </div>
</div> </div>
...@@ -73,7 +71,6 @@ export default { ...@@ -73,7 +71,6 @@ export default {
watch: { watch: {
'prj_lists': { 'prj_lists': {
handler (newName, oldName) { handler (newName, oldName) {
console.log(1)
let vm = this let vm = this
let sumL = [] let sumL = []
for (let i of this.prj_lists) { for (let i of this.prj_lists) {
...@@ -123,8 +120,8 @@ export default { ...@@ -123,8 +120,8 @@ export default {
vm.prj_lists = res.prj_lists vm.prj_lists = res.prj_lists
vm.prj_lists.forEach(i => { vm.prj_lists.forEach(i => {
i.cf_lists.forEach(j => { i.cf_lists.forEach(j => {
console.log(2) let num = (parseFloat(j.due_amount) - parseFloat(j.received_amount))
j.amount = (parseFloat(j.due_amount) - parseFloat(j.received_amount)) vm.$set(j, 'amount', num)
}) })
}) })
} else { } else {
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<div> <div>
<span>本次还款</span> <span>本次还款</span>
<section> <section>
<input v-model="detail.amount" type="text" placeholder="请输入还款金额" > <input v-model="detail.amount" type="number" placeholder="请输入还款金额" >
</section> </section>
</div> </div>
</div> </div>
...@@ -173,6 +173,12 @@ export default { ...@@ -173,6 +173,12 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.info = res.prj_lists vm.info = res.prj_lists
vm.info.forEach(i => {
i.con_lists.forEach(j => {
let num = (parseFloat(j.due_amount) - parseFloat(j.received_amount))
vm.$set(j, 'amount', num)
})
})
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -366,7 +372,7 @@ export default { ...@@ -366,7 +372,7 @@ export default {
flex: 1; flex: 1;
} }
input { input {
text-align: center; text-align: left;
width: 96px; width: 96px;
height: 28px; height: 28px;
border-bottom: 1px solid #00469c; border-bottom: 1px solid #00469c;
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
slot="content" slot="content"
ref="myTestarea" ref="myTestarea"
v-model="invoiceInfo.invoice_adds" v-model="invoiceInfo.invoice_adds"
cols="30" rows="1" type="text" placeholder="请输入发票地址" cols="22" rows="1" type="text" placeholder="请输入发票地址"
@input="addRows(invoiceInfo.invoice_adds)" /> @input="addRows(invoiceInfo.invoice_adds)" />
</item> </item>
<item> <item>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
slot="content" slot="content"
ref="myTestareaLive" ref="myTestareaLive"
v-model="invoiceInfo.open_bank" v-model="invoiceInfo.open_bank"
cols="30" cols="22"
rows="1" rows="1"
type="text" type="text"
placeholder="请输入发票开户行及账号" placeholder="请输入发票开户行及账号"
...@@ -102,6 +102,8 @@ export default { ...@@ -102,6 +102,8 @@ export default {
created () { created () {
this.getInvoiceType() this.getInvoiceType()
this.getTaxpayer() this.getTaxpayer()
this.addRows(this.invoiceInfo.invoice_adds)
this.addRowsLive(this.invoiceInfo.open_bank)
}, },
updated () { updated () {
this.sendList() this.sendList()
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
ref="myTestarea" ref="myTestarea"
v-model="baseInfo.address_on_resident_booklit" v-model="baseInfo.address_on_resident_booklit"
readonly readonly
cols="30" cols="22"
rows="1" rows="1"
placeholder="上传身份证自动填充" placeholder="上传身份证自动填充"
class="auto" class="auto"
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
ref="myTestareaLive" ref="myTestareaLive"
v-model="baseInfo.living_address" v-model="baseInfo.living_address"
rows="1" rows="1"
cols="30" cols="22"
placeholder="请输入联系地址" placeholder="请输入联系地址"
@input="addRowsLive(baseInfo.living_address)" @input="addRowsLive(baseInfo.living_address)"
/> />
...@@ -564,6 +564,8 @@ export default { ...@@ -564,6 +564,8 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.baseInfo, res.info) Object.assign(vm.baseInfo, res.info)
vm.from = true vm.from = true
vm.addRows(vm.baseInfo.address_on_resident_booklit)
vm.addRowsLive(vm.baseInfo.living_address)
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
slot="content" slot="content"
ref="myTestarea" ref="myTestarea"
v-model="baseInfo.registered_place" v-model="baseInfo.registered_place"
cols="30" cols="22"
rows="1" rows="1"
readonly readonly
class="auto" class="auto"
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
slot="content" slot="content"
ref="myTestareaLive" ref="myTestareaLive"
v-model="baseInfo.business_address" v-model="baseInfo.business_address"
cols="34" cols="22"
rows="1" rows="1"
placeholder="请输入经营地址" placeholder="请输入经营地址"
@input="addRowsLive(baseInfo.business_address)" @input="addRowsLive(baseInfo.business_address)"
...@@ -1308,6 +1308,8 @@ export default { ...@@ -1308,6 +1308,8 @@ export default {
vm.legal_personMsg.id_card_date_from = res.info.id_card_date_from vm.legal_personMsg.id_card_date_from = res.info.id_card_date_from
vm.legal_personMsg.id_card_date_to = res.info.id_card_date_to vm.legal_personMsg.id_card_date_to = res.info.id_card_date_to
Object.assign(vm.saveInfo, res.info) Object.assign(vm.saveInfo, res.info)
vm.addRows(vm.baseInfo.registered_place)
vm.addRowsLive(vm.baseInfo.business_address)
if (vm.baseInfo.auth_flag === '是') { if (vm.baseInfo.auth_flag === '是') {
vm.flag = false vm.flag = false
} else if (vm.baseInfo.auth_flag === '否') { } else if (vm.baseInfo.auth_flag === '否') {
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<item> <item>
<div slot="name" class="font-color">发票地址</div> <div slot="name" class="font-color">发票地址</div>
<textarea <textarea
slot="content" ref="myTestarea" v-model="invoiceInfo.invoice_adds" cols="30" slot="content" ref="myTestarea" v-model="invoiceInfo.invoice_adds" cols="22"
rows="1" rows="1"
type="text" placeholder="请输入发票地址" @input="addRows(invoiceInfo.invoice_adds)" /> type="text" placeholder="请输入发票地址" @input="addRows(invoiceInfo.invoice_adds)" />
</item> </item>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
slot="content" slot="content"
ref="myTestareaLive" ref="myTestareaLive"
v-model="invoiceInfo.open_bank" v-model="invoiceInfo.open_bank"
cols="30" cols="22"
rows="1" rows="1"
type="text" type="text"
placeholder="请输入发票开户行" placeholder="请输入发票开户行"
...@@ -125,6 +125,8 @@ export default { ...@@ -125,6 +125,8 @@ export default {
created () { created () {
this.getInvoiceType() this.getInvoiceType()
this.getTaxpayer() this.getTaxpayer()
this.addRows(this.invoiceInfo.invoice_adds)
this.addRowsLive(this.invoiceInfo.open_bank)
}, },
updated () { updated () {
this.sendList() this.sendList()
......
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