|
@@ -17,6 +17,18 @@
|
|
|
<el-button type="warning" icon="el-icon-download" size="small" @click="outExport">导出</el-button>
|
|
|
<!--<el-button type="primary" icon="el-icon-printer" size="small"-->
|
|
|
<!-- @click="handlePrint">打印</el-button>-->
|
|
|
+ <div style="display: flex;align-items: center;">
|
|
|
+ <div style="font-size: 14px;color: #2d8cf0;margin-right: 30px;">
|
|
|
+ <span>库存数量总计:</span>
|
|
|
+ <span>{{stockSum.balanceQuantity}}</span>
|
|
|
+ </div>
|
|
|
+ <div style="font-size: 14px;color: #2d8cf0;">
|
|
|
+ <span>库存金额总计:</span>
|
|
|
+ <span>{{stockSum.inventoryAmount}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="balanceQuantity">
|
|
|
<span style="color: #409EFF;cursor: pointer" @click.stop="storeInventoryOpen(row)">{{ row.balanceQuantity }}
|
|
@@ -32,7 +44,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getList } from "@/api/tirePartsMall/inventory";
|
|
|
+import {getList, stockDescStockSum} from "@/api/tirePartsMall/inventory";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
import { getCorpType } from "@/api/tirePartsMall/basicData/commodityInformation";
|
|
|
import reportDialog from "@/components/report-dialog/main.vue";
|
|
@@ -50,6 +62,7 @@ export default {
|
|
|
search: {whether:'0'},
|
|
|
form: {},
|
|
|
dataList: [],
|
|
|
+ stockSum:{}, // 合计数据
|
|
|
detailData: {},
|
|
|
params: {
|
|
|
corpId: null,
|
|
@@ -59,7 +72,7 @@ export default {
|
|
|
pageSize: 20,
|
|
|
currentPage: 1,
|
|
|
total: 0,
|
|
|
- pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
|
|
|
+ pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000]
|
|
|
},
|
|
|
key: 0,
|
|
|
treeOption: {
|
|
@@ -94,7 +107,7 @@ export default {
|
|
|
highlightCurrentRow: true,
|
|
|
dialogWidth: "70%",
|
|
|
summaryText: "合计",
|
|
|
- showSummary: true,
|
|
|
+ showSummary: false,
|
|
|
sumColumnList: [
|
|
|
{
|
|
|
name: 'balanceQuantity',
|
|
@@ -164,10 +177,11 @@ export default {
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '仓库',
|
|
|
- prop: "storageName",
|
|
|
+ prop: "storageId",
|
|
|
// searchProp: "storageId",
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
+ hide:true,
|
|
|
type: 'select',
|
|
|
props: {
|
|
|
label: 'cname',
|
|
@@ -175,7 +189,14 @@ export default {
|
|
|
},
|
|
|
dicUrl: '/api/blade-sales-part/storageDesc/listAll',
|
|
|
width: 100
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '仓库',
|
|
|
+ prop: "storageName",
|
|
|
+ overHidden: true,
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '库存数量',
|
|
|
prop: "balanceQuantity",
|
|
|
overHidden: true,
|
|
@@ -226,7 +247,20 @@ export default {
|
|
|
label: '否',
|
|
|
value: '0'
|
|
|
}],
|
|
|
- }]
|
|
|
+ }, {
|
|
|
+ label: '是否上架',
|
|
|
+ prop: "ifGrounding",
|
|
|
+ overHidden: true,
|
|
|
+ search: true,
|
|
|
+ type: 'select',
|
|
|
+ dicData: [{
|
|
|
+ label: '未上架',
|
|
|
+ value: '1'
|
|
|
+ }, {
|
|
|
+ label: '已上架',
|
|
|
+ value: '0'
|
|
|
+ }],
|
|
|
+ },]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -313,7 +347,7 @@ export default {
|
|
|
onLoad(page, params = {}) {
|
|
|
console.log(params);
|
|
|
params = {
|
|
|
- storageId:params.storageName,
|
|
|
+ storageId:params.storageId,
|
|
|
current: page.currentPage,
|
|
|
size: page.pageSize,
|
|
|
...Object.assign(params, this.search)
|
|
@@ -322,6 +356,9 @@ export default {
|
|
|
getList(params).then(res => {
|
|
|
this.dataList = res.data.data.records
|
|
|
this.page.total = res.data.data.total
|
|
|
+ stockDescStockSum(params).then(re=>{
|
|
|
+ this.stockSum = re.data.data
|
|
|
+ })
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.crud.doLayout()
|
|
|
})
|