diff --git a/src/views/basic/product/productEdit.vue b/src/views/basic/product/productEdit.vue index 1de7d5e4..52c1ac57 100644 --- a/src/views/basic/product/productEdit.vue +++ b/src/views/basic/product/productEdit.vue @@ -54,6 +54,95 @@ + + + + + + + + + 单位:{{ item.packUnit }} + 层级:{{ item.packLevel }} + + + + + + + + + + 单位:{{ item.packUnit }} + 层级:{{ item.packLevel }} + + + + + + + + + + + + + + 单位:{{ item.packUnit }} + 层级:{{ item.packLevel }} + + + + + + + + + + 单位:{{ item.packUnit }} + 层级:{{ item.packLevel }} + + + + + + @@ -779,82 +868,80 @@ - -
+ + + + + - - - - - - {{ item.nameCode }} - {{ item.packLevel }} - - - - - - - - - {{ item.nameCode }} - {{ item.packLevel }} - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
-
+ + +
{ + this.loading = false + this.levelUnitList = response.data || [] + this.findMaxLevelObject() + }) + .catch(() => { + this.loading = false + this.levelUnitList = [] + }) + }, + findMaxLevelObject() { + this.maxLevel = 1; + for (const obj of this.levelUnitList) { + if (obj.packLevel > this.maxLevel) { + this.maxLevel = Number(obj.packLevel); + } + } + }, }, directives: { 'debounce-input': { @@ -1442,6 +1564,13 @@ export default { width: 500px; } +.form-title2 { + font-size: 16px; + font-family: Noto Sans SC; + font-weight: bold; + color: #303133; +} + .el-divider { margin: 6px 0px 8px 0px; background: 0 0;