diff --git a/src/api/order.js b/src/api/order.js new file mode 100644 index 0000000..e7a78fd --- /dev/null +++ b/src/api/order.js @@ -0,0 +1,69 @@ +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.postPut("/oil-refinery/xoilRefineryDelivery/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 deleteBill = (params) => { + return request.postPut("/oil-refinery/xoilRefineryDelivery/delete", params); +}; +//下单 +const orderSuccess = (params) => { + return request.postJson("/oil-refinery/xoilRefineryOrder/orderSuccess", params); +}; +//订单锁定 +const orderLock = (params) => { + return request.postJson("/oil-refinery/xoilRefineryOrder/orderLock", params); +}; +//确认下单 +const orderComplete = (params) => { + return request.postJson("/oil-refinery/xoilRefineryOrder/orderComplete", params); +}; +//订单退款 +const orderRefund = (params) => { + return request.postJson("/oil-refinery/xoilRefineryOrder/orderRefund", params); +}; +//油批中心信息 +const getlnfoByld = (params) => { + return request.postJson("/oil-refinery/xoilRefineryCenterAccount/getInfoById", params); +}; +//油批中心列表 +const getRecordsByActld = (params) => { + return request.postJson("/oil-refinery/xoilRefineryCenterAccount/getRecordsByActId", params); +}; + +export default { + getByPage, + findDeliveryByOrderId, + billSave, + findByOrderId, + update, + deleteBill, + orderSuccess, + orderLock, + orderComplete, + orderRefund, + orderUpdate, + getlnfoByld, + getRecordsByActld +}; diff --git a/src/api/product.js b/src/api/product.js index 59a448c..a6ca27c 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -32,6 +32,31 @@ const modifyPrice = (params) => { params ); }; +// 搜索客户 +const getRefineryCompanyList = (params) => { + return request.postJson("/oil-user/oilCompanyInfo/getLikeByCompanyType", params); +}; +// 下单 +const orderSave = (params) => { + return request.postJson( + "/oil-refinery/xoilRefineryOrder/save", + params + ); +}; +//查看企业产品 +const getRefineryProductList = (params) => { + return request.postJson( + "/oil-refinery/oilRefineryProduct/getRefineryProductList", + params + ); +}; +//查看炼厂信息 +const findByEntity = (params) => { + return request.postJson( + "/oil-refinery/xoilRefineryInfo/findByEntity", + params + ); +}; export default { getByPage, @@ -40,4 +65,8 @@ export default { getByPageRecord, updateBatchEnable, modifyPrice, + getRefineryCompanyList, + orderSave, + getRefineryProductList, + findByEntity }; diff --git a/src/views/order/components/billOfLading.vue b/src/views/order/components/billOfLading.vue new file mode 100644 index 0000000..dd36e1e --- /dev/null +++ b/src/views/order/components/billOfLading.vue @@ -0,0 +1,458 @@ + + + + + + + + + + + {{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 60265f6..9a465a6 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -1,7 +1,500 @@ - + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + {{ row.customerName }} + + + {{ row.customerId || "暂无" }} + + + + + + + 炼厂名称 {{ row.refineryName }} + + + 产品名称 {{ row.productName }} + + + + + + + + + + + {{ payTagType(row.payStatus).label }} + + + + + {{ orderTagType(row.orderStatus).label }} + + + + + + {{ row.actQuantity|toNumberFixed }} / {{ row.preQuantity|toNumberFixed }} {{row.productMeasurement}} + + + + + + {{ row.actAmount|toNumberFixed}} / {{ row.preAmount|toNumberFixed }} 元 + + + + + + 创建时间 {{ row.createTime }} + + + 更新时间 {{ row.updateTime || "暂无" }} + + + + + + 详情 + 提货单 + + {{row.orderStatus=='SUBMITED'?'订单锁定':'下单确认'}} + + + {{row.orderStatus=='SUBMITED'||row.orderStatus=='ORDER_LOCKED'?'订单取消':'订单退款'}} + + + + + + + + + + + + + + + + - + diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue index c4b9e3a..76e91ad 100644 --- a/src/views/product/components/create.vue +++ b/src/views/product/components/create.vue @@ -1,20 +1,28 @@ - + - - + + + + + - - + + + + - + 元/吨 - + 吨 + + + 元 + @@ -72,7 +98,6 @@ + + diff --git a/src/views/refineryCenter/index.vue b/src/views/refineryCenter/index.vue new file mode 100644 index 0000000..db3cbef --- /dev/null +++ b/src/views/refineryCenter/index.vue @@ -0,0 +1,505 @@ + + + + + + 油批中心账户 + + + + {{topData.balance}} + 总余额 + + + {{topData.rechargeBalance}} + 充值余额 + + + {{topData.totalRechargeBalance}} + 累计充值余额 + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + {{ row.transactionType|refineryType }} + + + + + + + + 当前 {{ row.currentBalance }} + + + 上次 {{ row.lastBalance }} + + + + + + + 当前 {{ row.currentRechargeBalance }} + + + 上次 {{ row.lasttRechargeBalance }} + + + + + + + 当前 {{ row.currentTotalRechargeAmount }} + + + 上次 {{ row.lastTotalRechargeAmount }} + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vue.config.js b/vue.config.js index 15c7aa3..042482e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -11,7 +11,7 @@ const name = defaultSettings.title || "vue Admin Template"; const port = process.env.port || process.env.npm_config_port || 9530; module.exports = { - publicPath: "/", + publicPath: "/refinery", outputDir: "dist", assetsDir: "static", productionSourceMap: false, @@ -29,7 +29,8 @@ module.exports = { [process.env.VUE_APP_BASE_API]: { // target: `https://3816t6291y.oicp.vip`, // target: 'https://6l438d1757.zicp.fun', - target: "http://192.168.110.230:38080", + target: "http://192.168.0.23:38080", + // target: "http://uat.xingoil.com/adminapi", changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "",
+ {{ row.customerName }} +
+ {{ row.customerId || "暂无" }} +
+ 炼厂名称 {{ row.refineryName }} +
+ 产品名称 {{ row.productName }} +
+ 创建时间 {{ row.createTime }} +
+ 更新时间 {{ row.updateTime || "暂无" }} +
+ 当前 {{ row.currentBalance }} +
+ 上次 {{ row.lastBalance }} +
+ 当前 {{ row.currentRechargeBalance }} +
+ 上次 {{ row.lasttRechargeBalance }} +
+ 当前 {{ row.currentTotalRechargeAmount }} +
+ 上次 {{ row.lastTotalRechargeAmount }} +