Merge remote-tracking branch 'origin/master'

master
xhj 8 months ago
commit 67715a9ba0

@ -8,7 +8,7 @@
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="queryParam.dcch"
v-model="queryParam.dcCh"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
@ -122,7 +122,7 @@ export default {
data() {
return {
queryParam: {
dcch:'',
dcCh:'',
xzglxq:'',
zt:'0'
},
@ -269,15 +269,15 @@ export default {
return cellValue
},
cellClickEvent({row}) {
this.queryParam.dcch = row.cbbm
this.queryParam.dcCh = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4() {
this.$refs.xDown4.showPanel()
},
keyupEvent4() {
if (this.queryParam.dcch) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.queryParam.dcch.toUpperCase()) > -1)
if (this.queryParam.dcCh) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.queryParam.dcCh.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}

@ -61,8 +61,8 @@
</el-tab-pane>
<el-tab-pane label="月度计划编制" name="first">
<div class="mytable">
<el-button type="success" @click="paichan"></el-button>
<!-- <el-button type="success" @click="confirmModal"></el-button>-->
<!-- <el-button type="success" @click="paichan"></el-button>-->
<el-button type="success" @click="confirmModal"></el-button>
<el-button type="success" @click="creatYdjh"></el-button>
<el-button type="success" @click="symxhz"></el-button>
<el-button type="success" @click="uploadExcel" >

@ -152,7 +152,7 @@ export default {
},
isupload:'02',
heads: { token: getToken() },
uploadAction: process.env.VUE_APP_BASE_API + '/dmZrcjh/upload',
uploadAction: process.env.VUE_APP_BASE_API + '/zrcAndPlb/upload',
list: [],
height: "500px",
tableColumn: [
@ -926,6 +926,12 @@ export default {
// excel
beforeAvatarUpload(file) {
if (!this.request.dcCh){
this.$message.error('请选择船号')
return false
}
this.uploadAction+= `?dcCh=${this.request.dcCh}`
//
const isType = file.type === 'application/vnd.ms-excel'
const isTypeComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'

@ -29,16 +29,16 @@ export default {
handleSelect(key){
switch (key){
case '抛丸':
this.$router.push(`/pwpg?zyq=${this.$route.query.zyq}&zyType=${this.$route.query.zyType}&deviceId=${this.$route.query.deviceId}`)
this.$router.push(`/pwpg?zyq=${this.$route.query.zyq}&zyType=0&deviceId=${this.$route.query.deviceId}`)
break;
case '理料':
this.$router.push(`/llfk?zyq=${this.$route.query.zyq}&zyType=${this.$route.query.zyType}&deviceId=${this.$route.query.deviceId}`)
this.$router.push(`/llfk?zyq=${this.$route.query.zyq}&zyType=0&deviceId=${this.$route.query.deviceId}`)
break;
case '划线':
this.$router.push(`/hxpg?zyq=${this.$route.query.zyq}&zyType=${this.$route.query.zyType}&deviceId=${this.$route.query.deviceId}`)
this.$router.push(`/hxpg?zyq=${this.$route.query.zyq}&zyType=0&deviceId=${this.$route.query.deviceId}`)
break;
case '切割':
this.$router.push(`/qgpg?zyq=${this.$route.query.zyq}&zyType=${this.$route.query.zyType}&deviceId=${this.$route.query.deviceId}`)
this.$router.push(`/qgpg?zyq=${this.$route.query.zyq}&zyType=0&deviceId=${this.$route.query.deviceId}`)
break;
}
}

@ -60,7 +60,7 @@ export default {
let ycldwInfo=null
for (const dw of this.dw) {
for (const info of dw.list) {
if (data.dcCh===info.czbh&&data.dcPl!==info.pl&&data.dcFd!==info.fd&&data.tzbh!==info.tlth){
if (data.dcCh===info.czbh&&data.dcPl===info.pl&&data.dcFd===info.fd&&data.tzbh===info.tlth){
ycldwInfo=info
break
}
@ -78,18 +78,18 @@ export default {
}).then(res=>{
if (res.success){
window.localStorage.removeItem('zyjh')
this.initData(data.pwry,'41')
this.initData(data.pwry,'51')
}
})
},
initData(worker,zt){
getDw({type:'llj'}).then(res=>{
this.gridOptions.ycldw=res.data
})
getPgd2({user:worker}).then(res=>{
this.list=res.data
this.gridOptions.data=res.data
this.setExt('workers',this.$props.workers)
getPgd({user:worker,zt:zt,field:'hxry'}).then(res=>{
this.list=res.data
this.gridOptions.data=res.data
this.setExt('workers',this.$props.workers)
})
})
},
getCurrentData(){

@ -67,10 +67,16 @@ const baifang=function (option={}) {
})
let _index=0
let touchingFlag=false;
group.on('mousedown touchstart',function (evt){
group.on('mousedown touchstart',function ({evt}){
const layer=this.parent.parent.parent
const {clientX:_x,clientY:_y}=evt
let x=_x,y=_y
if (evt.type==='touchstart'){
x=evt.targetTouches[0].clientX
y=evt.targetTouches[0].clientY
}
touchingFlag=true
const {x,y}=evt.evt
setTimeout(()=>{
const moving=this.isDragging()
if (!moving){

@ -129,7 +129,7 @@ export default function (width,height,callback){
y:0,
width: width,
height: height,
fill:'black',
fill:'white',
text:`${formatName()}\n${item.list.length}`,
align:'center',
verticalAlign:'middle',

@ -33,8 +33,6 @@ export default function () {
return ''
}
const dwFormat=function ({cellValue}){
console.log(cellValue)
console.log(options.ycldw)
for (const item of options.ycldw) {
if (cellValue===(item.id+"")){
for (const it of ycldw){

@ -185,7 +185,7 @@ export default {
const titel=drawTitle(this.width,this.height,this.title)
const that=this
titel.on('click touch',function (){
titel.on('click tap',function (){
console.log(111)
that.$refs.drawer.show()
})

@ -80,7 +80,7 @@ export default {
this.initData()
},
checkboxAll({checked}) {
const worker = this.$props.worker
const worker = this.$props.worker()
if (!worker) {
this.$message.warning('请选择操作人')
return;

@ -88,7 +88,7 @@ export default function (width,height){
y:0,
width: width,
height: height,
fill:'black',
fill:'white',
text:`${formatName()}\n${item.list.length}`,
align:'center',
verticalAlign:'middle',

@ -119,7 +119,7 @@ export default {
const titel=drawTitle(this.width,this.height,this.title)
const that=this
titel.on('click touch',function (){
titel.on('click tap',function (){
console.log(111)
that.$refs.drawer.show()
})

@ -122,7 +122,7 @@ export default function (width,height,callback){
y:0,
width: width,
height: height,
fill:'black',
fill:'white',
text:`${formatName()}\n${item.list.length}`,
align:'center',
verticalAlign:'middle',

@ -85,20 +85,21 @@ export default {
this.$message.warning('短号有重复,请使用全工单号重新派工!!!')
return
}
let index=0
for (const item of this.sljhItemList) {
if (item.djh===data.djh||item.djh.slice(-djhWhLengh)===data.msg.orderNumber){
if (!!this.currentDw.tzbh&&item.kw===this.currentDw.tzbh){
const tmpZxData={
id:item.id,
lldw:this.currentDw.id,
llcs:this.dw[that.currentDwIndex].list.length+1,
llcs:this.dw[this.currentDwIndex].list.length+1,
llfkry:this.getCurrentWorker()?.userCode
}
const data={
ydjh:tmpZxData,
ydid:item.id,
dwId:this.currentDw.id,
ceng:this.dw[that.currentDwIndex].list.length+1,
ceng:this.dw[this.currentDwIndex].list.length+1,
czbh:item.dcCh,
pl:item.dcPl,
fd:item.dcFd,
@ -115,14 +116,15 @@ export default {
shangLiao(data).then(res=>{})
this.sljhItemList.splice(this.getAttr('index'),1)
this.sljhItemList.splice(index,1)
this.sljhGroup.destroyChildren()
this.drawSljhItem(that.sljhItemList)
this.drawSljhItem(this.sljhItemList)
}else{
that.$message.warning(`理料垛位错误,请放入${that.kwNameFormat(item.kw)}所在垛位`)
this.$message.warning(`理料垛位错误,请放入${this.kwNameFormat(item.kw)}所在垛位`)
}
break
}
index++
}
}
},
@ -209,8 +211,6 @@ export default {
that.initPgd(list[i])
})
qyGroup.on('mousedown touchstart',function ({evt}){
console.log(111)
console.log(evt)
const worker=that.currentWorker;
if (!that.canSl||!worker){
return
@ -373,8 +373,7 @@ export default {
const titel=drawTitle(this.width,this.height,this.title)
const that=this
titel.on('click touch',function (){
console.log(111)
titel.on('click tap',function (){
that.$refs.drawer.show()
})
this.layer.add(titel)

@ -88,7 +88,7 @@ export default function (width,height){
y:0,
width: width,
height: height,
fill:'black',
fill:'white',
text:`${formatName()}\n${item.list.length}`,
align:'center',
verticalAlign:'middle',

@ -60,9 +60,11 @@ export default {
methods:{
baogong(tmpArr,data){
let ycldwInfo=null
console.log(data)
console.log(this.dw)
for (const dw of this.dw) {
for (const info of dw.list) {
if (data.dcCh===info.czbh&&data.dcPl!==info.pl&&data.dcFd!==info.fd&&data.tzbh!==info.tlth){
if (data.dcCh===info.czbh&&data.dcPl===info.pl&&data.dcFd===info.fd&&data.tzbh===info.tlth){
ycldwInfo=info
break
}

@ -68,10 +68,16 @@ const baifang=function (option={}) {
})
let _index=0
let touchingFlag=false;
group.on('mousedown touchstart',function (evt){
group.on('mousedown touchstart',function ({evt}){
const layer=this.parent.parent.parent
const {clientX:_x,clientY:_y}=evt
let x=_x,y=_y
if (evt.type==='touchstart'){
x=evt.targetTouches[0].clientX
y=evt.targetTouches[0].clientY
}
touchingFlag=true
const {x,y}=evt.evt
setTimeout(()=>{
const moving=this.isDragging()
if (!moving){

@ -185,8 +185,7 @@ export default {
const titel=drawTitle(this.width,this.height,this.title)
const that=this
titel.on('click touch',function (){
console.log(111)
titel.on('click tap',function (){
that.$refs.drawer.show()
})
this.layer.add(titel)

@ -80,7 +80,7 @@ export default function (width,height){
y:0,
width: width,
height: height,
fill:'black',
fill:'white',
text:`${item.name}\n${item.list.length}`,
align:'center',
verticalAlign:'middle',

@ -105,8 +105,7 @@ export default {
const titel=drawTitle(this.width,this.height,this.title)
const that=this
titel.on('click touch',function (){
console.log(111)
titel.on('click tap',function (){
that.$refs.drawer.show()
})
this.layer.add(titel)

@ -65,18 +65,18 @@ export default {
},
methods: {
baogong(tmpArr,data){
console.log(data)
let ycldwInfo=null
for (const dw of this.dw) {
for (const info of dw.list) {
if (data.dcCh===info.czbh&&data.dcPl!==info.pl&&data.dcFd!==info.fd&&data.tzbh!==info.tlth){
if (data.dcCh===info.czbh&&data.dcPl===info.pl&&data.dcFd===info.fd&&data.tzbh===info.tlth){
ycldwInfo=info
break
}
}
}
if (!ycldwInfo){
this.$message.warning(`理料垛位上板材与记录不符,需查验后再进行报工!`)
return;
ycldwInfo={}
}
zx({
field:'qgfkrq',
@ -86,20 +86,20 @@ export default {
}).then(res=>{
if (res.success){
window.localStorage.removeItem('zyjh')
this.initData(data.pwry,'51')
this.initData(data.qgry,'61')
}
})
},
initData(worker, zt) {
getDw({type:'llj'}).then(res=>{
this.gridOptions.ycldw=res.data
})
this.currentWorker=worker
this.zt=zt
getPgd2({user: worker}).then(res => {
this.list=res.data
this.gridOptions.data = res.data
this.setExt('workers',this.$props.workers)
getDw({type:'llj'}).then(res=>{
this.gridOptions.ycldw=res.data
getPgd({user:worker,zt:zt,field:'qgry'}).then(res => {
this.list=res.data
this.gridOptions.data = res.data
this.setExt('workers',this.$props.workers)
})
})
},
getCurrentData() {

@ -67,10 +67,16 @@ const baifang=function (option={}) {
})
let _index=0
let touchingFlag=false;
group.on('mousedown touchstart',function (evt){
group.on('mousedown touchstart',function ({evt}){
const layer=this.parent.parent.parent
const {clientX:_x,clientY:_y}=evt
let x=_x,y=_y
if (evt.type==='touchstart'){
x=evt.targetTouches[0].clientX
y=evt.targetTouches[0].clientY
}
touchingFlag=true
const {x,y}=evt.evt
setTimeout(()=>{
const moving=this.isDragging()
if (!moving){

@ -130,7 +130,7 @@ export default function (width,height,callback){
y:0,
width: width,
height: height,
fill:'black',
fill:'white',
text:`${formatName()}\n${item.list.length}`,
align:'center',
verticalAlign:'middle',

@ -19,7 +19,6 @@ export default function () {
}
const nameFormat=function ({cellValue}){
console.log(ext)
const workers=ext.workers
for (const item of workers) {
if(item.userCode===cellValue){

@ -190,7 +190,7 @@ export default {
const titel = drawTitle(this.width, this.height, this.title)
const that=this
titel.on('click touch',function (){
titel.on('click tap',function (){
console.log(111)
that.$refs.drawer.show()
})

@ -105,7 +105,7 @@ export default {
this.initData()
},
checkboxAll({checked}) {
const worker = this.$props.worker
const worker = this.$props.worker()
if (!worker) {
this.$message.warning('请选择操作人')
return;

@ -88,7 +88,7 @@ export default function (width,height){
y:0,
width: width,
height: height,
fill:'black',
fill:'white',
text:`${formatName()}\n${item.list.length}`,
align:'center',
verticalAlign:'middle',

@ -120,7 +120,7 @@ export default {
const titel = drawTitle(this.width, this.height, this.title)
const that=this
titel.on('click touch',function (){
titel.on('click tap',function (){
console.log(111)
that.$refs.drawer.show()
})

Loading…
Cancel
Save