|
|
|
|
@ -4,15 +4,16 @@ import {getSumAdd} from "@/utils/rpkj";
|
|
|
|
|
const 钢材到货情况统计=()=>{
|
|
|
|
|
const butClick=()=>{
|
|
|
|
|
钢材到货情况统计查询(data.formData).then(res=>{
|
|
|
|
|
res.data.map(item=>{
|
|
|
|
|
const _data=res.data.map(item=>{
|
|
|
|
|
const data={
|
|
|
|
|
...item
|
|
|
|
|
}
|
|
|
|
|
const 到货比例=item.completeTon/item.planTon
|
|
|
|
|
data.到货比例=(到货比例*100).toFixed(0)+'%'
|
|
|
|
|
data.差距=(item.planTon-item.completeTon).toFixed(2)
|
|
|
|
|
return data
|
|
|
|
|
})
|
|
|
|
|
data.options.data=res.data
|
|
|
|
|
data.options.data=_data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -49,14 +50,14 @@ const 钢材到货情况统计=()=>{
|
|
|
|
|
name: 'input', props: { options:[],placeholder: '批量' }
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{span: 20 ,align:'right',
|
|
|
|
|
{span: 16 ,align:'right',
|
|
|
|
|
itemRender: {
|
|
|
|
|
name: '$button', props: {content:'查询',status:'primary'},events:{click:butClick}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
options:{
|
|
|
|
|
height:400,
|
|
|
|
|
height:760,
|
|
|
|
|
align:'center',
|
|
|
|
|
border: true,
|
|
|
|
|
resizable: true,
|
|
|
|
|
@ -103,6 +104,10 @@ const 钢材到货情况统计=()=>{
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'dzwz', title: '期次',
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|