解决BUG:由于增加订单产生的部分bug

This commit is contained in:
季圣华
2022-05-29 23:17:43 +08:00
parent 8f00b2c91f
commit 8b8a5c7103
7 changed files with 52 additions and 10 deletions

View File

@@ -28,6 +28,13 @@ export const BillModalMixin = {
billStatus: '0',
isCanCheck: true,
isTenant: false,
validatorRules:{
price:{
rules: [
{ pattern: /^(([0-9][0-9]*)|([0]\.\d{0,4}|[0-9][0-9]*\.\d{0,4}))$/, message: '金额格式不正确!' }
]
}
},
spans: {
labelCol1: {span: 2},
wrapperCol1: {span: 22},
@@ -112,7 +119,7 @@ export const BillModalMixin = {
if(columns[i].key === key) {
if(type){
if(key === 'snList' || key === 'batchNumber') {
if(this.prefixNo === 'LSCK' || this.prefixNo === 'CGTH' || this.prefixNo === 'XSCK' || this.prefixNo === 'QTCK') {
if(this.prefixNo === 'LSCK' || this.prefixNo === 'CGTH' || this.prefixNo === 'XSCK' || this.prefixNo === 'QTCK' || this.prefixNo === 'DBCK') {
columns[i].type = FormTypes.popupJsh //显示
} else {
columns[i].type = FormTypes.input //显示
@@ -215,7 +222,6 @@ export const BillModalMixin = {
let otherMoney = this.form.getFieldValue('otherMoney')?this.form.getFieldValue('otherMoney')-0:0
let debt = (discountLastMoney + otherMoney - allPrice).toFixed(2)
this.$nextTick(() => {
allPrice = this.prefixNo === 'CGDD' || this.prefixNo === 'XSDD'?0:allPrice
this.form.setFieldsValue({'changeAmount':allPrice, 'debt':debt})
});
},