盘点报废-增加查询条件缓存
This commit is contained in:
parent
78c1e28b5c
commit
cf2de901ae
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue