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.

142 lines
5.1 KiB

define(function (require, exports, module) {
let Service = require('apps/rht/base/rhtService');
let prefix = 'cn.qdhezheng.rht.app.cnt.cnt070101.';
let prefixpubutil = 'cn.qdhezheng.rht.app.comm.pub.util.';
let prefixpubsysBaseBL = 'cn.qdhezheng.rht.app.comm.plugins.cnt.';
let preSkuBL = 'cn.qdhezheng.rht.app.comm.plugins.sku.';
return {
getOrgType:function(OrgCode){
return Service.doPlugin('cn.qdhezheng.rht.app.sys.sys010101.getOrgType',{
orgcode:OrgCode
})
},
updateShopStatus:function(cntId, shpCode, orgCode){
return Service.doPlugin(prefix + 'UpdateShopStatus',{
cntId:cntId,
shpCode:shpCode,
orgcode:orgCode
})
},
WhHtStatus:function(cntId, whType, whParam){
return Service.doPlugin(prefixpubsysBaseBL + 'CntWhHtStatus',{
cntid:cntId,
whtype:whType,
whparam:whParam
})
},
CntForChk:function(cntId){
return Service.doPlugin(prefix + 'CntForChk',{
cntid:cntId
})
},
CntPortest:function(cntId, isProtest){
return Service.doPlugin(prefix + 'CntPortest',{
cntid:cntId,
isprotest:isProtest
})
},
CntBatchRenew:function(htList, newEndDate, isExtend){
return Service.doPlugin(prefix + 'CntBatchRenew',{
htlist:htList,
newenddate:newEndDate,
isextend:isExtend
})
},
CntChkDefaultHt:function(cntId, etpCode, usOrgCodes){
return Service.doPlugin(prefixpubsysBaseBL + 'CntChkDefaultHt',{
cntid:cntId,
etpcode:etpCode,
usorgcodes:usOrgCodes
})
},
ChkCntClsPlu:function(cntId, clsId, pluCode, signDepCode, isMngCls){
return Service.doPlugin(prefix + 'ChkCntClsPlu',{
cntid:cntId,
clsid:clsId,
plucode:pluCode,
signdepcode:signDepCode,
ismngcls:isMngCls
})
},
ChkCntBrandPlu:function(pluCode, brandCode){
return Service.doPlugin(prefix + 'ChkCntBrandPlu',{
plucode:pluCode,
brandcode:brandCode
})
},
SkuGetPluExPropInfo:function(pluId, pluCode, orgCode, pluExFldNameGrp){
return Service.doPlugin(preSkuBL + 'GetPluExPropInfo',{
pluid:pluId,
plucode:pluCode,
orgcode:orgCode,
pluexfldnamegrp:pluExFldNameGrp
})
},
AutoGenHtCode:function(preCode, autoCntCode, codeWasteWidth){
return Service.doPlugin(prefix + 'AutoGenHtCode',{
precode:preCode,
autocntcode:autoCntCode,
codewastewidth:codeWasteWidth
})
},
GetShopInfo:function(shpCode, orgCode){
return Service.doPlugin(prefix + 'GetShopInfo',{
shpcode:shpCode,
orgcode:orgCode
})
},
CntChkHtCode:function(htCode){
return Service.doPlugin(prefixpubsysBaseBL + 'CntChkHtCode',{
htcode:htCode
})
},
LeaseCntShpStatus:function(cntId, shpCode, orgCode, shpType){
return Service.doPlugin(prefix + 'LeaseCntShpStatus',{
cntid:cntId,
shpcode:shpCode,
orgcode:orgCode,
shptype:shpType
})
},
CheckPluIsKc:function(pluCode){
return Service.doPlugin(prefix + 'CheckPluIsKc',{
plucode:pluCode
})
},
getSlideMenuData: function (ps_FunName,ps_Type,ps_Field1,ps_Field2,ps_Field3,ps_Field4,ps_Field5,ps_Field6) {
if (ps_FunName == "actExecute") {
return Service.doPlugin(prefix + ps_FunName, {
ps_FunName: ps_FunName,
ps_Type:ps_Type,
ps_Field1:ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
ps_Field5:ps_Field5,
ps_Field6:ps_Field6
});
}
if (ps_FunName == "pubsysBaseBL") {
return Service.doPlugin(prefixpubsysBaseBL + ps_FunName, {
ps_FunName: ps_FunName,
ps_OpType:ps_Type,
ps_InPutJson:ps_Field1
});
}
if (ps_FunName == "DoOnMasterRule") {
return Service.doPlugin(prefix + ps_FunName, {
ps_FunName: ps_FunName,
ps_Type:ps_Type,
ps_Field1:ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
ps_Field5:ps_Field5
});
}
}
};
})