draftSearchAction.js 530 Bytes
Newer Older
wangcong committed
1 2 3 4 5 6 7 8 9 10
import customSelect from '../control/draftTable.vue';
export default {
	execute: function (bill, param) {
		if (param) {
			let component = null;
			let name = GMS.$hideContainer.addComponent(customSelect, {}, function (c) {
				component = c;
                c.bill = bill;
				c.drawerShow = true;
				c.getList();
qiaoyanqi committed
11 12 13 14 15 16 17
				c.$nextTick(()=>{
					component.addListener({
						close: function() {
							GMS.$hideContainer.remove(name);
						}
					});
				})
wangcong committed
18 19 20 21 22 23
			});
		} else {
			GAMS.Common.messagePrompt('缺少参数');
		}
	}
}