|
|
@ -15,6 +15,10 @@ export default {
|
|
|
|
type:Function,
|
|
|
|
type:Function,
|
|
|
|
default:function (){}
|
|
|
|
default:function (){}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getSelectSbbm:{
|
|
|
|
|
|
|
|
type:Function,
|
|
|
|
|
|
|
|
default:function (){}
|
|
|
|
|
|
|
|
},
|
|
|
|
workers:{
|
|
|
|
workers:{
|
|
|
|
type:Array,
|
|
|
|
type:Array,
|
|
|
|
default:[]
|
|
|
|
default:[]
|
|
|
@ -37,6 +41,12 @@ export default {
|
|
|
|
if (this.deviceId!==data.msg.deviceId&&data.msg.actionType!=='开始报工'){
|
|
|
|
if (this.deviceId!==data.msg.deviceId&&data.msg.actionType!=='开始报工'){
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const sbbm=this.$props.getSelectSbbm()
|
|
|
|
|
|
|
|
if (!sbbm){
|
|
|
|
|
|
|
|
this.$message.warning('请选择设备')
|
|
|
|
|
|
|
|
this.$refs.hxPgd.clearCheckboxRow()
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
//工单号尾号长度
|
|
|
|
//工单号尾号长度
|
|
|
|
const djhWhLengh=4
|
|
|
|
const djhWhLengh=4
|
|
|
|
const tmpList=this.list.filter(item=>item.djh===data.msg.orderNumber||item.djh.slice(-djhWhLengh)===data.msg.orderNumber)
|
|
|
|
const tmpList=this.list.filter(item=>item.djh===data.msg.orderNumber||item.djh.slice(-djhWhLengh)===data.msg.orderNumber)
|
|
|
@ -52,7 +62,8 @@ export default {
|
|
|
|
const tmpArr=[{
|
|
|
|
const tmpArr=[{
|
|
|
|
id:item.id,
|
|
|
|
id:item.id,
|
|
|
|
hxfkry:this.$props.worker().userCode,
|
|
|
|
hxfkry:this.$props.worker().userCode,
|
|
|
|
zt:item.zt
|
|
|
|
zt:item.zt,
|
|
|
|
|
|
|
|
hxsb:sbbm
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
this.baogong(tmpArr,item)
|
|
|
|
this.baogong(tmpArr,item)
|
|
|
|
errorFlag=false
|
|
|
|
errorFlag=false
|
|
|
@ -125,6 +136,12 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fankgui(worker) {
|
|
|
|
fankgui(worker) {
|
|
|
|
|
|
|
|
const sbbm=this.$props.getSelectSbbm()
|
|
|
|
|
|
|
|
if (!sbbm){
|
|
|
|
|
|
|
|
this.$message.warning('请选择设备')
|
|
|
|
|
|
|
|
this.$refs.hxPgd.clearCheckboxRow()
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
VXETable.modal.confirm('您确定报工吗?').then(async res => {
|
|
|
|
VXETable.modal.confirm('您确定报工吗?').then(async res => {
|
|
|
|
if (res === 'confirm') {
|
|
|
|
if (res === 'confirm') {
|
|
|
|
const list = this.$refs.hxPgd.getCheckboxRecords()
|
|
|
|
const list = this.$refs.hxPgd.getCheckboxRecords()
|
|
|
@ -133,7 +150,8 @@ export default {
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
id: item.id,
|
|
|
|
id: item.id,
|
|
|
|
hxfkry: worker.userCode,
|
|
|
|
hxfkry: worker.userCode,
|
|
|
|
zt:item.zt
|
|
|
|
zt:item.zt,
|
|
|
|
|
|
|
|
hxsb:sbbm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tmpArr.push(data)
|
|
|
|
tmpArr.push(data)
|
|
|
|
let ycldwInfo=null
|
|
|
|
let ycldwInfo=null
|
|
|
@ -157,7 +175,6 @@ export default {
|
|
|
|
this.initData(this.$props.worker().userCode, '51')
|
|
|
|
this.initData(this.$props.worker().userCode, '51')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
initData(worker,zt){
|
|
|
|
initData(worker,zt){
|
|
|
|
getDw({type:'llj'}).then(res=>{
|
|
|
|
getDw({type:'llj'}).then(res=>{
|
|
|
|