安虹睿
10 months ago
7 changed files with 143 additions and 22 deletions
@ -1 +1,3 @@ |
|||||
window.SITE_CONFIG['apiURL'] = 'http://dev.ccwin-in.com:60029' |
window.SITE_CONFIG['apiURL'] = 'http://dev.ccwin-in.com:60029' |
||||
|
//特殊使用埃驰pc端访问地址(如备料报表)
|
||||
|
window.SITE_CONFIG['businessURL'] = 'http://dev.ccwin-in.com:10099' |
@ -0,0 +1,7 @@ |
|||||
|
import axiosUtil from '@/utils/request' |
||||
|
let businessURL = window.SITE_CONFIG['businessURL'] |
||||
|
|
||||
|
// 备料看板
|
||||
|
export function getstockPreparationList() { |
||||
|
return axiosUtil.ajax_post(businessURL+'/api/wms/store/board/preparation-board-export') |
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
<template> |
||||
|
<reportPage |
||||
|
ref="reportPage_Ref" |
||||
|
:columnList="columnDefs" |
||||
|
:BottomFixedItem="BottomFixedItem" |
||||
|
:reportName="'备料报表'" |
||||
|
:isSpecialData="true" |
||||
|
></reportPage> |
||||
|
</template> |
||||
|
|
||||
|
<!-- :searchConfig="searchConfig" |
||||
|
:searchForm="searchForm" --> |
||||
|
<script> |
||||
|
import {getstockPreparationList} from "@/api/businessApi" |
||||
|
import reportPage from "@/components/reportPage/index" |
||||
|
import util from '@/utils/util' |
||||
|
|
||||
|
export default { |
||||
|
name: "stockPreparationReport", |
||||
|
components: { |
||||
|
reportPage |
||||
|
}, |
||||
|
data () { |
||||
|
return { |
||||
|
columnDefs: [ |
||||
|
{ headerName:'物料代码',field: 'itemCode', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'物料名称',field: 'itemName', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'物料描述1',field: 'itemDesc1', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'物料描述2',field: 'itemDesc2', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'库位代码',field: 'locationCode', filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'当前数量',field: 'currentQty', type:"kiloNumber", cellClass: 'rightAlign', valueFormatter: ((data)=>{return util.numberFixedFormatter(data.value,true)}), filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'最小值',field: 'minQty', type:"kiloNumber", cellClass: 'rightAlign', valueFormatter: ((data)=>{return util.numberFixedFormatter(data.value,true)}), filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'最大值',field: 'maxQty', type:"kiloNumber", cellClass: 'rightAlign', valueFormatter: ((data)=>{return util.numberFixedFormatter(data.value,true)}), filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
{ headerName:'差异数',field: 'difference', type:"kiloNumber", cellClass: 'rightAlign', valueFormatter: ((data)=>{return util.numberFixedFormatter(data.value,true)}), filter: 'agTextColumnFilter', suppressMenu: true, floatingFilterComponentParams: { suppressFilterButton: true } }, |
||||
|
], |
||||
|
columnOption:{ |
||||
|
itemCode:"物料代码", |
||||
|
itemName:"物料名称", |
||||
|
itemDesc1:"物料描述1", |
||||
|
itemDesc2:"物料描述2", |
||||
|
locationCode:"库位代码", |
||||
|
currentQty:"当前数量", |
||||
|
minQty:"最小值", |
||||
|
maxQty:"最大值", |
||||
|
difference:"差异数", |
||||
|
}, |
||||
|
searchConfig:[ |
||||
|
{type:'select',prop:'ItemCode',label:'物料',optionsProc:'itemCode',options:[]}, |
||||
|
{type:'select',prop:'SupplierCode',label:'供应商',optionsProc:'SupplierCode',options:[]}, |
||||
|
{type:'date',prop:'beginDate',label:'起始'}, |
||||
|
{type:'date',prop:'endDate',label:'截止'}, |
||||
|
{type:'select',prop:'receiptType',noClear:true,label:'类型',optionsProc:'receiptType',options:[]}, |
||||
|
], |
||||
|
searchForm:{ |
||||
|
ItemCode:'', |
||||
|
SupplierCode:'', |
||||
|
beginDate:"", |
||||
|
endDate:'', |
||||
|
receiptType:null, |
||||
|
}, |
||||
|
BottomFixedItem:['currentQty','minQty','maxQty','difference'], |
||||
|
}; |
||||
|
}, |
||||
|
created(){ |
||||
|
getstockPreparationList().then(res=>{ |
||||
|
this.$refs.reportPage_Ref.updateTableData(res) |
||||
|
this.$refs.reportPage_Ref.updateDownloadData(res) |
||||
|
}) |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
Loading…
Reference in new issue