# Conflicts:
#	lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/impl/ProductInstorServiceImpl.java
This commit is contained in:
2023-11-24 16:35:13 +08:00
28 changed files with 1432 additions and 97 deletions

View File

@@ -267,11 +267,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
}
}
}
}