From 3a997fd45f9aaf8be5e5857c1e96b4a5528bb996 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Mon, 11 Nov 2024 19:38:42 +0800 Subject: [PATCH] =?UTF-8?q?11/11=20=20=E5=8F=96=E6=B6=88=E8=8D=AF=E5=93=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E6=9C=80=E5=A4=A7=E9=87=87?= =?UTF-8?q?=E9=9B=86=E5=B1=82=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/product/drug/drugAdd.vue | 46 ++++++++++++------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/views/basic/product/drug/drugAdd.vue b/src/views/basic/product/drug/drugAdd.vue index 9a81c9fe..687e89cd 100644 --- a/src/views/basic/product/drug/drugAdd.vue +++ b/src/views/basic/product/drug/drugAdd.vue @@ -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){ - //获取获取第一个 如果packUnit且为null的话就设置第二个 - 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){ + // //获取获取第一个 如果packUnit且为null的话就设置第二个 + // let levelUnit = this.levelUnitList[0]; + // if (isBlank(levelUnit.packUnit)){ + // levelUnit = this.levelUnitList[1] + // } + // this.newProductData.useMaxLevel = levelUnit.packLevel + // } + // }, //层级保存 levelSave(row) { this.editRowSwitch = false