Commit c09c8a70 authored by 我在何方's avatar 我在何方

收款单修复2.2

parent 85c662e9
...@@ -1522,6 +1522,7 @@ export default { ...@@ -1522,6 +1522,7 @@ export default {
} }
this.saveBtnLoading = true this.saveBtnLoading = true
params.receiptAccountList.splice(params.receiptAccountList.length - 1,1) params.receiptAccountList.splice(params.receiptAccountList.length - 1,1)
if (this.id && this.id != 0) { if (this.id && this.id != 0) {
// if(params.state==0) params.state = 1 // if(params.state==0) params.state = 1
params.updateType = 1 params.updateType = 1
...@@ -1587,7 +1588,11 @@ export default { ...@@ -1587,7 +1588,11 @@ export default {
}, },
//清空数据 //清空数据
removeData(){ removeData(){
console.log(this.form) this.id = 0
this.flag = false
this.discountForm = {
author:''
}
this.$refs.customer.reset() this.$refs.customer.reset()
this.list = [] this.list = []
for(var i in this.form){ for(var i in this.form){
......
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
<template slot="label"> <template slot="label">
{{ $t('兑核销基准币种金额') }}{{getCurrencyLabel(showCurrencyId)}} {{ $t('兑核销基准币种金额') }}{{getCurrencyLabel(showCurrencyId)}}
</template> </template>
<span>{{ addForm.writeOffAmount?parseFloat(addForm.writeOffAmount).toFixed(6):'' }}</span> <span>{{ addForm.writeOffAmount?parseFloat(addForm.writeOffAmount).toFixed(2):'' }}</span>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('水单附件')" :label="$t('水单附件')"
...@@ -838,7 +838,7 @@ export default { ...@@ -838,7 +838,7 @@ export default {
this.addForm.amount = '' this.addForm.amount = ''
this.$modal.msgError(this.$t('输入金额不对')); this.$modal.msgError(this.$t('输入金额不对'));
}else{ }else{
if(this.addForm.amount.indexOf('.')>-1){ if(this.addForm&&this.addForm.amount&&this.addForm.amount.indexOf('.')>-1){
pointArr = this.addForm.amount.split('.') pointArr = this.addForm.amount.split('.')
if(pointArr.length>1&&pointArr[1]){ if(pointArr.length>1&&pointArr[1]){
this.addForm.amount =Math.round(this.addForm.amount*100)/100 this.addForm.amount =Math.round(this.addForm.amount*100)/100
...@@ -1117,7 +1117,7 @@ export default { ...@@ -1117,7 +1117,7 @@ export default {
...v, ...v,
amountDate: this.parseTime(v.amountDate, '{y}-{m}-{d}'), amountDate: this.parseTime(v.amountDate, '{y}-{m}-{d}'),
accountNo: +v.accountNo, accountNo: +v.accountNo,
rate:parseFloat(v.rate).toFixed(6), 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 })) : []
})) }))
// this.calculation() // this.calculation()
......
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