<template>
  <div class="row-c cursor-pointer radius5 change py5" @click="goUrlAdd">
      <span class="c059FF6">申请发票</span>
  </div>
</template>

<script>
export default {
  props: ["obj","type"],
  components: {},
  data() {
    return {

    }
  },
  watch: {
    obj: {
      handler(newValue,onldValue) {

      },
      deep:true,
      immediate: true
    },
  },
  mounted() {

  },
  methods: {
    // 申请发票 tyep 4机票 5车 6酒店 7景点
    goUrlAdd() {
      this.$router.push({
        name: 'invoicesManagerAdd',
        query: {
          OrderId: this.obj.OrderId,
          TCID: 0,
          customerId: this.obj.CustomerId,
          InvoiceApplyType: this.type,
          blank: "y",
        }
      });
    },
  }
}
</script>

<style scoped>

</style>
