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

渠道泡重比例

parent 2b4f2e4c
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="渠道泡重比例" prop="attrId"> <el-form-item label="渠道泡重比例" prop="attrId">
<el-input style="width: 200px" > <el-input v-model.number="form.bubbleWeightRatio" style="width: 200px" >
<template #suffix> <template #suffix>
<span>%</span> <span>%</span>
</template> </template>
...@@ -198,6 +198,7 @@ export default { ...@@ -198,6 +198,7 @@ export default {
return { return {
dialogVisible:false, dialogVisible:false,
form: { form: {
bubbleWeightRatio:100,
channelCostCreateReqVO:{}, channelCostCreateReqVO:{},
channelPackagingList:[], channelPackagingList:[],
attrId:[], attrId:[],
...@@ -261,6 +262,9 @@ export default { ...@@ -261,6 +262,9 @@ export default {
if(this.form.warehouseIds.length){ if(this.form.warehouseIds.length){
this.warehouseIdsArr = this.form.warehouseIds.split(',')?.filter(item => !!item) this.warehouseIdsArr = this.form.warehouseIds.split(',')?.filter(item => !!item)
} }
if(this.form.bubbleWeightRatio){
this.form.bubbleWeightRatio = this.form.bubbleWeightRatio * 100
}
}); });
}else { }else {
this.addPackaging() this.addPackaging()
...@@ -376,6 +380,7 @@ export default { ...@@ -376,6 +380,7 @@ export default {
form.channelPackagingList.forEach(item =>{ form.channelPackagingList.forEach(item =>{
item.packagingTypes = item.packagingTypes.join(',') item.packagingTypes = item.packagingTypes.join(',')
}) })
form.bubbleWeightRatio = form.bubbleWeightRatio / 100
// 修改的提交 // 修改的提交
if (this.form.channelId != null) { if (this.form.channelId != null) {
updateChannel(form).then((response) => { 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