客户需求

This commit is contained in:
‘huanghaiixia’
2026-01-16 17:28:00 +08:00
parent 620d3be942
commit e97ba3bcfb
20 changed files with 3222 additions and 239 deletions

View File

@ -12,7 +12,7 @@
import { BasicTable, useTable, FormSchema, BasicColumn, TableAction } from '/@/components/Table';
import { useMessage } from '/@/hooks/web/useMessage';
import { useI18n } from '/@/hooks/web/useI18n';
import { getLngSupplierPage } from '/@/api/supplier/Supplier';
import { getLngPngApproRecords} from '/@/api/dayPlan/PngAppro';
const { t } = useI18n();
const columns: BasicColumn[] = [
@ -24,16 +24,18 @@
const emit = defineEmits(['success', 'register']);
const isUpdate = ref(true);
const id = ref('')
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
setModalProps({ confirmLoading: false });
isUpdate.value = !!data?.isUpdate;
id.value = data.id
});
const [registerTable, {}] = useTable({
title: t('审批状态'),
api: getLngSupplierPage,
api: getLngPngApproRecords,
columns,
formConfig: {
rowProps: {
@ -51,7 +53,7 @@
showTableSetting: false,
immediate: true, // 设置为不立即调用
beforeFetch: (params) => {
return { ...params,};
return (id.value);
},
});
const getTitle = computed(() => (!unref(isUpdate) ? t('审批状态') : t('')));