From dfc176c11c4ca10ec870b0c3337a407496c1cc43 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Sat, 13 May 2023 14:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order.js | 89 +++---- src/views/order/components/confirmSubmit.vue | 238 +++++++++++++++++++ src/views/order/index.vue | 53 +++-- 3 files changed, 316 insertions(+), 64 deletions(-) create mode 100644 src/views/order/components/confirmSubmit.vue diff --git a/src/api/order.js b/src/api/order.js index e7a78fd..ccc964d 100644 --- a/src/api/order.js +++ b/src/api/order.js @@ -1,56 +1,60 @@ -import request from "utils/axios.js"; +import request from 'utils/axios.js' // table -const getByPage = (params) => { - return request.postJson("/oil-refinery/xoilRefineryOrder/getByPage", params); -}; +const getByPage = params => { + return request.postJson('/oil-refinery/xoilRefineryOrder/getByPage', params) +} //查看提货单信息 -const findDeliveryByOrderId = (id) => { - return request.get(`/oil-refinery/xoilRefineryDelivery/findDeliveryByOrderId/${id}`); -}; +const findDeliveryByOrderId = id => { + return request.get(`/oil-refinery/xoilRefineryDelivery/findDeliveryByOrderId/${id}`) +} //创建提货单 -const billSave = (params) => { - return request.postJson("/oil-refinery/xoilRefineryDelivery/save", params); -}; +const billSave = params => { + return request.postJson('/oil-refinery/xoilRefineryDelivery/save', params) +} //修改提货单 -const update = (params) => { - return request.postPut("/oil-refinery/xoilRefineryDelivery/update", params); -}; +const update = params => { + return request.postPut('/oil-refinery/xoilRefineryDelivery/update', params) +} //修改提货单 -const orderUpdate = (params) => { - return request.postPut("/oil-refinery/xoilRefineryOrder/update", params); -}; +const orderUpdate = params => { + return request.postPut('/oil-refinery/xoilRefineryOrder/update', params) +} //查看订单信息 -const findByOrderId = (id) => { - return request.get(`/oil-refinery/xoilRefineryDelivery/findByOrderId/${id}`); -}; +const findByOrderId = id => { + return request.get(`/oil-refinery/xoilRefineryDelivery/findByOrderId/${id}`) +} //修改提货单 -const deleteBill = (params) => { - return request.postPut("/oil-refinery/xoilRefineryDelivery/delete", params); -}; +const deleteBill = params => { + return request.postPut('/oil-refinery/xoilRefineryDelivery/delete', params) +} //下单 -const orderSuccess = (params) => { - return request.postJson("/oil-refinery/xoilRefineryOrder/orderSuccess", params); -}; +const orderSuccess = params => { + return request.postJson('/oil-refinery/xoilRefineryOrder/orderSuccess', params) +} //订单锁定 -const orderLock = (params) => { - return request.postJson("/oil-refinery/xoilRefineryOrder/orderLock", params); -}; +const orderLock = params => { + return request.postJson('/oil-refinery/xoilRefineryOrder/orderLock', params) +} //确认下单 -const orderComplete = (params) => { - return request.postJson("/oil-refinery/xoilRefineryOrder/orderComplete", params); -}; +const orderComplete = params => { + return request.postJson('/oil-refinery/xoilRefineryOrder/orderComplete', params) +} //订单退款 -const orderRefund = (params) => { - return request.postJson("/oil-refinery/xoilRefineryOrder/orderRefund", params); -}; +const orderRefund = params => { + return request.postJson('/oil-refinery/xoilRefineryOrder/orderRefund', params) +} //油批中心信息 -const getlnfoByld = (params) => { - return request.postJson("/oil-refinery/xoilRefineryCenterAccount/getInfoById", params); -}; +const getlnfoByld = params => { + return request.postJson('/oil-refinery/xoilRefineryCenterAccount/getInfoById', params) +} //油批中心列表 -const getRecordsByActld = (params) => { - return request.postJson("/oil-refinery/xoilRefineryCenterAccount/getRecordsByActId", params); -}; +const getRecordsByActld = params => { + return request.postJson('/oil-refinery/xoilRefineryCenterAccount/getRecordsByActId', params) +} +// 炼厂产品详情接口 用于查询产品单价是否发生变更 +const getRefineryProduct = id => { + return request.get(`oil-refinery/oilRefineryProduct/get/${id}`) +} export default { getByPage, @@ -65,5 +69,6 @@ export default { orderRefund, orderUpdate, getlnfoByld, - getRecordsByActld -}; + getRecordsByActld, + getRefineryProduct +} diff --git a/src/views/order/components/confirmSubmit.vue b/src/views/order/components/confirmSubmit.vue new file mode 100644 index 0000000..f9c9e62 --- /dev/null +++ b/src/views/order/components/confirmSubmit.vue @@ -0,0 +1,238 @@ + + + + + diff --git a/src/views/order/index.vue b/src/views/order/index.vue index c928b5b..cde5e60 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -112,15 +112,12 @@ @click="billOfLading(row)" >提货单 - - {{ row.orderStatus == 'SUBMITED' ? '订单锁定' : '下单确认' }} + + 订单锁定 + + 下单确认 + +