define(function (require, exports, module) { let BaseBiz = require('apps/rht/base/rhtBiz'); function Biz(vm) { //继承第一步,构造继承 BaseBiz.call(this, vm); } //继承第二步,方法继承 inherits(Biz, BaseBiz); Biz.prototype.beforeSave = function () { let curRow = this.dsMaster.currentRow; if(curRow){ let MainCode = TypeUtil.toString(curRow['MainCode']); let GroupCode = TypeUtil.toString(curRow['GroupCode']); if (MainCode.length==0 ) { curRow.setColumnError("MainCode","主题编码不能为空"); return false; } if (GroupCode.length==0 ) { curRow.setColumnError("GroupCode","门店组编码不能为空"); return false; } } return this.super('beforeSave'); } return Biz; });