From 6d9813e77e4534a4017dc6747ecad241052992e8 Mon Sep 17 00:00:00 2001
From: zmj <1493694146@qq.com>
Date: Wed, 3 Apr 2024 17:48:07 +0800
Subject: [PATCH] add
---
src/components/personnelselector/index.vue | 1 -
src/components/personnelselector/index1.vue | 366 +++++++++++++++++++
src/views/InvoicingRequests/index.vue | 2 +-
src/views/material_purchase_request/edit.vue | 15 +-
src/views/procurement_contract/edit.vue | 2 +-
src/views/project_total_budget/edit.vue | 8 +-
src/views/remittance/edit.vue | 2 +-
src/views/supplier_contacts/edit.vue | 8 +-
vite.config.ts | 2 +-
9 files changed, 391 insertions(+), 15 deletions(-)
create mode 100644 src/components/personnelselector/index1.vue
diff --git a/src/components/personnelselector/index.vue b/src/components/personnelselector/index.vue
index 2b8a994..a669479 100644
--- a/src/components/personnelselector/index.vue
+++ b/src/components/personnelselector/index.vue
@@ -199,7 +199,6 @@
+
+
\ No newline at end of file
diff --git a/src/views/InvoicingRequests/index.vue b/src/views/InvoicingRequests/index.vue
index a7a7584..05e562f 100644
--- a/src/views/InvoicingRequests/index.vue
+++ b/src/views/InvoicingRequests/index.vue
@@ -76,7 +76,7 @@
-
+
diff --git a/src/views/material_purchase_request/edit.vue b/src/views/material_purchase_request/edit.vue
index 32f8f41..e838885 100644
--- a/src/views/material_purchase_request/edit.vue
+++ b/src/views/material_purchase_request/edit.vue
@@ -36,8 +36,10 @@
-
+
@@ -260,6 +262,15 @@ const formData = reactive({
purchase_request_detail: [],
})
+
+const chekcDate = (rule: any, value: any, callback: any) => {
+ if (new Date(formData.apply_date) < new Date(formData.arrival_date)) {
+ callback(new Error('申请日期不能早于希望到货日期'))
+ } else {
+ callback()
+ }
+}
+
// 表单验证
const formRules = reactive({
diff --git a/src/views/procurement_contract/edit.vue b/src/views/procurement_contract/edit.vue
index 3b6dd09..28d9aef 100644
--- a/src/views/procurement_contract/edit.vue
+++ b/src/views/procurement_contract/edit.vue
@@ -1,7 +1,7 @@