diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehudangan/kehudanganAdd.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehudangan/kehudanganAdd.vue
index bc1cf29f9a..684fecb8a4 100644
--- a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehudangan/kehudanganAdd.vue
+++ b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehudangan/kehudanganAdd.vue
@@ -154,10 +154,9 @@
-
-
+
+
@@ -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++) {