Initial commit
This commit is contained in:
9
developer-front/src/api/jysystem/lens.js
Normal file
9
developer-front/src/api/jysystem/lens.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 通用镜片下拉选项
|
||||
export function listLensOptions() {
|
||||
return request({
|
||||
url: '/jysystem/lens/options',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
34
developer-front/src/api/jysystem/message.js
Normal file
34
developer-front/src/api/jysystem/message.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 门户消息列表
|
||||
export function listPortalMessage(query) {
|
||||
return request({
|
||||
url: '/jysystem/message/portal/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 未读消息数
|
||||
export function getPortalUnreadCount() {
|
||||
return request({
|
||||
url: '/jysystem/message/portal/unreadCount',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 标记单条已读
|
||||
export function markPortalMessageRead(id) {
|
||||
return request({
|
||||
url: '/jysystem/message/portal/read/' + id,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 全部标记已读
|
||||
export function markPortalMessageAllRead() {
|
||||
return request({
|
||||
url: '/jysystem/message/portal/readAll',
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
154
developer-front/src/api/jysystem/order.js
Normal file
154
developer-front/src/api/jysystem/order.js
Normal file
@@ -0,0 +1,154 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 门户订单列表
|
||||
export function listPortalOrder(query) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 门户订单上下文
|
||||
export function getPortalOrderContext() {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/context',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 门户配片单可选产品(当前租户已配置)
|
||||
export function listPortalProductOptions() {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/productOptions',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 门户订单详情
|
||||
export function getPortalOrder(id) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增配片单
|
||||
export function addPortalOrder(data) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改配片单
|
||||
export function updatePortalOrder(data) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除配片单
|
||||
export function delPortalOrder(id) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 制片单补充
|
||||
export function supplementPortalOrder(data) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/supplement',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 制片单接单
|
||||
export function acceptPortalOrder(id) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/accept/' + id,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 制片单制作中
|
||||
export function producePortalOrder(id) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/produce/' + id,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 制片单撤单
|
||||
export function withdrawPortalOrder(data) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/withdraw',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 门户订单物流信息
|
||||
export function getPortalOrderLogistics(id) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/logistics/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 制片单发货
|
||||
export function shipPortalOrder(data) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/ship',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 制片单完成
|
||||
export function completePortalOrder(id) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/complete/' + id,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 配片单换货申请
|
||||
export function exchangeApplyPortalOrder(data) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/exchangeApply',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 配片单接收(拒绝换货申请后确认完成)
|
||||
export function receivePortalOrder(id) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/receive/' + id,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 配片单重新提交
|
||||
export function resubmitPortalOrder(data) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/resubmit',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 制片单驳回
|
||||
export function rejectPortalOrder(data) {
|
||||
return request({
|
||||
url: '/jysystem/order/portal/reject',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
10
developer-front/src/api/jysystem/product.js
Normal file
10
developer-front/src/api/jysystem/product.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询产品下拉选项
|
||||
export function listProductOptions(tenantId) {
|
||||
return request({
|
||||
url: '/jysystem/product/options',
|
||||
method: 'get',
|
||||
params: { tenantId }
|
||||
})
|
||||
}
|
||||
17
developer-front/src/api/jysystem/tenant.js
Normal file
17
developer-front/src/api/jysystem/tenant.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取当前登录用户关联租户
|
||||
export function getCurrentTenant() {
|
||||
return request({
|
||||
url: '/jysystem/tenant/current',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询镜片厂租户列表
|
||||
export function listLensFactoryTenant() {
|
||||
return request({
|
||||
url: '/jysystem/tenant/lensFactoryList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user