From 0ca51f25c3cdeb14ca9e7bea187d2fa53c733c97 Mon Sep 17 00:00:00 2001
From: "1378012178@qq.com" <1378012178@qq.com>
Date: Tue, 25 Nov 2025 10:52:53 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=B0=83=E6=95=B4=E8=BF=9B=E9=94=80?=
=?UTF-8?q?=E5=AD=98-=E4=BB=98=E6=AC=BE=E5=8D=95=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=E4=B8=AD=E5=9B=BE=E7=89=87=E7=9A=84=E4=B8=8A=E4=BC=A0=E7=9B=AE?=
=?UTF-8?q?=E5=BD=95=E5=B1=82=E7=BA=A7=E7=BB=93=E6=9E=84=202=E3=80=81?=
=?UTF-8?q?=E8=B0=83=E6=95=B4=E5=91=98=E5=B7=A5=E7=AE=A1=E7=90=86-?=
=?UTF-8?q?=E5=91=98=E5=B7=A5=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E4=B8=AD?=
=?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9A=84=E4=B8=8A=E4=BC=A0=E7=9B=AE=E5=BD=95?=
=?UTF-8?q?=E5=B1=82=E7=BA=A7=E7=BB=93=E6=9E=84=203=E3=80=81=E8=B0=83?=
=?UTF-8?q?=E6=95=B4=E6=9C=8D=E5=8A=A1=E6=8C=87=E4=BB=A4-=E6=9C=8D?=
=?UTF-8?q?=E5=8A=A1=E6=8C=87=E4=BB=A4=E5=8A=9F=E8=83=BD=E4=B8=AD=E5=9B=BE?=
=?UTF-8?q?=E7=89=87=E7=9A=84=E4=B8=8A=E4=BC=A0=E7=9B=AE=E5=BD=95=E5=B1=82?=
=?UTF-8?q?=E7=BA=A7=E7=BB=93=E6=9E=84=204=E3=80=81=E8=B0=83=E6=95=B4?=
=?UTF-8?q?=E9=95=BF=E8=80=85=E7=AE=A1=E7=90=86-=E6=A0=87=E7=AD=BE?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E4=B8=AD=E5=9B=BE=E7=89=87?=
=?UTF-8?q?=E7=9A=84=E4=B8=8A=E4=BC=A0=E7=9B=AE=E5=BD=95=E5=B1=82=E7=BA=A7?=
=?UTF-8?q?=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/common/api.ts | 9 +++++
.../components/BizEmployeesInfoForm.vue | 21 ++++++++++--
.../eldertag/components/ElderTagForm.vue | 34 ++++++++++++-------
.../fkd/components/NuInvoicingFkdMainForm.vue | 18 +++++++---
.../components/ConfigServiceDirectiveForm.vue | 26 ++++++++------
5 files changed, 78 insertions(+), 30 deletions(-)
diff --git a/src/api/common/api.ts b/src/api/common/api.ts
index 19f069c..7d2ebe1 100644
--- a/src/api/common/api.ts
+++ b/src/api/common/api.ts
@@ -21,6 +21,7 @@ enum Api {
getOrgUrlByOrgCode = '/sys/api/getOrgUrlByOrgCode',
getMediaUrlByOrgCode = '/sys/api/getMediaUrlByOrgCode',
uploadPre = '/sys/common/upload/pre',
+ queryUpBizPrefix = 'api/sysUtils/queryUpBizPrefix',
}
/**
@@ -209,3 +210,11 @@ export const getOrgInfo = () => {
export const uploadPre = (params) => {
return defHttp.post({ url: Api.uploadPre, params }, { isTransformResponse: false });
};
+
+/**
+ * 查询上传目录前缀(年/月)
+ * @param params
+ */
+export const queryUpBizPrefix = () => {
+ return defHttp.get({ url: Api.queryUpBizPrefix }, { isTransformResponse: false });
+};
diff --git a/src/views/biz/bizEmployeesInfo/components/BizEmployeesInfoForm.vue b/src/views/biz/bizEmployeesInfo/components/BizEmployeesInfoForm.vue
index a048cc6..7fa6a51 100644
--- a/src/views/biz/bizEmployeesInfo/components/BizEmployeesInfoForm.vue
+++ b/src/views/biz/bizEmployeesInfo/components/BizEmployeesInfoForm.vue
@@ -1,6 +1,6 @@
-
+
@@ -12,11 +12,20 @@
-
+
+
+
+
+
+
+
+
@@ -329,6 +338,7 @@ import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../BizEmployeesInfo.api';
import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
+import { queryUpBizPrefix } from '/@/api/common/api'
const props = defineProps({
formDisabled: { type: Boolean, default: false },
@@ -340,6 +350,7 @@ const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const ageVal = ref()
+const upBizPrefix = ref('')
const formData = reactive>({
id: '',
name: '',
@@ -505,6 +516,12 @@ function handleComputedAge(ageText) {
return age >= 0 ? age : 0; // 防止返回负数
}
+onMounted(() => {
+ queryUpBizPrefix().then(res => {
+ upBizPrefix.value = res.result
+ })
+})
+
defineExpose({
add,
edit,
diff --git a/src/views/elder/eldertag/components/ElderTagForm.vue b/src/views/elder/eldertag/components/ElderTagForm.vue
index 0638c36..0e461d7 100644
--- a/src/views/elder/eldertag/components/ElderTagForm.vue
+++ b/src/views/elder/eldertag/components/ElderTagForm.vue
@@ -32,8 +32,8 @@
-
+
@@ -41,8 +41,8 @@
-
+
@@ -75,6 +75,7 @@ import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
import JImageUploadToOpe from '/@/components/Form/src/jeecg/components/JImageUploadToOpe.vue';
+import { queryUpBizPrefix } from '/@/api/common/api'
const opeMediaAddress = import.meta.env.VITE_OPE_MEDIA_ADDRESS
const props = defineProps({
@@ -88,6 +89,7 @@ const props = defineProps({
const dmlookVal = ref('')
const defaultBodyPic = import.meta.env.VITE_DEFAULT_ELDER_TAG_BODY_PIC
const defaultEmoPic = import.meta.env.VITE_DEFAULT_ELDER_TAG_EMO_PIC
+const upBizPrefix = ref('')
const onPriceKeydown = (e: KeyboardEvent) => {
const key = e.key;
// 放行控制键
@@ -258,6 +260,12 @@ defineExpose({
edit,
submitForm,
});
+
+onMounted(() => {
+ queryUpBizPrefix().then(res => {
+ upBizPrefix.value = res.result
+ })
+})
diff --git a/src/views/invoicing/fkd/components/NuInvoicingFkdMainForm.vue b/src/views/invoicing/fkd/components/NuInvoicingFkdMainForm.vue
index 90f23ec..693aaf4 100644
--- a/src/views/invoicing/fkd/components/NuInvoicingFkdMainForm.vue
+++ b/src/views/invoicing/fkd/components/NuInvoicingFkdMainForm.vue
@@ -18,7 +18,7 @@
-
+
@@ -61,12 +61,14 @@
-
+
-
+
@@ -91,7 +93,7 @@
-
+
@@ -105,6 +107,7 @@ import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
import CgdTableList from './CgdTableList.vue';
+import { queryUpBizPrefix } from '/@/api/common/api'
const props = defineProps({
formDisabled: { type: Boolean, default: false },
@@ -114,6 +117,7 @@ const props = defineProps({
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
+const upBizPrefix = ref('')
const formData = reactive>({
id: '',
fkdNo: '',
@@ -247,6 +251,12 @@ defineExpose({
edit,
submitForm,
});
+
+onMounted(() => {
+ queryUpBizPrefix().then(res => {
+ upBizPrefix.value = res.result
+ })
+})