<template>
  <div id="unit" class="row binary">
    <div class="binary-left" style="height:98%">
      <adjust-user @select-changed="selected"
                  v-ref:userlist></adjust-user>
    </div>
    <div class="binary-right">
      <adjust-price :f_userfiles_id="f_userfiles_id" v-ref:adjustlist></adjust-price>
    </div>
  </div>

</template>

<script>
  import {HttpResetClass} from 'vue-client'
  import adjustPrice from './adjustPrice'
  import adjustUser from './adjustUser'
  export default {
    title: '单户调价补差',
    name: 'singlePriceAdjustmentManage',
    components: {
      adjustPrice, adjustUser
    },
    data () {
      return {
        f_userfiles_id: null,
        showadjust: false
      }
    },
    created () {
    },
    ready () {

    },
    methods: {
      selected (obj) {
        this.f_userfiles_id = obj.val.f_userfiles_id
        this.showadjust = true
      }
    },
    events: {
      // 重新查询
      'refresh' () {
        this.$refs.adjustlist.$refs.paged.$refs.criteria.search()
      }

    }
  }
</script>

<style lang="less">

</style>
