|
@@ -24,6 +24,8 @@
|
|
|
<a @click="showCheckDetails(row)" style="color: #2db7f5">{{row.hasCuttingToolsFlag}} </a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="deviceName" :label='"设备"' :show-overflow-tooltip="true"></el-table-column>
|
|
|
+ <el-table-column prop="msg" :label='"错误信息"' :show-overflow-tooltip="true"></el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<!-- 刀具校验详情对话框-->
|
|
@@ -37,8 +39,8 @@
|
|
|
@refresh="fetch"
|
|
|
>
|
|
|
<!--【 刀具校验对话框】 -->
|
|
|
- <checkDetailCuttingTools
|
|
|
- :detail-plan-id="detailPlanId"
|
|
|
+ <toolChange
|
|
|
+ :device-id="deviceId"
|
|
|
@close="checkDetailCuttingToolsClose"
|
|
|
/>
|
|
|
</el-dialog>
|
|
@@ -49,10 +51,13 @@
|
|
|
// 【订单计划】-API
|
|
|
import planMgrApi from "@/api/runManageCenter/planMgr"
|
|
|
import checkDetailCuttingTools from "@/views/zuihou/runManageCenter/orderMgr/components/runningOrder/components/checkCuttingTools/checkDetailCuttingTools"
|
|
|
+ import toolChange from "@/views/zuihou/centralToolMagazine/changeToolTask/Index"
|
|
|
+
|
|
|
+ import orderMgrApi from "@/api/runManageCenter/orderMgr";
|
|
|
export default {
|
|
|
name: "checkCuttingTool",
|
|
|
directives: {},
|
|
|
- components: {checkDetailCuttingTools},
|
|
|
+ components: {toolChange},
|
|
|
props: {
|
|
|
planId: {
|
|
|
type:String,
|
|
@@ -65,6 +70,7 @@
|
|
|
loading: false,
|
|
|
checkDetailCuttingToolsVisible: false,
|
|
|
detailPlanId: '',
|
|
|
+ deviceId:'',
|
|
|
tableData: []
|
|
|
}
|
|
|
},
|
|
@@ -90,20 +96,30 @@
|
|
|
fetch () {
|
|
|
console.log("this.planId=" + this.planId)
|
|
|
this.loading = true
|
|
|
+
|
|
|
+ orderMgrApi.toolCheck({"plan": this.planId}).then(response => {
|
|
|
+ const res = response.data
|
|
|
+ if(res.isSuccess){
|
|
|
+ this.tableData = res.data
|
|
|
+ }
|
|
|
+ }).finally(() => this.loading = false)
|
|
|
+
|
|
|
// TOTO 临时写死一个测试,后面订单页面调整完成后直接用选中的计划id
|
|
|
- planMgrApi.checkPlanCuttingTools({ "planId": this.planId }).then(response => {
|
|
|
+ /* planMgrApi.checkPlanCuttingTools({ "planId": this.planId }).then(response => {
|
|
|
const res = response.data
|
|
|
if (res.isSuccess) {
|
|
|
this.tableData = res.data
|
|
|
}
|
|
|
- }).finally(() => this.loading = false)
|
|
|
+ }).finally(() => this.loading = false)*/
|
|
|
},
|
|
|
|
|
|
showCheckDetails(data){
|
|
|
+ console.log(data)
|
|
|
if(data.hasCuttingToolsFlag === '是'){
|
|
|
return
|
|
|
}
|
|
|
this.detailPlanId = data.planId
|
|
|
+ this.deviceId = data.id
|
|
|
this.checkDetailCuttingToolsVisible = true
|
|
|
},
|
|
|
|