|
|
@@ -1,3 +1,4 @@
|
|
|
+import { saleOrderProgressStatusEnum } from '@/enum/dict';
|
|
|
export const getColumns = (vm) => {
|
|
|
console.log(vm);
|
|
|
|
|
|
@@ -60,6 +61,13 @@ export const getColumns = (vm) => {
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'createTime',
|
|
|
+ label: '销售订单\n创建时间',
|
|
|
+ width: 170,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'productionPlanNo',
|
|
|
label: '生产计划编号',
|
|
|
@@ -163,7 +171,11 @@ export const getColumns = (vm) => {
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row) => {
|
|
|
- return vm.orderObj[row.orderStatus] || '';
|
|
|
+ return (
|
|
|
+ saleOrderProgressStatusEnum.find(
|
|
|
+ (val) => val.value == row.orderStatus
|
|
|
+ )?.label ?? ''
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -281,10 +293,12 @@ export const getColumns = (vm) => {
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
+ slot: 'date01',
|
|
|
prop: 'date01',
|
|
|
label: '1日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -296,6 +310,7 @@ export const getColumns = (vm) => {
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
+ className: 'date-box0',
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
}
|
|
|
@@ -306,6 +321,7 @@ export const getColumns = (vm) => {
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
+ className: 'date-box1',
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
}
|
|
|
@@ -315,6 +331,7 @@ export const getColumns = (vm) => {
|
|
|
label: '4日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -325,6 +342,8 @@ export const getColumns = (vm) => {
|
|
|
label: '5日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -335,6 +354,8 @@ export const getColumns = (vm) => {
|
|
|
label: '6日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -345,6 +366,8 @@ export const getColumns = (vm) => {
|
|
|
label: '7日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -355,6 +378,8 @@ export const getColumns = (vm) => {
|
|
|
label: '8日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -365,6 +390,8 @@ export const getColumns = (vm) => {
|
|
|
label: '9日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -375,6 +402,8 @@ export const getColumns = (vm) => {
|
|
|
label: '10日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -385,6 +414,8 @@ export const getColumns = (vm) => {
|
|
|
label: '11日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -395,6 +426,8 @@ export const getColumns = (vm) => {
|
|
|
label: '12日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -405,6 +438,8 @@ export const getColumns = (vm) => {
|
|
|
label: '13日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -415,6 +450,8 @@ export const getColumns = (vm) => {
|
|
|
label: '14日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -425,6 +462,8 @@ export const getColumns = (vm) => {
|
|
|
label: '15日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -435,6 +474,8 @@ export const getColumns = (vm) => {
|
|
|
label: '16日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -445,6 +486,8 @@ export const getColumns = (vm) => {
|
|
|
label: '17日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -455,6 +498,8 @@ export const getColumns = (vm) => {
|
|
|
label: '18日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -465,6 +510,8 @@ export const getColumns = (vm) => {
|
|
|
label: '19日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -475,6 +522,8 @@ export const getColumns = (vm) => {
|
|
|
label: '20日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -485,6 +534,8 @@ export const getColumns = (vm) => {
|
|
|
label: '21日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -496,6 +547,8 @@ export const getColumns = (vm) => {
|
|
|
label: '22日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -506,6 +559,8 @@ export const getColumns = (vm) => {
|
|
|
label: '23日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -516,6 +571,8 @@ export const getColumns = (vm) => {
|
|
|
label: '24日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -526,6 +583,8 @@ export const getColumns = (vm) => {
|
|
|
label: '25日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -536,6 +595,8 @@ export const getColumns = (vm) => {
|
|
|
label: '26日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -546,6 +607,8 @@ export const getColumns = (vm) => {
|
|
|
label: '27日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -556,6 +619,8 @@ export const getColumns = (vm) => {
|
|
|
label: '28日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -566,6 +631,8 @@ export const getColumns = (vm) => {
|
|
|
label: '29日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -576,6 +643,8 @@ export const getColumns = (vm) => {
|
|
|
label: '30日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box0',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|
|
|
@@ -586,6 +655,8 @@ export const getColumns = (vm) => {
|
|
|
label: '31日',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
+ className: 'date-box1',
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column, cellValue, index) => {
|
|
|
return getDeliveryCount(row, column.property);
|