Browse Source

UI

master_hella_20240701
wangyufei 5 months ago
parent
commit
c7ea2698b9
  1. 9
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  2. 10
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue

9
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -95,6 +95,7 @@ watch(()=>tableObjectHead.tableList,()=>{
const updateDateTableColumns = ()=>{
console.log('tableObjectHead',tableObjectHead)
let dateColumns = []
if(tableObjectHead.tableList.length>10){
tableObjectHead.tableList.forEach(item=>{
dateColumns.push({
width:120,
@ -102,6 +103,14 @@ const updateDateTableColumns = ()=>{
label: item
})
})
}else{
tableObjectHead.tableList.forEach(item=>{
dateColumns.push({
field: item,
label: item
})
})
}
tableColumns.value = [...orginTableColumns.value,...dateColumns]
console.log('tableColumns',tableColumns.value)
}

10
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue

@ -102,6 +102,7 @@ watch(()=>tableObjectHead.tableList,()=>{
const updateDateTableColumns = ()=>{
console.log('tableObjectHead',tableObjectHead)
let dateColumns = []
if(tableObjectHead.tableList.length>10){
tableObjectHead.tableList.forEach(item=>{
dateColumns.push({
width:120,
@ -109,6 +110,15 @@ const updateDateTableColumns = ()=>{
label: item
})
})
}else{
tableObjectHead.tableList.forEach(item=>{
dateColumns.push({
field: item,
label: item
})
})
}
tableColumns.value = [...orginTableColumns.value,...dateColumns]
console.log('tableColumns',tableColumns.value)
}

Loading…
Cancel
Save