1抛光库导出

This commit is contained in:
2024-10-29 17:38:42 +08:00
parent a3fd73c27a
commit eacff97084
3 changed files with 16 additions and 6 deletions

View File

@@ -530,7 +530,7 @@ export default {
// 成品总入库 // 成品总入库
finishProductInTotal() { finishProductInTotal() {
// GP12合格+后道合格 // GP12合格+后道合格
return this.boardData.gP12QualifiedTotal + this.boardData.afterPolishQualifiedTotal return this.boardData.gP12QualifiedTotal + this.boardData.afterPolishInTotal
}, },
}, },
created() { created() {

View File

@@ -46,7 +46,8 @@
<!-- 仓库零件数 --> <!-- 仓库零件数 -->
<div style="display: flex; align-items: center; justify-content: center; margin-bottom: 10px"> <div style="display: flex; align-items: center; justify-content: center; margin-bottom: 10px">
<span style="font-size: 18px; font-weight: 600">一次合格品仓库零件数:{{ partTotal }}</span> <span style="font-size: 18px; font-weight: 600">一次合格品仓库零件数:{{ partTotal }}</span>
<span style="font-size: 18px; font-weight: 600; margin-left: 20px">当前查询结果零件数:{{ totalQuantity }}</span> <span style="font-size: 18px; font-weight: 600; margin-left: 20px">盘点零件数:{{ totalQuantity }}</span>
<span style="font-size: 18px; font-weight: 600; margin-left: 20px">当前零件数:{{ realTotalQuantity }}</span>
</div> </div>
<!-- 数据区域 --> <!-- 数据区域 -->
<el-table :data="dataList" v-loading="loading" ref="table" border highlight-current-row @sort-change="sortChange" @selection-change="handleSelectionChange"> <el-table :data="dataList" v-loading="loading" ref="table" border highlight-current-row @sort-change="sortChange" @selection-change="handleSelectionChange">
@@ -322,6 +323,10 @@ export default {
totalQuantity() { totalQuantity() {
return this.allDataList.reduce((acc, data) => acc + data.quantity, 0) return this.allDataList.reduce((acc, data) => acc + data.quantity, 0)
}, },
// 当前查询库存数量(查询结果)
realTotalQuantity() {
return this.allDataList.reduce((acc, data) => acc + data.realQuantity, 0)
},
}, },
created() { created() {
// 列表数据查询 // 列表数据查询

View File

@@ -48,7 +48,8 @@
</el-row> </el-row>
<div style="display: flex; align-items: center; justify-content: center; margin-bottom: 10px"> <div style="display: flex; align-items: center; justify-content: center; margin-bottom: 10px">
<span style="font-size: 18px; font-weight: 600">抛光仓库总零件数:{{ partTotal }}</span> <span style="font-size: 18px; font-weight: 600">抛光仓库总零件数:{{ partTotal }}</span>
<span style="font-size: 18px; font-weight: 600; margin-left: 20px">当前查询结果零件数:{{ totalQuantity }}</span> <span style="font-size: 18px; font-weight: 600; margin-left: 20px">盘点零件数:{{ totalQuantity }}</span>
<span style="font-size: 18px; font-weight: 600; margin-left: 20px">当前零件数:{{ realTotalQuantity }}</span>
</div> </div>
<!-- 数据区域 --> <!-- 数据区域 -->
<el-table :data="dataList" v-loading="loading" ref="table" border highlight-current-row @sort-change="sortChange" @selection-change="handleSelectionChange"> <el-table :data="dataList" v-loading="loading" ref="table" border highlight-current-row @sort-change="sortChange" @selection-change="handleSelectionChange">
@@ -355,15 +356,19 @@ export default {
// 设置上传的请求头部 // 设置上传的请求头部
headers: { Authorization: 'Bearer ' + getToken() }, headers: { Authorization: 'Bearer ' + getToken() },
// 上传的地址 // 上传的地址
url: process.env.VUE_APP_BASE_API + '/system/user/importData', url: process.env.VUE_APP_BASE_API + '/mes/wm/WmPolishInventory/importData',
}, },
} }
}, },
computed: { computed: {
// 当前查询库存数量 // 当前查询库存数量(盘点)
totalQuantity() { totalQuantity() {
return this.allDataList.reduce((acc, data) => acc + data.quantity, 0) return this.allDataList.reduce((acc, data) => acc + data.quantity, 0)
}, },
// 当前查询库存数量(查询结果)
realTotalQuantity() {
return this.allDataList.reduce((acc, data) => acc + data.realQuantity, 0)
},
}, },
created() { created() {
// 列表数据查询 // 列表数据查询
@@ -580,7 +585,7 @@ export default {
}, },
/** 下载模板操作 */ /** 下载模板操作 */
importTemplate() { importTemplate() {
this.download('/system/user/importTemplate', '抛光数据导入模板') this.download('/mes/wm/WmPolishInventory/importTemplate', '抛光仓库盘点模板')
}, },
// 文件上传中处理 // 文件上传中处理
handleFileUploadProgress(event, file, fileList) { handleFileUploadProgress(event, file, fileList) {