增加一个渠道绑定

This commit is contained in:
wuweihua
2026-11-10 16:21:07 +08:00
parent e6a9fcf0a2
commit 1a0483c7fe
20 changed files with 940 additions and 147 deletions
+29
View File
@@ -93,6 +93,13 @@ export function activateLabelVersion(priceSetId, versionNo, data) {
})
}
export function deleteLabelVersion(priceSetId, versionNo) {
return request({
url: '/price/label/' + priceSetId + '/versions/' + versionNo,
method: 'delete'
})
}
export function listLabelProducts(priceSetId, versionNo) {
return request({
url: '/price/label/' + priceSetId + '/products',
@@ -154,3 +161,25 @@ export function removeLabelProducts(priceSetId, productIds) {
method: 'delete'
})
}
export function listLabelChannels(priceSetId) {
return request({
url: '/price/label/' + priceSetId + '/channels',
method: 'get'
})
}
export function bindLabelChannels(priceSetId, data) {
return request({
url: '/price/label/' + priceSetId + '/channels',
method: 'put',
data
})
}
export function unbindLabelChannel(priceSetId, channelId) {
return request({
url: '/price/label/' + priceSetId + '/channels/' + channelId,
method: 'delete'
})
}
+12 -1
View File
@@ -51,7 +51,9 @@ export function updatePay(data) {
return request({
url: '/price/pay',
method: 'put',
data
data,
headers: { repeatSubmit: false },
timeout: 120000
})
}
@@ -72,6 +74,15 @@ export function bindChannelPay(channelId, productId, payType = 'AP') {
})
}
/** 批量绑定渠道应收/应付产品;至少传一个产品 */
export function batchBindChannelPay(data) {
return request({
url: '/price/pay/channel/batchBind',
method: 'put',
data
})
}
export function comparePay(leftId, rightId) {
return request({
url: '/price/pay/compare',