diff --git a/src/api/rl/accessory.js b/src/api/rl/accessory.js index b91fc01..78bb9b5 100644 --- a/src/api/rl/accessory.js +++ b/src/api/rl/accessory.js @@ -17,6 +17,19 @@ export function getAccessory(accessoryId) { }) } +// 配件状态修改 +export function changeAccessoryStatus(accessoryId, status) { + const data = { + accessoryId, + status + } + return request({ + url: '/system/accessory/changeStatus', + method: 'put', + data: data + }) +} + // 新增配件 export function addAccessory(data) { return request({ diff --git a/src/api/rl/deliveryOrder.js b/src/api/rl/deliveryOrder.js new file mode 100644 index 0000000..2d9b474 --- /dev/null +++ b/src/api/rl/deliveryOrder.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询配送工单列表 +export function listDeliveryOrder(query) { + return request({ + url: '/system/deliveryOrder/list', + method: 'get', + params: query + }) +} + +// 查询配送工单详细 +export function getDeliveryOrder(deliveryId) { + return request({ + url: '/system/deliveryOrder/' + deliveryId, + method: 'get' + }) +} + +// 新增配送工单 +export function addDeliveryOrder(data) { + return request({ + url: '/system/deliveryOrder', + method: 'post', + data: data + }) +} + +// 修改配送工单 +export function updateDeliveryOrder(data) { + return request({ + url: '/system/deliveryOrder', + method: 'put', + data: data + }) +} + +// 删除配送工单 +export function delDeliveryOrder(deliveryId) { + return request({ + url: '/system/deliveryOrder/' + deliveryId, + method: 'delete' + }) +} diff --git a/src/api/rl/deliveryOrderOper.js b/src/api/rl/deliveryOrderOper.js new file mode 100644 index 0000000..02f5b10 --- /dev/null +++ b/src/api/rl/deliveryOrderOper.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询配送单履历列表 +export function listDeliveryOrderOper(query) { + return request({ + url: '/system/deliveryOrderOper/list', + method: 'get', + params: query + }) +} + +// 查询配送单履历详细 +export function getDeliveryOrderOper(operId) { + return request({ + url: '/system/deliveryOrderOper/' + operId, + method: 'get' + }) +} + +// 新增配送单履历 +export function addDeliveryOrderOper(data) { + return request({ + url: '/system/deliveryOrderOper', + method: 'post', + data: data + }) +} + +// 修改配送单履历 +export function updateDeliveryOrderOper(data) { + return request({ + url: '/system/deliveryOrderOper', + method: 'put', + data: data + }) +} + +// 删除配送单履历 +export function delDeliveryOrderOper(operId) { + return request({ + url: '/system/deliveryOrderOper/' + operId, + method: 'delete' + }) +} diff --git a/src/api/rl/detail.js b/src/api/rl/detail.js new file mode 100644 index 0000000..0a45ae4 --- /dev/null +++ b/src/api/rl/detail.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询分账明细列表 +export function listDetail(query) { + return request({ + url: '/system/detail/list', + method: 'get', + params: query + }) +} + +// 查询分账明细详细 +export function getDetail(id) { + return request({ + url: '/system/detail/' + id, + method: 'get' + }) +} + +// 新增分账明细 +export function addDetail(data) { + return request({ + url: '/system/detail', + method: 'post', + data: data + }) +} + +// 修改分账明细 +export function updateDetail(data) { + return request({ + url: '/system/detail', + method: 'put', + data: data + }) +} + +// 删除分账明细 +export function delDetail(id) { + return request({ + url: '/system/detail/' + id, + method: 'delete' + }) +} diff --git a/src/api/rl/model.js b/src/api/rl/model.js new file mode 100644 index 0000000..acae5fa --- /dev/null +++ b/src/api/rl/model.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询车辆型号列表 +export function listModel(query) { + return request({ + url: '/system/model/list', + method: 'get', + params: query + }) +} + +// 查询车辆型号详细 +export function getModel(modelId) { + return request({ + url: '/system/model/' + modelId, + method: 'get' + }) +} + +// 新增车辆型号 +export function addModel(data) { + return request({ + url: '/system/model', + method: 'post', + data: data + }) +} + +// 修改车辆型号 +export function updateModel(data) { + return request({ + url: '/system/model', + method: 'put', + data: data + }) +} + +// 删除车辆型号 +export function delModel(modelId) { + return request({ + url: '/system/model/' + modelId, + method: 'delete' + }) +} diff --git a/src/api/rl/orderOper.js b/src/api/rl/orderOper.js new file mode 100644 index 0000000..70ebac0 --- /dev/null +++ b/src/api/rl/orderOper.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询操作操作履历列表 +export function listOrderOper(query) { + return request({ + url: '/system/orderOper/list', + method: 'get', + params: query + }) +} + +// 查询操作操作履历详细 +export function getOrderOper(operId) { + return request({ + url: '/system/orderOper/' + operId, + method: 'get' + }) +} + +// 新增操作操作履历 +export function addOrderOper(data) { + return request({ + url: '/system/orderOper', + method: 'post', + data: data + }) +} + +// 修改操作操作履历 +export function updateOrderOper(data) { + return request({ + url: '/system/orderOper', + method: 'put', + data: data + }) +} + +// 删除操作操作履历 +export function delOrderOper(operId) { + return request({ + url: '/system/orderOper/' + operId, + method: 'delete' + }) +} diff --git a/src/views/system/accessory/index.vue b/src/views/system/accessory/index.vue index db55c0f..36fd93c 100644 --- a/src/views/system/accessory/index.vue +++ b/src/views/system/accessory/index.vue @@ -9,10 +9,10 @@ @keyup.enter.native="handleQuery" /> - + @@ -73,8 +73,18 @@ - - + + + + +