From 65777783a6b9022488a1ac40870ca7a86643e49b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 5 Dec 2025 10:58:09 +0800 Subject: [PATCH 1/7] =?UTF-8?q?feat:=20base=20=E5=A2=9E=E5=8A=A0xtUpload?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/xtUpload.vue | 278 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 278 insertions(+) create mode 100644 components/xtUpload.vue diff --git a/components/xtUpload.vue b/components/xtUpload.vue new file mode 100644 index 0000000..33e178b --- /dev/null +++ b/components/xtUpload.vue @@ -0,0 +1,278 @@ + + + From 0ba1160edc0def083244b886df975f5a1afc817e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 5 Dec 2025 10:58:30 +0800 Subject: [PATCH 2/7] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E4=B8=BAxtUpload?= =?UTF-8?q?=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/pum/supplieraudit_form.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/pum/supplieraudit_form.vue b/pages/pum/supplieraudit_form.vue index 8025740..214583d 100644 --- a/pages/pum/supplieraudit_form.vue +++ b/pages/pum/supplieraudit_form.vue @@ -14,13 +14,13 @@ - + - + - + @@ -41,8 +41,9 @@ import ticketd_b from "../wf/ticketd_b.vue" import ticketd from "../wf/ticketd.vue" import {actStateEnum} from "@/utils/enum.js" +import xtUpload from "@/components/xtUpload.vue" export default { - components: { ticketd_b, ticketd }, + components: { ticketd_b, ticketd, xtUpload }, data(){ return{ saveLoading: false, @@ -92,6 +93,9 @@ import {actStateEnum} from "@/utils/enum.js" console.log('type', type, e); console.log('form.material_type',this.form.material_type) }, + progress(e){ + console.log(e) + }, async handleSave(id){ let that = this; that.$refs.customForm.validate().then(res => { From 95c52117cc75eb9c1cc0ec31e64ea593c723dbcb Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 5 Dec 2025 11:23:54 +0800 Subject: [PATCH 3/7] =?UTF-8?q?feat:=20base=20xtUpload=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/xtUpload.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/xtUpload.vue b/components/xtUpload.vue index 33e178b..ef1e4c5 100644 --- a/components/xtUpload.vue +++ b/components/xtUpload.vue @@ -24,7 +24,7 @@ const emit = defineEmits(["update:modelValue", "update:obj"]); const props = defineProps({ xtype: { type: String, default: "path" }, // path 或 id - modelValue: { type: [Array, String], default: undefined }, + modelValue: { type: [Array, String], default: "pending" }, obj: { type: Object, default: () => ({}) }, accept: { type: String, default: '' }, countMax: { type: Number, default: 1 }, @@ -44,18 +44,14 @@ const action = `${config.baseUrl}/file/` const inited = ref(false) onMounted(() => { - disabled.value = true checkPropsUntilReady() }) const checkPropsUntilReady = () => { if (inited.value) return - if (props.modelValue !== undefined) { + if (props.modelValue !== "pending") { initFileList() - if (props.disabled == false) { - disabled.value = false - } inited.value = true return } From 965291e30c0f3bcea7f8b90a8823f600ff400fc0 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 5 Dec 2025 11:30:46 +0800 Subject: [PATCH 4/7] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E5=AE=A1=E6=A0=B8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/pum/supplieraudit_form.vue | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pages/pum/supplieraudit_form.vue b/pages/pum/supplieraudit_form.vue index 214583d..813bb9b 100644 --- a/pages/pum/supplieraudit_form.vue +++ b/pages/pum/supplieraudit_form.vue @@ -8,7 +8,7 @@ - + @@ -25,9 +25,9 @@ -