define(function (require, exports, module) { //引入业务类基类 let BaseBiz = require('apps/rht/base/rhtBiz'); //引入业务服务 let service = require('./sys01030802service'); /** * 定义业务类对象 * @param vm 界面相关ViewModule */ function Biz(vm) { //继承第一步,构造继承 BaseBiz.call(this, vm); } //继承第二步,方法继承 inherits(Biz, BaseBiz); Biz.prototype.beforeEdit = function () { let ret = service.ControlCodeRule(); if(ret.result != 1) { Store.messager.err(ret.message); return false; } return this.super('beforeEdit'); } //保存前数据判断 Biz.prototype.beforeSave = function () { let curRow = this.dsMaster.currentRow; return this.super('beforeSave'); } return Biz; });