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.
35 lines
934 B
35 lines
934 B
4 years ago
|
define(function (require, exports, module) {
|
||
|
//引入业务类基类
|
||
|
let BaseBiz = require('apps/rht/base/rhtBiz');
|
||
|
let rhtService = require('../../base/rhtService');
|
||
|
let rhtComm = require('apps/rht/comm/rhtComm');
|
||
|
|
||
|
/**
|
||
|
* 定义业务类对象
|
||
|
* @param vm 界面相关ViewModule
|
||
|
*/
|
||
|
function Biz(vm) {
|
||
|
//继承第一步,构造继承
|
||
|
BaseBiz.call(this, vm);
|
||
|
}
|
||
|
|
||
|
//继承第二步,方法继承
|
||
|
inherits(Biz, BaseBiz);
|
||
|
|
||
|
Biz.prototype.initCompleted = function () {
|
||
|
this.super('initCompleted');
|
||
|
|
||
|
this.dsMaster.serverBiz = 'cntOutLayCtrlBiz'
|
||
|
};
|
||
|
|
||
|
//保存前数据判断
|
||
|
Biz.prototype.beforeSave = function () {
|
||
|
if(this.dsDetail.rows.length < 1){
|
||
|
Store.messager.err('子表没有记录请输入!!');
|
||
|
return false;
|
||
|
}
|
||
|
return this.super('beforeSave');
|
||
|
}
|
||
|
|
||
|
return Biz;
|
||
|
});
|