Commit 7ac0e431 by 李宁

1

1 parent 7952694f
import request from '../../request' import request from '../../request'
/** /**
* 网格列表查询 * 订单列表查询
* @returns {AxiosPromise} * @returns {AxiosPromise}
*/ */
export function queryAllGridList(data) { export function queryOrderList(data) {
return request({ return request({
url: '/compass/api/grid/list', url: '/crm/getOrderList',
data, data,
}) })
} }
/**
* 订单列表导出
* @returns {AxiosPromise}
*/
export function exportOrderList(data) {
return request({
url: '/crm/exportOrders',
data,
responseType: 'blob'
})
}
/** /**
* 获取该账号下可选的网格列表 * 订单审核
* @returns {AxiosPromise}
*/
export function audioOrderList(data) {
return request({
url: '/crm/auditOrder',
data,
})
}
/**
* 订单金额批量修改
* @returns {AxiosPromise}
*/
export function updateOrderListMoney(data) {
return request({
url: '/crm/readExcelModifyOrder',
headers: {
'Content-Type': 'multipart/form-data'
},
data,
})
}
/**
* 订单金额修改
* @returns {AxiosPromise}
*/
export function updateOrderMoney(data) {
return request({
url: '/crm/updateOrderMoney',
data,
})
}
/**
* 订单crm修改
* @returns {AxiosPromise}
*/
export function updateOrderCrm(data) {
return request({
url: '/crm/updateCrmOrderId',
data,
})
}
/**
* 订单关闭
* @returns {AxiosPromise}
*/
export function closeOrder(data) {
return request({
url: '/crm/closeOrder',
data,
})
}
/**
* 订单日志
* @returns {AxiosPromise}
*/ */
export function queryGridList(data) { export function queryOrderLog(data) {
return request({ return request({
url: '/compass/api/grid/options', url: '/crm/getOrderLog',
data, data,
}) })
} }
\ No newline at end of file \ No newline at end of file
...@@ -3,10 +3,10 @@ import request from '../../request' ...@@ -3,10 +3,10 @@ import request from '../../request'
/** /**
* 业务酬金列表查询 * 业务酬金列表查询
*/ */
export function queryAllRewardList(data) { export function queryAllRewardList() {
return request({ return request({
url: '/crm/getJobsList', url: '/crm/getJobsList',
data, method: 'GET'
}) })
} }
...@@ -16,12 +16,15 @@ export function queryAllRewardList(data) { ...@@ -16,12 +16,15 @@ export function queryAllRewardList(data) {
export function uploadReward(formData) { export function uploadReward(formData) {
return request({ return request({
url: '/crm/readExcelJobs', url: '/crm/readExcelJobs',
headers: {
'Content-Type': 'multipart/form-data'
},
data: formData data: formData
}) })
} }
/** /**
* 业务酬金提交 * 业务酬金批量上传
*/ */
export function uploadRewardSave(data) { export function uploadRewardSave(data) {
return request({ return request({
...@@ -32,11 +35,11 @@ export function uploadRewardSave(data) { ...@@ -32,11 +35,11 @@ export function uploadRewardSave(data) {
/** /**
* 业务酬金修改 * 业务酬金新增和修改
*/ */
export function updateReward(data) { export function updateReward(data) {
return request({ return request({
url: '/crm/updateJob', url: data.id?'/crm/updateJob':'/crm/addJobs',
data, data,
}) })
} }
...@@ -47,7 +50,7 @@ export function updateReward(data) { ...@@ -47,7 +50,7 @@ export function updateReward(data) {
*/ */
export function delReward(data) { export function delReward(data) {
return request({ return request({
url: '/crm/updateJob', url: '/crm/delJob',
data, data,
}) })
} }
\ No newline at end of file \ No newline at end of file
...@@ -224,8 +224,8 @@ ...@@ -224,8 +224,8 @@
<!-- 订单详情页面 --> <!-- 订单详情页面 -->
<OrderDetail <OrderDetail
v-else-if="activeView === 'order-detail' && selectedOrderId && getOrderById(selectedOrderId)" v-else-if="activeView === 'order-detail' && selectedOrderId"
:order="getOrderById(selectedOrderId)!" :order="selectedOrder"
:business-rules="businessRules" :business-rules="businessRules"
:current-user="currentUser" :current-user="currentUser"
@update="handleUpdateOrder" @update="handleUpdateOrder"
...@@ -315,6 +315,7 @@ const isSidebarCollapsed = ref(false) ...@@ -315,6 +315,7 @@ const isSidebarCollapsed = ref(false)
const activeMenu = ref<string>('orders') // 当前激活的菜单 const activeMenu = ref<string>('orders') // 当前激活的菜单
const activeView = ref<string>('orders') // 当前显示的视图 const activeView = ref<string>('orders') // 当前显示的视图
const selectedOrderId = ref<string | null>(null) // 当前查看的订单ID const selectedOrderId = ref<string | null>(null) // 当前查看的订单ID
const selectedOrder = ref<{}>(null) // 当前查看的订单ID
const userInfo = ref(localStorage.getItem('pcUserInfo') ? JSON.parse(localStorage.getItem('pcUserInfo') as string) : {}) const userInfo = ref(localStorage.getItem('pcUserInfo') ? JSON.parse(localStorage.getItem('pcUserInfo') as string) : {})
// 菜单配置 // 菜单配置
// const businessMenuItems = [ // const businessMenuItems = [
...@@ -464,6 +465,7 @@ const handleCommand = (command: string) => { ...@@ -464,6 +465,7 @@ const handleCommand = (command: string) => {
} }
} }
const handleViewOrderDetail = (order: any) => { const handleViewOrderDetail = (order: any) => {
selectedOrder.value = order
selectedOrderId.value = order.id selectedOrderId.value = order.id
activeView.value = 'order-detail' activeView.value = 'order-detail'
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!