|
|
@@ -30,7 +30,7 @@
|
|
|
v-model="detail.ownerBirthday"
|
|
|
label="主经营者出生日期"
|
|
|
placeholder="请输入主经营者出生日期"
|
|
|
- @click="getNyr('ownerBirthday')" />
|
|
|
+ @click="getNyr('ownerBirthday', detail.ownerBirthday)" />
|
|
|
<van-field autosize type="textarea" label="主营/擅长经营品类">
|
|
|
<template #input>
|
|
|
<van-checkbox-group v-model="detail.mainProductCategorys" direction="horizontal">
|
|
|
@@ -56,7 +56,7 @@
|
|
|
<van-field
|
|
|
v-model="detail.emergencyContactBirthday"
|
|
|
label="紧急联系人出生日期"
|
|
|
- @click="getNyr('emergencyContactBirthday')" />
|
|
|
+ @click="getNyr('emergencyContactBirthday', detail.emergencyContactBirthday)" />
|
|
|
<van-field v-model="detail.emergencyContactMobile" type="number" label="紧急联系人电话" />
|
|
|
<van-field label="紧急联系人身份">
|
|
|
<template #input>
|
|
|
@@ -82,10 +82,11 @@
|
|
|
<!-- 时间选择 -->
|
|
|
<van-popup v-model="datetimeShowPicker" position="bottom">
|
|
|
<van-datetime-picker
|
|
|
+ v-model="currentDate"
|
|
|
type="date"
|
|
|
title="选择年月日"
|
|
|
- :min-date="new Date(1945, 0, 1)"
|
|
|
- :max-date="new Date()"
|
|
|
+ :min-date="minDate"
|
|
|
+ :max-date="maxDate"
|
|
|
@confirm="datetimeOnConfirm"
|
|
|
@cancel="datetimeShowPicker = false" />
|
|
|
</van-popup>
|
|
|
@@ -109,6 +110,9 @@ export default {
|
|
|
mainProductCategorys: [],
|
|
|
emergencyContactRelation: [],
|
|
|
verificationPassedPhoneNum: '', //验证通过手机号
|
|
|
+ minDate: new Date(1945, 0, 1),
|
|
|
+ maxDate: new Date(),
|
|
|
+ currentDate: new Date(1945, 0, 1),
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
|
@@ -200,8 +204,14 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
- getNyr(val) {
|
|
|
+ getNyr(val, date) {
|
|
|
this.activatNyrItem = val;
|
|
|
+ if (date && date != '') {
|
|
|
+ let time = date.split('-');
|
|
|
+ this.currentDate = new Date(time[0], Number(time[1]) - 1, time[2]);
|
|
|
+ } else {
|
|
|
+ this.currentDate = new Date(1945, 0, 1);
|
|
|
+ }
|
|
|
this.datetimeShowPicker = true;
|
|
|
},
|
|
|
datetimeOnConfirm(time) {
|