11/11 取消药品设置默认最大采集层级

20240912_adapter
wangwei 5 months ago
parent 2046d51ec5
commit 3a997fd45f

@ -787,15 +787,15 @@ export default {
distributeLevel: [ distributeLevel: [
{required: true, message: '请选择计量单位', trigger: 'blur'} {required: true, message: '请选择计量单位', trigger: 'blur'}
], ],
distributeMaxLevel: [ // distributeMaxLevel: [
{required: true, message: '请选择允许采集的最大层级', trigger: 'blur'} // {required: true, message: '', trigger: 'blur'}
], // ],
useLevel: [ useLevel: [
{required: true, message: '请选择计量单位', trigger: 'blur'} {required: true, message: '请选择计量单位', trigger: 'blur'}
], ],
useMaxLevel: [ // useMaxLevel: [
{required: true, message: '请选择允许采集的最大层级', trigger: 'blur'} // {required: true, message: '', trigger: 'blur'}
], // ],
}, },
detailList: [ detailList: [
// //
@ -951,7 +951,7 @@ export default {
} }
}) })
} else { } else {
this.setDefaultLevel() // this.setDefaultLevel()
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (!valid) { if (!valid) {
return this.$message.error('请补充必要数据') return this.$message.error('请补充必要数据')
@ -984,22 +984,22 @@ export default {
}, },
// //
setDefaultLevel(){ // setDefaultLevel(){
// // //
if (this.newProductData.distributeMaxLevel == null){ // if (this.newProductData.distributeMaxLevel == null){
let levelUnit = this.levelUnitList[this.levelUnitList.length - 1]; // let levelUnit = this.levelUnitList[this.levelUnitList.length - 1];
this.newProductData.distributeMaxLevel = levelUnit.packLevel // this.newProductData.distributeMaxLevel = levelUnit.packLevel
} // }
// 使 // // 使
if (this.newProductData.useMaxLevel == null){ // if (this.newProductData.useMaxLevel == null){
// packUnitnull // // packUnitnull
let levelUnit = this.levelUnitList[0]; // let levelUnit = this.levelUnitList[0];
if (isBlank(levelUnit.packUnit)){ // if (isBlank(levelUnit.packUnit)){
levelUnit = this.levelUnitList[1] // levelUnit = this.levelUnitList[1]
} // }
this.newProductData.useMaxLevel = levelUnit.packLevel // this.newProductData.useMaxLevel = levelUnit.packLevel
} // }
}, // },
// //
levelSave(row) { levelSave(row) {
this.editRowSwitch = false this.editRowSwitch = false

Loading…
Cancel
Save