|
|
@@ -26,16 +26,16 @@ Page({
|
|
|
},
|
|
|
tabsList: [{
|
|
|
label: "服务商品",
|
|
|
- model: "#Product"
|
|
|
+ model: "#WorkOrderProduct"
|
|
|
}, {
|
|
|
label: "工序详情",
|
|
|
- model: "#Nodes"
|
|
|
+ model: "#WorkOrderNodes"
|
|
|
}, {
|
|
|
label: "工单物料",
|
|
|
- model: "#Material"
|
|
|
+ model: "#WorkOrderMaterial"
|
|
|
}, {
|
|
|
label: "服务确认单",
|
|
|
- model: "#NotarizeBill"
|
|
|
+ model: "#WorkOrderNotarizeBill"
|
|
|
}, {
|
|
|
label: "服务团队"
|
|
|
}, {
|
|
|
@@ -50,7 +50,6 @@ Page({
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
getApp().globalData.Language.getLanguagePackage(this, '工单详情');
|
|
|
- console.log("options", options)
|
|
|
this.setData({
|
|
|
sa_workorderid: options.id
|
|
|
})
|
|
|
@@ -80,7 +79,7 @@ Page({
|
|
|
tabsList: this.data.tabsList.filter(v => ['工序详情', '工单物料', '服务确认单', '服务团队', '工单信息'].includes(v.label))
|
|
|
})
|
|
|
}
|
|
|
- this.setPreview(res);
|
|
|
+ this.selectComponent("#WorkOrderPview").setPreview(res);
|
|
|
this.setTabbar()
|
|
|
this.partialRenewal()
|
|
|
})
|
|
|
@@ -377,137 +376,6 @@ Page({
|
|
|
tabbarList
|
|
|
})
|
|
|
},
|
|
|
- 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.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
|
|
|
- });
|
|
|
- },
|
|
|
//tabs 切换
|
|
|
tabsChange({
|
|
|
detail
|