1.预配盘报工增加待处理零件数量

2.划线报工,切割报工,调整人员显示为多列,取消理料显示
master
董哲奇 1 month ago
parent 0686e0b06d
commit 053b8c477d

@ -60,14 +60,15 @@ export default {
}, },
initData() { initData() {
const params=this.dataInitParam; const params=this.dataInitParam;
if(!params.dcCh){ // if(!params.dcCh){
this.$message.warning('请选择船号') // this.$message.warning('')
return; // return;
} // }
params.zyq=this.zyq params.zyq=this.zyq
wbfList(params).then((res) => { wbfList(params).then((res) => {
res.data.forEach(item => { res.data.forEach(item => {
item.selected = false item.selected = false
item.ljsl=item.ljList.length
for (const dw of this.dwxx) { for (const dw of this.dwxx) {
if (item.dwxxId === dw.id) { if (item.dwxxId === dw.id) {
item.qy = dw.qy item.qy = dw.qy

@ -36,6 +36,10 @@ export default function () {
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }, filterRender: { name: 'FilterCombination', },
}, },
{ field: 'ljsl', title: '零件数量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
] ]
return {options,columns} return {options,columns}

@ -53,7 +53,7 @@ export default {
} }
getBzryByBz({zyq:this.$route.query.zyq,zt:bzType}).then(res=>{ getBzryByBz({zyq:this.$route.query.zyq,zt:bzType}).then(res=>{
res.data=res.data.filter(item=>item.position==='数控'||item.position==='龙门'||item.position==='班长') res.data=res.data.filter(item=>item.position==='配套工'||item.position==='班长')
this.workers=res.data this.workers=res.data
const that=this const that=this
for (let i=0;i<res.data.length;i++){ for (let i=0;i<res.data.length;i++){

@ -1,7 +1,7 @@
import Konva from "konva"; import Konva from "konva";
export default function (width,height){ export default function (width,height){
const _width=width*0.075,_height=height*0.73 const _width=width*0.445,_height=height*0.73
const container=function (){ const container=function (){
const x=20,y=260 const x=20,y=260
@ -56,11 +56,11 @@ export default function (width,height){
} }
const person=function (index,persons={}){ const person=function (index,persons={}){
const alignSize=1 const alignSize=6
const width=(_width-5)/alignSize,height=110 const width=(_width-14)/alignSize,height=110
const x=index%alignSize*width+index%alignSize+5,y=height*(Math.floor(index/alignSize))+(Math.floor(index/alignSize)+1)*10 const x=index%alignSize*width+index%alignSize+5,y=height*(Math.floor(index/alignSize))+(Math.floor(index/alignSize)+1)*10
const group=new Konva.Group({ const group=new Konva.Group({
x:x, x:x+4,
y:y, y:y,
width:width, width:width,
height:height height:height

@ -1,7 +1,7 @@
import Konva from "konva"; import Konva from "konva";
export default function (width,height,zyq){ export default function (width,height,zyq){
const x=width*0.495,y=260,_width=width*0.186,_height=height*0.713 const x=width*0.455,y=260,_width=width*0.227,_height=height*0.713
const bg=new Konva.Group({ const bg=new Konva.Group({
x:x, x:x,
y:y, y:y,

@ -201,7 +201,7 @@ export default {
this.initWorkers(this.$refs.selRef.getData().bzType) this.initWorkers(this.$refs.selRef.getData().bzType)
this.initDw() // this.initDw()
const {container:pgdContainer,drawGd,setWorkers}=drawPgd(this.width,this.height) const {container:pgdContainer,drawGd,setWorkers}=drawPgd(this.width,this.height)
this.setWorkers=setWorkers this.setWorkers=setWorkers
@ -213,7 +213,7 @@ export default {
this.getSelectSbbm=getSelectSbbm this.getSelectSbbm=getSelectSbbm
this.layer.add(bgGroup) this.layer.add(bgGroup)
this.initBaiFang() // this.initBaiFang()
}, },
} }
} }

@ -1,7 +1,7 @@
import Konva from "konva"; import Konva from "konva";
export default function (width,height){ export default function (width,height){
const _width=width*0.075,_height=height*0.73 const _width=width*0.445,_height=height*0.73
const container=function (){ const container=function (){
const x=20,y=260 const x=20,y=260
@ -56,11 +56,11 @@ export default function (width,height){
} }
const person=function (index,persons={}){ const person=function (index,persons={}){
const alignSize=1 const alignSize=6
const width=(_width-5)/alignSize,height=110 const width=(_width-14)/alignSize,height=110
const x=index%alignSize*width+index%alignSize+5,y=height*(Math.floor(index/alignSize))+(Math.floor(index/alignSize)+1)*10 const x=index%alignSize*width+index%alignSize+5,y=height*(Math.floor(index/alignSize))+(Math.floor(index/alignSize)+1)*10
const group=new Konva.Group({ const group=new Konva.Group({
x:x, x:x+4,
y:y, y:y,
width:width, width:width,
height:height height:height

@ -203,7 +203,7 @@ export default {
this.initWorkers(this.$refs.selRef.getData().bzType) this.initWorkers(this.$refs.selRef.getData().bzType)
this.initDw() // this.initDw()
const {container:pgdContainer,drawGd,setWorkers}=drawPgd(this.width,this.height) const {container:pgdContainer,drawGd,setWorkers}=drawPgd(this.width,this.height)
this.setWorkers=setWorkers this.setWorkers=setWorkers
@ -215,7 +215,7 @@ export default {
this.getSelectSbbm=getSelectSbbm this.getSelectSbbm=getSelectSbbm
this.layer.add(bgGroup) this.layer.add(bgGroup)
this.initBaiFang() // this.initBaiFang()
this.pgdShow=true this.pgdShow=true
}, },

Loading…
Cancel
Save