|
|
@ -154,10 +154,9 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item> |
|
|
|
<el-date-picker v-model="temp.birthday" type="date" style="width:50%" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
placeholder="选择日期"> |
|
|
|
</el-date-picker> |
|
|
|
<!-- <el-date-picker v-model="temp.endDate" style="width:50%" type="date" format="yyyy-MM-dd" class="addinputw" value-format="yyyy-MM-dd" placeholder="请选择"/>--> |
|
|
|
<el-date-picker v-model="temp.birthday" style="width:50%" type="date" format="yyyy-MM-dd" |
|
|
|
class="addinputw" value-format="yyyy-MM-dd" placeholder="请选择"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
@ -651,9 +650,11 @@ export default { |
|
|
|
getPcCustomerInfoBySid(this.stateId).then((response) => { |
|
|
|
console.log(response.data) |
|
|
|
if (response.code === '200') { |
|
|
|
this.$refs['dataForm'].clearValidate() |
|
|
|
// this.$refs['dataForm'].clearValidate() |
|
|
|
this.temp = response.data |
|
|
|
this.temp.birthday = this.getDates(this.temp.birthday) |
|
|
|
if (this.temp.birthday == 'NaN-NaN-NaN NaN:NaN:NaN'){ |
|
|
|
this.temp.birthday = '' |
|
|
|
} |
|
|
|
if (this.temp.customerType !== '') { |
|
|
|
if (this.temp.customerType === '个人') { |
|
|
|
this.temp.certificateType = '身份证' |
|
|
@ -892,29 +893,6 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 转换时间格式 |
|
|
|
getDates(v) { |
|
|
|
var now = new Date(v) |
|
|
|
var year = now.getFullYear() // 年 |
|
|
|
var month = now.getMonth() + 1 // 月 |
|
|
|
var day = now.getDate() // 日 |
|
|
|
var hh = now.getHours() // 时 |
|
|
|
var mm = now.getMinutes() // 分 |
|
|
|
var ss = now.getSeconds() // 分 |
|
|
|
var clock = year + '-' |
|
|
|
if (month < 10) clock += '0' |
|
|
|
clock += month + '-' |
|
|
|
if (day < 10) clock += '0' |
|
|
|
clock += day + ' ' |
|
|
|
if (hh < 10) clock += '0' |
|
|
|
clock += hh + ':' |
|
|
|
if (mm < 10) clock += '0' |
|
|
|
clock += mm + ':' |
|
|
|
if (ss < 10) clock += '0' |
|
|
|
clock += ss |
|
|
|
return clock |
|
|
|
}, |
|
|
|
// 首次 续购 处理 |
|
|
|
findselect(list, value) { |
|
|
|
var item = null |
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|