'报表更新'

This commit is contained in:
Fanzink
2022-03-16 16:14:50 +08:00
parent 643277e1c7
commit 99f92f6891
3 changed files with 51 additions and 39 deletions

View File

@@ -4,7 +4,7 @@
* @Author: fzq
* @Date: 2022-03-05 15:55:45
* @LastEditors: fzq
* @LastEditTime: 2022-03-11 11:08:53
* @LastEditTime: 2022-03-16 16:09:15
-->
<template>
<div class="app-container">
@@ -29,7 +29,7 @@
@clickBtn="handleClick"
/>
</base-table>
<edit-substrate v-if="addOrUpdateVisible" :id="listQuery.id" ref="addOrUpdate" @refreshDataList="getList" />
<edit-substrate v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getList" />
</div>
</template>
@@ -104,7 +104,7 @@ export default {
return {
addOrUpdateVisible: false,
num: '',
storageCode: this.$t('module.basicData.visual.TipsBefore'),
storageCode: this.$t('module.basicData.visual.storageCode'),
tableBtn,
trueWidth: 200,
tableProps,
@@ -113,14 +113,17 @@ export default {
listQuery: {
current: 1,
size: 10,
storageBoxCode: '',
storageBoxId: ''
}
locationStorageSubID: ''
// storageBoxCode: '',
// storageBoxId: ''
},
count: 0
}
},
created() {
this.listQuery.storageBoxCode = this.$route.query.code
this.listQuery.storageBoxId = this.$route.query.id
// this.listQuery.storageBoxId = this.$route.query.id
this.listQuery.locationStorageSubID = this.$route.query.locationStorageSubID
this.getList()
},
methods: {
@@ -131,7 +134,7 @@ export default {
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
type: 'warning'
}).then(() => {
// console.log(raw.data)
// console.log(raw.data)
deleSubstrate(raw.data).then(response => {
this.$message({
message: this.$t('module.basicData.visual.success'),
@@ -144,16 +147,18 @@ export default {
})
}).catch(() => {})
} else {
this.addNew(raw.data.id)
// this.count = raw.data._pageIndex
// console.log(this.count)
this.addNew(raw.data)
}
},
getList() {
this.listLoading = true
this.num = this.listQuery.storageBoxCode
this.listQuery.code = this.$route.query.code
console.log(this.listQuery)
// console.log(this.listQuery)
listSubstrate(this.listQuery).then(response => {
console.log(response)
// console.log(response)
if (response.data) {
this.list = response.data
console.log(this.list)