define(function (require, exports, module) { //引入业务类基类 let BaseBiz = require('apps/rht/base/rhtBiz'); /** * 定义业务类对象 * @param vm 界面相关ViewModule */ function Biz(vm) { //继承第一步,构造继承 BaseBiz.call(this, vm); } //继承第二步,方法继承 inherits(Biz, BaseBiz); Biz.prototype.initCompleted = function () { this.super('initCompleted'); this.dsMaster.serverBiz = 'etpZjBiz' }; Biz.prototype.afterEdit = function () { let masterAdapter = this.view.vm['ep_dsMaster']; masterAdapter.setEditorEditable('ZjTypeCode', false); masterAdapter.setEditorEditable('ZjCode', true); return this.super('afterEdit'); }; return Biz; });