盘点报废-增加查询条件缓存

This commit is contained in:
bb_pan 2025-03-04 15:22:44 +08:00
parent 78c1e28b5c
commit cf2de901ae
2 changed files with 36 additions and 1 deletions

View File

@ -281,6 +281,14 @@ import Tree from '@/views/claimAndRefund/return/tree.vue'
export default {
// name: "ReturnExamine",
components: { dialogForm, Tree },
props: {
query: {
type: Object,
default: () => {
return {}
},
},
},
data() {
return {
type: '',
@ -342,6 +350,8 @@ export default {
}
},
created() {
console.log('this.query', this.query)
this.queryParams = { ...this.queryParams,...this.query }
this.initSelectData()
this.InitIGetInfo()
this.getTree()
@ -437,7 +447,20 @@ export default {
resetQuery() {
this.dateRange = []
// this.resetForm("queryForm");
this.$refs.queryForm.resetFields()
// this.$refs.queryForm.resetFields()
this.queryParams = {
pageNum: 1,
pageSize: 10,
keyWord: '', //
unitId: '', //id
lotId: '', //id
taskStatus: '', //
typeId: '', //
time: '',
agreementCode: '', //
startTime: '',
endTime: '',
}
this.$refs.mychildSon.inputValue = ''
this.initSelectData()
this.handleQuery()
@ -459,6 +482,7 @@ export default {
// })
this.$emit('receiveView', row.id)
this.$emit('cacheQueryParams', this.queryParams)
},
//退
handleReturn(row) {
@ -470,6 +494,7 @@ export default {
// },
// })
this.$emit('receiveReturn', row)
this.$emit('cacheQueryParams', this.queryParams)
},
/** 导出按钮操作 */
handleExport() {

View File

@ -13,9 +13,11 @@
:rejectId="rejectId"
:rejectTaskId="rejectTaskId"
:lotName="lotName"
:query="queryParams"
@receiveView="receiveView"
@receiveReturn="receiveReturn"
@goBackPage="goBack"
@cacheQueryParams="cacheQueryParams"
/>
</div>
</template>
@ -38,6 +40,10 @@ export default {
rejectTaskId: '',
isView: false,
lotName: '', // 退
queryParams: {
pageNum: 1,
pageSize: 10,
}
}
},
methods: {
@ -60,6 +66,10 @@ export default {
goBack() {
this.isShowComponent = 'Home'
},
//
cacheQueryParams(params) {
this.queryParams = params
}
},
}
</script>