<template>
  <tab-button v-ref:list>
    <tabs header="汇总分析">
      <price-instruct-list @change-tab="changelabe" ></price-instruct-list>
    </tabs>
    <tabs header="明细分析">
      <price-instruct-detail v-ref:detail></price-instruct-detail>
    </tabs>
  </tab-button>
</template>

<script>
import TabButton from '../../sale/common/TabButton'
import Tabs from '../../sale/common/Tabs'

export default {
  name: "PriceInstructManage",
  title: '调价分析',
  data() {
    return {
      show: [],
      data: {
        startDate: this.$login.toStandardDateString() + ' 00:00:00',
        endDate: this.$login.toStandardDateString() + ' 23:59:59',
        condition :''
      }
    }
  },
  components: {Tabs, TabButton},
  ready() {},
  methods: {
    changelabe(val){
      // handleTabListClick
      console.log(this.$refs.list.renderData,'val')
      this.$refs.list.handleTabListClick(1,this.$refs.list.renderData[1])
      this.$refs.detail.wai_search(val)
    }
  }
}
</script>

<style scoped>

</style>
