|  |  |  | 
|---|
|  |  |  | <div class="table_info"> | 
|---|
|  |  |  | <div class="title">不符合项工单列表</div> | 
|---|
|  |  |  | <el-table :data="info.dcaChildList" border fit> | 
|---|
|  |  |  | <el-table-column prop="index" label="序号" width="55" fixed="left"> | 
|---|
|  |  |  | <template slot-scope="scope">{{ scope.$index+1}}</template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="工单号" prop="code" min-width="100"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span style="color: #2E68EC;cursor: pointer" @click="$refs.OperaWorkorderDetailDcaInfoWindow.open('DCA不符合项工单详情', row)" >{{ row.code || '-'}}</span> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--<el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:workorder:delete']">删除</el-button>--> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="table_info"> | 
|---|
|  |  |  | <div class="title">符合项列表</div> | 
|---|
|  |  |  | <el-table :data="dataList2" border fit> | 
|---|
|  |  |  | <el-table-column prop="index" label="序号" width="55" fixed="left"> | 
|---|
|  |  |  | <template slot-scope="scope">{{ scope.$index+1}}</template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="一级主题" prop="typeName" min-width="160"> </el-table-column> | 
|---|
|  |  |  | <el-table-column label="二级主题" prop="categoryName" min-width="150"> </el-table-column> | 
|---|
|  |  |  | <el-table-column label="观察项" prop="problemTitle" min-width="400"> </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | type: null, | 
|---|
|  |  |  | title: '工单详情', | 
|---|
|  |  |  | info: {}, | 
|---|
|  |  |  | dataList2: [], | 
|---|
|  |  |  | statusMap: { | 
|---|
|  |  |  | 0: '待分配WTS', | 
|---|
|  |  |  | 1: '待分配任务', | 
|---|
|  |  |  | 
|---|
|  |  |  | getDetail () { | 
|---|
|  |  |  | getById(this.info.id).then(res => { | 
|---|
|  |  |  | this.info = res | 
|---|
|  |  |  | this.getDataListByRemak() | 
|---|
|  |  |  | if (this.info.logList && this.info.logList.length > 0) { | 
|---|
|  |  |  | this.info.logList.forEach(item => { | 
|---|
|  |  |  | if (item.approveList && item.approveList.length == 1 && item.type !== 1) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getDataListByRemak () { | 
|---|
|  |  |  | this.dataList2 =[] | 
|---|
|  |  |  | if(this.info.remark){ | 
|---|
|  |  |  | var obj = JSON.parse(this.info.remark) | 
|---|
|  |  |  | console.log(obj) | 
|---|
|  |  |  | if(obj && obj.childMapList){ | 
|---|
|  |  |  | obj.childMapList.forEach(item =>{ | 
|---|
|  |  |  | if(item && item.problemMapList){ | 
|---|
|  |  |  | item.problemMapList.forEach(item1 =>{ | 
|---|
|  |  |  | if(item1 && item1.status === 1){ | 
|---|
|  |  |  | this.dataList2.push({'typeName':this.info.typeName, 'categoryName':item.childTitle,'problemTitle':item1.title}) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | reject () { }, | 
|---|
|  |  |  | handleAvatarSuccess () { }, | 
|---|
|  |  |  | beforeAvatarUpload () { } | 
|---|