|
|
|
|
@ -572,24 +572,27 @@ const columns: Ref<DataTableColumns<paintJobOrder.tabelList>> = ref([
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: '完成度',
|
|
|
|
|
width: 200,
|
|
|
|
|
align: 'center',
|
|
|
|
|
key: 'degreeOfCompletion',
|
|
|
|
|
render: row => {
|
|
|
|
|
const percentage = row.degreeOfCompletion
|
|
|
|
|
? `${(row.degreeOfCompletion * 100 > 100 ? 100 : row.degreeOfCompletion * 100).toFixed(0)}`
|
|
|
|
|
: 0;
|
|
|
|
|
return <n-progress type="line" percentage={percentage} processing indicator-placement="inside" />;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '已完成数量',
|
|
|
|
|
width: 100,
|
|
|
|
|
align: 'center',
|
|
|
|
|
key: 'wightCompletion'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '完成度',
|
|
|
|
|
width: 200,
|
|
|
|
|
align: 'center',
|
|
|
|
|
key: 'degreeOfCompletion',
|
|
|
|
|
render: row => {
|
|
|
|
|
const percentage = row.status == '2' ? 100 :row.degreeOfCompletion
|
|
|
|
|
? `${(row.degreeOfCompletion * 100 > 100 ? 100 : row.degreeOfCompletion * 100).toFixed(0)}`
|
|
|
|
|
: 0;
|
|
|
|
|
return <n-progress type="line" percentage={percentage} processing indicator-placement="inside" />;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '已完成数量',
|
|
|
|
|
width: 100,
|
|
|
|
|
align: 'center',
|
|
|
|
|
key: 'wightCompletion',
|
|
|
|
|
render: row => {
|
|
|
|
|
return row.status == '2' ? row.weight : row.wightCompletion;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '盘数',
|
|
|
|
|
// width: 100,
|
|
|
|
|
|