|
|
@@ -25,7 +25,7 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
tabsList: [{
|
|
|
- label: "服务商品",
|
|
|
+ label: "工单服务商品",
|
|
|
model: "#WorkOrderProduct",
|
|
|
idname: "sa_workorderid",
|
|
|
color: "#2AA520"
|
|
|
@@ -84,7 +84,7 @@ Page({
|
|
|
})
|
|
|
if (res.data.actiontype == '非工序模板') {
|
|
|
this.setData({
|
|
|
- tabsList: this.data.tabsList.filter(v => ['服务商品', '服务确认单', '服务团队', '工单信息'].includes(v.label))
|
|
|
+ tabsList: this.data.tabsList.filter(v => ['工单服务商品', '服务确认单', '服务团队', '工单信息'].includes(v.label))
|
|
|
})
|
|
|
} else {
|
|
|
this.setData({
|
|
|
@@ -94,6 +94,44 @@ Page({
|
|
|
this.selectComponent("#WorkOrderPview").setPreview(res);
|
|
|
this.setTabbar()
|
|
|
this.partialRenewal()
|
|
|
+ this.getServiceDetail(res.data.sa_serviceorderid)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getServiceDetail(id) {
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20230206091603,
|
|
|
+ "content": {
|
|
|
+ "sa_serviceorderid": id
|
|
|
+ },
|
|
|
+ }).then(res => {
|
|
|
+ console.log("申请单详情", res)
|
|
|
+ if (res.code != '1') return wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ let tabsList = [{
|
|
|
+ label: "申请信息",
|
|
|
+ idname: "sa_serviceorderid",
|
|
|
+ color: "#3874F6"
|
|
|
+ }, {
|
|
|
+ label: "受理信息",
|
|
|
+ idname: "sa_serviceorderid",
|
|
|
+ color: "#3874F6"
|
|
|
+ }];
|
|
|
+ if (['售中', "售后"].includes(res.data.servicetype)) {
|
|
|
+ tabsList.unshift({
|
|
|
+ label: "服务商品",
|
|
|
+ model: "#ServiceProduct",
|
|
|
+ idname: "sa_serviceorderid",
|
|
|
+ color: "#3874F6"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.setData({
|
|
|
+ tabsList: this.data.tabsList.concat(tabsList),
|
|
|
+ serviceDetail: res.data
|
|
|
+ })
|
|
|
+ this.selectComponent("#ServicePview1").setPreview(res);
|
|
|
+ this.selectComponent("#ServicePview2").setPreview(res);
|
|
|
})
|
|
|
},
|
|
|
areaInput(e) {
|