|
|
|
@ -501,7 +501,8 @@ export default { |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters([ |
|
|
|
'baseApi' |
|
|
|
'baseApi', |
|
|
|
'user' |
|
|
|
]), |
|
|
|
hasAssets() { |
|
|
|
return this.totalAssets > 0 |
|
|
|
@ -519,9 +520,11 @@ export default { |
|
|
|
methods: { |
|
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
|
// 传递搜索参数 |
|
|
|
console.log('this.user', this.user) |
|
|
|
this.crud.params.billNo = this.query.billNo |
|
|
|
this.crud.params.warehouseId = this.query.warehouseId |
|
|
|
this.crud.params.status = this.query.status |
|
|
|
this.crud.query.userId = this.user.id |
|
|
|
|
|
|
|
// 保存原始参数 |
|
|
|
this.originalPage = this.crud.page.page |
|
|
|
|