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 @@