| | |
| | | |
| | | <script> |
| | | import { |
| | | InventoryTreePermissions |
| | | DistrInventory |
| | | } from '../../config/api.js'; |
| | | export default { |
| | | onLoad(option) { |
| | | App.watch(this.getTopRightMessageCountIsChange, 'topRightMessageCountIsChange') |
| | | |
| | | console.log(option, 66) |
| | | |
| | | this.checkboxValue = JSON.parse(option.param) |
| | | |
| | | console.log(this.checkboxValue) |
| | | }, |
| | | |
| | | onPullDownRefresh() { |
| | |
| | | mounted() { |
| | | this.init() |
| | | |
| | | this.getInventoryTreePermissions() |
| | | this.getDistrInventory() |
| | | }, |
| | | methods: { |
| | | init() { |
| | |
| | | //输入框回车确认事件 |
| | | confirmInputBoxValue(val) { |
| | | console.log('确认', val) |
| | | // this.getInventoryTreePermissions(val) |
| | | // this.getDistrInventory(val) |
| | | this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | return p.code.indexOf(val) !== -1 |
| | | }) |
| | | |
| | | }, |
| | | |
| | | async getInventoryTreePermissions(param) { |
| | | async getDistrInventory(param) { |
| | | |
| | | const { |
| | | data: res |
| | | } = await InventoryTreePermissions() |
| | | } = await DistrInventory() |
| | | |
| | | this.collapseArrAll = res |
| | | this.collapseArr = res |