gaoluyang
5 天以前 cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a
src/views/mes/qc/indicatorresult/components/list.vue
@@ -2,7 +2,7 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MesQcIndicatorResultApi } from '#/api/mes/qc/indicatorresult';
import { useVbenModal } from '../../../../../packages/effects/common-ui/src';
import { useVbenModal } from '@vben/common-ui';
import { message } from 'ant-design-vue';
@@ -48,6 +48,18 @@
  formModalApi
    .setData({
      formType: 'update',
      id: row.id,
      qcId: props.qcId,
      qcType: props.qcType,
    })
    .open();
}
/** 查看检测结果,质检完成后仍可打开只读详情。 */
function handleDetail(row: MesQcIndicatorResultApi.IndicatorResult) {
  formModalApi
    .setData({
      formType: 'detail',
      id: row.id,
      qcId: props.qcId,
      qcType: props.qcType,
@@ -120,6 +132,12 @@
        <TableAction
          :actions="[
            {
              label: '查看详情',
              type: 'link',
              icon: ACTION_ICON.VIEW,
              onClick: handleDetail.bind(null, row),
            },
            {
              label: $t('common.edit'),
              type: 'link',
              icon: ACTION_ICON.EDIT,