import ImageViewModal from '../../../../@rbc/invoice/src/components/image-view-modal/image-view-modal.vue'
export default {
  execute: function (bill, param) {
    const curbill = bill.dom || bill
    // const billCode = 'e7bb5a4e-9028-4475-9164-a268725a7faa'
    GMS.$hideContainer.addComponent(ImageViewModal, {}, function (c) {
      c.imageTableName = param.param.tableName
      c.bill = curbill
    })
    // if (param) {
    //   GMS.$hideContainer.addComponent(ImageViewModal, {}, function (c) {
    //     c.billId = bill.getMasterData().getValue('id');
    //   })
    // } else {
    //   GAMS.Common.messagePrompt('缺少参数')
    // }
  }
}