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

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

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

Loading…
Cancel
Save