From 697c405ac874da346e74df40266763370355154d Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期六, 08 三月 2025 15:40:25 +0800 Subject: [PATCH] ASN单 --- src/views/components/GeneralCrudModal.vue | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/views/components/GeneralCrudModal.vue b/src/views/components/GeneralCrudModal.vue index 3611598..7eac77c 100644 --- a/src/views/components/GeneralCrudModal.vue +++ b/src/views/components/GeneralCrudModal.vue @@ -8,6 +8,13 @@ @ok="handleSubmit" > <div> + <a-alert + v-if="showAlert" + :message="message" + :description="description" + type="info" + show-icon + /> <BasicTable @register="registerTable" @edit-change="onEditChange"> <template #toolbar> <a-button @click="openImg" type="primary"> 棰勮 </a-button> @@ -41,7 +48,9 @@ import { isNullOrEmpty, isNullOrUnDef } from '/@/utils/is'; import { CustModalParams } from '/@/api/tigerapi/model/systemModel'; import { EntityCustFunctionType } from '/@/api/tigerapi/model/basModel'; + import { Alert } from 'ant-design-vue'; + const AAlert = Alert; const { t } = useI18n(); const title = ref(''); const tableName = ref(''); @@ -53,6 +62,9 @@ const entityName = ref(''); const ctype = ref(''); const others = ref({}); + const showAlert = ref(false); + const message = ref(''); + const description = ref(''); //鍒楄〃 const ItemColumns = ref([] as BasicColumn[]); @@ -120,8 +132,9 @@ } } }); - if(isNullOrEmpty(path)){ - path = dataSource.filter((q) => isNullOrEmpty(q.WORK_ORDER) || isNullOrEmpty(q.PROD_CODE))[0].LABEL_VIEW_PATH; + if (isNullOrEmpty(path)) { + path = dataSource.filter((q) => isNullOrEmpty(q.WORK_ORDER) || isNullOrEmpty(q.PROD_CODE))[0] + .LABEL_VIEW_PATH; } createImgPreview({ imageList: [path], @@ -151,6 +164,9 @@ entityName.value = data?.entityName; ctype.value = data?.ctype; others.value = data?.others; + showAlert.value = data?.alertConfig.showAlert; + message.value = data?.alertConfig.message; + description.value = data?.alertConfig.description; // getForm().resetFields(); /* 鍔ㄦ�乮mport瀹炰綋鍚�.ts鐨勮嚜瀹氫箟鏂规硶 */ try { @@ -184,7 +200,7 @@ try { const data = cloneDeep(record.editValueRefs); console.log(data); - //TODO 姝ゅ灏嗘暟鎹彁浜ょ粰鏈嶅姟鍣ㄤ繚瀛� + const [{ CustFunc }] = isNullOrUnDef(custImport.value['default']) ? EntityCustFunction.value : custImport.value['default'](); -- Gitblit v1.9.3