安虹睿
1 year ago
11 changed files with 411 additions and 112 deletions
@ -1,18 +1,39 @@ |
|||||
<template> |
<template> |
||||
<div>home</div> |
<div class="menuList"> |
||||
|
<div |
||||
|
class="menuItem" |
||||
|
v-for="(item,index) in menuList" |
||||
|
:key="index" |
||||
|
@click="goPage(item.path)" |
||||
|
>{{item.title || item.name}}</div> |
||||
|
</div> |
||||
</template> |
</template> |
||||
<script> |
<script> |
||||
export default { |
export default { |
||||
name: "home", |
name: "home", |
||||
data () { |
data () { |
||||
return { |
return { |
||||
|
menuList:"" |
||||
}; |
}; |
||||
}, |
}, |
||||
|
mounted(){ |
||||
|
this.menuList = this.$router.options.routes |
||||
|
console.log(this.menuList) |
||||
|
}, |
||||
methods: { |
methods: { |
||||
|
goPage(url){ |
||||
|
this.$router.push(url) |
||||
|
}, |
||||
}, |
}, |
||||
}; |
}; |
||||
</script> |
</script> |
||||
<style> |
<style lang="less" scoped> |
||||
|
.menuList{ |
||||
|
padding:20px; |
||||
|
.menuItem{ |
||||
|
cursor: pointer; |
||||
|
padding:10px; |
||||
|
border-bottom:#e8e8e8 solid 1px |
||||
|
} |
||||
|
} |
||||
</style> |
</style> |
@ -1,57 +0,0 @@ |
|||||
<template> |
|
||||
<reportPage |
|
||||
:columnList="columnDefs" |
|
||||
:searchConfig="searchConfig" |
|
||||
:searchForm="searchForm" |
|
||||
:reportName="'库存库龄报表'" |
|
||||
:BottomFixedItem="BottomFixedItem" |
|
||||
:procName="'Proc_Zheng_库存库龄'" |
|
||||
:showReportTitle="false" |
|
||||
></reportPage> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import reportPage from "@/components/reportPage/index" |
|
||||
import util from '@/utils/util' |
|
||||
|
|
||||
export default { |
|
||||
name: "inventoryAndAge", |
|
||||
components: { |
|
||||
reportPage |
|
||||
}, |
|
||||
data () { |
|
||||
const numberFormatter = (item) =>{ |
|
||||
return Number(item.value).toFixed(2); |
|
||||
} |
|
||||
return { |
|
||||
columnDefs: [ |
|
||||
{ field: '物料代码', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '物料名称', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '物料描述1', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '物料描述2', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '库位组', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '总数', cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '<=30天', cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '31-180天', cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '181-240天', cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '241-300天', cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '301-360天', cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '>=361天', cellClass: 'rightAlign', valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '单位', cellClass:"centerAlign", filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
|
||||
{ field: '状态', cellClass:"centerAlign", filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true }}, |
|
||||
], |
|
||||
searchConfig:[ |
|
||||
{type:'select',prop:'ItemCode',label:'物料',optionsProc:'itemCode'}, |
|
||||
{type:'select',prop:'LocationGroupCode',label:'库位组',optionsProc:'LocationGroupCode'}, |
|
||||
{type:'select',prop:'InventoryStatus',label:'状态',optionsProc:'InventoryStatus'}, |
|
||||
], |
|
||||
searchForm:{ |
|
||||
ItemCode:'', |
|
||||
LocationGroupCode:'', |
|
||||
InventoryStatus:"", |
|
||||
}, |
|
||||
BottomFixedItem:['总数','<=30天','31-180天','181-240天','241-300天','301-360天','>=361天'] |
|
||||
}; |
|
||||
}, |
|
||||
}; |
|
||||
</script> |
|
@ -0,0 +1,56 @@ |
|||||
|
<template> |
||||
|
<reportPage |
||||
|
:columnList="columnDefs" |
||||
|
:searchConfig="searchConfig" |
||||
|
:searchForm="searchForm" |
||||
|
:reportName="'库存库龄报表'" |
||||
|
:BottomFixedItem="BottomFixedItem" |
||||
|
:procName="'Proc_Zheng_库存库龄'" |
||||
|
></reportPage> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import reportPage from "@/components/reportPage/index" |
||||
|
import util from '@/utils/util' |
||||
|
|
||||
|
export default { |
||||
|
name: "inventoryAndAge", |
||||
|
components: { |
||||
|
reportPage |
||||
|
}, |
||||
|
data () { |
||||
|
const numberFormatter = (item) =>{ |
||||
|
return Number(item.value).toFixed(2); |
||||
|
} |
||||
|
return { |
||||
|
columnDefs: [ |
||||
|
{ field: '物料代码', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料名称', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料描述1', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料描述2', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '库位组', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '总数', flex:1, cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '<=30天', flex:1, cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '31-180天', flex:1, cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '181-240天', flex:1, cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '241-300天', flex:1, cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '301-360天', flex:1, cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '>=361天', flex:1, cellClass: 'rightAlign', valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '单位', flex:1, cellClass:"centerAlign", filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '状态', flex:1, cellClass:"centerAlign", filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true }}, |
||||
|
], |
||||
|
searchConfig:[ |
||||
|
{type:'select',prop:'ItemCode',label:'物料',optionsProc:'itemCode'}, |
||||
|
{type:'select',prop:'LocationGroupCode',label:'库位组',optionsProc:'LocationGroupCode'}, |
||||
|
{type:'select',prop:'InventoryStatus',label:'状态',optionsProc:'InventoryStatus'}, |
||||
|
], |
||||
|
searchForm:{ |
||||
|
ItemCode:'', |
||||
|
LocationGroupCode:'', |
||||
|
InventoryStatus:"", |
||||
|
}, |
||||
|
BottomFixedItem:['总数','<=30天','31-180天','181-240天','241-300天','301-360天','>=361天'] |
||||
|
}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,49 @@ |
|||||
|
<template> |
||||
|
<reportPage |
||||
|
:columnList="columnDefs" |
||||
|
:searchConfig="searchConfig" |
||||
|
:searchForm="searchForm" |
||||
|
:reportName="'库存余额_ERP-WMS差异报表'" |
||||
|
:BottomFixedItem="BottomFixedItem" |
||||
|
:procName="'Proc_Zheng_库存余额_erp与wms差异'" |
||||
|
></reportPage> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import reportPage from "@/components/reportPage/index" |
||||
|
import util from '@/utils/util' |
||||
|
|
||||
|
export default { |
||||
|
name: "inventoryERPWMS", |
||||
|
components: { |
||||
|
reportPage |
||||
|
}, |
||||
|
data () { |
||||
|
const numberFormatter = (item) =>{ |
||||
|
return Number(item.value).toFixed(2); |
||||
|
} |
||||
|
return { |
||||
|
columnDefs: [ |
||||
|
{ field: '物料代码', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料名称', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料描述1', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料描述2', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: 'ERP库位', cellClass:"centerAlign", width:150, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: 'ERP数量', cellClass:"rightAlign", width:200, valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: 'WMS数量', cellClass:"rightAlign", width:200, valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '差异', cellClass:"rightAlign", width:200, valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '单位', cellClass:"centerAlign", width:150, suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
], |
||||
|
searchConfig:[ |
||||
|
{type:'select',prop:'ItemCode',label:'物料',optionsProc:'itemCode'}, |
||||
|
{type:'select',prop:'ErpLocationCode',label:'ERP库位',optionsProc:'ErpLocationCode'}, |
||||
|
], |
||||
|
searchForm:{ |
||||
|
ItemCode:'', |
||||
|
ErpLocationCode:'', |
||||
|
}, |
||||
|
BottomFixedItem:['ERP数量','WMS数量','差异'] |
||||
|
}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,57 @@ |
|||||
|
<template> |
||||
|
<reportPage |
||||
|
:columnList="columnDefs" |
||||
|
:searchConfig="searchConfig" |
||||
|
:searchForm="searchForm" |
||||
|
:reportName="'库存事务报表'" |
||||
|
:BottomFixedItem="BottomFixedItem" |
||||
|
:procName="'Proc_Zheng_库存事务'" |
||||
|
></reportPage> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import reportPage from "@/components/reportPage/index" |
||||
|
import util from '@/utils/util' |
||||
|
|
||||
|
export default { |
||||
|
name: "inventoryERPWMS", |
||||
|
components: { |
||||
|
reportPage |
||||
|
}, |
||||
|
data () { |
||||
|
const numberFormatter = (item) =>{ |
||||
|
return Number(item.value).toFixed(2); |
||||
|
} |
||||
|
return { |
||||
|
columnDefs: [ |
||||
|
{ field: '物料代码', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料名称', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料描述1', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料描述2', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'库位组代码', field: '库位组', width:200, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '数量', cellClass:"rightAlign", width:200, valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '单位', cellClass:"centerAlign", width:150, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '状态', cellClass:"centerAlign", width:150, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'事务分类', field: '类型', width:150, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
], |
||||
|
searchConfig:[ |
||||
|
{type:'select',prop:'ItemCode',label:'物料',optionsProc:'itemCode'}, |
||||
|
{type:'select',prop:'LocationGroupCode',label:'库位组',optionsProc:'LocationGroupCode'}, |
||||
|
{type:'select',prop:'InventoryStatus',label:'状态',optionsProc:'InventoryStatus'}, |
||||
|
{type:'select',prop:'TransType',label:'事务分类',optionsProc:'TransType'}, |
||||
|
{type:'date',prop:'beginDate',label:'起始'}, |
||||
|
{type:'date',prop:'endDate',label:'截止'}, |
||||
|
], |
||||
|
searchForm:{ |
||||
|
ItemCode:'', |
||||
|
TransType:'', |
||||
|
LocationGroupCode:'', |
||||
|
InventoryStatus:'', |
||||
|
beginDate:'', |
||||
|
endDate:'', |
||||
|
}, |
||||
|
BottomFixedItem:['数量'] |
||||
|
}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,52 @@ |
|||||
|
<template> |
||||
|
<reportPage |
||||
|
:columnList="columnDefs" |
||||
|
:searchConfig="searchConfig" |
||||
|
:searchForm="searchForm" |
||||
|
:reportName="'采购收货/采购退货(有PO)'" |
||||
|
:BottomFixedItem="BottomFixedItem" |
||||
|
:procName="'Proc_Zheng_采购收货_采购退货_有po'" |
||||
|
></reportPage> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import reportPage from "@/components/reportPage/index" |
||||
|
import util from '@/utils/util' |
||||
|
|
||||
|
export default { |
||||
|
name: "inventoryAndAge", |
||||
|
components: { |
||||
|
reportPage |
||||
|
}, |
||||
|
data () { |
||||
|
const numberFormatter = (item) =>{ |
||||
|
return Number(item.value).toFixed(2); |
||||
|
} |
||||
|
return { |
||||
|
columnDefs: [ |
||||
|
{ field: '供应商代码', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料代码', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料名称', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料描述1', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '物料描述2', flex:1, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '收货数量', width:200, cellClass:"rightAlign", valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '退货数量', width:200, cellClass: 'rightAlign', valueFormatter: numberFormatter, filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ field: '单位', width:150, cellClass:"centerAlign", filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
], |
||||
|
searchConfig:[ |
||||
|
{type:'select',prop:'ItemCode',label:'物料',optionsProc:'itemCode'}, |
||||
|
{type:'select',prop:'SupplierCode',label:'供应商',optionsProc:'SupplierCode'}, |
||||
|
{type:'date',prop:'beginDate',label:'起始'}, |
||||
|
{type:'date',prop:'endDate',label:'截止'}, |
||||
|
], |
||||
|
searchForm:{ |
||||
|
ItemCode:'', |
||||
|
SupplierCode:'', |
||||
|
beginDate:"", |
||||
|
endDate:'', |
||||
|
}, |
||||
|
BottomFixedItem:['收货数量','退货数量'] |
||||
|
}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
Loading…
Reference in new issue