Browse Source

修改搜索接口参数

master
邓宏 2 years ago
parent
commit
8d522af997
  1. 9
      pages/stock/already.vue
  2. 10
      pages/stock/record.vue

9
pages/stock/already.vue

@ -107,8 +107,6 @@ export default {
return{
searchVal:{
baseId: this.$store.state.plantBaseInfoId,
userId:"",
enterpriseId:"",
flagGroupBy:'n',
search: "",
pageNo:1,
@ -119,13 +117,6 @@ export default {
}
},
onLoad(options){
if (this.$store.getters['userInfo'].roleCode=="baseAdmin") {
this.searchVal.userId = this.$store.getters['userInfo'].id
this.searchVal.enterpriseId = ''
} else {
this.searchVal.enterpriseId = this.$store.getters.userInfo.companyId
this.searchVal.userId = ''
}
this.search()
},
methods:{

10
pages/stock/record.vue

@ -166,8 +166,7 @@ export default {
data(){
return{
searchVal:{
userId: '',
enterpriseId: '',
baseId: this.$store.state.plantBaseInfoId,
pageNo:1,
pageSize:6,
type:"1"//1 2
@ -177,13 +176,6 @@ export default {
}
},
onLoad(options){
if (this.$store.getters['userInfo'].roleCode=="baseAdmin") {
this.searchVal.userId = this.$store.getters['userInfo'].id
this.searchVal.enterpriseId = ''
} else {
this.searchVal.enterpriseId = this.$store.getters['userInfo'].companyId
this.searchVal.userId = ''
}
this.search()
},
methods:{

Loading…
Cancel
Save