|
|
|
@ -22,6 +22,10 @@
|
|
|
|
|
<el-input v-model="queryParam.dcpl" type="search" placeholder="批量" ></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="分段:">
|
|
|
|
|
<el-input v-model="queryParam.dcfd" type="search" placeholder="分段" ></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="2">
|
|
|
|
@ -76,15 +80,14 @@
|
|
|
|
|
ref="xGrid"
|
|
|
|
|
border
|
|
|
|
|
resizable
|
|
|
|
|
keep-source
|
|
|
|
|
|
|
|
|
|
:align="'center'"
|
|
|
|
|
:height="height"
|
|
|
|
|
:auto-resize="true"
|
|
|
|
|
:columns="tableColumn"
|
|
|
|
|
highlight-current-row
|
|
|
|
|
:data="list"
|
|
|
|
|
:custom-config="{ storage: true }"
|
|
|
|
|
|
|
|
|
|
:span-method="mergeRowMethod"
|
|
|
|
|
highlight-hover-row
|
|
|
|
|
show-overflow
|
|
|
|
|
show-header-overflow
|
|
|
|
@ -122,7 +125,8 @@ export default {
|
|
|
|
|
queryParam: {
|
|
|
|
|
dcch:'',
|
|
|
|
|
dcpl:'',
|
|
|
|
|
delx:'B'
|
|
|
|
|
delx:'B',
|
|
|
|
|
dcfd:''
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
list: [],
|
|
|
|
@ -160,34 +164,7 @@ export default {
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'qpyldZ', title: '前批余料代总', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// { field: 'ljzlZ', title: '零件重量总', width: 100,
|
|
|
|
|
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
// filterRender: { name: 'FilterCombination', },
|
|
|
|
|
// },
|
|
|
|
|
{ field: 'ybzsZ', title: '用板总数', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'lqzlZ', title: '领取重量总', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'shzlZ', title: '实耗重量总', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'ylzlZ', title: '余料重量总', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ field: 'dcZlZ', title: '组立', width: 100,formatter: ['dictFormat','ZLLB'],
|
|
|
|
@ -253,6 +230,34 @@ export default {
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'qpyldZ', title: '前批余料代总', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// { field: 'ljzlZ', title: '零件重量总', width: 100,
|
|
|
|
|
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
// filterRender: { name: 'FilterCombination', },
|
|
|
|
|
// },
|
|
|
|
|
{ field: 'ybzsZ', title: '用板总数', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'lqzlZ', title: '领取重量总', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'shzlZ', title: '实耗重量总', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'ylzlZ', title: '余料重量总', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// { field: 'bz', title: '备注', width: 100,
|
|
|
|
|
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
@ -387,6 +392,40 @@ export default {
|
|
|
|
|
|
|
|
|
|
this.$refs.xGrid.setActiveCell(row,column)
|
|
|
|
|
},
|
|
|
|
|
mergeRowMethod ({ row, $rowIndex, column, data }) {
|
|
|
|
|
const fields = [ 'dcChZ',
|
|
|
|
|
'dcPlZ',
|
|
|
|
|
'dcFdZ',
|
|
|
|
|
'lqzlZ',
|
|
|
|
|
'dcZlZ',
|
|
|
|
|
'lqlbZ',
|
|
|
|
|
'zzcjZ',
|
|
|
|
|
'ybzsZ',
|
|
|
|
|
'shzlZ',
|
|
|
|
|
'ylzlZ'
|
|
|
|
|
]
|
|
|
|
|
console.log("111");
|
|
|
|
|
let tempcol=column.property
|
|
|
|
|
let cellValue = row[tempcol]
|
|
|
|
|
if (cellValue && fields.includes(column.property)) {
|
|
|
|
|
|
|
|
|
|
let prevRow = data[$rowIndex - 1]
|
|
|
|
|
let nextRow = data[$rowIndex + 1]
|
|
|
|
|
if (prevRow && prevRow[tempcol] === cellValue) {
|
|
|
|
|
return {rowspan: 0, colspan: 0}
|
|
|
|
|
} else {
|
|
|
|
|
let countRowspan = 1
|
|
|
|
|
while (nextRow && nextRow[tempcol] === cellValue) {
|
|
|
|
|
nextRow = data[++countRowspan + $rowIndex]
|
|
|
|
|
}
|
|
|
|
|
if (countRowspan > 1) {
|
|
|
|
|
return {rowspan: countRowspan, colspan: 1}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectChange(row) {
|
|
|
|
|
// this.$refs.xGrid.clearActived() // 清除单元格激活状态
|
|
|
|
|