<template>
  <div class="pagePadding">
    <div
      style="width: 100%"
    >
    
      <el-collapse v-model="activeNames" style="margin: -18px 0 0 0">
        <!-- <el-collapse-item title="商品信息" name="1">
              <show-goods-data-table
                :newTime="newTime"
                v-if="newTime !== ''"
                :type="sitem.order_type"
                :skucode="sitem.skuCode"
                :spucode="sitem.spuCode"
                :iscgd="true"
              />

              <editPrice
                :newTime="newTime"
                v-if="
                  newTime !== '' &&
                  sitem.status == '0' &&
                  sitem.can[0].id == '6' &&
                  cost_detailArr.is_gold_price == '1'
                "
                :sitem="sitem"
                :cost_detailArr="cost_detailArr"
                @refresh="refresh"
              >
              </editPrice>
            </el-collapse-item> -->
            <el-collapse-item title="采购单信息" name="2">
              <!-- <detail2
                :newTime="newTime"
                :sitem="本条数据"
                :columns="cgd_detail2"
              >
              </detail2> -->
            </el-collapse-item>
            
          </el-collapse>
  
    </div>

  </div>
</template>
   <script>
import mixinPage from "@/mixins/elPaginationHandle";
import resToken from "@/mixins/resToken";
import asyncRequest from "@/apis/service/reportQuery/saleReport";
import { cgd_detail2 } from "./columns";
import { mapGetters } from "vuex";
import detail2 from "./components/detail2.vue"

export default {
  name: "test",
  mixins: [mixinPage, resToken],
  components: {
    detail2,
  },

  computed: {
    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
    // powers() {
    //   let tran =
    //     this.$store.getters.btnList.find(
    //       (item) => item.menu_route == "testDetail"
    //     ) || {};
    //   if (tran && tran.action && tran.action.length > 0) {
    //     return tran.action;
    //   } else {
    //     return [];
    //   }
    // },
  },
  data() {
    return {
      newTime: "",
      activeNames: ["1"],



      cgd_detail2,
      // row:this.$router.query.row
    };
  },
  mounted() {
    // console.log(11111,this.row)
    this.initData();
  },
  methods: {
   getNewTime() {
      this.newTime = new Date().valueOf();
    },
   async initData(){
      this.getNewTime()
    }


  },
};
</script>
   <style lang="scss" scoped>
.purchaseOrderDetail {
}
</style>

