Browse Source

客户管理

zhanglei
Zhao Qiqi 3 years ago
parent
commit
ee26cc6e84
  1. 36
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehudangan/kehudanganAdd.vue

36
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehudangan/kehudanganAdd.vue

@ -154,10 +154,9 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item> <el-form-item>
<el-date-picker v-model="temp.birthday" type="date" style="width:50%" <!-- <el-date-picker v-model="temp.endDate" style="width:50%" type="date" format="yyyy-MM-dd" class="addinputw" value-format="yyyy-MM-dd" placeholder="请选择"/>-->
value-format="yyyy-MM-dd" <el-date-picker v-model="temp.birthday" style="width:50%" type="date" format="yyyy-MM-dd"
placeholder="选择日期"> class="addinputw" value-format="yyyy-MM-dd" placeholder="请选择"/>
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" class="trightb"> <el-col :span="4" class="trightb">
@ -651,9 +650,11 @@ export default {
getPcCustomerInfoBySid(this.stateId).then((response) => { getPcCustomerInfoBySid(this.stateId).then((response) => {
console.log(response.data) console.log(response.data)
if (response.code === '200') { if (response.code === '200') {
this.$refs['dataForm'].clearValidate() // this.$refs['dataForm'].clearValidate()
this.temp = response.data 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 !== '') {
if (this.temp.customerType === '个人') { if (this.temp.customerType === '个人') {
this.temp.certificateType = '身份证' 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) { findselect(list, value) {
var item = null var item = null
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {

Loading…
Cancel
Save