ConstructionDetailModal.js 1.03 KB
// components/SelectInvoiceModal/SelectInvoiceModal.js
import commonApi from '~/api/api'
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    visible: {
      type: Boolean,
      value: false,
      observer: function (n, o) {
        this.handleOpen()
      }
    },
    orderInfo: {
      type: Object,
      value: {}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    selectType: 82,
    loading: false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    selectType(e) {
      let { type } = e.currentTarget.dataset
      this.setData({
        selectType: type
      })
    },
    handleOpen() {
      wx.$modal(
        this,
        {
          show: true,
          tabTitleShow: true,
          tapTitle: '查看客户施工单',
          success: res => {
          },
          error: () => { }
        },
        '#modal'
      )
    },
    handleCancel() {
      this.triggerEvent('cancel')
    },
    handleConfirm() {
      this.triggerEvent('confirm')
      this.handleCancel()
    }
  }
})