define(function (require, exports, module) { //引入业务类基类 let BaseBiz = require('apps/rht/base/rhtBiz'); //引入业务服务 let Service = require('./pri100105service'); /** * 定义业务类对象 * @param vm 界面相关ViewModule */ function Biz(vm) { //继承第一步,构造继承 BaseBiz.call(this, vm); } //继承第二步,方法继承 inherits(Biz, BaseBiz); /** * 全局变量 */ //let PRC_REDUCEMODE = rhtComm.getRhtOptionValue("*",'PRC','PRC_REDUCEMODE','0'); //保存前校验 计算主表合计数量等字段 Biz.prototype.beforeSave = function () { let curRow = this.dsMaster.currentRow; if(curRow){ let XjCount = 0.0; let OPriTotal = 0.0; let PriTotal = 0.0; let XjCeTotal = 0.0; for(let i=0;i