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.

45 lines
1.6 KiB

4 years ago
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);
}
}
});