1.优化技术准备数据上传逻辑

2.解决导出数据错误问题
master
董哲奇 1 week ago
parent aa27eaea88
commit 916feae1b6

@ -17,7 +17,7 @@
import init from "@/views/cxtj/index";
export default {
name:'CXTJ',
name:'CXTJ_JSZB',
data(){
return{
formData:{

@ -59,11 +59,11 @@ const 技术准备=()=>{
let _data=data[item.pl+'_'+item.fd]
if (_data){
if (item.option3==='X'){
_data.小组数量++
_data.小组数量+=1
_data.小组重量+= parseFloat(item.weight||0)
}
if (item.option3!=='X'){
_data.大组数量++
_data.大组数量+=1
_data.大组重量+= parseFloat(item.weight||0)
}
}else{
@ -82,6 +82,7 @@ const 技术准备=()=>{
}
data[item.pl+'_'+item.fd]=_data
}
console.log(_data)
})
return Object.keys(data).map(key=>{
const item=data[key]
@ -298,7 +299,10 @@ const 技术准备=()=>{
{ field: 'feature', title: '特征', width: 120 },
{ field: 'flow', title: '流向', width: 120 },
{ field: 'nextLevel', title: '下级', width: 120 },
{ field: 'nestingInfo', title: '套料图信息', width: 150 },
{ field: 'nestingInfo', title: '套料图信息', width: 150,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'location', title: '场地', width: 120 },
{ field: 'project', title: 'PROJECT', width: 120 },
{ field: 'block', title: 'BLOCK', width: 120 },

Loading…
Cancel
Save