制造成本分析bug修改

This commit is contained in:
2026-04-21 09:40:57 +08:00
parent 835d4efd5b
commit f6aa736bff
19 changed files with 112 additions and 39 deletions

View File

@@ -35,7 +35,7 @@
<div class="dropdown-options" v-if="isDropdownShow">
<div class="dropdown-option" v-for="(item, index) in profitOptions" :key="index"
@click.stop="selectProfit(item)">
{{ item }}
{{ item.label }}
</div>
</div>
</div>
@@ -62,15 +62,15 @@ export default {
isDropdownShow: false,
selectedProfit: '原片原料', // 选中的名称初始为null
profitOptions: [
'原片原料',
'氢氧化铝',
'碎玻璃',
'复合澄清剂',
'助熔剂',
'白云石',
'石灰石',
'硅砂',
'纯碱'
{label:'原片原料',value:'原片原料'},
{label:'氢氧化铝',value:'氢氧化铝'},
{label:'碎玻璃',value:'碎玻璃(外购)'},
{label:'复合澄清剂',value:'复合澄清剂'},
{label:'助熔剂',value:'助熔剂'},
{label:'白云石',value:'白云石'},
{label:'石灰石',value:'石灰石'},
{label:'硅砂',value:'硅砂'},
{label:'纯碱',value:'纯碱'}
]
};
},
@@ -256,9 +256,9 @@ export default {
},
methods: {
selectProfit(item) {
this.selectedProfit = item;
this.selectedProfit = item.label;
this.isDropdownShow = false;
this.$emit('handleGetItemData', item)
this.$emit('handleGetItemData', item.value);
}
},
};