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{ return{
searchVal:{ searchVal:{
baseId: this.$store.state.plantBaseInfoId, baseId: this.$store.state.plantBaseInfoId,
userId:"",
enterpriseId:"",
flagGroupBy:'n', flagGroupBy:'n',
search: "", search: "",
pageNo:1, pageNo:1,
@ -119,13 +117,6 @@ export default {
} }
}, },
onLoad(options){ 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() this.search()
}, },
methods:{ methods:{

10
pages/stock/record.vue

@ -166,8 +166,7 @@ export default {
data(){ data(){
return{ return{
searchVal:{ searchVal:{
userId: '', baseId: this.$store.state.plantBaseInfoId,
enterpriseId: '',
pageNo:1, pageNo:1,
pageSize:6, pageSize:6,
type:"1"//1 2 type:"1"//1 2
@ -177,13 +176,6 @@ export default {
} }
}, },
onLoad(options){ 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() this.search()
}, },
methods:{ methods:{

Loading…
Cancel
Save