src/views/mes/pro/route/data.ts
@@ -220,6 +220,17 @@
      rules: 'selectRequired',
    },
    {
      fieldName: 'outputItemIds',
      label: '本工序产出',
      component: markRaw(MdItemSelect),
      componentProps: {
        multiple: true,
        productIds,
        placeholder: '可留空;形成半成品时选择,末道工序选择全部成品',
      },
      formItemClass: 'col-span-2',
    },
    {
      fieldName: 'linkType',
      label: '与下道工序关系',
      component: 'Select',
@@ -256,15 +267,14 @@
      rules: z.boolean().default(false),
    },
    {
      fieldName: 'outputItemIds',
      label: '产出产品',
      component: markRaw(MdItemSelect),
      fieldName: 'backflushFlag',
      label: '报工自动扣料',
      component: 'Switch',
      componentProps: {
        multiple: true,
        productIds,
        placeholder: '中间工序选半成品,末道工序选全部成品',
        checkedChildren: '自动',
        unCheckedChildren: '手动',
      },
      formItemClass: 'col-span-2',
      rules: z.boolean().default(false),
    },
    {
      fieldName: 'prepareTime',
@@ -308,6 +318,7 @@
    { field: 'sort', title: '序号', width: 70, align: 'center', fixed: 'left' },
    { field: 'processCode', title: '工序编码', width: 140, fixed: 'left' },
    { field: 'processName', title: '工序名称', width: 140, fixed: 'left' },
    { field: 'outputItemNames', title: '本工序产出', minWidth: 190 },
    { field: 'nextProcessName', title: '下一道工序', width: 140 },
    {
      field: 'linkType',
@@ -336,9 +347,17 @@
        props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
      },
    },
    {
      field: 'backflushFlag',
      title: '自动扣料',
      width: 100,
      cellRender: {
        name: 'CellDict',
        props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
      },
    },
    { field: 'prepareTime', title: '准备时间(分)', width: 110 },
    { field: 'waitTime', title: '等待时间(分)', width: 110 },
    { field: 'outputItemNames', title: '产出产品', minWidth: 180 },
    {
      field: 'colorCode',
      title: '甘特图颜色',
@@ -358,14 +377,14 @@
/** 工艺路线产品列表字段 */
export function useRouteProductGridColumns(): VxeTableGridOptions<MesProRouteProductApi.RouteProduct>['columns'] {
  return [
    { field: 'itemCode', title: '产品物料编码', width: 150 },
    { field: 'itemName', title: '产品物料名称', width: 150 },
    { field: 'itemCode', title: '产出编码', width: 150 },
    { field: 'itemName', title: '产出名称', width: 150 },
    { field: 'specification', title: '规格型号', width: 150 },
    { field: 'unitName', title: '单位', width: 80 },
    { field: 'quantity', title: '生产数量', width: 100 },
    { field: 'warehouseName', title: '报工仓库', width: 130 },
    { field: 'locationName', title: '库区', width: 120 },
    { field: 'areaName', title: '库位', width: 120 },
    { field: 'warehouseName', title: '报工入库仓', width: 140 },
    { field: 'locationName', title: '入库库区', width: 120 },
    { field: 'areaName', title: '入库库位', width: 120 },
    {
      field: 'productionTime',
      title: '生产用时',
@@ -385,8 +404,8 @@
/** 工艺路线产品 BOM 列表字段 */
export function useRouteProductBomGridColumns(): VxeTableGridOptions<MesProRouteProductBomApi.RouteProductBom>['columns'] {
  return [
    { field: 'itemCode', title: 'BOM 物料编码', width: 150 },
    { field: 'itemName', title: 'BOM 物料名称', width: 150 },
    { field: 'itemCode', title: '投料编码', width: 150 },
    { field: 'itemName', title: '投料名称', width: 150 },
    { field: 'specification', title: '规格型号', width: 150 },
    { field: 'unitName', title: '单位', width: 80 },
    { field: 'quantity', title: '用料比例', width: 100 },