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
1.3 KiB
62 lines
1.3 KiB
import request from '@/utils/request'
|
|
// 报表查询 商品销售
|
|
export default {
|
|
// 查询分页列表
|
|
listPage: function(params) {
|
|
return request({
|
|
url: '/oms/v1/smssalesbill/listPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
// 选择商品
|
|
chooseProducts: function(params) {
|
|
return request({
|
|
url: '/oms/apiadmin/base/basegoodsspu/getGoodsForSales',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
fetchBySid: function(data) {
|
|
return request({
|
|
url: '/oms/v1/smssalesbill/fetchDetailsBySid/' + data,
|
|
method: 'get'
|
|
})
|
|
},
|
|
deleteBySids: function(data) {
|
|
return request({
|
|
url: '/oms/v1/smssalesbill/delBySids',
|
|
method: 'DELETE',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
saveOrUpdate: function(data) {
|
|
return request({
|
|
url: '/oms/v1/smssalesbill/save',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
submit: function(data) {
|
|
return request({
|
|
url: '/oms/v1/smssalesbill/submit',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|