增加一个渠道绑定
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user