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.
84 lines
1.9 KiB
84 lines
1.9 KiB
import request from '@/utils/request' |
|
const service_name = "cloud-site-service" |
|
const group_name = "cloudSite" |
|
export default { |
|
// 根据ID查询订单详情 |
|
getSiteOrderById(id) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/getSiteOrderById/${id}`, |
|
method: 'get' |
|
}) |
|
}, |
|
// 油站基本资料和油站的油品价格等信息 |
|
getSiteDetail(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/getSiteDetail`, |
|
method: 'get', |
|
data: data |
|
}) |
|
}, |
|
// 获取云站当前登录用户的基础资料 |
|
getSiteBasicData(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/getSiteBasicData`, |
|
method: 'get', |
|
data: data |
|
}) |
|
}, |
|
// 获取油站订单列表*全部 |
|
getAllSiteOrder(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/getAllSiteOrder`, |
|
method: 'post', |
|
data: data |
|
}) |
|
}, |
|
// 获取油站订单列表*当天 |
|
getSiteOrder(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/getSiteOrder`, |
|
method: 'post', |
|
data: data |
|
}) |
|
}, |
|
// 查询云站号是否存在,并返回云站基本信息 |
|
verifyOilSite(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/registerOilSite/${data.oilSiteCode}`, |
|
method: 'get', |
|
data: data |
|
}) |
|
}, |
|
// 获取不带参数的油站二维码 |
|
getSiteQrCode(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/getSiteQrCode`, |
|
method: 'get', |
|
data: data |
|
}) |
|
}, |
|
// 获取带参数的油站二维码 |
|
getDesignatedSiteQrCode(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/updateSiteQrCode`, |
|
method: 'post', |
|
data: data |
|
}) |
|
}, |
|
// 扫码 |
|
VerifyQrCode(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/VerifyQrCode`, |
|
method: 'post', |
|
data: data |
|
}) |
|
}, |
|
// 下单 |
|
saveOrder(data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/saveOrder`, |
|
method: 'post', |
|
data: data |
|
}) |
|
}, |
|
}
|
|
|