客户需求
This commit is contained in:
@ -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('')));
|
||||
|
||||
Reference in New Issue
Block a user