Commit 7680dd4e authored by 赵伟庚's avatar 赵伟庚

up 申请服务默认期限

parent 857a88c3
......@@ -23,6 +23,7 @@
<el-form-item prop="date">
<p class="formname">申请使用期限</p>
<el-date-picker
:disabled="disabledDate"
v-model="formInline.date"
type="daterange"
range-separator="至"
......@@ -48,6 +49,10 @@ export default {
return {};
},
},
disabledDate: {
type: Boolean,
default: false
}
},
components: {},
data() {
......
......@@ -3,6 +3,7 @@
<info-list :list_arr="module_arr">
<apply-form
:formInline="formInline"
:disabledDate="disabledDate"
ref="apply_info"
slot="apply_info"
></apply-form>
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment