You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
950 B
36 lines
950 B
4 years ago
|
|
||
|
|
||
|
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;
|
||
|
});
|