From e6eda4ff3ecc9d6788fce7beb57e31226400f271 Mon Sep 17 00:00:00 2001 From: HanLong <404402223@qq.com> Date: Tue, 24 Mar 2026 19:23:26 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:[=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E4=BD=8D=E7=BD=AE]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/storageLocation/list.vue | 40 +++++++++++++++-------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/views/business/storageLocation/list.vue b/src/views/business/storageLocation/list.vue index 330fc80..db210d0 100644 --- a/src/views/business/storageLocation/list.vue +++ b/src/views/business/storageLocation/list.vue @@ -11,8 +11,9 @@ - - + + @@ -115,8 +116,8 @@
- +
@@ -127,12 +128,12 @@ - + diff --git a/src/views/business/storageLocation/comps/Xz.vue b/src/views/business/storageLocation/comps/Xz.vue new file mode 100644 index 0000000..62b07aa --- /dev/null +++ b/src/views/business/storageLocation/comps/Xz.vue @@ -0,0 +1,187 @@ + + + diff --git a/src/views/business/storageLocation/list.vue b/src/views/business/storageLocation/list.vue index db210d0..fdc0748 100644 --- a/src/views/business/storageLocation/list.vue +++ b/src/views/business/storageLocation/list.vue @@ -57,111 +57,36 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
-
-
- -
+ + From d6cfc5bf323304a67228987cae8e88f6a21181c0 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Tue, 24 Mar 2026 21:27:38 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20[=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86]=20resetyForm=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/ruoyi.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js index a5af056..76132fc 100644 --- a/src/utils/ruoyi.js +++ b/src/utils/ruoyi.js @@ -51,11 +51,18 @@ export function parseTime(time, pattern) { // 表单重置 export function resetForm(refName) { + if (this.$refs[refName]) { + this.$refs[refName].resetFields() + } +} + +// 表单重置- 延时 +export function resetFormTime(refName) { setTimeout(() => { if (this.$refs[refName]) { this.$refs[refName].resetFields() } - }, 100) + }, 1000) } // 添加日期范围 From f4d8c923d514a4f1ad50e0a5f84e495871c3075c Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Tue, 24 Mar 2026 21:43:36 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20[=E8=A1=A8=E5=8D=95=E7=AD=BE?= =?UTF-8?q?=E5=90=8D]=20=E5=BC=B9=E7=AA=97=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 ++ src/utils/ruoyi.js | 16 ++++++++++++---- src/views/business/comps/common/sign.vue | 3 ++- src/views/business/comps/template/dialog/EditSign.vue | 2 +- src/views/business/form/drug/comp/sign.vue | 3 ++- src/views/business/form/nonTrial/comp/sign.vue | 3 ++- src/views/business/study/comp/sign.vue | 4 +++- 7 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/main.js b/src/main.js index 13bec0d..5afc8d9 100644 --- a/src/main.js +++ b/src/main.js @@ -21,6 +21,7 @@ import { getConfigKey } from '@/api/system/config' import { parseTime, resetForm, + clearFormValidate, addDateRange, selectDictLabel, selectDictLabels, @@ -50,6 +51,7 @@ Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey Vue.prototype.parseTime = parseTime Vue.prototype.resetForm = resetForm +Vue.prototype.clearFormValidate = clearFormValidate Vue.prototype.addDateRange = addDateRange Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js index 76132fc..23f4b6a 100644 --- a/src/utils/ruoyi.js +++ b/src/utils/ruoyi.js @@ -56,13 +56,21 @@ export function resetForm(refName) { } } -// 表单重置- 延时 -export function resetFormTime(refName) { +// 表单清除验证 +export function clearFormValidate(refName) { setTimeout(() => { if (this.$refs[refName]) { - this.$refs[refName].resetFields() + this.$refs[refName].clearValidate() } - }, 1000) + }, 100) + // if (this.$refs[refName]) { + // this.$refs[refName].clearValidate() + // } + // else { + // setTimeout(() => { + // this.clearFormValidate(refName) + // }, 100) + // } } // 添加日期范围 diff --git a/src/views/business/comps/common/sign.vue b/src/views/business/comps/common/sign.vue index c1ef81b..6e3a035 100644 --- a/src/views/business/comps/common/sign.vue +++ b/src/views/business/comps/common/sign.vue @@ -106,7 +106,7 @@ export default { jyksrq: selectedDate && selectedDate.length > 0 ? selectedDate[0] : '', jyjsrq: selectedDate && selectedDate.length > 0 ? selectedDate[1] : '' } - this.resetForm("signForm") + this.open = true this.isReson = isReson || false @@ -142,6 +142,7 @@ export default { }] } } + this.clearFormValidate("signForm") }, cancel() { this.open = false diff --git a/src/views/business/comps/template/dialog/EditSign.vue b/src/views/business/comps/template/dialog/EditSign.vue index a84e291..0d5b4a7 100644 --- a/src/views/business/comps/template/dialog/EditSign.vue +++ b/src/views/business/comps/template/dialog/EditSign.vue @@ -98,8 +98,8 @@ export default { qmrmm:'', } this.isChecked = false - this.resetForm("formEditSignForm") this.open = true + this.clearFormValidate("formEditSignForm") }, cancel() { this.open = false diff --git a/src/views/business/form/drug/comp/sign.vue b/src/views/business/form/drug/comp/sign.vue index e3d67c7..885ef1e 100644 --- a/src/views/business/form/drug/comp/sign.vue +++ b/src/views/business/form/drug/comp/sign.vue @@ -114,7 +114,7 @@ export default { startDate:selectedDate&&selectedDate.length>0?selectedDate[0]:'', endDate:selectedDate&&selectedDate.length>1?selectedDate[1]:'' } - this.resetForm("signForm") + this.open = true this.isReson = isReson || false @@ -150,6 +150,7 @@ export default { }] } } + this.clearFormValidate("signForm") }, cancel() { this.open = false diff --git a/src/views/business/form/nonTrial/comp/sign.vue b/src/views/business/form/nonTrial/comp/sign.vue index e3d67c7..885ef1e 100644 --- a/src/views/business/form/nonTrial/comp/sign.vue +++ b/src/views/business/form/nonTrial/comp/sign.vue @@ -114,7 +114,7 @@ export default { startDate:selectedDate&&selectedDate.length>0?selectedDate[0]:'', endDate:selectedDate&&selectedDate.length>1?selectedDate[1]:'' } - this.resetForm("signForm") + this.open = true this.isReson = isReson || false @@ -150,6 +150,7 @@ export default { }] } } + this.clearFormValidate("signForm") }, cancel() { this.open = false diff --git a/src/views/business/study/comp/sign.vue b/src/views/business/study/comp/sign.vue index 7e28456..5613c69 100644 --- a/src/views/business/study/comp/sign.vue +++ b/src/views/business/study/comp/sign.vue @@ -114,7 +114,7 @@ export default { startDate:selectedDate&&selectedDate.length>0?selectedDate[0]:'', endDate:selectedDate&&selectedDate.length>1?selectedDate[1]:'' } - this.resetForm("signForm") + this.open = true this.isReson = isReson || false @@ -150,6 +150,8 @@ export default { }] } } + + this.clearFormValidate("signForm") }, cancel() { this.open = false