|
|
|
@ -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(() => {
|
|
|
|
|