半成品成品价格于BOM表关联

This commit is contained in:
dxc
2026-03-03 11:11:28 +08:00
parent d095a370ad
commit 051f0a05e5

View File

@ -634,7 +634,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import {ref, reactive, onMounted, watch} from 'vue' import {ref, reactive, onMounted, watch, computed} from 'vue'
import {Plus, Setting, Refresh, Search, Lock, Box, House, InfoFilled, Link, Printer, Camera, Delete, Picture} from '@element-plus/icons-vue' import {Plus, Setting, Refresh, Search, Lock, Box, House, InfoFilled, Link, Printer, Camera, Delete, Picture} from '@element-plus/icons-vue'
import {ElMessage, ElMessageBox, ElLoading} from 'element-plus' import {ElMessage, ElMessageBox, ElLoading} from 'element-plus'
import dayjs from 'dayjs' import dayjs from 'dayjs'
@ -784,34 +784,38 @@ const inspection_report_url = ref('')
const advancedFilterVisible = ref(false) const advancedFilterVisible = ref(false)
const advancedConditions = ref([{ field: '', operator: '', value: '' }]) const advancedConditions = ref([{ field: '', operator: '', value: '' }])
const fieldOptions = ref([ const fieldOptions = computed(() => {
{ value: 'company_name', label: '所属公司' }, const allFields = [
{ value: 'material_name', label: '名称' }, { value: 'company_name', label: '所属公司', perm: 'inbound_buy:company_name' },
{ value: 'material_type', label: '类型' }, { value: 'material_name', label: '名称', perm: 'inbound_buy:material_name' },
{ value: 'category', label: '类' }, { value: 'material_type', label: '类型', perm: 'inbound_buy:material_type' },
{ value: 'spec_model', label: '规格型号' }, { value: 'category', label: '类别', perm: 'inbound_buy:category' },
{ value: 'unit', label: '单位' }, { value: 'spec_model', label: '规格型号', perm: 'inbound_buy:spec_model' },
{ value: 'sku', label: 'SKU' }, { value: 'unit', label: '单位', perm: 'inbound_buy:unit' },
{ value: 'barcode', label: '条码' }, { value: 'sku', label: 'SKU', perm: 'inbound_buy:sku' },
{ value: 'batch_number', label: '批号' }, { value: 'barcode', label: '条码', perm: 'inbound_buy:barcode' },
{ value: 'serial_number', label: '序列号' }, { value: 'batch_number', label: '批号', perm: 'inbound_buy:sn_bn' },
{ value: 'warehouse_location', label: '库位' }, { value: 'serial_number', label: '序列号', perm: 'inbound_buy:sn_bn' },
{ value: 'status', label: '状态' }, { value: 'warehouse_location', label: '库位', perm: 'inbound_buy:warehouse_loc' },
{ value: 'inspection_status', label: '到检状态' }, { value: 'status', label: '状态', perm: 'inbound_buy:status' },
{ value: 'qty_inbound', label: '入库量' }, { value: 'inspection_status', label: '到检状态', perm: 'inbound_buy:inspection_status' },
{ value: 'qty_stock', label: '库存数' }, { value: 'qty_inbound', label: '入库量', perm: 'inbound_buy:qty_inbound' },
{ value: 'qty_available', label: '可用数' }, { value: 'qty_stock', label: '库存数', perm: 'inbound_buy:qty_stock' },
{ value: 'unit_price', label: '不含税单价' }, { value: 'qty_available', label: '可用数', perm: 'inbound_buy:qty_available' },
{ value: 'total_price', label: '不含税总价' }, { value: 'unit_price', label: '不含税单价', perm: 'inbound_buy:unit_price' },
{ value: 'tax_rate', label: '税率' }, { value: 'total_price', label: '不含税总价', perm: 'inbound_buy:total_price' },
{ value: 'currency', label: '币种' }, { value: 'tax_rate', label: '税率', perm: 'inbound_buy:tax_rate' },
{ value: 'exchange_rate', label: '汇率' }, { value: 'currency', label: '币种', perm: 'inbound_buy:currency' },
{ value: 'supplier_name', label: '供应商' }, { value: 'exchange_rate', label: '汇率', perm: 'inbound_buy:exchange_rate' },
{ value: 'purchaser', label: '采购人' }, { value: 'supplier_name', label: '供应商', perm: 'inbound_buy:supplier_name' },
{ value: 'purchaser_email', label: '采购邮箱' }, { value: 'purchaser', label: '采购人', perm: 'inbound_buy:purchaser' },
{ value: 'source_link', label: '原始链接' }, { value: 'purchaser_email', label: '采购邮箱', perm: 'inbound_buy:purchaser_email' },
{ value: 'detail_link', label: '详情链接' }, { value: 'source_link', label: '原始链接', perm: 'inbound_buy:source_link' },
]) { value: 'detail_link', label: '详情链接', perm: 'inbound_buy:detail_link' }
]
// 根据用户权限过滤
return allFields.filter(item => userStore.hasPermission(item.perm))
})
const operatorOptions = ref([ const operatorOptions = ref([
{ value: 'eq', label: '等于' }, { value: 'eq', label: '等于' },
{ value: 'ne', label: '不等于' }, { value: 'ne', label: '不等于' },