This commit is contained in:
赵正易 2024-11-18 20:14:23 +08:00
parent 86e97ba023
commit b600bb5db3
3 changed files with 57 additions and 45 deletions

View File

@ -535,7 +535,7 @@ export default {
},
created() {
//
this.getList()
this.init()
},
mounted() {
this.createTimer()
@ -544,6 +544,18 @@ export default {
this.clearTimer()
},
methods: {
init(){
const params = {
startTime:this.$dayjs().toDate(),
endTime:this.$dayjs().toDate()
}
GetProductAndPolishAndOneTimeFqcBoardData(params).then((res) => {
if (res.code == 200) {
this.queryParams.startTime = this.$dayjs(res.data.polishStockTime).toDate()
this.getList()
}
})
},
//
getList() {
//
@ -551,6 +563,7 @@ export default {
GetProductAndPolishAndOneTimeFqcBoardData(this.queryParams).then((res) => {
if (res.code == 200) {
this.boardData = res.data
this.loading = false
}
})

View File

@ -48,9 +48,9 @@
</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">当前零件数:{{ realTotalQuantity }}</span>
<span style="font-size: 18px; font-weight: 600">导入盘点总数:{{ StocktakingTotal }}</span>
<span style="font-size: 18px; font-weight: 600; margin-left: 20px">当前查询盘点零件数:{{ QuantitySum }}</span>
<span style="font-size: 18px; font-weight: 600; margin-left: 20px">当前查询实际零件数:{{ RealQuantitySum }}</span>
</div>
<!-- 数据区域 -->
<el-table :data="dataList" v-loading="loading" ref="table" border highlight-current-row @sort-change="sortChange" @selection-change="handleSelectionChange">
@ -363,6 +363,9 @@ export default {
//
url: process.env.VUE_APP_BASE_API + '/mes/wm/WmOneTimeInventory/importData',
},
StocktakingTotal:0,
QuantitySum:0,
RealQuantitySum:0
}
},
computed: {
@ -388,23 +391,13 @@ export default {
listWmOneTimeInventory(this.queryParams).then((res) => {
if (res.code == 200) {
this.dataList = res.data.result
this.total = res.data.totalNum
this.total = res.data.total
this.StocktakingTotal = res.data.stocktakingTotal
this.QuantitySum = res.data.quantitySum
this.RealQuantitySum = res.data.realQuantitySum
this.loading = false
}
})
let params = JSON.parse(JSON.stringify(this.queryParams))
params.pageNum = 1
params.pageSize = 100000
listWmOneTimeInventory(params).then((res) => {
if (res.code == 200) {
this.allDataList = res.data.result
}
})
getPartNumber().then((res) => {
if (res.code === 200) {
this.partTotal = res.data
}
})
},
//
cancel() {

View File

@ -47,9 +47,9 @@
<right-toolbar :columns="columns" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</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">当前零件数:{{ realTotalQuantity }}</span>
<span style="font-size: 18px; font-weight: 600">导入盘点总数:{{ StocktakingTotal }}</span>
<span style="font-size: 18px; font-weight: 600; margin-left: 20px">当前查询盘点零件数:{{ QuantitySum }}</span>
<span style="font-size: 18px; font-weight: 600; margin-left: 20px">当前查询实际零件数:{{ RealQuantitySum }}</span>
</div>
<!-- 数据区域 -->
<el-table :data="dataList" v-loading="loading" ref="table" border highlight-current-row @sort-change="sortChange" @selection-change="handleSelectionChange">
@ -358,18 +358,21 @@ export default {
//
url: process.env.VUE_APP_BASE_API + '/mes/wm/WmPolishInventory/importData',
},
StocktakingTotal:0,
QuantitySum:0,
RealQuantitySum:0
}
},
computed: {
//
totalQuantity() {
return this.allDataList.reduce((acc, data) => acc + data.quantity, 0)
},
//
realTotalQuantity() {
return this.allDataList.reduce((acc, data) => acc + data.realQuantity, 0)
},
},
// computed: {
// //
// totalQuantity() {
// return this.allDataList.reduce((acc, data) => acc + data.quantity, 0)
// },
// //
// realTotalQuantity() {
// return this.allDataList.reduce((acc, data) => acc + data.realQuantity, 0)
// },
// },
created() {
//
this.getList()
@ -383,23 +386,26 @@ export default {
listWmPolishInventory(this.queryParams).then((res) => {
if (res.code == 200) {
this.dataList = res.data.result
this.total = res.data.totalNum
this.total = res.data.total
this.StocktakingTotal = res.data.stocktakingTotal
this.QuantitySum = res.data.quantitySum
this.RealQuantitySum = res.data.realQuantitySum
this.loading = false
}
})
let params = JSON.parse(JSON.stringify(this.queryParams))
params.pageNum = 1
params.pageSize = 100000
listWmPolishInventory(params).then((res) => {
if (res.code == 200) {
this.allDataList = res.data.result
}
})
getPartNumber().then((res) => {
if (res.code === 200) {
this.partTotal = res.data
}
})
// let params = JSON.parse(JSON.stringify(this.queryParams))
// params.pageNum = 1
// params.pageSize = 100000
// listWmPolishInventory(params).then((res) => {
// if (res.code == 200) {
// this.allDataList = res.data.result
// }
// })
// getPartNumber().then((res) => {
// if (res.code === 200) {
// this.partTotal = res.data
// }
// })
},
//
cancel() {