|
@@ -74,7 +74,7 @@
|
|
|
</tr>-->
|
|
|
</table>
|
|
|
</el-row>
|
|
|
-
|
|
|
+
|
|
|
<!-- 任务汇总 -->
|
|
|
<el-row class="huizongRow">
|
|
|
<p class="titleP">任务汇总</p>
|
|
@@ -105,14 +105,14 @@
|
|
|
</el-col>-->
|
|
|
</el-row>
|
|
|
</el-row>
|
|
|
-
|
|
|
+
|
|
|
<!-- 当前机床图片 -->
|
|
|
<el-row>
|
|
|
<p class="titleP">当前机床</p>
|
|
|
<!-- 加载当前机床图片 -->
|
|
|
<img class="bgImg" :src="currImg"/>
|
|
|
</el-row>
|
|
|
-
|
|
|
+
|
|
|
</el-col>
|
|
|
<el-col :span="17">
|
|
|
<!-- 任务信息 -->
|
|
@@ -173,7 +173,7 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
</el-row>
|
|
|
-
|
|
|
+
|
|
|
<!-- 自动化执行流程 -->
|
|
|
<el-row v-if="isTask">
|
|
|
<p class="titleP">{{$t("runCenter.form.viewSched.autoLiuc")}}</p>
|
|
@@ -203,10 +203,10 @@
|
|
|
<el-table-column prop="resourceName" :label='$t("runCenter.table.aotoProcess.resourceName")' :show-overflow-tooltip="true" width="120px"></el-table-column>
|
|
|
<!-- 动作包指令(报文) -->
|
|
|
<el-table-column prop="code" :label='$t("runCenter.table.aotoProcess.code")' :show-overflow-tooltip="true" width="160px"></el-table-column>
|
|
|
- <!-- 执行动作 -->
|
|
|
- <el-table-column prop="instructionName" :label='$t("runCenter.table.aotoProcess.instructionName")' :show-overflow-tooltip="true"></el-table-column>
|
|
|
- <!-- 操作说明 -->
|
|
|
- <el-table-column prop="remark" :label='$t("runCenter.table.aotoProcess.remark")' :show-overflow-tooltip="true" width="180px"></el-table-column>
|
|
|
+<!-- <!– 执行动作 –>-->
|
|
|
+<!-- <el-table-column prop="instructionName" :label='$t("runCenter.table.aotoProcess.instructionName")' :show-overflow-tooltip="true"></el-table-column>-->
|
|
|
+<!-- <!– 操作说明 –>-->
|
|
|
+<!-- <el-table-column prop="remark" :label='$t("runCenter.table.aotoProcess.remark")' :show-overflow-tooltip="true" width="180px"></el-table-column>-->
|
|
|
<!-- 执行状态 -->
|
|
|
<el-table-column prop="exeStatus" :label='$t("runCenter.table.aotoProcess.exeStatus")' width="150px">
|
|
|
<template slot-scope="{ row }">
|
|
@@ -240,7 +240,7 @@
|
|
|
@pagination="fetch"
|
|
|
/>
|
|
|
</el-row>
|
|
|
-
|
|
|
+
|
|
|
<el-tabs v-model="activeName">
|
|
|
<el-tab-pane label="排期任务" name="first">
|
|
|
<!-- 排期任务 -->
|
|
@@ -318,7 +318,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
+
|
|
|
<!-- 【分页】组件 -->
|
|
|
<pagination2
|
|
|
v-show="tableData2.total > 0"
|
|
@@ -327,8 +327,8 @@
|
|
|
:total="Number(tableData2.total)"
|
|
|
@pagination="fetch2"
|
|
|
/>
|
|
|
-
|
|
|
- </el-row>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="历史任务" name="second">
|
|
|
<!-- 历史任务 -->
|
|
@@ -406,7 +406,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
+
|
|
|
<!-- 【分页】组件 -->
|
|
|
<pagination3
|
|
|
v-show="tableData3.total > 0"
|
|
@@ -415,14 +415,14 @@
|
|
|
:total="Number(tableData3.total)"
|
|
|
@pagination="fetch3"
|
|
|
/>
|
|
|
-
|
|
|
- </el-row>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
-
|
|
|
+
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
-
|
|
|
+
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button plain type="info" @click="isVisible = false">{{ $t('common.cancel') }}</el-button>
|
|
|
<!--<el-button type="primary" :disabled="confirmDisabled" @click="submitForm">{{ $t('machining.buttons.finished') }}</el-button>-->
|
|
@@ -463,7 +463,7 @@ export default {
|
|
|
resourceDetail: {},
|
|
|
currImg: 'require(`@/assets/yunMap/test.png`)',
|
|
|
status:'1,2',
|
|
|
- isShishi: false,
|
|
|
+ isShishi: false,
|
|
|
activeName: 'first',
|
|
|
testResult: '1', // 质检结果
|
|
|
screenWidth: 0,
|
|
@@ -497,10 +497,10 @@ export default {
|
|
|
currentRow: null, // 当前选择的行
|
|
|
currentRow2: null, // 当前选择的行
|
|
|
currentRow3: null, // 当前选择的行
|
|
|
-
|
|
|
+
|
|
|
spanArr: [], // 【组序】合并单元格
|
|
|
spanArr2: [], // 【优先级】合并单元格
|
|
|
-
|
|
|
+
|
|
|
resourceFushu: { // 生成资源附属信息
|
|
|
todoTaskcount: null, // 代办数
|
|
|
todayFinishCount: null, //今日完成数
|
|
@@ -512,24 +512,24 @@ export default {
|
|
|
isTask: false,
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 实例已经在内存中创建好,此时data和methods已将ok,如果要操作data中的数据或是调用methods中的方法,最早只能在created中操作
|
|
|
created() {
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
watch: {
|
|
|
websocketMsg(curVal, oldVal) {
|
|
|
let obj = JSON.parse(curVal)
|
|
|
this.openMessageTips(obj)
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
computed: {
|
|
|
// 接收信息
|
|
|
websocketMsg() {
|
|
|
return this.$store.getters.STAFF_UPDATE.msg
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
isVisible: {
|
|
|
get () {
|
|
|
return this.dialogVisible
|
|
@@ -539,7 +539,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
mounted () {
|
|
|
window.onresize = () => {
|
|
|
return (() => {
|
|
@@ -547,18 +547,18 @@ export default {
|
|
|
})()
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 销毁
|
|
|
destroyed() {
|
|
|
this.websocketClose()
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
methods: {
|
|
|
// 设置style
|
|
|
setStyle(color){
|
|
|
return 'color: '+ color
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// [实时数据]开关-事件
|
|
|
switchChange(val){
|
|
|
console.log("[实时数据]开关-事件: ", val)
|
|
@@ -573,8 +573,8 @@ export default {
|
|
|
// 销毁长连接
|
|
|
this.websocketClose()
|
|
|
}
|
|
|
- },
|
|
|
-
|
|
|
+ },
|
|
|
+
|
|
|
// 推送接收到的数据
|
|
|
openMessageTips(data){
|
|
|
// 如果是【产线看板详情页面】
|
|
@@ -602,7 +602,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 组件销毁的时候,关闭websocket连接
|
|
|
websocketClose() {
|
|
|
this.$store.getters.STAFF_UPDATE.lockReconnect = true
|
|
@@ -611,19 +611,19 @@ export default {
|
|
|
clearTimeout(this.$store.getters.STAFF_UPDATE.timeoutObj) // 离开清除 timeout
|
|
|
clearTimeout(this.$store.getters.STAFF_UPDATE.serverTimeoutObj) // 离开清除 timeout
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// websocket信息变更
|
|
|
onmessage() {
|
|
|
this.$store.getters.STAFF_UPDATE.websock.onmessage = function(evt) {
|
|
|
//console.log(evt)
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
submitForm(){
|
|
|
// 验证【所需原材料】
|
|
|
let mFlag = false
|
|
|
this.tableData1.map(item => {
|
|
|
- // 如果【无编码】否,可以没有编码 !item.meterialCodeIgnore ||
|
|
|
+ // 如果【无编码】否,可以没有编码 !item.meterialCodeIgnore ||
|
|
|
if(item.meterialCodeIgnore == '0' && !item.testMeterialCode){
|
|
|
mFlag = true
|
|
|
}
|
|
@@ -649,7 +649,7 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 传值的对象参数
|
|
|
let taskNode = this.tenant
|
|
|
taskNode.testResult = this.testResult
|
|
@@ -717,7 +717,7 @@ export default {
|
|
|
this.fetch2()
|
|
|
// 加载【历史任务】数据
|
|
|
this.fetch3()
|
|
|
- // 实时数据
|
|
|
+ // 实时数据
|
|
|
this.getBigScreenDynField()
|
|
|
// 任务汇总
|
|
|
this.getTabList()
|
|
@@ -725,7 +725,7 @@ export default {
|
|
|
close () {
|
|
|
this.$emit('close')
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 检测是否有任务信息
|
|
|
checkTask(){
|
|
|
taskMgrApi.checkExeTask({resourceId: this.resourceId}).then(response => {
|
|
@@ -737,7 +737,7 @@ export default {
|
|
|
if(res.data){
|
|
|
// 加载【任务信息】数据
|
|
|
this.getTask()
|
|
|
-
|
|
|
+
|
|
|
// 加载【自动化执行流程】数据
|
|
|
this.fetch()
|
|
|
}
|
|
@@ -745,7 +745,7 @@ export default {
|
|
|
// eslint-disable-next-line no-return-assign
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 获取【任务信息】数据
|
|
|
getTask () {
|
|
|
taskMgrApi.getTaskByResourceId({resourceId: this.resourceId}).then(response => {
|
|
@@ -757,7 +757,7 @@ export default {
|
|
|
// eslint-disable-next-line no-return-assign
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 【自动化执行流程】-数据
|
|
|
fetch (params = {}) {
|
|
|
this.loading = true
|
|
@@ -773,19 +773,19 @@ export default {
|
|
|
}
|
|
|
// eslint-disable-next-line no-return-assign
|
|
|
}).finally(() => this.loading = false)
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 【排期任务】-数据
|
|
|
fetch2 (params = {}) {
|
|
|
this.loading2 = true
|
|
|
|
|
|
this.queryParams2.current = params.current ? params.current : this.queryParams.current
|
|
|
this.queryParams2.size = params.size ? params.size : this.queryParams.size
|
|
|
-
|
|
|
+
|
|
|
this.queryParams2.model.resourceId = this.resourceId
|
|
|
this.queryParams2.model.status = "1,2"
|
|
|
-
|
|
|
+
|
|
|
taskMgrApi.page(this.queryParams2).then(response => {
|
|
|
const res = response.data
|
|
|
if (res.isSuccess) {
|
|
@@ -793,19 +793,19 @@ export default {
|
|
|
}
|
|
|
// eslint-disable-next-line no-return-assign
|
|
|
}).finally(() => this.loading2 = false)
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 【历史任务】-数据
|
|
|
fetch3 (params = {}) {
|
|
|
this.loading3 = true
|
|
|
|
|
|
this.queryParams3.current = params.current ? params.current : this.queryParams.current
|
|
|
this.queryParams3.size = params.size ? params.size : this.queryParams.size
|
|
|
-
|
|
|
+
|
|
|
this.queryParams2.model.resourceId = this.resourceId
|
|
|
this.queryParams3.model.status = "3"
|
|
|
-
|
|
|
+
|
|
|
taskMgrApi.page(this.queryParams3).then(response => {
|
|
|
const res = response.data
|
|
|
if (res.isSuccess) {
|
|
@@ -813,24 +813,24 @@ export default {
|
|
|
}
|
|
|
// eslint-disable-next-line no-return-assign
|
|
|
}).finally(() => this.loading3 = false)
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 展示动态字段
|
|
|
getBigScreenDynField(){
|
|
|
lineBoardAPI.getBigScreenDynField({id: this.resourceId}).then(res => {
|
|
|
- res = res.data
|
|
|
+ res = res.data
|
|
|
console.log("展示动态字段:", res)
|
|
|
if(res.isSuccess){
|
|
|
this.taskList = res.data
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 获取列表数据
|
|
|
getTabList(){
|
|
|
lineBoardAPI.getBigScreenList({id: this.resourceId}).then(res => {
|
|
|
- res = res.data
|
|
|
+ res = res.data
|
|
|
// console.log("1111:", res)
|
|
|
if(res.isSuccess){
|
|
|
let list = res.data.list
|
|
@@ -848,7 +848,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//获得数据相同的行数
|
|
|
rowspanFiled(data, filed) {
|
|
|
let spanArr5 = [];
|
|
@@ -909,7 +909,7 @@ export default {
|
|
|
// 根据【工艺id】查询详情信息
|
|
|
getDetail(obj){
|
|
|
machiningClientApi.getTaskTest(obj).then(res => {
|
|
|
- res = res.data
|
|
|
+ res = res.data
|
|
|
if(res.isSuccess){
|
|
|
console.log("详情信息:", res.data)
|
|
|
// 给各个组件赋值
|
|
@@ -1027,6 +1027,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-</style>
|
|
|
+
|
|
|
+
|
|
|
+</style>
|