From 940378a69258a7d950e85140e5bd7d860462f75b Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Wed, 12 Jun 2024 11:16:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=202036=20=E6=A3=80=E9=AA=8C=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=8F=AF=E4=BB=A5=E6=99=9A=E4=BA=8E=E4=B8=8B=E6=AC=A1?= =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehousing/Inventory/index.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sgzb-ui/src/views/warehouseManage/warehousing/Inventory/index.vue b/sgzb-ui/src/views/warehouseManage/warehousing/Inventory/index.vue index 6f8d040d..11392c7a 100644 --- a/sgzb-ui/src/views/warehouseManage/warehousing/Inventory/index.vue +++ b/sgzb-ui/src/views/warehouseManage/warehousing/Inventory/index.vue @@ -334,6 +334,7 @@ type="date" placeholder="请输入检验时间" style="width: 400px" + @change="changeCheckTime" /> @@ -349,6 +350,15 @@ type="date" placeholder="请输入检验时间" style="width: 13vw" + :disabled="!codeForm.thisCheckTime" + :picker-options="{ + disabledDate(time) { + if (codeForm.thisCheckTime) { + return time.getTime() < new Date(codeForm.thisCheckTime).getTime(); + } + return false; + } + }" /> @@ -1509,6 +1519,14 @@ export default { this.$message.warning('设备编码不能为空') } }, + // 校验检验日期 + changeCheckTime() { + if (this.codeForm.thisCheckTime > this.codeForm.nextCheckTime) { + this.codeForm.nextCheckTime = '' + } else if (!this.codeForm.thisCheckTime) { + this.codeForm.nextCheckTime = '' + } + }, }, }