|
@@ -1,5 +1,5 @@
|
|
|
import { BasicColumn } from '/@/components/Table';
|
|
|
-import { ref, computed } from 'vue';
|
|
|
+import { ref, computed, h } from 'vue';
|
|
|
import { initDictOptions } from '/@/utils/dict';
|
|
|
import { render } from '/@/utils/common/renderUtils';
|
|
|
import { groupArray } from '/@/views/billet/hotDelivery/common.data';
|
|
@@ -103,8 +103,21 @@ export const columns: BasicColumn[] = computed(() => [
|
|
|
{
|
|
|
title: '炉号',
|
|
|
align: 'center',
|
|
|
- width: 80,
|
|
|
+ width: 120,
|
|
|
dataIndex: 'heatNo',
|
|
|
+ customRender({ record }) {
|
|
|
+ if (!record.heatNoCountMap) return record.heatNo || '';
|
|
|
+ try {
|
|
|
+ return h(
|
|
|
+ 'div',
|
|
|
+ Object.keys(record.heatNoCountMap).map((e) => {
|
|
|
+ return h('div', null, e + ':' + record.heatNoCountMap[e]);
|
|
|
+ })
|
|
|
+ );
|
|
|
+ } catch (e) {
|
|
|
+ return record.heatNo || '';
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '组坯号',
|