|  | @@ -301,18 +301,24 @@ export const monthDataColumns = ref([
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  // 计划销售额
 |  |  // 计划销售额
 | 
											
												
													
														|  |  function formatEmptyCell(cellValue) {
 |  |  function formatEmptyCell(cellValue) {
 | 
											
												
													
														|  | -  if (cellValue === null || cellValue === undefined || cellValue === '') {
 |  | 
 | 
											
												
													
														|  | 
 |  | +  if (cellValue === null || cellValue === undefined || cellValue === '' || cellValue === 'nan') {
 | 
											
												
													
														|  |      return '--';
 |  |      return '--';
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |    else {
 |  |    else {
 | 
											
												
													
														|  |      const formatter = new Intl.NumberFormat('en-US', {
 |  |      const formatter = new Intl.NumberFormat('en-US', {
 | 
											
												
													
														|  |        minimumFractionDigits: 2,
 |  |        minimumFractionDigits: 2,
 | 
											
												
													
														|  |      });
 |  |      });
 | 
											
												
													
														|  |      return formatter.format(cellValue);
 |  |      return formatter.format(cellValue);
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -  // return cellValue; // 如果不是数字,返回原值
 |  | 
 | 
											
												
													
														|  | 
 |  | +function formatRateCell(cellValue) {
 | 
											
												
													
														|  | 
 |  | +  if (cellValue ==='nan%'){
 | 
											
												
													
														|  | 
 |  | +    return '--';
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +  else {
 | 
											
												
													
														|  | 
 |  | +    return cellValue;
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export const planSalesColumns = ref([
 |  |  export const planSalesColumns = ref([
 | 
											
										
											
												
													
														|  | @@ -322,16 +328,64 @@ export const planSalesColumns = ref([
 | 
											
												
													
														|  |    // { field: 'brandName', title: '品牌', fixed: 'left', width: 90 ,align: 'center'},
 |  |    // { field: 'brandName', title: '品牌', fixed: 'left', width: 90 ,align: 'center'},
 | 
											
												
													
														|  |    // { field: 'operater', title: '运营', fixed: 'left', width: 80, align: 'center' },
 |  |    // { field: 'operater', title: '运营', fixed: 'left', width: 80, align: 'center' },
 | 
											
												
													
														|  |    ...universal,
 |  |    ...universal,
 | 
											
												
													
														|  | -  { field: '1月', title: '1月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '2月', title: '2月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '3月', title: '3月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '4月', title: '4月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '5月', title: '5月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '6月', title: '6月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '7月', title: '7月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '8月', title: '8月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '9月', title: '9月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '10月', title: '10月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '11月', title: '11月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | -  { field: '12月', title: '12月计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 |  | 
 | 
											
												
													
														|  | 
 |  | +  {title:'1月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '1月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '1月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '1月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'2月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '2月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '2月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '2月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'3月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '3月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '3月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '3月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'4月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '4月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '4月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '4月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'5月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '5月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '5月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '5月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'6月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '6月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '6月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '6月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'7月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '7月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '7月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '7月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'8月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '8月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '8月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '8月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'9月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '9月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '9月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '9月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'10月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '10月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '10月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '10月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'11月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '11月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '11月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '11月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]},
 | 
											
												
													
														|  | 
 |  | +    {title:'12月', align: 'center', children: [
 | 
											
												
													
														|  | 
 |  | +      { field: '12月', title: '计划销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.planSales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '12月', title: '销售额', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatEmptyCell(cellValue?.sales) },
 | 
											
												
													
														|  | 
 |  | +      { field: '12月', title: '销售额完成率', minWidth: 105, align: 'center', formatter: ({ cellValue }) => formatRateCell(cellValue?.sales_completion_rate) },
 | 
											
												
													
														|  | 
 |  | +    ]}
 | 
											
												
													
														|  |  ])
 |  |  ])
 |