Browse Source

UI

master_hella_20240701
wangyufei 4 months ago
parent
commit
c7ea2698b9
  1. 19
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  2. 20
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue

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

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

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

@ -102,13 +102,23 @@ watch(()=>tableObjectHead.tableList,()=>{
const updateDateTableColumns = ()=>{
console.log('tableObjectHead',tableObjectHead)
let dateColumns = []
tableObjectHead.tableList.forEach(item=>{
if(tableObjectHead.tableList.length>10){
tableObjectHead.tableList.forEach(item=>{
dateColumns.push({
width:120,
field: item,
label: item
width:120,
field: item,
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