|
@@ -1,10 +1,93 @@
|
|
|
<template>
|
|
<template>
|
|
|
-
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <basicDetails
|
|
|
|
|
+ ref="details"
|
|
|
|
|
+ :titleText="mainData.billno"
|
|
|
|
|
+ :editData="mainData"
|
|
|
|
|
+ :mainAreaData="mainAreaData"
|
|
|
|
|
+ turnPageId="2026013111220102"
|
|
|
|
|
+ idname="sa_service_improvementid"
|
|
|
|
|
+ ownertable="sa_service_improvement"
|
|
|
|
|
+ tabName="tab2"
|
|
|
|
|
+ SalesmanQ="不执行"
|
|
|
|
|
+ tags=""
|
|
|
|
|
+ :tabs="['服务申请','服务工单','服务改善']"
|
|
|
|
|
+ @pageChange="pageChange"
|
|
|
|
|
+ @onEditSuccess="queryMainData($route.query.id)">
|
|
|
|
|
+ <div slot="slot0" >
|
|
|
|
|
+ <serviceApplication ref="serviceApplicationRef" v-if="mainData" :mainData="mainData"></serviceApplication>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div slot="slot1">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div slot="slot2" >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </basicDetails>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import serviceApplication from "@/HDrpManagement/serveBillMag/components/serviceApplication";
|
|
|
export default {
|
|
export default {
|
|
|
- name: "detail"
|
|
|
|
|
|
|
+ name: "detail",
|
|
|
|
|
+ components:{
|
|
|
|
|
+ serviceApplication
|
|
|
|
|
+ },
|
|
|
|
|
+ data(){
|
|
|
|
|
+ return {
|
|
|
|
|
+ mainData:{},
|
|
|
|
|
+ mainAreaData:{},
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ methods:{
|
|
|
|
|
+ async queryMainData(){
|
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
|
+ "id": 2026013111234002,
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "sa_service_improvementid": this.$route.query.id
|
|
|
|
|
+ },
|
|
|
|
|
+ })
|
|
|
|
|
+ this.mainData = res.data
|
|
|
|
|
+ this.changeDataStructure()
|
|
|
|
|
+ },
|
|
|
|
|
+ changeDataStructure(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ this.mainAreaData = [
|
|
|
|
|
+ {label:'改善单号',value:this.mainData.billno},
|
|
|
|
|
+ {label:'改善类别',value:this.mainData.type},
|
|
|
|
|
+ {label:'状态',value:this.mainData.status,
|
|
|
|
|
+ style:function () {
|
|
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.status)
|
|
|
|
|
+ return style
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {label:'工单号',value:this.mainData.billno_workorder},
|
|
|
|
|
+ {label:'申请单号',value:this.mainData.billno_serviceorder},
|
|
|
|
|
+ {label:'客诉大类',value:this.mainData.class2},
|
|
|
|
|
+ {label:'分析负责人',value:this.mainData.userid_analysis},
|
|
|
|
|
+ {label:'真因分析时间',value:this.mainData.submitdate},
|
|
|
|
|
+ {label:'责任部门',value:this.mainData.depname_charge},
|
|
|
|
|
+ {label:'方案发布人',value:this.mainData.sendby},
|
|
|
|
|
+ {label:'方案发布时间',value:this.mainData.senddate},
|
|
|
|
|
+ {label:'改善计划周期',value:this.mainData.planned_cycle},
|
|
|
|
|
+ {label:'改善实际周期',value:this.mainData.actual_cycle},
|
|
|
|
|
+ {label:'改善方案进度',value:this.mainData.progress},
|
|
|
|
|
+ {label:'改善结果',value:this.mainData.result},
|
|
|
|
|
+ {label:'创建时间',value:this.mainData.createdate},
|
|
|
|
|
+ {label:'完成时间',value:this.mainData.finishdate},
|
|
|
|
|
+ {label:'备注',value:this.mainData.remarks},
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ // 监听切换数据,上一页,下一页
|
|
|
|
|
+ pageChange (id,rowindex,tabIndex) {
|
|
|
|
|
+ this.flag = false
|
|
|
|
|
+ tabIndex = this.$route.query.tabIndex
|
|
|
|
|
+ this.$router.replace({path:'/serveBillDetail',query:{id:id,rowindex:rowindex,tabIndex:tabIndex}})
|
|
|
|
|
+ this.queryMainData(id)
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ this.queryMainData()
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|