From a5303d49c8e8604492a18f9ed2d816d2c4a6dfbe Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Tue, 11 Jul 2023 10:35:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=BA=93=E8=BF=90=E5=8D=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/warehouse/warehouseWaybill.js | 50 +++ src/option/warehouse/warehouseWaybill.js | 232 +++++++++++++ src/views/warehouse/warehouseWaybill.vue | 397 +++++++++++++++++++++++ vite.config.js | 2 +- 4 files changed, 680 insertions(+), 1 deletion(-) create mode 100644 src/api/warehouse/warehouseWaybill.js create mode 100644 src/option/warehouse/warehouseWaybill.js create mode 100644 src/views/warehouse/warehouseWaybill.vue diff --git a/src/api/warehouse/warehouseWaybill.js b/src/api/warehouse/warehouseWaybill.js new file mode 100644 index 00000000..3ce5cc39 --- /dev/null +++ b/src/api/warehouse/warehouseWaybill.js @@ -0,0 +1,50 @@ +import request from '@/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/logpm-warehouse/warehouseWaybill/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/logpm-warehouse/warehouseWaybill/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/logpm-warehouse/warehouseWaybill/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/logpm-warehouse/warehouseWaybill/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/logpm-warehouse/warehouseWaybill/submit', + method: 'post', + data: row + }) +} + diff --git a/src/option/warehouse/warehouseWaybill.js b/src/option/warehouse/warehouseWaybill.js new file mode 100644 index 00000000..8f7be5f7 --- /dev/null +++ b/src/option/warehouse/warehouseWaybill.js @@ -0,0 +1,232 @@ +export default { + expand: false, + index: true, + border: true, + selection: true, + column: [ + { + label: "主键ID", + prop: "id", + display: false, + hide: true, + }, + { + label: "运单号", + prop: "waybillNo", + }, + { + label: "订单自编号", + prop: "orderNo", + display: false, + hide: true, + }, + { + label: "目的仓", + prop: "destinationWarehouse", + }, + { + label: "发站仓", + prop: "departureWarehouse", + }, + { + label: "客户车次", + prop: "customerTrain", + }, + { + label: "品牌", + prop: "brand", + }, + { + label: "发货单位", + prop: "shipper", + }, + { + label: "发货人", + prop: "shipperName", + }, + { + label: "发货方手机号", + prop: "shipperMobile", + }, + { + label: "发货方地址", + prop: "shipperAddress", + }, + { + label: "收货单位", + prop: "consignee", + }, + { + label: "收货人", + prop: "consigneeName", + }, + { + label: "收货方手机号", + prop: "consigneeMobile", + }, + { + label: "收货方地址", + prop: "consigneeAddress", + }, + { + label: "到站", + prop: "destination", + }, + { + label: "货物名称", + prop: "goodsName", + }, + { + label: "总数", + prop: "totalCount", + }, + { + label: "在库数", + prop: "stockCount", + }, + { + label: "总重量", + prop: "totalWeight", + }, + { + label: "总体积", + prop: "totalVolume", + }, + { + label: "送货方式", + prop: "deliveryMethod", + }, + { + label: "紧急度", + prop: "urgency", + }, + { + label: "回单数", + prop: "receiptCount", + }, + { + label: "回单要求", + prop: "receiptRequirement", + }, + { + label: "经办人", + prop: "agent", + }, + { + label: "经办人id", + prop: "agentId", + }, + { + label: "收货单位id", + prop: "consigneeId", + }, + { + label: "发货单位id", + prop: "shipperId", + }, + { + label: "发展仓id", + prop: "departureWarehouseId", + display: false, + hide: true, + }, + { + label: "目的仓id", + prop: "destinationWarehouseId", + display: false, + hide: true, + }, + { + label: "制单时间", + prop: "documentMakingTime", + }, + { + label: "备注", + prop: "remark", + }, + { + label: "批次号", + prop: "batchNo", + }, + { + label: "服务类型", + prop: "serviceType", + }, + { + label: "服务号", + prop: "serviceNo", + }, + { + label: "冻结状态", + prop: "freezeStatus", + }, + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "预留1", + prop: "reserve1", + }, + { + label: "预留2", + prop: "reserve2", + }, + { + label: "预留3", + prop: "reserve3", + }, + { + label: "预留4", + prop: "reserve4", + }, + { + label: "预留5", + prop: "reserve5", + }, + ] +} diff --git a/src/views/warehouse/warehouseWaybill.vue b/src/views/warehouse/warehouseWaybill.vue new file mode 100644 index 00000000..e4f93d56 --- /dev/null +++ b/src/views/warehouse/warehouseWaybill.vue @@ -0,0 +1,397 @@ + + + diff --git a/vite.config.js b/vite.config.js index d19e7956..a4671845 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,7 +12,7 @@ export default ({ mode, command }) => { port: 2888, proxy: { '/api': { - target: 'http://192.168.2.29:13000', + target: 'http://192.168.2.97:9999', //target: 'http://test3.javablade.com', changeOrigin: true, rewrite: path => path.replace(/^\/api/, ''),