|
@@ -53,7 +53,7 @@
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
<el-tabs type="border-card" v-model="activeName" v-else @tab-click="handleClick">
|
|
<el-tabs type="border-card" v-model="activeName" v-else @tab-click="handleClick">
|
|
|
- <el-tab-pane label="服务商品" name="服务商品">
|
|
|
|
|
|
|
+ <el-tab-pane label="工单服务商品" name="工单服务商品">
|
|
|
<Items :data="internalData" :sa_workorderid="newQuery?mainData.sa_workorderid:$route.query.id"></Items>
|
|
<Items :data="internalData" :sa_workorderid="newQuery?mainData.sa_workorderid:$route.query.id"></Items>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="服务确认单" name="服务确认单">
|
|
<el-tab-pane label="服务确认单" name="服务确认单">
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
components:{detailInfo,taskDetail,taskListDetail,taskListEdit,Items,checkBill,teamList,selectTeam,materials},
|
|
components:{detailInfo,taskDetail,taskListDetail,taskListEdit,Items,checkBill,teamList,selectTeam,materials},
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
|
- activeName:'服务商品',
|
|
|
|
|
|
|
+ activeName:'工单服务商品',
|
|
|
active_accoun:JSON.parse(sessionStorage.getItem('active_account')),
|
|
active_accoun:JSON.parse(sessionStorage.getItem('active_account')),
|
|
|
folderid:JSON.parse(sessionStorage.getItem('folderid')),
|
|
folderid:JSON.parse(sessionStorage.getItem('folderid')),
|
|
|
internalData:{ isServerMag:false,isleader:false },
|
|
internalData:{ isServerMag:false,isleader:false },
|
|
@@ -122,7 +122,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
async queryMainData(id) {
|
|
async queryMainData(id) {
|
|
|
- console.log('输出mainData')
|
|
|
|
|
this.internalData.isServerMag = false
|
|
this.internalData.isServerMag = false
|
|
|
this.internalData.isleader = false
|
|
this.internalData.isleader = false
|
|
|
if (this.hrid !== 0){
|
|
if (this.hrid !== 0){
|
|
@@ -144,7 +143,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
this.internalData = Object.assign({}, this.internalData, res.data);
|
|
this.internalData = Object.assign({}, this.internalData, res.data);
|
|
|
- console.log(this.internalData,'internalData3434')
|
|
|
|
|
|
|
|
|
|
if (res.data.length > 0){
|
|
if (res.data.length > 0){
|
|
|
res.data.team.forEach(item => {
|
|
res.data.team.forEach(item => {
|
|
@@ -158,22 +156,19 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
// this.nodes = this.createTreeData(res.data.nodes);
|
|
// this.nodes = this.createTreeData(res.data.nodes);
|
|
|
- console.log(this.nodes,'nodes的数据1222')
|
|
|
|
|
}
|
|
}
|
|
|
this.changeDataStructure(this.internalData)
|
|
this.changeDataStructure(this.internalData)
|
|
|
},
|
|
},
|
|
|
changeDataStructure(newData){
|
|
changeDataStructure(newData){
|
|
|
- console.log(this.team_name,this.team_phone_number)
|
|
|
|
|
if (newData){
|
|
if (newData){
|
|
|
this.internalData = { ...newData }
|
|
this.internalData = { ...newData }
|
|
|
}else {
|
|
}else {
|
|
|
- console.log(this.nodes,'nodes的数据')
|
|
|
|
|
this.nodes = this.nodes
|
|
this.nodes = this.nodes
|
|
|
this.internalData = { ...this.mainData }
|
|
this.internalData = { ...this.mainData }
|
|
|
}
|
|
}
|
|
|
- this.internalData.actiontype == '工序模板'?this.activeName = '工序详情' : this.activeName = '服务商品'
|
|
|
|
|
|
|
+ this.internalData.actiontype == '工序模板'?this.activeName = '工序详情' : this.activeName = '工单服务商品'
|
|
|
let that = this;
|
|
let that = this;
|
|
|
- if (this.internalData.team.length > 0){
|
|
|
|
|
|
|
+ if (this.internalData.team && this.internalData.team.length > 0){
|
|
|
this.internalData.team.forEach(item => {
|
|
this.internalData.team.forEach(item => {
|
|
|
if (item.isleader){
|
|
if (item.isleader){
|
|
|
this.team_name = item.name
|
|
this.team_name = item.name
|
|
@@ -241,6 +236,10 @@ export default {
|
|
|
? this.$t("通用模板")
|
|
? this.$t("通用模板")
|
|
|
: this.internalData.actiontype,
|
|
: this.internalData.actiontype,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "历史服务次数",
|
|
|
|
|
+ value: this.tool.qtyShow(this.internalData.historicalservicesqty),
|
|
|
|
|
+ },
|
|
|
{ label:'备注', value: this.internalData.remarks},
|
|
{ label:'备注', value: this.internalData.remarks},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
@@ -341,7 +340,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
handleClick(){
|
|
handleClick(){
|
|
|
- console.log(this.internalData,'输出internalData')
|
|
|
|
|
if (this.activeName == '服务确认单'){
|
|
if (this.activeName == '服务确认单'){
|
|
|
let id = this.internalData.sa_workorderid ? this.internalData.sa_workorderid : -1
|
|
let id = this.internalData.sa_workorderid ? this.internalData.sa_workorderid : -1
|
|
|
this.$refs.checkBillRef.listData(id)
|
|
this.$refs.checkBillRef.listData(id)
|