Commit 3364b41b authored by 邓春圆's avatar 邓春圆

渠道泡重比例

parent 2b4f2e4c
......@@ -96,7 +96,7 @@
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="渠道泡重比例" prop="attrId">
<el-input style="width: 200px" >
<el-input v-model.number="form.bubbleWeightRatio" style="width: 200px" >
<template #suffix>
<span>%</span>
</template>
......@@ -198,6 +198,7 @@ export default {
return {
dialogVisible:false,
form: {
bubbleWeightRatio:100,
channelCostCreateReqVO:{},
channelPackagingList:[],
attrId:[],
......@@ -261,6 +262,9 @@ export default {
if(this.form.warehouseIds.length){
this.warehouseIdsArr = this.form.warehouseIds.split(',')?.filter(item => !!item)
}
if(this.form.bubbleWeightRatio){
this.form.bubbleWeightRatio = this.form.bubbleWeightRatio * 100
}
});
}else {
this.addPackaging()
......@@ -376,6 +380,7 @@ export default {
form.channelPackagingList.forEach(item =>{
item.packagingTypes = item.packagingTypes.join(',')
})
form.bubbleWeightRatio = form.bubbleWeightRatio / 100
// 修改的提交
if (this.form.channelId != null) {
updateChannel(form).then((response) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment