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.
72 lines
1.7 KiB
72 lines
1.7 KiB
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');
|
||
|
|
||
|
//引入业务服务
|
||
|
let Service = require('./sku080207service');
|
||
|
|
||
|
/**
|
||
|
* 定义业务类对象
|
||
|
* @param vm 界面相关ViewModule
|
||
|
*/
|
||
|
function Biz(vm) {
|
||
|
//继承第一步,构造继承
|
||
|
BaseBiz.call(this, vm);
|
||
|
}
|
||
|
|
||
|
//继承第二步,方法继承
|
||
|
inherits(Biz, BaseBiz);
|
||
|
|
||
|
Biz.prototype.initCompleted = function () {
|
||
|
this.super('initCompleted');
|
||
|
|
||
|
this.isEtpCodeRule = rhtComm.getRhtOptionValue('*','SUPP','IS_ETP_CODE_RULE','0');
|
||
|
|
||
|
};
|
||
|
|
||
|
//控制主界面按钮状态
|
||
|
Biz.prototype.getOpEnabled = function (opCode) {
|
||
|
let self = this;
|
||
|
let isOk = this.super('getOpEnabled', opCode);
|
||
|
if (!isOk) return false;
|
||
|
let curRow = this.dsMaster.currentRow;
|
||
|
|
||
|
if (opCode == 'setstatus') {
|
||
|
|
||
|
}
|
||
|
if (opCode == 'setpara') {
|
||
|
|
||
|
}
|
||
|
return true;
|
||
|
};
|
||
|
|
||
|
//按钮事件控制
|
||
|
Biz.prototype.doOp = function (opCode) {
|
||
|
let self = this;
|
||
|
if (opCode == 'setstatus') {
|
||
|
let ds = self.dsMaster;
|
||
|
this.onSetStatus(self, ds);
|
||
|
}
|
||
|
if (opCode == 'setpara') {
|
||
|
let ds = self.dsMaster;
|
||
|
this.onSetPara(self, ds);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
//按钮事件
|
||
|
Biz.prototype.onSetStatus = function (biz, ds) {
|
||
|
let oldRow = ds.currentRow;
|
||
|
|
||
|
return true;
|
||
|
};
|
||
|
Biz.prototype.onSetPara = function (biz, ds) {
|
||
|
let oldRow = ds.currentRow;
|
||
|
|
||
|
return true;
|
||
|
};
|
||
|
|
||
|
return Biz;
|
||
|
});
|