<template>
  <div>
    <basicLayout 
      ref="basicLayout" 
      formPath="productMoneyOdd" 
      tableName="productMoneyOdddTable" 
      idName="sa_itempriceadjustid" 
      :apiId="{query:20221024163504,del:20221025092904}" 
      :options="options">
      <div slot="custom"></div>
      <template v-slot:tbList="scope">
        <div>
          {{scope.data.column.data[[scope.data.column.columnname]]}}
        </div>
      </template>
      <template v-slot:tbOpreation="scope">
        <productOddDetail class="inline-16" :rowData="scope.data.data"/>
        <Check v-if="scope.data.data.status == '新建' && tool.checkAuth($route.name,'check')" :rowData="scope.data.data" @checkSuccess="$refs.basicLayout.listData()"/>
        <delete-btn v-if="tool.checkAuth($route.name,'delete')" :id="scope.data.data.sa_itempriceadjustid" @deleteSuccess="$refs.basicLayout.listData()" nameId="20221025092904" nameKey="sa_itempriceadjustids"/>
      </template>
    </basicLayout>
  </div>
</template>

<script>
import productOddDetail from './modules/productOddDetail'
import Check from './components/check'
export default {
  components:{productOddDetail,Check},
  name: "index",
  data() {
    return {
      options:[],
      priceGrade:''
    }
  },
  provide () {
    return {
      priceGrade: () => this.priceGrade
    }
  },
  async created () {
    /* 获取价格等级 */
    let res = await this.$store.dispatch('optiontypeselect','pricegrade')
    this.priceGrade = res.data
    console.log(this.priceGrade);
    
  },
  methods: {
    
  }
}
</script>

<style scoped>

</style>