define(function (require, exports, module) { //引入Server模块,Web与Server的通讯 let Service = require('apps/rht/base/rhtService'); let prefix = 'cn.qdhezheng.rht.app.sys.sys010103.'; return { //获取组织树信息 getOrgTree: function (sOrgCode) { return Service.doPlugin(prefix + 'getOrgTree', { orgcode: sOrgCode }) }, //获取日结项目 getRjItem: function (sOrgCode) { return Service.doPlugin(prefix + 'getRjItem', { orgcode: sOrgCode }) }, //结账 doOrgJZ: function (sOrgCode, sOrgList, bIsOneTime, bIsChooseOne, sSelJZItem, dJzDate) { return Service.doPlugin(prefix + 'doOrgJZ', { orgcode: sOrgCode, sorglist: sOrgList, bisonetime: bIsOneTime, bischooseone: bIsChooseOne, sseljzcode: sSelJZCode, sseljzname: sSelJZName, sseljzitem: sSelJZItem, djzdate: dJzDate }) }, //结账(异步) doOrgJZAsync: function (sOrgCode, sOrgList, bIsOneTime, bIsChooseOne, sSelJZCode, sSelJZName, sSelJZItem, dJzDate, callback) { return Service.doPluginAsync(prefix + 'doOrgJZ', { orgcode: sOrgCode, sorglist: sOrgList, bisonetime: bIsOneTime, bischooseone: bIsChooseOne, sseljzcode: sSelJZCode, sseljzname: sSelJZName, sseljzitem: sSelJZItem, djzdate: dJzDate }, callback); } } });