From 087f690aaf29ffa67b6b49bce6fa26b63fde0bae Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 21 Nov 2024 16:33:45 +0800 Subject: [PATCH] =?UTF-8?q?YT-1181=E4=BB=8E=E5=BA=93=E4=BD=8D=E5=BA=94?= =?UTF-8?q?=E6=98=AF=E5=BF=85=E5=A1=AB=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImportForm/src/ImportFormOnlyAdd.vue | 7 +++++++ .../deliverRecordMain/deliverRecordMain.data.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/ImportForm/src/ImportFormOnlyAdd.vue b/src/components/ImportForm/src/ImportFormOnlyAdd.vue index c3c38f032..db90740ea 100644 --- a/src/components/ImportForm/src/ImportFormOnlyAdd.vue +++ b/src/components/ImportForm/src/ImportFormOnlyAdd.vue @@ -259,6 +259,11 @@ const props = defineProps({ type:Boolean, default:false }, + rules:{ + type:Object, + required: false, + default: () => ({}) + }, }) const importTemplateData = ref(props.importTemplateData) const accept = ref(props.accept) @@ -319,6 +324,8 @@ const submitForm = async () => { const elForm = unref(formRef)?.getElFormRef() if (!elForm) return const valid = await elForm.validate() + console.log(valid) + console.log(props.r) if (!valid) return if (fileList.value.length == 0) { diff --git a/src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts index 0872afe40..b43f17125 100644 --- a/src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts @@ -914,7 +914,7 @@ export const ExtendColumn = useCrudSchemas( //表单校验 export const ExtendColumnRules = reactive({ - requestNumber: [ + fromLocationCode: [ { required: true, message: '请选择从库位', trigger: 'change' } ], })