1抛光库导出
This commit is contained in:
@@ -530,7 +530,7 @@ export default {
|
||||
// 成品总入库
|
||||
finishProductInTotal() {
|
||||
// GP12合格+后道合格
|
||||
return this.boardData.gP12QualifiedTotal + this.boardData.afterPolishQualifiedTotal
|
||||
return this.boardData.gP12QualifiedTotal + this.boardData.afterPolishInTotal
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
||||
@@ -46,7 +46,8 @@
|
||||
<!-- 仓库零件数 -->
|
||||
<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; 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>
|
||||
<!-- 数据区域 -->
|
||||
<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() {
|
||||
return this.allDataList.reduce((acc, data) => acc + data.quantity, 0)
|
||||
},
|
||||
// 当前查询库存数量(查询结果)
|
||||
realTotalQuantity() {
|
||||
return this.allDataList.reduce((acc, data) => acc + data.realQuantity, 0)
|
||||
},
|
||||
},
|
||||
created() {
|
||||
// 列表数据查询
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
</el-row>
|
||||
<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; 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>
|
||||
<!-- 数据区域 -->
|
||||
<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() },
|
||||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + '/system/user/importData',
|
||||
url: process.env.VUE_APP_BASE_API + '/mes/wm/WmPolishInventory/importData',
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 当前查询库存数量
|
||||
// 当前查询库存数量(盘点)
|
||||
totalQuantity() {
|
||||
return this.allDataList.reduce((acc, data) => acc + data.quantity, 0)
|
||||
},
|
||||
// 当前查询库存数量(查询结果)
|
||||
realTotalQuantity() {
|
||||
return this.allDataList.reduce((acc, data) => acc + data.realQuantity, 0)
|
||||
},
|
||||
},
|
||||
created() {
|
||||
// 列表数据查询
|
||||
@@ -580,7 +585,7 @@ export default {
|
||||
},
|
||||
/** 下载模板操作 */
|
||||
importTemplate() {
|
||||
this.download('/system/user/importTemplate', '抛光数据导入模板')
|
||||
this.download('/mes/wm/WmPolishInventory/importTemplate', '抛光仓库盘点模板')
|
||||
},
|
||||
// 文件上传中处理
|
||||
handleFileUploadProgress(event, file, fileList) {
|
||||
|
||||
Reference in New Issue
Block a user