[update] 到账开票可以输入负值;取消完全来款/完全开票不得来款/开票的限制

This commit is contained in:
zhaoxiao
2021-12-15 19:20:58 +08:00
parent f38d86b7f6
commit 1099af2f5b
7 changed files with 194 additions and 88 deletions
@@ -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('请输入到账金额')
}