|
@@ -34,7 +34,7 @@
|
|
|
<!-- 列表数据 -->
|
|
|
<span style="font-size: 18px;">{{ deviceName }}需要放入 <span style="color: red;font-size: 30px;">{{ allCount }}</span> 把刀</span>
|
|
|
<span style="font-size: 18px;">,还缺 <span style="color: red;font-size: 30px;">{{ remainingToolCount }}</span> 把刀</span>
|
|
|
- <el-button class="el-button--primary generateTask" @click="saveToolTask()">生成任务</el-button>
|
|
|
+ <el-button v-show="false" class="el-button--primary generateTask" @click="saveToolTask()">生成任务</el-button>
|
|
|
<el-table
|
|
|
:key="tableKey"
|
|
|
ref="table"
|
|
@@ -48,18 +48,18 @@
|
|
|
>
|
|
|
<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="name" :label='"库位名称"' :show-overflow-tooltip="true"></el-table-column>
|
|
|
- <el-table-column prop="no" :label='"库位编码"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
- <el-table-column prop="handleName" :label='"刀柄名称"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
- <el-table-column prop="cuttingToolName" :label='"刀具名称"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
- <el-table-column prop="cutterCode" :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="cutterNo" :label='"刀位号"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
+ <el-table-column prop="cuttingToolNo" :label='"刀具号"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
+ <el-table-column prop="cuttingToolName" :label='"刀具名称"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
+ <el-table-column prop="toolSetToCheckParameter" :label='"刀具参数"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
<el-table-column prop="toolLifeSpan" :label='"刀具寿命"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
<el-table-column prop="toolRatedUsageCount" :label='"刀具额定次数"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
<el-table-column prop="toolUsedCount" :label='"刀具使用次数"' :show-overflow-tooltip="true" ></el-table-column>
|
|
|
- <el-table-column prop="checkLock" :label='"锁定状态"' align="center" width="90px">
|
|
|
+ <el-table-column prop="checkLock" :label='"待装刀具"' align="center" width="90px">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-tag :type="(row.checkLock === '0' || row.checkLock === '') ? 'success' : 'danger'">
|
|
|
- {{ (row.checkLock === '0' || row.checkLock === '') ? $t("common.yes") : $t("common.no") }}
|
|
|
+ <el-tag :type="(row.deviceId != '0') ? 'success' : 'danger'">
|
|
|
+ {{ (row.deviceId != '0') ? $t("common.no") : $t("common.yes") }}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -107,6 +107,7 @@
|
|
|
// 【边线库管理】-API
|
|
|
import lineSideMgrApi from "@/api/lineSideLibrary/lineSideMgr"
|
|
|
import toolStroge from "@/api/lineSideLibrary/toolStorge"
|
|
|
+ import cuttingToolMgrApi from "@/api/prepareProductMgr/customizeCuttingTool"
|
|
|
|
|
|
import elDragDialog from '@/directive/el-drag-dialog'
|
|
|
import { downloadFile, initEnums, initDicts, initQueryParams } from '@/utils/commons'
|
|
@@ -399,12 +400,16 @@
|
|
|
// 获取列表数据
|
|
|
getTabList(deviceId){
|
|
|
console.log("deviceId:"+this.deviceId)
|
|
|
- toolStroge.getDeviceStorge({"deviceId":deviceId}).then(res => {
|
|
|
+ //toolStroge.getDeviceStorge({"deviceId":deviceId}).then(res => {
|
|
|
+ this.queryParams.size = 100
|
|
|
+ this.queryParams.model.deviceId = this.deviceId
|
|
|
+ this.queryParams.model.needCutterList = this.toolCategory
|
|
|
+ cuttingToolMgrApi.page(this.queryParams).then(res => {
|
|
|
res = res.data
|
|
|
console.log("方块列表:", res)
|
|
|
- if(res.isSuccess){
|
|
|
- this.shelvesTreeList = res.data;
|
|
|
- }
|
|
|
+ if(res.isSuccess){
|
|
|
+ this.shelvesTreeList = res.data.records;
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
saveToolTask(){
|