|
@@ -65,7 +65,7 @@
|
|
|
</tr>
|
|
</tr>
|
|
|
</table>
|
|
</table>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 自动化执行流程 -->
|
|
<!-- 自动化执行流程 -->
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<p class="titleP">{{$t("runCenter.form.viewSched.autoLiuc")}}</p>
|
|
<p class="titleP">{{$t("runCenter.form.viewSched.autoLiuc")}}</p>
|
|
@@ -166,7 +166,7 @@
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
<el-button type="primary" plain size="mini" @click="print(row)">打码</el-button>
|
|
<el-button type="primary" plain size="mini" @click="print(row)">打码</el-button>
|
|
|
<el-button type="primary" plain size="mini" @click="read(row)">读RFID</el-button>
|
|
<el-button type="primary" plain size="mini" @click="read(row)">读RFID</el-button>
|
|
|
- <el-button type="primary" plain size="mini" @click="write(row)">写RFID</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" plain size="mini" @click="write(row)">写RFID</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<!-- 校验结果 -->
|
|
<!-- 校验结果 -->
|
|
@@ -192,8 +192,8 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- </el-row>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+
|
|
|
<!-- 托盘夹具组 -->
|
|
<!-- 托盘夹具组 -->
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<p class="titleP">{{$t("prepare.common.tpJgroup")}}</p>
|
|
<p class="titleP">{{$t("prepare.common.tpJgroup")}}</p>
|
|
@@ -235,9 +235,9 @@
|
|
|
<el-table-column prop="armorPic" :label='$t("prepare.table.toolGroup.armorPic")' align="center" width="180px">
|
|
<el-table-column prop="armorPic" :label='$t("prepare.table.toolGroup.armorPic")' align="center" width="180px">
|
|
|
<template slot-scope="{ row }" v-if="row.category.key == '02'">
|
|
<template slot-scope="{ row }" v-if="row.category.key == '02'">
|
|
|
<div v-if="row.jjImgList && row.jjImgList.length > 0" class="demo-image__preview">
|
|
<div v-if="row.jjImgList && row.jjImgList.length > 0" class="demo-image__preview">
|
|
|
- <el-image
|
|
|
|
|
|
|
+ <el-image
|
|
|
style="width: 100px; height: 60px"
|
|
style="width: 100px; height: 60px"
|
|
|
- :src="row.jjImgList[0]"
|
|
|
|
|
|
|
+ :src="row.jjImgList[0]"
|
|
|
:preview-src-list="row.jjImgList">
|
|
:preview-src-list="row.jjImgList">
|
|
|
</el-image>
|
|
</el-image>
|
|
|
</div>
|
|
</div>
|
|
@@ -251,7 +251,7 @@
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
<el-input size="small" v-model="row.uniqueCode" :placeholder='$t("common.pleaseEnter")'></el-input>
|
|
<el-input size="small" v-model="row.uniqueCode" :placeholder='$t("common.pleaseEnter")'></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ </el-table-column>
|
|
|
<!-- 校验结果 -->
|
|
<!-- 校验结果 -->
|
|
|
<el-table-column v-if="tenant.loadingType=='1'" prop="checkData" :label='$t("prepare.table.tools.verificationResults")' align="center" width="150px">
|
|
<el-table-column v-if="tenant.loadingType=='1'" prop="checkData" :label='$t("prepare.table.tools.verificationResults")' align="center" width="150px">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
@@ -276,7 +276,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 【库位产品】组件 -->
|
|
<!-- 【库位产品】组件 -->
|
|
|
<product-select
|
|
<product-select
|
|
|
ref="product"
|
|
ref="product"
|
|
@@ -284,7 +284,7 @@
|
|
|
@success="selectedCode"
|
|
@success="selectedCode"
|
|
|
@close="viewClose"
|
|
@close="viewClose"
|
|
|
/>
|
|
/>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button plain type="info" @click="isVisible = false">{{ $t('machining.buttons.noFinished') }}</el-button>
|
|
<el-button plain type="info" @click="isVisible = false">{{ $t('machining.buttons.noFinished') }}</el-button>
|
|
|
<el-button type="primary" :disabled="confirmDisabled" @click="submitForm">{{ $t('machining.buttons.finished') }}</el-button>
|
|
<el-button type="primary" :disabled="confirmDisabled" @click="submitForm">{{ $t('machining.buttons.finished') }}</el-button>
|
|
@@ -338,7 +338,7 @@ export default {
|
|
|
tableData1: [],
|
|
tableData1: [],
|
|
|
tableData2: [],
|
|
tableData2: [],
|
|
|
currentRow: null, // 当前选择的行
|
|
currentRow: null, // 当前选择的行
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
spanArr: [], // 【组序】合并单元格
|
|
spanArr: [], // 【组序】合并单元格
|
|
|
spanArr2: [], // 【优先级】合并单元格
|
|
spanArr2: [], // 【优先级】合并单元格
|
|
|
}
|
|
}
|
|
@@ -370,11 +370,11 @@ export default {
|
|
|
this.$refs.product.setTenant(this.tenant, row, flag)
|
|
this.$refs.product.setTenant(this.tenant, row, flag)
|
|
|
this.productVisible = true
|
|
this.productVisible = true
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
viewClose () {
|
|
viewClose () {
|
|
|
this.productVisible = false
|
|
this.productVisible = false
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 【从库位选-入产线编码】返回的数据-函数
|
|
// 【从库位选-入产线编码】返回的数据-函数
|
|
|
selectedCode(cRow, uniqueCode, flag){
|
|
selectedCode(cRow, uniqueCode, flag){
|
|
|
// console.log("子组件的传值:", cRow, uniqueCode, flag)
|
|
// console.log("子组件的传值:", cRow, uniqueCode, flag)
|
|
@@ -393,10 +393,10 @@ export default {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 【校验】按钮-事件
|
|
// 【校验】按钮-事件
|
|
|
checkMeterialResult(row, flag){
|
|
checkMeterialResult(row, flag){
|
|
|
- if(row.uniqueCode){
|
|
|
|
|
|
|
+ if(row.uniqueCode){
|
|
|
// 如果是【所需原材料】
|
|
// 如果是【所需原材料】
|
|
|
if(flag == "meterial"){
|
|
if(flag == "meterial"){
|
|
|
this.tenant.meterialList = [row]
|
|
this.tenant.meterialList = [row]
|
|
@@ -439,7 +439,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 【新料入库】按钮-事件
|
|
// 【新料入库】按钮-事件
|
|
|
taskNodeStockIn(row, flag){
|
|
taskNodeStockIn(row, flag){
|
|
|
// 如果是【所需原材料】
|
|
// 如果是【所需原材料】
|
|
@@ -460,7 +460,7 @@ export default {
|
|
|
// eslint-disable-next-line no-return-assign
|
|
// eslint-disable-next-line no-return-assign
|
|
|
}).finally(() => this.loading = false)
|
|
}).finally(() => this.loading = false)
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 【移库】按钮-事件
|
|
// 【移库】按钮-事件
|
|
|
taskNodeStockTran(row, flag){
|
|
taskNodeStockTran(row, flag){
|
|
|
if(row.uniqueCode){
|
|
if(row.uniqueCode){
|
|
@@ -490,7 +490,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
submitForm(){
|
|
submitForm(){
|
|
|
let obj ={
|
|
let obj ={
|
|
|
taskNode: this.tenant,
|
|
taskNode: this.tenant,
|
|
@@ -559,7 +559,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
// eslint-disable-next-line no-return-assign
|
|
// eslint-disable-next-line no-return-assign
|
|
|
}).finally(() => this.loading = false)
|
|
}).finally(() => this.loading = false)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
//获得数据相同的行数
|
|
//获得数据相同的行数
|
|
|
rowspanFiled(data, filed) {
|
|
rowspanFiled(data, filed) {
|
|
@@ -621,7 +621,7 @@ export default {
|
|
|
// 根据【工艺id】查询详情信息
|
|
// 根据【工艺id】查询详情信息
|
|
|
getDetail(obj){
|
|
getDetail(obj){
|
|
|
machiningClientApi.getTaskNodeProcessAnalysis(obj).then(res => {
|
|
machiningClientApi.getTaskNodeProcessAnalysis(obj).then(res => {
|
|
|
- res = res.data
|
|
|
|
|
|
|
+ res = res.data
|
|
|
if(res.isSuccess){
|
|
if(res.isSuccess){
|
|
|
console.log("详情信息:", res.data)
|
|
console.log("详情信息:", res.data)
|
|
|
// 给各个组件赋值
|
|
// 给各个组件赋值
|
|
@@ -640,32 +640,32 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//打码接口调用
|
|
//打码接口调用
|
|
|
print(row){
|
|
print(row){
|
|
|
let code = row.uniqueCode
|
|
let code = row.uniqueCode
|
|
|
/*
|
|
/*
|
|
|
machiningClientApi.print({param: code}).then(res => {
|
|
machiningClientApi.print({param: code}).then(res => {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}) */
|
|
}) */
|
|
|
var socket = null
|
|
var socket = null
|
|
|
try{
|
|
try{
|
|
|
socket = new WebSocket('ws://192.168.170.69:8888')
|
|
socket = new WebSocket('ws://192.168.170.69:8888')
|
|
|
socket.onopen= function(){
|
|
socket.onopen= function(){
|
|
|
console.log("连接成功!")
|
|
console.log("连接成功!")
|
|
|
- socket.send(code)
|
|
|
|
|
|
|
+ socket.send(code)
|
|
|
}
|
|
}
|
|
|
socket.onmessage= function(msg){console.log(msg)}
|
|
socket.onmessage= function(msg){console.log(msg)}
|
|
|
socket.onerror = function(e){alert("连接失败:"+e)}
|
|
socket.onerror = function(e){alert("连接失败:"+e)}
|
|
|
socket.onclose= function(e){
|
|
socket.onclose= function(e){
|
|
|
console.log("连接关闭:"+ e.code)
|
|
console.log("连接关闭:"+ e.code)
|
|
|
socket.close()
|
|
socket.close()
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
}catch(ex){
|
|
}catch(ex){
|
|
|
- alert('连接异常'+ex);
|
|
|
|
|
|
|
+ alert('连接异常'+ex);
|
|
|
return;
|
|
return;
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
read(row){
|
|
read(row){
|
|
|
let params = {
|
|
let params = {
|
|
|
Url: "192.168.170.61",
|
|
Url: "192.168.170.61",
|
|
@@ -679,8 +679,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
if(row!=null){
|
|
if(row!=null){
|
|
|
params['TaskId'] = this.tenant.taskId
|
|
params['TaskId'] = this.tenant.taskId
|
|
|
- params['TaskNodeId'] = row.id
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ params['TaskNodeId'] = row.id
|
|
|
|
|
+ }else{
|
|
|
this.$emit('get-data', "222222")
|
|
this.$emit('get-data', "222222")
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
@@ -689,7 +689,7 @@ export default {
|
|
|
//let url = "http://192.168.170.202:8089"
|
|
//let url = "http://192.168.170.202:8089"
|
|
|
|
|
|
|
|
machiningClientApi.read(JSON.stringify(params)).then(res => {
|
|
machiningClientApi.read(JSON.stringify(params)).then(res => {
|
|
|
- console.log(res)
|
|
|
|
|
|
|
+ console.log(res)
|
|
|
if(res.code == "1"){
|
|
if(res.code == "1"){
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: this.$t("tips.optionSuccess"),
|
|
message: this.$t("tips.optionSuccess"),
|
|
@@ -709,7 +709,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.$refs.rfidMsg.innerHTML = ""
|
|
this.$refs.rfidMsg.innerHTML = ""
|
|
|
this.isMsgVisible = false
|
|
this.isMsgVisible = false
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -730,7 +730,7 @@ export default {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
this.RFIDMsg = ""
|
|
this.RFIDMsg = ""
|
|
|
}); */
|
|
}); */
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
machiningClientApi.write(JSON.stringify(params)).then(res => {
|
|
machiningClientApi.write(JSON.stringify(params)).then(res => {
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
if(res.code == "1"){
|
|
if(res.code == "1"){
|
|
@@ -747,7 +747,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.$refs.rfidMsg.innerHTML = ""
|
|
this.$refs.rfidMsg.innerHTML = ""
|
|
|
this.isMsgVisible = false
|
|
this.isMsgVisible = false
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -816,4 +816,4 @@ export default {
|
|
|
background: #EEEEEE;
|
|
background: #EEEEEE;
|
|
|
color: #333333;
|
|
color: #333333;
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|