Browse Source

【埃驰报表】存储时效控制报表

master
安虹睿 8 months ago
parent
commit
f84953a816
  1. 10
      PC/UI.WinIn.FasterZ.AgGridReport/src/components/reportPageHeader/index.vue
  2. 9
      PC/UI.WinIn.FasterZ.AgGridReport/src/router/index.js
  3. 51
      PC/UI.WinIn.FasterZ.AgGridReport/src/views/report/storageAgingReport.vue

10
PC/UI.WinIn.FasterZ.AgGridReport/src/components/reportPageHeader/index.vue

@ -247,6 +247,16 @@ export default {
item.opL='label' item.opL='label'
item.opV="value" item.opV="value"
} }
//-
if(item.optionsProc == 'IsExceedThreshold'){
item.options = [
{label:'是',value:'是'},
{label:'否',value:'否'},
{label:'全部',value:'全部'},
]
item.opL='label'
item.opV="value"
}
} }
}) })
}, },

9
PC/UI.WinIn.FasterZ.AgGridReport/src/router/index.js

@ -32,6 +32,7 @@ import EQLevelReport from '../views/report/EQLevelReport.vue'
import outsourcingOutReport from '../views/report/outsourcingOutReport.vue' import outsourcingOutReport from '../views/report/outsourcingOutReport.vue'
import outsourcingReturnReport from '../views/report/outsourcingReturnReport.vue' import outsourcingReturnReport from '../views/report/outsourcingReturnReport.vue'
import stockPreparationReport from '../views/report/stockPreparationReport.vue' import stockPreparationReport from '../views/report/stockPreparationReport.vue'
import storageAgingReport from '../views/report/storageAgingReport.vue'
Vue.use(VueRouter) Vue.use(VueRouter)
@ -292,6 +293,14 @@ const routes = [
title:"备料报表", title:"备料报表",
} }
}, },
{
path: '/storageAgingReport',
name: 'storageAgingReport',
component: storageAgingReport,
meta:{
title:"存储时效控制报表",
}
},
] ]
const router = new VueRouter({ const router = new VueRouter({

51
PC/UI.WinIn.FasterZ.AgGridReport/src/views/report/storageAgingReport.vue

@ -0,0 +1,51 @@
<template>
<reportPage
:columnList="columnDefs"
:searchConfig="searchConfig"
:searchForm="searchForm"
:BottomFixedItem="BottomFixedItem"
:reportName="'存储时效控制报表'"
:procName="'Proc_Zheng_存储时效控制'"
></reportPage>
</template>
<script>
import reportPage from "@/components/reportPage/index"
import util from '@/utils/util'
export default {
name: "storageAgingReport",
components: {
reportPage
},
data () {
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:"centerAlign", 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 } },
{ field: '入库时间', cellClass:"centerAlign", valueFormatter: ((data)=>{return util.formatTimeStrToStr(data.value)}), 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 } },
{ field: '数量', type:"kiloNumber", cellClass:"rightAlign", valueFormatter: ((data)=>{return util.numberFixedFormatter(data.value,true)}), filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } },
],
searchConfig:[
{type:'select',prop:'ItemCode',label:'物料',optionsProc:'itemCode',options:[]},
{type:'select',prop:'LocationCode',label:'库位',optionsProc:'LocationCode',options:[]},
{type:'select',prop:'IsExceedThreshold',noClear:true,label:'是否超过时效',optionsProc:'IsExceedThreshold',options:[]},
],
searchForm:{
ItemCode:"",
LocationCode:'',
IsExceedThreshold:'全部',
},
BottomFixedItem:['数量'],
};
}
};
</script>
Loading…
Cancel
Save