|
@@ -63,7 +63,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-view"
|
|
icon="el-icon-view"
|
|
size="medium"
|
|
size="medium"
|
|
- @click="readView"
|
|
|
|
|
|
+ @click="readView"
|
|
>
|
|
>
|
|
读RFID
|
|
读RFID
|
|
</el-button>
|
|
</el-button>
|
|
@@ -263,6 +263,7 @@ import TaskView3 from "./components/View3";
|
|
import { fullScreen, exitFullScreen, initQueryParams } from "@/utils/commons";
|
|
import { fullScreen, exitFullScreen, initQueryParams } from "@/utils/commons";
|
|
import stationMgrApi from "@/api/machiningClient/stationMgr";
|
|
import stationMgrApi from "@/api/machiningClient/stationMgr";
|
|
import taskMgrApi from "@/api/runManageCenter/taskMgr";
|
|
import taskMgrApi from "@/api/runManageCenter/taskMgr";
|
|
|
|
+import machiningClientApi from "@/api/machiningClient/machiningClient"
|
|
import Pagination from "@/components/Pagination"
|
|
import Pagination from "@/components/Pagination"
|
|
export default {
|
|
export default {
|
|
name: "TouchScreen",
|
|
name: "TouchScreen",
|
|
@@ -272,6 +273,16 @@ export default {
|
|
return {
|
|
return {
|
|
tableKey: 0,
|
|
tableKey: 0,
|
|
queryParams: initQueryParams({}),
|
|
queryParams: initQueryParams({}),
|
|
|
|
+ RFIDParams: {
|
|
|
|
+ url: "192.168.11.130",
|
|
|
|
+ port: "102",
|
|
|
|
+ taskId: "",
|
|
|
|
+ taskNodeId: "",
|
|
|
|
+ data: {
|
|
|
|
+ content: "",
|
|
|
|
+ positionIndex: ""
|
|
|
|
+ }
|
|
|
|
+ },
|
|
options: [
|
|
options: [
|
|
],
|
|
],
|
|
currentStationId: "",
|
|
currentStationId: "",
|
|
@@ -288,6 +299,7 @@ export default {
|
|
view3Visible: false,
|
|
view3Visible: false,
|
|
isFullSreen: false, // 默认不全屏
|
|
isFullSreen: false, // 默认不全屏
|
|
loading: false,
|
|
loading: false,
|
|
|
|
+ uniqueCode: "",
|
|
tableData: {
|
|
tableData: {
|
|
total: 0
|
|
total: 0
|
|
}
|
|
}
|
|
@@ -383,7 +395,22 @@ export default {
|
|
|
|
|
|
readView() {
|
|
readView() {
|
|
//this.tenantViewVisible = true
|
|
//this.tenantViewVisible = true
|
|
- this.$refs.view.read(null);
|
|
|
|
|
|
+ //this.$refs.view2.read(null)
|
|
|
|
+ let currentNode = this.taskData[0]
|
|
|
|
+ this.RFIDParams.taskId = currentNode.id
|
|
|
|
+ this.RFIDParams.taskNodeId = currentNode.taskNodeId
|
|
|
|
+ this.RFIDParams.data.positionIndex = this.currentStationName.substr(-1)
|
|
|
|
+ let that = this
|
|
|
|
+ machiningClientApi.read(this.RFIDParams).then(res => {
|
|
|
|
+ if(res.data.result){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "RFID: "+res.data.result,
|
|
|
|
+ type: "success"
|
|
|
|
+ })
|
|
|
|
+ that.uniqueCode = res.data.result
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
},
|
|
},
|
|
showRFID(code) {
|
|
showRFID(code) {
|
|
console.log(code);
|
|
console.log(code);
|
|
@@ -406,9 +433,11 @@ export default {
|
|
this.$refs.view1.setTenant(item)
|
|
this.$refs.view1.setTenant(item)
|
|
this.view1Visible = true
|
|
this.view1Visible = true
|
|
}else if(item.taskName == '人工翻面'){
|
|
}else if(item.taskName == '人工翻面'){
|
|
|
|
+ item.uniqueCode = this.uniqueCode
|
|
this.$refs.view2.setTenant(item)
|
|
this.$refs.view2.setTenant(item)
|
|
this.view2Visible = true
|
|
this.view2Visible = true
|
|
}else if(item.taskName == '下料'){
|
|
}else if(item.taskName == '下料'){
|
|
|
|
+ item.uniqueCode = this.uniqueCode
|
|
this.$refs.view3.setTenant(item)
|
|
this.$refs.view3.setTenant(item)
|
|
this.view3Visible = true
|
|
this.view3Visible = true
|
|
}
|
|
}
|