diff --git a/src/components/shop-car-apply/apply_form.vue b/src/components/shop-car-apply/apply_form.vue index caccd8f17d5da8464e5ce6a6b04fb2c1f8e86f60..9f08c05b8583c1d33de396d829dc3feb709c77b1 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);