|
@@ -216,11 +216,35 @@ export const columns: BasicColumn[] = [
|
|
dataIndex: 'totalInfo',
|
|
dataIndex: 'totalInfo',
|
|
customRender({ record }) {
|
|
customRender({ record }) {
|
|
try {
|
|
try {
|
|
- const { totalInfo } = record;
|
|
|
|
|
|
+ const { totalInfo, hotCharge, stacking, hotSend, directRolling } = record;
|
|
if (totalInfo) {
|
|
if (totalInfo) {
|
|
const obj = JSON.parse(totalInfo);
|
|
const obj = JSON.parse(totalInfo);
|
|
// return obj.totalCount + ' / ' + obj.totalWeight;
|
|
// return obj.totalCount + ' / ' + obj.totalWeight;
|
|
- return renderNum(obj.totalCount, obj.totalWeight);
|
|
|
|
|
|
+ let quXiaongGen = 0;
|
|
|
|
+ // 热装
|
|
|
|
+ if (hotCharge) {
|
|
|
|
+ const hotChargeObj = JSON.parse(hotCharge);
|
|
|
|
+ quXiaongGen = quXiaongGen + (hotChargeObj.hotChargeTotalCount || 0);
|
|
|
|
+ }
|
|
|
|
+ // 堆垛
|
|
|
|
+ if (stacking) {
|
|
|
|
+ const stackingObj = JSON.parse(stacking);
|
|
|
|
+ quXiaongGen = quXiaongGen + (stackingObj.stackingTotalCount || 0);
|
|
|
|
+ }
|
|
|
|
+ // 棒一或者高线
|
|
|
|
+ if (directRolling) {
|
|
|
|
+ const directRollingObj = JSON.parse(directRolling);
|
|
|
|
+ quXiaongGen = quXiaongGen + (directRollingObj.directRollingTotalCount || 0);
|
|
|
|
+ }
|
|
|
|
+ if (hotSend) {
|
|
|
|
+ const hotSendObj = JSON.parse(hotSend);
|
|
|
|
+ quXiaongGen = quXiaongGen + (hotSendObj.hotSendTotalCount || 0);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return renderNum(
|
|
|
|
+ h('span', {}, [h('span', {}, obj.totalCount), h('span', { style: { color: '#999' } }, '/' + (obj.totalCount - quXiaongGen))]),
|
|
|
|
+ obj.totalWeight
|
|
|
|
+ );
|
|
}
|
|
}
|
|
} catch (error) {}
|
|
} catch (error) {}
|
|
return '';
|
|
return '';
|