|
@@ -211,7 +211,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
this.mainData = Object.assign({}, this.mainData, res.data);
|
|
this.mainData = Object.assign({}, this.mainData, res.data);
|
|
|
- console.log(res.data,'输出33');
|
|
|
|
|
|
|
+
|
|
|
res.data.team.forEach(item => {
|
|
res.data.team.forEach(item => {
|
|
|
if (item.isleader){
|
|
if (item.isleader){
|
|
|
this.team_name = item.name
|
|
this.team_name = item.name
|
|
@@ -226,7 +226,6 @@ export default {
|
|
|
|
|
|
|
|
this.nodes = this.createTreeData(res.data.nodes);
|
|
this.nodes = this.createTreeData(res.data.nodes);
|
|
|
this.mainData.actiontype == '工序模板'?this.$refs.serviceWorkOrderRef.activeName = '工序详情' : this.$refs.serviceWorkOrderRef.activeName = '服务商品'
|
|
this.mainData.actiontype == '工序模板'?this.$refs.serviceWorkOrderRef.activeName = '工序详情' : this.$refs.serviceWorkOrderRef.activeName = '服务商品'
|
|
|
- console.log(this.nodes);
|
|
|
|
|
},
|
|
},
|
|
|
downLoadBill(data) {
|
|
downLoadBill(data) {
|
|
|
let result = data.attinfos.filter(
|
|
let result = data.attinfos.filter(
|
|
@@ -265,21 +264,13 @@ export default {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
this.mainAreaData = [
|
|
this.mainAreaData = [
|
|
|
{
|
|
{
|
|
|
- label: "单号",
|
|
|
|
|
|
|
+ label: "工单号",
|
|
|
value: this.mainData.billno,
|
|
value: this.mainData.billno,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "服务申请单号",
|
|
|
|
|
|
|
+ label: "申请单号",
|
|
|
value: this.mainData.servicebillno,
|
|
value: this.mainData.servicebillno,
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- label: "工单类型",
|
|
|
|
|
- value: this.mainData.type,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "负责人",
|
|
|
|
|
- value: this.team_name,
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
label: "状态",
|
|
label: "状态",
|
|
|
value: this.$t(this.mainData.status),
|
|
value: this.$t(this.mainData.status),
|
|
@@ -288,35 +279,38 @@ export default {
|
|
|
return style;
|
|
return style;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- label: "企业编号",
|
|
|
|
|
- value: this.mainData.agentnum,
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
label: "企业名称",
|
|
label: "企业名称",
|
|
|
value: this.mainData.enterprisename,
|
|
value: this.mainData.enterprisename,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "企业编号",
|
|
|
|
|
+ value: this.mainData.agentnum,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: "省市县",
|
|
label: "省市县",
|
|
|
value:
|
|
value:
|
|
|
- this.mainData.province + this.mainData.city + this.mainData.county,
|
|
|
|
|
|
|
+ this.mainData.province + this.mainData.city + this.mainData.county,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "业务员",
|
|
|
|
|
- value: this.mainData.saler_name,
|
|
|
|
|
|
|
+ label: "详细地址",
|
|
|
|
|
+ value: this.mainData.address,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "业务员电话",
|
|
|
|
|
- value: this.mainData.salerphonenumber,
|
|
|
|
|
|
|
+ label: "关联订单",
|
|
|
|
|
+ value: this.mainData.sonum,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "地址",
|
|
|
|
|
- value: this.mainData.address,
|
|
|
|
|
|
|
+ label: "服务类型",
|
|
|
|
|
+ value: this.mainData.servicetype,
|
|
|
|
|
+ style: function () {
|
|
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.servicetype);
|
|
|
|
|
+ return style;
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
{
|
|
{
|
|
|
- label: "关联订单",
|
|
|
|
|
- value: this.mainData.sonum,
|
|
|
|
|
|
|
+ label: "工单类型",
|
|
|
|
|
+ value: this.mainData.type,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "现场联系人",
|
|
label: "现场联系人",
|
|
@@ -342,10 +336,22 @@ export default {
|
|
|
label: "问题描述",
|
|
label: "问题描述",
|
|
|
value: this.mainData.reason,
|
|
value: this.mainData.reason,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "服务负责人",
|
|
|
|
|
+ value: this.team_name,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: "服务负责人电话",
|
|
label: "服务负责人电话",
|
|
|
value: this.team_phone_number,
|
|
value: this.team_phone_number,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "业务员",
|
|
|
|
|
+ value: this.mainData.saler_name,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "业务员电话",
|
|
|
|
|
+ value: this.mainData.salerphonenumber,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: "异常类型",
|
|
label: "异常类型",
|
|
|
value: this.mainData.exception_type,
|
|
value: this.mainData.exception_type,
|
|
@@ -353,6 +359,10 @@ export default {
|
|
|
{
|
|
{
|
|
|
label: "服务等级",
|
|
label: "服务等级",
|
|
|
value: this.mainData.service_level,
|
|
value: this.mainData.service_level,
|
|
|
|
|
+ style: function () {
|
|
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.service_level);
|
|
|
|
|
+ return style;
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "项目名称",
|
|
label: "项目名称",
|
|
@@ -364,7 +374,7 @@ export default {
|
|
|
value: this.mainData.createdate,
|
|
value: this.mainData.createdate,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "结束时间",
|
|
|
|
|
|
|
+ label: "完成时间",
|
|
|
value: this.mainData.finishdate,
|
|
value: this.mainData.finishdate,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -517,7 +527,7 @@ export default {
|
|
|
pageSize:999,
|
|
pageSize:999,
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- console.log(res.data,'333')
|
|
|
|
|
|
|
+
|
|
|
this.optionNames = res.data.map(item => {
|
|
this.optionNames = res.data.map(item => {
|
|
|
return {
|
|
return {
|
|
|
"username":item.username,
|
|
"username":item.username,
|
|
@@ -527,7 +537,7 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
async transferWorkSubmit(){
|
|
async transferWorkSubmit(){
|
|
|
- console.log('执行222')
|
|
|
|
|
|
|
+
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|
|
|
"content": {
|
|
"content": {
|
|
|
"sa_workorderid": this.$route.query.id,
|
|
"sa_workorderid": this.$route.query.id,
|