From 7680dd4e6ed5fbcb5f80d52d14d2ce9d793f8723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BC=9F=E5=BA=9A?= Date: Fri, 1 Apr 2022 17:59:51 +0800 Subject: [PATCH] =?UTF-8?q?up=20=E7=94=B3=E8=AF=B7=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=9C=9F=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/shop-car-apply/apply_form.vue | 5 +++++ src/pages/service_shop/shop_car_apply.vue | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/shop-car-apply/apply_form.vue b/src/components/shop-car-apply/apply_form.vue index caccd8f..9f08c05 100644 --- a/src/components/shop-car-apply/apply_form.vue +++ b/src/components/shop-car-apply/apply_form.vue @@ -23,6 +23,7 @@

申请使用期限

@@ -125,7 +126,8 @@ export default { val: "mg" } ], - temp_sub_arr: [] + temp_sub_arr: [], + disabledDate: false, }; }, watch: {}, @@ -197,6 +199,15 @@ export default { let data = response.data.data; if (response.data.success && data) { //服务 + if (data.interface_typ != 1) { + this.disabledDate = true + let yyyy = new Date().getFullYear() + let mm = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1 + let dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate() + let date_now = yyyy + '-' + mm + '-' + dd + this.formInline.date = ["","2099-12-31"] + this.formInline.date[0] = date_now + } this.post_arr = [data]; this.post_arr[0].service_id = parseInt(service_data.service_id); this.post_arr[0].spec_id = parseInt(service_data.spec_id); -- 2.26.0