| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- Component({
- properties: {
- tabColorS: {
- type: Object
- }
- },
- lifetimes: {
- attached: function () {
- getApp().globalData.Language.getLanguagePackage(this)
- this.setData({
- siteid: wx.getStorageSync('userMsg').siteid
- })
- }
- },
- data: {},
- methods: {
- setPreview(res) {
- /* 基本信息 */
- let leader = null
- try {
- leader = res.data.team.find(v => v.isleader);
- } catch (error) {
- }
- let list1 = [{
- label: "工单号",
- value: res.data.billno
- }, {
- label: "申请单号",
- value: res.data.servicebillno
- }, {
- label: "服务类型",
- value: res.data.servicetype,
- style: this.data.tabColorS[res.data.servicetype] ? `color:${this.data.tabColorS[res.data.servicetype].color}` : ""
- }, {
- label: "工单类型",
- value: res.data.type,
- style: this.data.sColors[res.data.type] ? `color:${this.data.sColors[res.data.type].color}` : ''
- }, {
- label: "状态",
- value: getApp().globalData.Language.getMapText(res.data.status),
- style: `color:${this.data.sColors[res.data.status]}`
- }, {
- label: "企业名称",
- value: res.data.enterprisename
- }, {
- label: "企业编号",
- value: res.data.agentnum
- }, {
- label: "关联订单",
- value: res.data.sonum
- }, {
- label: "省市县",
- value: res.data.province + res.data.city + res.data.county
- }, {
- label: "详细地址",
- value: res.data.address
- }, {
- label: "现场联系人",
- value: res.data.scenecontact
- }, {
- label: "身份备注",
- value: res.data.scenecontactrole
- }, {
- label: "现场联系人电话",
- value: res.data.scenecontactphonenumber
- }, {
- label: "应用系统",
- value: res.data.class1
- }, {
- label: "客诉大类",
- value: res.data.class2
- }, {
- label: "问题描述",
- value: res.data.reason
- }, {
- label: "服务负责人",
- value: leader ? leader.name : ''
- }, {
- label: "服务负责人电话",
- value: leader ? leader.phonenumber : ''
- }, {
- label: "业务员",
- value: res.data.saler_name
- }, {
- label: "业务员电话",
- value: res.data.saler_phonenumber
- }, {
- label: "历史服务次数",
- value: res.data.historicalservicesqty
- }, {
- label: "异常类型",
- value: res.data.exception_type
- }, {
- label: "服务等级",
- value: res.data.service_level,
- style: `color:${this.data.sColors[res.data.service_level]}`
- }, {
- label: "项目名称",
- value: res.data.projectname
- }, {
- label: "操作类型",
- value: res.data.actiontype
- }, {
- label: "是否为我司出货产品",
- value: res.data.isouritem === 1 ? "是" : "否"
- }, {
- label: "是否在保质期内",
- value: res.data.inqualityguaranteeperiod === 1 ? "是" : "否"
- }, {
- label: "确认客诉异常描述",
- value: res.data.reason
- }, {
- label: "是否属实",
- value: res.data.isfact === 1 ? "是" : "否"
- }, {
- label: "备注",
- value: res.data.remarks
- }];
- /* 系统信息 */
- let list2 = [{
- label: "创建时间",
- value: res.data.createdate
- }, {
- label: "最近编辑人",
- value: res.data.changeby
- }, {
- label: "最近编辑时间",
- value: res.data.changedate
- }, {
- label: "接单时间",
- value: res.data.takedate
- }, {
- label: "开始工单时间",
- value: res.data.startdate
- }, {
- label: "完成时间",
- value: res.data.finishdate
- }, {
- label: "中止时间",
- value: res.data.abortdate
- }, {
- label: "中止原因",
- value: res.data.abortreason
- }];
- this.setData({
- list1,
- list2
- });
- },
- }
- })
|