diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue index b0ad650301..ed855aed26 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue @@ -237,16 +237,39 @@ // 查看用户人信息 lookUserInfo(vinNo) { console.log('1111', vinNo) - for (var i = 0; i < this.detailsList.length; i++) { - if (this.detailsList[i].vinNo == vinNo) { - let useMessage = {} - useMessage = this.detailsList[i].useMessage - this.isShow = false - this.isShowLook = true - const createBtn = false - this.$refs['divUserInfo'].showInfo(useMessage, vinNo,createBtn) + if (this.temp.isTerminal == 1){ + for (var i = 0; i < this.detailsList.length; i++) { + if (this.detailsList[i].vinNo == vinNo) { + let useMessage = {} + useMessage = this.detailsList[i] + this.isShow = false + this.isShowLook = true + const createBtn = false + this.$refs['divUserInfo'].showInfo(useMessage, vinNo,createBtn) + } + } + } + if (this.temp.isTerminal == 0){ + for (var i = 0; i < this.detailsList.length; i++) { + if (this.detailsList[i].vinNo == vinNo) { + let useMessage = { + address: this.detailsList[i].useMessage.address, + contractNo: this.detailsList[i].useMessage.contractNo, + idNo: this.detailsList[i].useMessage.idNo, + mobile: this.detailsList[i].useMessage.mobile, + name: this.detailsList[i].useMessage.name, + vinNo: this.detailsList[i].useMessage.vinNo + } + // useMessage = this.detailsList[i].useMessage + console.log('点击编辑useMessage', this.detailsList[i].useMessage) + this.isShow = false + this.isShowLook = true + const createBtn = false + this.$refs['divUserInfo'].showInfo(useMessage, vinNo,createBtn) + } } } + }, // 清空用户人信息 clearUserInfo() { @@ -313,7 +336,29 @@ this.temp.modelName = temp[0].modelName this.temp.name = temp[0].name this.temp.applyDate = temp[0].applyDate - this.detailsList = temp[0].listVo; + const details_list = [] + temp.forEach((item) => { + details_list.push({ + vinNo:item.vinNo, + price:item.price, + address:item.address, + contractNo:item.contractNo, + idNo:item.idNo, + name:item.name, + type:item.type, + mobile:item.mobile + }) + }) + this.detailsList = details_list + var nowDate = new Date(); + var date = { + year: nowDate.getFullYear(), + month: nowDate.getMonth() + 1, + day: nowDate.getDate(), + } + var dayDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) + this.temp.applyDate = dayDate + console.log(dayDate); console.log('新增初始化temp', this.temp) console.log('新增初始化detailsList', this.detailsList) },