|
@@ -2,13 +2,13 @@
|
|
|
<div class="app-container">
|
|
|
<!-- 搜索模块 -->
|
|
|
<div class="filter-container">
|
|
|
- <span>
|
|
|
+<!-- <span>
|
|
|
<span>订单名称:</span>
|
|
|
<el-input v-model="queryParams.model.orderName" :placeholder='$t("common.pleaseEnter")' style="width: 150px;" size="medium"/>
|
|
|
- </span>
|
|
|
+ </span>-->
|
|
|
<span style="margin-left: 15px;">
|
|
|
<span>{{$t("lineSide.searchForm.status")}}:</span>
|
|
|
- <el-select v-model="queryParams.model.status" :placeholder='$t("common.pleaseSelect")' size="medium" style="width: 150px;">
|
|
|
+ <el-select v-model="queryParams.model.scanResult" :placeholder='$t("common.pleaseSelect")' size="medium" style="width: 150px;">
|
|
|
<el-option
|
|
|
v-for="item in audioStatus"
|
|
|
:key="item.value"
|
|
@@ -41,13 +41,13 @@
|
|
|
>
|
|
|
<el-table-column label='' width="50" align="center"></el-table-column>
|
|
|
<el-table-column align="center" type="selection" width="50" :reserve-selection="true" />
|
|
|
- <el-table-column prop="orderName" :label='"订单名称"' :show-overflow-tooltip="true"></el-table-column>
|
|
|
+<!-- <el-table-column prop="orderName" :label='"订单名称"' :show-overflow-tooltip="true"></el-table-column>-->
|
|
|
<el-table-column prop="deviceName" :label='"设备名称"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
<el-table-column prop="needToolCategory" :label='"缺少刀具类别"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
- <el-table-column prop="status" :label='"任务状态"' :show-overflow-tooltip="true" >
|
|
|
+ <el-table-column prop="scanResult" :label='"任务状态"' :show-overflow-tooltip="true" >
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-tag :type="getTagType(row.status)">
|
|
|
- {{ getToolTypeText(row.status) }}
|
|
|
+ <el-tag :type="getTagType(row.scanResult)">
|
|
|
+ {{ getToolTypeText(row.scanResult) }}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -85,6 +85,8 @@
|
|
|
:device-name="deviceName"
|
|
|
:plan-id="planId"
|
|
|
:device-id="deviceId"
|
|
|
+ :task-id="id"
|
|
|
+ :scan-result="scanResult"
|
|
|
@close="editClose"
|
|
|
@success="editSuccess"
|
|
|
/>
|
|
@@ -116,7 +118,7 @@
|
|
|
// 【货架管理】-API
|
|
|
import toolManagementApi from "@/api/modelingCenter/toolManagement"
|
|
|
import elDragDialog from '@/directive/el-drag-dialog'
|
|
|
- import { downloadFile, initEnums, initDicts, initQueryParams } from '@/utils/commons'
|
|
|
+ import {downloadFile, initEnums, initDicts, initQueryParams, initQueryParams0} from '@/utils/commons'
|
|
|
// 加载工具类
|
|
|
import { convertEnum, createTreeData } from '@/utils/utils'
|
|
|
import axios from 'axios'
|
|
@@ -139,7 +141,7 @@
|
|
|
},
|
|
|
tenantViewVisible: false,
|
|
|
tableKey: 0,
|
|
|
- queryParams: initQueryParams({}),
|
|
|
+ queryParams: initQueryParams0({}),
|
|
|
selection: [],
|
|
|
loading: false,
|
|
|
tableData: {
|
|
@@ -155,7 +157,9 @@
|
|
|
toolCategory:[],
|
|
|
deviceName:'',
|
|
|
planId:'',
|
|
|
- deviceId:''
|
|
|
+ deviceId:'',
|
|
|
+ id:'',
|
|
|
+ scanResult:'',
|
|
|
}
|
|
|
},
|
|
|
// 实例已经在内存中创建好,此时data和methods已将ok,如果要操作data中的数据或是调用methods中的方法,最早只能在created中操作
|
|
@@ -361,12 +365,16 @@
|
|
|
this.edit(this.selection[0]);
|
|
|
},
|
|
|
edit (row) {
|
|
|
- if (row.status === '1' ){
|
|
|
+ if (row.status === '1' || row.status === '0'){
|
|
|
this.toolCategory = row.taskNodeToolList
|
|
|
this.deviceName = row.deviceName
|
|
|
this.planId = row.planId
|
|
|
this.deviceId = row.deviceId
|
|
|
+ this.id = row.id
|
|
|
+ this.scanResult = row.scanResult
|
|
|
+ console.log("this.id:"+this.id)
|
|
|
this.dialog.isVisible = true
|
|
|
+ this.$refs.edit.fetch()
|
|
|
}
|
|
|
},
|
|
|
fetch (params = {}) {
|
|
@@ -406,22 +414,24 @@
|
|
|
},
|
|
|
getTagType(toolType) {
|
|
|
switch (toolType) {
|
|
|
- case '1':
|
|
|
+ case '0':
|
|
|
return 'info'; // 第一种类型的标签颜色
|
|
|
- case '2':
|
|
|
+ case '1':
|
|
|
return 'warning'; // 第二种类型的标签颜色
|
|
|
- case '3':
|
|
|
+ case '2':
|
|
|
return 'success'; // 第三种类型的标签颜色
|
|
|
}
|
|
|
},
|
|
|
getToolTypeText(toolType) {
|
|
|
switch (toolType) {
|
|
|
+ case '0':
|
|
|
+ return "未扫描"; // 第二种类型的文本
|
|
|
case '1':
|
|
|
- return "未开始"; // 第二种类型的文本
|
|
|
+ return '部分扫描'; // 第三种类型的文本
|
|
|
case '2':
|
|
|
- return '进行中'; // 第三种类型的文本
|
|
|
- case '3':
|
|
|
- return '已完成'; // 第四种类型的文本
|
|
|
+ return '全部扫描'; // 第四种类型的文本
|
|
|
+ default:
|
|
|
+ return "未扫描"
|
|
|
}
|
|
|
}
|
|
|
}
|