| | |
| | | <u-alert :title="alertTitle" type="info"></u-alert> |
| | | |
| | | |
| | | <view style="max-height: 540px;overflow: auto;"> |
| | | <view style="max-height: 62vh;overflow: auto;"> |
| | | <u-checkbox-group v-model="checkboxValue" iconPlacement="right" placement="column" @change="checkboxChange"> |
| | | <u-checkbox :key="item.code.trim()+'/'+item.name" :label="item.code.trim()+'/'+item.name" |
| | | :labelSize='16' :size='16' :borderBottom='true' v-for="item in collapseArr" |
| | |
| | | |
| | | <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 |