12/26 优化

dev_unify
wangwei 3 months ago
parent d34ea18875
commit 4c2ccd567f

@ -419,10 +419,10 @@
</el-row>
<el-row type="flex" style="margin-top: 15px">
<el-col :span="11" class="el-col">
<el-form-item label="计量单位:" prop="distributeLevel" >
<el-form-item label="配送方式:" prop="distributeLevel" >
<el-select v-model="repEditQuery.distributeLevel" size="small" style="width: 90%"
placeholder="请选择计量单位"
placeholder="请选择配送方式"
>
<el-option
v-for="item in levelUnitList"
@ -430,8 +430,8 @@
:value="item.packLevel"
:label="item.packUnit"
>
<span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>
<span style="float: left">层级:{{ item.packLevel }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.packUnit }}</span>
<span style="float: left">{{ item.packLevel }}</span>
</el-option>
</el-select>
</el-form-item>
@ -994,7 +994,16 @@ export default {
},
//89
isSpecial: false,
levelUnitList: [],
levelUnitList: [
// {
// packLevel: 0,
// packUnit: '使',
// },
// {
// packLevel: 1,
// packUnit: '',
// }
],
}
},
@ -1424,7 +1433,15 @@ export default {
levelByUuid(query)
.then((response) => {
this.loading = false
this.levelUnitList = response.data || []
this.levelUnitList = response.data.slice(0, 2)
this.levelUnitList.forEach((item) => {
if (item.packLevel === 0) {
item.packUnit = "按使用单元配送";
}
if (item.packLevel === 1) {
item.packUnit = "按最小销售单元配送";
}
});
// this.findMaxLevelObject()
})
.catch(() => {

@ -156,11 +156,11 @@
</template>
<el-row :gutter="20">
<el-col :span="11" class="el-col">
<el-form-item label="计量单位:" prop="distributeLevel" label-width="160px">
<el-form-item label="配送方式:" prop="distributeLevel" label-width="160px">
<el-select v-model="newProductData.distributeLevel" size="small" style="width: 90%"
@change="distributeLevelDiChange"
placeholder="请选择计量单位"
placeholder="请选择配送方式"
>
<el-option
v-for="item in levelUnitList"
@ -168,8 +168,8 @@
:value="item.packLevel"
:label="item.packUnit"
>
<span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>
<span style="float: left">层级:{{ item.packLevel }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.packUnit }}</span>
<span style="float: left">{{ item.packLevel }}</span>
</el-option>
</el-select>
</el-form-item>
@ -1291,8 +1291,16 @@ export default {
levelByUuid(query)
.then((response) => {
this.loading = false
this.levelUnitList = response.data || []
this.findMaxLevelObject()
this.levelUnitList = response.data.slice(0, 2)
this.levelUnitList.forEach((item) => {
if (item.packLevel === 0) {
item.packUnit = "按使用单元配送";
}
if (item.packLevel === 1) {
item.packUnit = "按最小销售单元配送";
}
});
// this.findMaxLevelObject()
})
.catch(() => {
this.loading = false

Loading…
Cancel
Save