diff --git a/jshERP-web/src/mixins/JeecgListMixin.js b/jshERP-web/src/mixins/JeecgListMixin.js index fa407d03b..b7a4f7827 100644 --- a/jshERP-web/src/mixins/JeecgListMixin.js +++ b/jshERP-web/src/mixins/JeecgListMixin.js @@ -388,7 +388,7 @@ export const JeecgListMixin = { //需要合计的列 let parseCols = 'initialStock,currentStock,currentStockPrice,initialAmount,thisMonthAmount,currentAmount,inSum,inSumPrice,' + 'outSum,outSumPrice,outInSumPrice,operNumber,allPrice,numSum,priceSum,prevSum,thisSum,thisAllPrice,billMoney,changeAmount,' + - 'allPrice,safetystock,currentNumber,linjieNumber' + 'allPrice,currentNumber,lowSafeStock,highSafeStock,lowCritical,highCritical' columns.forEach(column => { let { key, dataIndex } = column if (![key, dataIndex].includes(numKey)) { @@ -408,7 +408,7 @@ export const JeecgListMixin = { }) dataSource.push(totalRow) //总数要增加合计的行数,每页都有一行合计,所以总数要加上 - let size = parseInt(this.ipagination.total/this.ipagination.pageSize) +1 + let size = Math.ceil(this.ipagination.total/this.ipagination.pageSize) this.ipagination.total = this.ipagination.total + size } }, diff --git a/jshERP-web/src/views/material/modules/MaterialModal.vue b/jshERP-web/src/views/material/modules/MaterialModal.vue index 3659f26d3..ac3a2aade 100644 --- a/jshERP-web/src/views/material/modules/MaterialModal.vue +++ b/jshERP-web/src/views/material/modules/MaterialModal.vue @@ -366,10 +366,10 @@ title: '期初库存数量', key: 'initStock', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' }, { - title: '最低库存数量', key: 'lowSafeStock', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' + title: '最低安全库存数量', key: 'lowSafeStock', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' }, { - title: '最高库存数量', key: 'highSafeStock', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' + title: '最高安全库存数量', key: 'highSafeStock', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' } ] }, diff --git a/jshERP-web/src/views/report/AccountReport.vue b/jshERP-web/src/views/report/AccountReport.vue index 182e22c10..c8e57652f 100644 --- a/jshERP-web/src/views/report/AccountReport.vue +++ b/jshERP-web/src/views/report/AccountReport.vue @@ -64,7 +64,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/AllocationDetail.vue b/jshERP-web/src/views/report/AllocationDetail.vue index 221049cc1..bf540ef87 100644 --- a/jshERP-web/src/views/report/AllocationDetail.vue +++ b/jshERP-web/src/views/report/AllocationDetail.vue @@ -91,7 +91,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/BuyInReport.vue b/jshERP-web/src/views/report/BuyInReport.vue index 0f7cbae1d..42b28a9a8 100644 --- a/jshERP-web/src/views/report/BuyInReport.vue +++ b/jshERP-web/src/views/report/BuyInReport.vue @@ -52,7 +52,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/CustomerAccount.vue b/jshERP-web/src/views/report/CustomerAccount.vue index 4c0e19f4c..814eca98f 100644 --- a/jshERP-web/src/views/report/CustomerAccount.vue +++ b/jshERP-web/src/views/report/CustomerAccount.vue @@ -71,7 +71,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/InDetail.vue b/jshERP-web/src/views/report/InDetail.vue index 9c87191b6..f73bbe343 100644 --- a/jshERP-web/src/views/report/InDetail.vue +++ b/jshERP-web/src/views/report/InDetail.vue @@ -84,7 +84,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/InMaterialCount.vue b/jshERP-web/src/views/report/InMaterialCount.vue index 1db37ddb5..5f9da0e78 100644 --- a/jshERP-web/src/views/report/InMaterialCount.vue +++ b/jshERP-web/src/views/report/InMaterialCount.vue @@ -81,7 +81,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/InOutStockReport.vue b/jshERP-web/src/views/report/InOutStockReport.vue index 48236146e..e7519803f 100644 --- a/jshERP-web/src/views/report/InOutStockReport.vue +++ b/jshERP-web/src/views/report/InOutStockReport.vue @@ -70,7 +70,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/MaterialStock.vue b/jshERP-web/src/views/report/MaterialStock.vue index dd5f31313..ea5e1f347 100644 --- a/jshERP-web/src/views/report/MaterialStock.vue +++ b/jshERP-web/src/views/report/MaterialStock.vue @@ -87,7 +87,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/OutDetail.vue b/jshERP-web/src/views/report/OutDetail.vue index e5ac2737f..995a1dc54 100644 --- a/jshERP-web/src/views/report/OutDetail.vue +++ b/jshERP-web/src/views/report/OutDetail.vue @@ -84,7 +84,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/OutMaterialCount.vue b/jshERP-web/src/views/report/OutMaterialCount.vue index 33eac2b6b..cb2fe2148 100644 --- a/jshERP-web/src/views/report/OutMaterialCount.vue +++ b/jshERP-web/src/views/report/OutMaterialCount.vue @@ -81,7 +81,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/SaleOutReport.vue b/jshERP-web/src/views/report/SaleOutReport.vue index b5fe693e9..d8e5d302f 100644 --- a/jshERP-web/src/views/report/SaleOutReport.vue +++ b/jshERP-web/src/views/report/SaleOutReport.vue @@ -52,7 +52,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> diff --git a/jshERP-web/src/views/report/StockWarningReport.vue b/jshERP-web/src/views/report/StockWarningReport.vue index 3fbc70569..ace7bb860 100644 --- a/jshERP-web/src/views/report/StockWarningReport.vue +++ b/jshERP-web/src/views/report/StockWarningReport.vue @@ -59,7 +59,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`"> @@ -113,15 +113,18 @@ return (t !== '合计') ? (parseInt(index) + 1) : t } }, - {title: '条码', dataIndex: 'barCode', width: 120}, - {title: '名称', dataIndex: 'mname', width: 120}, + {title: '仓库', dataIndex: 'depotName', width: 100}, + {title: '条码', dataIndex: 'barCode', width: 100}, + {title: '名称', dataIndex: 'mname', width: 100}, {title: '规格', dataIndex: 'mstandard', width: 80}, {title: '型号', dataIndex: 'mmodel', width: 80}, - {title: '扩展信息', dataIndex: 'materialOther', width: 150}, - {title: '单位', dataIndex: 'materialUnit', width: 80}, - {title: '安全存量', dataIndex: 'safetystock', sorter: (a, b) => a.safetystock - b.safetystock, width: 80}, - {title: '当前库存', dataIndex: 'currentNumber', sorter: (a, b) => a.currentNumber - b.currentNumber, width: 80}, - {title: '建议入库量', dataIndex: 'linjieNumber', sorter: (a, b) => a.linjieNumber - b.linjieNumber, width: 80} + {title: '扩展信息', dataIndex: 'materialOther', width: 100}, + {title: '单位', dataIndex: 'materialUnit', width: 60}, + {title: '库存', dataIndex: 'currentNumber', sorter: (a, b) => a.currentNumber - b.currentNumber, width: 80}, + {title: '最低安全库存', dataIndex: 'lowSafeStock', sorter: (a, b) => a.lowSafeStock - b.lowSafeStock, width: 100}, + {title: '最高安全库存', dataIndex: 'highSafeStock', sorter: (a, b) => a.highSafeStock - b.highSafeStock, width: 100}, + {title: '建议入库量', dataIndex: 'lowCritical', sorter: (a, b) => a.lowCritical - b.lowCritical, width: 80}, + {title: '建议出库量', dataIndex: 'highCritical', sorter: (a, b) => a.highCritical - b.highCritical, width: 80} ], url: { list: "/depotItem/findStockWarningCount" @@ -149,10 +152,11 @@ }) }, exportExcel() { - let aoa = [['条码', '名称', '规格', '型号', '扩展信息', '单位', '安全存量', '当前库存', '建议入库量']] + let aoa = [['仓库', '条码', '名称', '规格', '型号', '扩展信息', '单位', '库存', '最低安全库存', '最高安全库存', '建议入库量', '建议出库量']] for (let i = 0; i < this.dataSource.length; i++) { let ds = this.dataSource[i] - let item = [ds.barCode, ds.mname, ds.mstandard, ds.mmodel, ds.materialOther, ds.materialUnit, ds.safetystock, ds.currentNumber, ds.linjieNumber] + let item = [ds.depotName, ds.barCode, ds.mname, ds.mstandard, ds.mmodel, ds.materialOther, ds.materialUnit, + ds.currentNumber, ds.lowSafeStock, ds.highSafeStock, ds.lowCritical, ds.highCritical] aoa.push(item) } openDownloadDialog(sheet2blob(aoa), '库存预警') diff --git a/jshERP-web/src/views/report/VendorAccount.vue b/jshERP-web/src/views/report/VendorAccount.vue index 9170d4b23..06f0be974 100644 --- a/jshERP-web/src/views/report/VendorAccount.vue +++ b/jshERP-web/src/views/report/VendorAccount.vue @@ -71,7 +71,7 @@ :page-size="ipagination.pageSize" :page-size-options="ipagination.pageSizeOptions" :total="ipagination.total" - :show-total="(total, range) => `共 ${total-parseInt(total/ipagination.pageSize)-1} 条`"> + :show-total="(total, range) => `共 ${total-Math.ceil(total/ipagination.pageSize)} 条`">