printActionNew.js 479 Bytes
Newer Older
wangcong committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import printBill from '../control/printBill.vue'
export default {
  execute: function (bill, param) {
    if (param) {
      GMS.$hideContainer.addComponent(printBill, {}, function (c) {
        c.billId = bill.getMasterData().getValue('id');
        c.billDefineName = param.define;
        if(param.param.subName){
          c.subName = param.param.subName;
        }
        c.modalShow = true;
      })
    } else {
      GAMS.Common.messagePrompt('缺少参数')
    }
  }
}