diff --git a/src/api/order.js b/src/api/order.js new file mode 100644 index 0000000..fc830fe --- /dev/null +++ b/src/api/order.js @@ -0,0 +1,43 @@ +import request from "utils/axios.js"; +// table +const getByPage = (params) => { + return request.postJson("/oil-refinery/xoilRefineryOrder/getByPage", params); +}; +//查看提货单信息 +const findDeliveryByOrderId = (id) => { + return request.get(`/oil-refinery/xoilRefineryDelivery/findDeliveryByOrderId/${id}`); +}; +//创建提货单 +const billSave = (params) => { + return request.postJson("/oil-refinery/xoilRefineryDelivery/save", params); +}; +//修改提货单 +const update = (params) => { + return request.putJson("/oil-refinery/xoilRefineryDelivery/update", params); +}; +//查看订单信息 +const findByOrderId = (id) => { + return request.get(`/oil-refinery/xoilRefineryDelivery/findByOrderId/${id}`); +}; +//修改提货单 +const deleteBill = (params) => { + return request.putJson("/oil-refinery/xoilRefineryDelivery/delete", params); +}; +//下单 +const orderSuccess = (params) => { + return request.postJson("/oil-refinery/xoilRefineryOrder/orderSuccess", params); +}; + + + + + +export default { + getByPage, + findDeliveryByOrderId, + billSave, + findByOrderId, + update, + deleteBill, + orderSuccess +}; diff --git a/src/utils/axios.js b/src/utils/axios.js index b35ad86..3642e91 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -24,6 +24,13 @@ export default { data: data, }); }, + putJson(url, data) { + return axios({ + url: url, + method: "put", + data: data, + }); + }, postFromData(url, data) { return axios({ url: url, diff --git a/src/views/order/components/billOfLading.vue b/src/views/order/components/billOfLading.vue new file mode 100644 index 0000000..8bbd416 --- /dev/null +++ b/src/views/order/components/billOfLading.vue @@ -0,0 +1,449 @@ + + + + + + + + + + + {{billData.orderInfo.deliveryAccount}} + + + + {{orderTagType(billData.orderInfo.orderStatus).orderLabel}} + + + + + + {{billData.orderInfo.preQuantity}} + + + {{billData.orderInfo.preAmount}} + + + + + {{billData.orderInfo.alreadyQuantity}} + + + {{billData.orderInfo.alreadyAmount}} + + + + + {{billData.orderInfo.surplusQuantity}} + + + {{billData.orderInfo.surplusAmount}} + + + + + + + 提货单列表 + 创建提货单 + + + + + + {{item.id}} + + {{orderTagType(item.deliveryStatus).label}} + + + + + {{ item.preDeliveryQuantity }} + + + {{item.driverName}} + + + {{ item.plateNumber }} + + + + + {{ item.accDeliveryQuantity }} + + + {{ item.identityCard }} + + + + 我来修改/锁定 + + + + {{ item.createTime }} + + + {{ item.updateTime }} + + + + 删除提货单 + {{orderTagType(item.deliveryStatus).info}} + + + + + + + + + 取消 + 订单确认 + + + + + 元/吨 + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + + + + + diff --git a/src/views/order/index.vue b/src/views/order/index.vue index 70cbb99..74ead96 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -46,70 +46,80 @@ :data="tableData" style="width: 100%" > - - - + + + + + {{ row.customerName }} + + + {{ row.customerId || "暂无" }} + + - + - {{ - refineryTypeEnum.find((item) => item.value === row.refineryType) - .label - }} + + 炼厂名称 {{ row.refineryName }} + + + 产品名称 {{ row.productName }} + - + + - + + + + + {{ payTagType(row.payStatus).label }} + - + - { - switchTrigger(val, row); - } - " - > - + {{ orderTagType(row.orderStatus).label }} + + + {{ row.actQuantity?row.actQuantity:'--' }} / {{ row.preQuantity?row.preQuantity:'--' }} 吨 + + + + {{ row.actAmount }} / {{ row.preAmount }} 元 + - + 创建时间 {{ row.createTime }} - 更新时间 {{ row.updateTime || " - -" }} + 更新时间 {{ row.updateTime || "暂无" }} - + 详情 + +
+ {{ row.customerName }} +
+ {{ row.customerId || "暂无" }} +
+ 炼厂名称 {{ row.refineryName }} +
+ 产品名称 {{ row.productName }} +
创建时间 {{ row.createTime }}
- 更新时间 {{ row.updateTime || " - -" }} + 更新时间 {{ row.updateTime || "暂无" }}