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.

62 lines
2.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

define(function (require, exports, module) {
//引入Server模块Web与Server的通讯
let Service = require('apps/rht/base/rhtService');
let prefix = 'cn.qdhezheng.rht.app.sku.sku080206.';
let prefixpubsysBaseBL = 'cn.qdhezheng.rht.app.comm.plugins.sku.';
return {
//获取商品信息
SkuGetDisUsePluData: function (orgCode, supCode, qzts, pluStatus, seaStatus, pageNumber, pageSize) {
return Service.doPlugin(prefixpubsysBaseBL + 'SkuGetDisUsePluData', {
orgcode:orgCode,
supcode:supCode,
qzts:qzts,
plustatus:pluStatus,
seastatus:seaStatus,
pagenumber:pageNumber,
pagesize:pageSize
})
},
//获取商品淘汰明细信息
GetSkuPluEx: function (pluId) {
return Service.doPlugin(prefix + 'GetSkuPluEx', {
pluid:pluId
})
},
//获取淘汰原因下拉列表
SkuGetDisUseReason: function () {
return Service.doPlugin(prefix + 'SkuGetDisUseReason', {
})
},
//淘汰或恢复等
DisUseDeal: function (pluId, type, newStatus) {
return Service.doPlugin(prefix + 'DisUseDeal', {
pluid:pluId,
type:type,
newstatus:newStatus
})
},
//淘汰或恢复等
DelDisUsePluCntAcc: function (pluId, flag) {
return Service.doPlugin(prefixpubsysBaseBL + 'DelDisUsePluCntAcc', {
pluid:pluId,
flag:flag
})
},
//改变商品状态
SkuSetPluStatus: function (pluId, pluCode, oldStatus, newStatus) {
return Service.doPlugin(prefixpubsysBaseBL + 'SkuSetPluStatus', {
pluid:pluId,
plucode:pluCode,
oldstatus:oldStatus,
newstatus:newStatus
})
},
//记录商品信息改变情况
UDisReason: function (pluId, reason) {
return Service.doPlugin(prefix + 'UDisReason', {
pluid:pluId,
reason:reason
})
}
}
});