feat: support filtering for all table headers in semi-inbound

Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
dxc
2026-03-02 16:28:35 +08:00
parent 465daca758
commit b377c93e1f
2 changed files with 36 additions and 4 deletions

View File

@ -621,16 +621,34 @@ const companyOptions = ref<string[]>([]) // [新增]
const advancedFilterVisible = ref(false)
const advancedConditions = ref([{ field: '', operator: '', value: '' }])
const fieldOptions = ref([
{ label: 'ID', value: 'id' },
{ label: 'BaseID', value: 'base_id' },
{ label: '所属公司', value: 'company_name' },
{ label: '名称', value: 'material_name' },
{ label: '规格型号', value: 'spec_model' },
{ label: '类别', value: 'category' },
{ label: '类型', value: 'material_type' },
{ label: '单位', value: 'unit' },
{ label: 'SKU', value: 'sku' },
{ label: '入库日期', value: 'inbound_date' },
{ label: '条码', value: 'barcode' },
{ label: '序列号', value: 'serial_number' },
{ label: '批号', value: 'batch_number' },
{ label: '状态', value: 'status' },
{ label: '质量状态', value: 'quality_status' },
{ label: '入库量', value: 'qty_inbound' },
{ label: '库存数', value: 'qty_stock' },
{ label: '可用数', value: 'qty_available' },
{ label: '库位', value: 'warehouse_location' },
{ label: 'BOM编号', value: 'bom_code' },
{ label: 'BOM版本', value: 'bom_version' },
{ label: '工单号', value: 'work_order_code' },
{ label: '原料成本', value: 'raw_material_cost' },
{ label: '单件成本', value: 'unit_total_cost' },
{ label: '总成本', value: 'total_price' },
{ label: '生产负责人', value: 'production_manager' },
{ label: '生产开始', value: 'production_start_time' },
{ label: '生产结束', value: 'production_end_time' },
])
const operatorOptions = ref([
{ label: '等于', value: '=' },