src/views/mes/qc/oqc/data.ts
@@ -168,7 +168,6 @@
      componentProps: {
        placeholder: '请选择客户',
      },
      rules: 'selectRequired',
      dependencies: {
        triggerFields: ['sourceDocId'],
        componentProps: (values) => ({
@@ -203,7 +202,6 @@
          }
        },
      },
      rules: 'required',
      dependencies: {
        triggerFields: ['sourceDocId'],
        componentProps: (values) => ({
@@ -286,7 +284,6 @@
        placeholder: '请选择出货日期',
        valueFormat: 'YYYY-MM-DD',
      },
      rules: 'required',
    },
    {
      fieldName: 'inspectDate',
@@ -300,14 +297,66 @@
      rules: 'required',
    },
    {
      fieldName: 'samplingLocation',
      label: '采样地点',
      component: 'Input',
      componentProps: {
        maxlength: 100,
        placeholder: '请输入采样地点',
      },
    },
    {
      fieldName: 'certificateNo',
      label: '证书编号',
      component: 'Input',
      componentProps: {
        maxlength: 50,
        placeholder: '请输入证书编号',
      },
    },
    {
      fieldName: 'executeStandard',
      label: '执行标准',
      component: 'Input',
      componentProps: {
        maxlength: 50,
        placeholder: '如 GB/T 6027,选择质检方案后自动带入',
      },
    },
    {
      fieldName: 'auditUserId',
      label: '复核人',
      component: 'ApiSelect',
      componentProps: {
        allowClear: true,
        api: getSimpleUserList,
        labelField: 'nickname',
        placeholder: '请选择复核人',
        valueField: 'id',
      },
    },
    {
      fieldName: 'approveUserId',
      label: '审核人',
      component: 'ApiSelect',
      componentProps: {
        allowClear: true,
        api: getSimpleUserList,
        labelField: 'nickname',
        placeholder: '请选择审核人',
        valueField: 'id',
      },
    },
    {
      fieldName: 'checkResult',
      label: '检测结果',
      component: 'Select',
      componentProps: {
        allowClear: true,
        options: getDictOptions(DICT_TYPE.MES_QC_CHECK_RESULT, 'number'),
        options: getDictOptions(DICT_TYPE.MES_OQC_CHECK_RESULT, 'number'),
        placeholder: '请选择检测结果',
      },
      rules: 'selectRequired',
    },
    {
      fieldName: 'remark',
@@ -365,7 +414,7 @@
      component: 'Select',
      componentProps: {
        allowClear: true,
        options: getDictOptions(DICT_TYPE.MES_QC_CHECK_RESULT, 'number'),
        options: getDictOptions(DICT_TYPE.MES_OQC_CHECK_RESULT, 'number'),
        placeholder: '请选择检测结果',
      },
    },
@@ -395,16 +444,6 @@
      minWidth: 180,
    },
    {
      field: 'clientNickname',
      title: '客户名称',
      width: 120,
    },
    {
      field: 'batchCode',
      title: '批次号',
      width: 130,
    },
    {
      field: 'itemCode',
      title: '产品物料编码',
      width: 130,
@@ -425,11 +464,6 @@
      width: 80,
    },
    {
      field: 'outQuantity',
      title: '发货数量',
      width: 100,
    },
    {
      field: 'checkQuantity',
      title: '检测数量',
      width: 100,
@@ -445,14 +479,14 @@
      width: 110,
      cellRender: {
        name: 'CellDict',
        props: { type: DICT_TYPE.MES_QC_CHECK_RESULT },
        props: { type: DICT_TYPE.MES_OQC_CHECK_RESULT },
      },
    },
    {
      field: 'outDate',
      title: '出货日期',
      width: 120,
      formatter: 'formatDate',
      field: 'indicatorResultSummary',
      title: '检测结果(检验项)',
      minWidth: 200,
      showOverflow: 'tooltip',
    },
    {
      field: 'inspectDate',
@@ -466,6 +500,16 @@
      width: 100,
    },
    {
      field: 'auditNickname',
      title: '复核人',
      width: 100,
    },
    {
      field: 'approveNickname',
      title: '审核人',
      width: 100,
    },
    {
      field: 'status',
      title: '单据状态',
      width: 100,
@@ -476,7 +520,7 @@
    },
    {
      title: '操作',
      width: 220,
      width: 420,
      fixed: 'right',
      slots: { default: 'actions' },
    },