add:成品报废审核

This commit is contained in:
2023-11-16 09:43:47 +08:00
parent f826b0ba77
commit 87e99fadd6
11 changed files with 308 additions and 5 deletions

View File

@@ -262,11 +262,30 @@ export default {
// this.crud.resetQuery(true)
},
moneySubmit() {
var isTest = this.isTest(this.formMst.order_number)
if (isTest) {
if (this.formMst.car_type === '') {
this.crud.notify('请选择车型!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
}
checkoutbill.moneySubmit(this.formMst).then(res => {
this.crud.notify('保存成功!', CRUD.NOTIFICATION_TYPE.INFO)
this.crud.toQuery()
this.close()
})
},
isTest(val) {
// 包含至少一个数字和字母正则
const regPost1 = /^(?![^a-zA-Z]+$)(?!\D+$)/g
// 包含至少一个汉字正则
const regPost2 = /.*[\u4e00-\u9fa5]+.*$/g
if (regPost1.test(val) && regPost2.test(val)) {
return true
} else {
return false
}
}
}
}