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

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 { export default {
// name: "ReturnExamine", // name: "ReturnExamine",
components: { dialogForm, Tree }, components: { dialogForm, Tree },
props: {
query: {
type: Object,
default: () => {
return {}
},
},
},
data() { data() {
return { return {
type: '', type: '',
@ -342,6 +350,8 @@ export default {
} }
}, },
created() { created() {
console.log('this.query', this.query)
this.queryParams = { ...this.queryParams,...this.query }
this.initSelectData() this.initSelectData()
this.InitIGetInfo() this.InitIGetInfo()
this.getTree() this.getTree()
@ -437,7 +447,20 @@ export default {
resetQuery() { resetQuery() {
this.dateRange = [] this.dateRange = []
// this.resetForm("queryForm"); // 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.$refs.mychildSon.inputValue = ''
this.initSelectData() this.initSelectData()
this.handleQuery() this.handleQuery()
@ -459,6 +482,7 @@ export default {
// }) // })
this.$emit('receiveView', row.id) this.$emit('receiveView', row.id)
this.$emit('cacheQueryParams', this.queryParams)
}, },
//退 //退
handleReturn(row) { handleReturn(row) {
@ -470,6 +494,7 @@ export default {
// }, // },
// }) // })
this.$emit('receiveReturn', row) this.$emit('receiveReturn', row)
this.$emit('cacheQueryParams', this.queryParams)
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {

View File

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