[update] 到账开票可以输入负值;取消完全来款/完全开票不得来款/开票的限制
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
v-decorator="['invoiceAmount',validatorRules.invoiceAmount]"
|
||||
:maxLength='50'
|
||||
@blur="addZero"
|
||||
@change="e => e.target.value = (e.target.value.replace(/[^0-9.]/g, '')).trim()"></a-input>
|
||||
@change="e => e.target.value = (e.target.value.replace(/[^0-9.-]/g, '')).trim()"></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="开票号" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input placeholder="请输入开票号"
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
type: String,
|
||||
required: false,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
})
|
||||
},
|
||||
getMailContactPostalCode() {
|
||||
getContactsById({id: this.mailContactsId}).then(res => {
|
||||
getContactsById({ id: this.mailContactsId }).then(res => {
|
||||
this.postalCode = res.result.postalCode
|
||||
this.contactAddress = res.result.contactAddress
|
||||
})
|
||||
@@ -208,9 +208,8 @@ export default {
|
||||
if (value) {
|
||||
if (money(value)) {
|
||||
callback()
|
||||
return
|
||||
}
|
||||
callback('请输入合法的金额数字,最多2位小数,10位正数')
|
||||
callback('请输入合法的金额数字,最多2位小数,10位整数')
|
||||
}
|
||||
callback('请输入到账金额')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user