From d1c7735f7a5b7eb8aabb1438bb0de24431dcb8ec Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Wed, 6 Aug 2025 15:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E6=96=99=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Drawer/src/BasicDrawer.vue | 7 +- .../Drawer/src/components/DrawerFooter.vue | 2 +- .../ConfigMaterial/ConfigMaterialInfo.api.ts | 5 + .../ConfigMaterial/ConfigMaterialInfoList.vue | 55 +++-- .../components/ConfigMaterialInfoForm.vue | 12 +- .../ConfigMaterial/components/QianyiForm.vue | 196 +++++++++++++++++ .../ConfigMaterial/components/QianyiModal.vue | 83 ++++++++ .../components/WlqianyiForm.vue | 201 ++++++++++++++++++ .../components/WlqianyiModal.vue | 82 +++++++ .../components/ConfigSuppliersInfoModal.vue | 1 + 10 files changed, 616 insertions(+), 28 deletions(-) create mode 100644 src/views/invoicing/ConfigMaterial/components/QianyiForm.vue create mode 100644 src/views/invoicing/ConfigMaterial/components/QianyiModal.vue create mode 100644 src/views/invoicing/ConfigMaterial/components/WlqianyiForm.vue create mode 100644 src/views/invoicing/ConfigMaterial/components/WlqianyiModal.vue diff --git a/src/components/Drawer/src/BasicDrawer.vue b/src/components/Drawer/src/BasicDrawer.vue index 3d3e027..06a71cc 100644 --- a/src/components/Drawer/src/BasicDrawer.vue +++ b/src/components/Drawer/src/BasicDrawer.vue @@ -10,7 +10,6 @@ - @@ -103,10 +102,10 @@ // Custom implementation of the bottom button, const getFooterHeight = computed(() => { const { footerHeight, showFooter } = unref(getProps); - if (showFooter && footerHeight) { + // if (showFooter && footerHeight) { return isNumber(footerHeight) ? `${footerHeight}px` : `${footerHeight.replace('px', '')}px`; - } - return `0px`; + // } + // return `0px`; }); const getScrollContentStyle = computed((): CSSProperties => { diff --git a/src/components/Drawer/src/components/DrawerFooter.vue b/src/components/Drawer/src/components/DrawerFooter.vue index 9e6d322..e133fc9 100644 --- a/src/components/Drawer/src/components/DrawerFooter.vue +++ b/src/components/Drawer/src/components/DrawerFooter.vue @@ -1,5 +1,5 @@ @@ -163,6 +168,9 @@ import ConfigMaterialCategoryModal from '/@/views/invoicing/ConfigMaterial/components/ConfigMaterialCategoryModal.vue'; import ConfigMaterialTypeModal from '/@/views/invoicing/ConfigMaterial/components/ConfigMaterialTypeModal.vue'; import ConfigMaterialMedicationModal from '/@/views/invoicing/ConfigMaterial/components/ConfigMaterialMedicationModal.vue'; + import QianyiModal from '/@/views/invoicing/ConfigMaterial/components/QianyiModal.vue'; + import WlqianyiModal from '/@/views/invoicing/ConfigMaterial/components/WlqianyiModal.vue'; + const formRef = ref(); const queryParam = reactive({}); @@ -183,6 +191,8 @@ const registerDrawer = ref(); const registerTypeDrawer = ref(); const registerMedicationDrawer = ref(); + const qianyiDrawer = ref(); + const wlqianyiDrawer = ref(); /** * 点击菜单 @@ -221,7 +231,7 @@ const getCardStyle = (index,allSize) => { showIndexColumn: true, showTableSetting: false, actionColumn: { - width: 160, + width: 200, fixed: 'right', }, beforeFetch: async (params) => { @@ -260,20 +270,23 @@ const getCardStyle = (index,allSize) => { }; function onSelect({ key, domEvent }) { - // console.log(ids); - // console.log(e); - // let id = ids[0]; queryParam.treeId =key; reload(); } - /** - * 高级查询事件 - */ - function handleSuperQuery(params) { - Object.keys(params).map((k) => { - queryParam[k] = params[k]; - }); - searchQuery(); + + //迁移 + function handleQianyi(record){ + console.log("🚀 ~ handleQianyi ~ data:", record) + record.id = record.key + if(record.children.length > 0){ + record.sfyxj = "1" + }else{ + record.sfyxj = "0" + } + console.log("🚀 ~ handleQianyi ~ record:", record) + qianyiDrawer.value.disableSubmit = false; + qianyiDrawer.value.edit(record); + } /** @@ -370,9 +383,17 @@ const getCardStyle = (index,allSize) => { onClick: handleWlQyty.bind(null, record), ifShow: record.izEnabled == 0 }, + { + label: '迁移', + onClick: handleWlqianyi.bind(null, record), + }, ]; } + function handleWlqianyi(record: Recordable) { + wlqianyiDrawer.value.disableSubmit = false; + wlqianyiDrawer.value.edit(record); + } //物料的启用停用 function handleWlQyty(record){ @@ -448,13 +469,13 @@ const getCardStyle = (index,allSize) => { var url = ""; //一级分类 if(levle == 1){ - url = "/invoicing/configMaterialCategory/edit"; + url = "/invoicing/configMaterialCategory/editQyty"; //二级分类 }else if(levle == 2){ - url = "/invoicing/configMaterialType/edit"; + url = "/invoicing/configMaterialType/editQyty"; //三级分类 }else if(levle == 3){ - url = "/invoicing/configMaterialMedication/edit"; + url = "/invoicing/configMaterialMedication/editQyty"; }else{ return; } diff --git a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialInfoForm.vue b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialInfoForm.vue index acb1017..1e07f27 100644 --- a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialInfoForm.vue +++ b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialInfoForm.vue @@ -5,18 +5,18 @@ diff --git a/src/views/invoicing/ConfigMaterial/components/QianyiForm.vue b/src/views/invoicing/ConfigMaterial/components/QianyiForm.vue new file mode 100644 index 0000000..2b1e81e --- /dev/null +++ b/src/views/invoicing/ConfigMaterial/components/QianyiForm.vue @@ -0,0 +1,196 @@ + + + + + diff --git a/src/views/invoicing/ConfigMaterial/components/QianyiModal.vue b/src/views/invoicing/ConfigMaterial/components/QianyiModal.vue new file mode 100644 index 0000000..543acbd --- /dev/null +++ b/src/views/invoicing/ConfigMaterial/components/QianyiModal.vue @@ -0,0 +1,83 @@ + + + + + + diff --git a/src/views/invoicing/ConfigMaterial/components/WlqianyiForm.vue b/src/views/invoicing/ConfigMaterial/components/WlqianyiForm.vue new file mode 100644 index 0000000..977fe2f --- /dev/null +++ b/src/views/invoicing/ConfigMaterial/components/WlqianyiForm.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/src/views/invoicing/ConfigMaterial/components/WlqianyiModal.vue b/src/views/invoicing/ConfigMaterial/components/WlqianyiModal.vue new file mode 100644 index 0000000..f892fbe --- /dev/null +++ b/src/views/invoicing/ConfigMaterial/components/WlqianyiModal.vue @@ -0,0 +1,82 @@ + + + + + + diff --git a/src/views/invoicing/configSuppliersInfo/components/ConfigSuppliersInfoModal.vue b/src/views/invoicing/configSuppliersInfo/components/ConfigSuppliersInfoModal.vue index f841b8f..e4e9b74 100644 --- a/src/views/invoicing/configSuppliersInfo/components/ConfigSuppliersInfoModal.vue +++ b/src/views/invoicing/configSuppliersInfo/components/ConfigSuppliersInfoModal.vue @@ -6,6 +6,7 @@ :width="adaptiveWidth" @ok="handleSubmit" :showFooter="showFooter" + :showOkBtn="showFooter" destroyOnClose >