小小儁爺
2026-01-06 1fe4825573349c47e566f2cf0cdfe51ac7ff9c68
pages/znfx/chda.vue
@@ -26,7 +26,7 @@
      <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"
@@ -45,17 +45,11 @@
<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() {
@@ -84,7 +78,7 @@
      mounted() {
         this.init()
         this.getInventoryTreePermissions()
         this.getDistrInventory()
      },
      methods: {
         init() {
@@ -94,18 +88,18 @@
         //输入框回车确认事件
         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