| | |
| | | <li> |
| | | <div class="left remark"> |
| | | <div class="content-title">{{ "备注:" }}</div> |
| | | <div class="content-data">{{ "备注内容" }}</div> |
| | | <div class="content-data">{{ detailConfig.infomation.remark }}</div> |
| | | </div> |
| | | </li> |
| | | </ul> |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.setData() |
| | | this.setData(this.detailConfig.infomation) |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | setData() { |
| | | setData(item) { |
| | | this.basicInfoList = [ |
| | | { |
| | | leftStr: "客户名称", |
| | | leftValue: this.detailConfig.infomation.client_name, |
| | | leftValue: item.client_name, |
| | | rightStr: "客户编号", |
| | | rightValue: this.detailConfig.infomation.number |
| | | rightValue: item.number |
| | | }, |
| | | { |
| | | leftStr: "客户状态", |
| | | leftValue: this.detailConfig.infomation.contact_name, |
| | | leftValue: item.client_status, |
| | | rightStr: "销售负责人", |
| | | rightValue: this.detailConfig.infomation.contact_position |
| | | rightValue: item.member_id |
| | | }, |
| | | { |
| | | leftStr: "客户类型", |
| | | leftValue: this.detailConfig.infomation.contact_phone, |
| | | leftValue: item.client_type.name, |
| | | rightStr: "客户来源", |
| | | rightValue: "新建" |
| | | rightValue: item.client_origin.name |
| | | }, |
| | | { |
| | | leftStr: "重要级别", |
| | | leftValue: this.detailConfig.infomation.sales_sources_id, |
| | | leftValue: item.client_level, |
| | | rightStr: "公海状态", |
| | | rightValue: this.detailConfig.infomation.member_id |
| | | rightValue: "" |
| | | }, |
| | | { |
| | | leftStr: "所属公海", |
| | |
| | | leftStr: "签到", |
| | | leftValue: "", |
| | | rightStr: "下次回访日期", |
| | | rightValue: "" |
| | | rightValue: this.processTime(item.next_visit_time) |
| | | }, |
| | | { |
| | | leftStr: "创建时间", |
| | | leftValue: "", |
| | | rightStr: "最晚服务到期日", |
| | | rightValue: "" |
| | | rightValue: this.processTime(item.latest_service_time) |
| | | }, |
| | | { |
| | | leftStr: "创建人", |
| | |
| | | this.contactList = [ |
| | | { |
| | | leftStr: "联系人姓名", |
| | | leftValue: "", |
| | | leftValue: item.contact_name, |
| | | rightStr: "联系人手机", |
| | | rightValue: "" |
| | | rightValue: item.contact_phone |
| | | }, |
| | | { |
| | | leftStr: "联系人职务", |
| | |
| | | this.businessInfoList = [ |
| | | { |
| | | leftStr: "所属行业", |
| | | leftValue: "", |
| | | leftValue: item.Industry.name, |
| | | rightStr: "法定代表人", |
| | | rightValue: "" |
| | | rightValue: item.representative |
| | | }, |
| | | { |
| | | leftStr: "注册时间", |
| | | leftValue: "", |
| | | leftValue: this.processTime(item.registration_time), |
| | | rightStr: "注册资金", |
| | | rightValue: "" |
| | | rightValue: item.RegisteredCapital.name |
| | | }, |
| | | { |
| | | leftStr: "公司性质", |
| | | leftValue: "", |
| | | leftValue: item.EnterpriseNature.name, |
| | | rightStr: "客户规模", |
| | | rightValue: "" |
| | | rightValue: item.EnterpriseScale.name |
| | | }, |
| | | { |
| | | leftStr: "经营范围", |
| | | leftValue: "", |
| | | leftValue: item.business_scope, |
| | | rightStr: "", |
| | | rightValue: "" |
| | | } |
| | |
| | | this.addressInfoList = [ |
| | | { |
| | | leftStr: "国家", |
| | | leftValue: "", |
| | | leftValue: item.Country.name, |
| | | rightStr: "省份", |
| | | rightValue: "" |
| | | rightValue: item.Province.name |
| | | }, |
| | | { |
| | | leftStr: "城市", |
| | | leftValue: "", |
| | | leftValue: item.City.name, |
| | | rightStr: "区域", |
| | | rightValue: "" |
| | | rightValue: item.Region.name |
| | | }, |
| | | { |
| | | leftStr: "详细地址", |
| | | leftValue: "", |
| | | leftValue: item.detail_address, |
| | | rightStr: "", |
| | | rightValue: "" |
| | | } |
| | |
| | | } else if (value === "annex") { |
| | | this.isAnnexExpand = !this.isAnnexExpand |
| | | } |
| | | }, |
| | | // 处理时间 |
| | | processTime(dateTime) { |
| | | return this.dateFormat("YYYY-mm-dd HH:MM:SS", dateTime) === "1900-01-01 08:00:00" |
| | | ? "--" |
| | | : this.dateFormat("YYYY-mm-dd HH:MM:SS", dateTime) |
| | | }, |
| | | // 时间显示 |
| | | dateFormat(fmt, date) { |
| | | let ret = "" |
| | | date = new Date(date) |
| | | const opt = { |
| | | "Y+": date.getFullYear().toString(), // 年 |
| | | "m+": (date.getMonth() + 1).toString(), // 月 |
| | | "d+": date.getDate().toString(), // 日 |
| | | "H+": date.getHours().toString(), // 时 |
| | | "M+": date.getMinutes().toString(), // 分 |
| | | "S+": date.getSeconds().toString() // 秒 |
| | | // 有其他格式化字符需求可以继续添加,必须转化成字符串 |
| | | } |
| | | for (let k in opt) { |
| | | ret = new RegExp("(" + k + ")").exec(fmt) |
| | | if (ret) { |
| | | fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0")) |
| | | } |
| | | } |
| | | return fmt |
| | | } |
| | | } |
| | | } |