From 2c149af25aa4912eabc62ef00d941f7af843c182 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 13 Aug 2024 17:59:30 +0800 Subject: [PATCH] 1 --- .env.development | 2 +- src/api/inventory_transfer.ts | 26 ++ src/views/inventory_transfer/details.vue | 107 +++++++ src/views/inventory_transfer/edit.vue | 260 ++++++++++++++++++ src/views/inventory_transfer/index.vue | 148 ++++++++++ src/views/store/store_product/index.vue | 21 +- src/views/store_extract/details.vue | 81 ++++++ src/views/store_extract/edit.vue | 103 +++++++ src/views/store_extract/index.vue | 143 ++++++++++ src/views/warehouse/product_import.vue | 9 + src/views/warehouse_product/index.vue | 11 +- src/views/warehouse_product/outbound_list.vue | 11 +- 12 files changed, 917 insertions(+), 5 deletions(-) create mode 100644 src/api/inventory_transfer.ts create mode 100644 src/views/inventory_transfer/details.vue create mode 100644 src/views/inventory_transfer/edit.vue create mode 100644 src/views/inventory_transfer/index.vue create mode 100644 src/views/store_extract/details.vue create mode 100644 src/views/store_extract/edit.vue create mode 100644 src/views/store_extract/index.vue diff --git a/.env.development b/.env.development index 1c94c0ca..522e48fc 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ VITE_NOW_TYPE = 'dist' # VITE_APP_BASE_URL='http://192.168.1.10:8546' # VITE_APP_BASE_URL='https://test-multi-store.lihaink.cn' # VITE_APP_BASE_URL='https://multi-store.lihaink.cn' -VITE_APP_BASE_URL='http://192.168.1.7:8545' +VITE_APP_BASE_URL='http://192.168.1.22:8545' # VITE_APP_BASE_URL='https://ceshi-multi-store.lihaink.cn' diff --git a/src/api/inventory_transfer.ts b/src/api/inventory_transfer.ts new file mode 100644 index 00000000..358b5d78 --- /dev/null +++ b/src/api/inventory_transfer.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 商品调拨列表 +export function apiInventoryTransferLists(params: any) { + return request.get({ url: '/inventory_transfer/inventorytransfer/lists', params }) +} + +// 添加商品调拨 +export function apiInventoryTransferAdd(params: any) { + return request.post({ url: '/inventory_transfer/inventorytransfer/add', params }) +} + +// 编辑商品调拨 +export function apiInventoryTransferEdit(params: any) { + return request.post({ url: '/inventory_transfer/inventorytransfer/edit', params }) +} + +// 删除商品调拨 +export function apiInventoryTransferDelete(params: any) { + return request.post({ url: '/inventory_transfer/inventorytransfer/delete', params }) +} + +// 商品调拨详情 +export function apiInventoryTransferDetail(params: any) { + return request.get({ url: '/inventory_transfer/inventorytransfer/detail', params }) +} \ No newline at end of file diff --git a/src/views/inventory_transfer/details.vue b/src/views/inventory_transfer/details.vue new file mode 100644 index 00000000..c0b6995a --- /dev/null +++ b/src/views/inventory_transfer/details.vue @@ -0,0 +1,107 @@ + + + diff --git a/src/views/inventory_transfer/edit.vue b/src/views/inventory_transfer/edit.vue new file mode 100644 index 00000000..99b3c7e3 --- /dev/null +++ b/src/views/inventory_transfer/edit.vue @@ -0,0 +1,260 @@ + + + diff --git a/src/views/inventory_transfer/index.vue b/src/views/inventory_transfer/index.vue new file mode 100644 index 00000000..12d39b67 --- /dev/null +++ b/src/views/inventory_transfer/index.vue @@ -0,0 +1,148 @@ + + + diff --git a/src/views/store/store_product/index.vue b/src/views/store/store_product/index.vue index ca5edc0c..10249367 100644 --- a/src/views/store/store_product/index.vue +++ b/src/views/store/store_product/index.vue @@ -11,6 +11,14 @@ placeholder="请输入商品名称" /> + + + 查询 重置 + @@ -210,7 +224,8 @@ const detailsRef = ref(null) // 查询条件 const queryParams = reactive({ store_name: '', - class_all: '' + class_all: '', + bar_code: '' }) // 选中数据 @@ -301,5 +316,7 @@ const handleDelete = async (id: number | any[]) => { getLists() } -getLists() +onMounted(() => { + getLists() +}) diff --git a/src/views/store_extract/details.vue b/src/views/store_extract/details.vue new file mode 100644 index 00000000..5109ec26 --- /dev/null +++ b/src/views/store_extract/details.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/views/store_extract/edit.vue b/src/views/store_extract/edit.vue new file mode 100644 index 00000000..b96869a5 --- /dev/null +++ b/src/views/store_extract/edit.vue @@ -0,0 +1,103 @@ + + + diff --git a/src/views/store_extract/index.vue b/src/views/store_extract/index.vue new file mode 100644 index 00000000..3551f942 --- /dev/null +++ b/src/views/store_extract/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/warehouse/product_import.vue b/src/views/warehouse/product_import.vue index 8f2170cd..78c8b0ec 100644 --- a/src/views/warehouse/product_import.vue +++ b/src/views/warehouse/product_import.vue @@ -23,6 +23,14 @@ @change="resetPage" /> + + + + + + 查询 重置 @@ -175,7 +183,8 @@ const queryParams = reactive({ warehouse_id: '', product_id: '', financial_pm: 1, - store_id: '' + store_id: '', + bar_code: '' }) // 选中数据 diff --git a/src/views/warehouse_product/outbound_list.vue b/src/views/warehouse_product/outbound_list.vue index 00f7aa26..ee363711 100644 --- a/src/views/warehouse_product/outbound_list.vue +++ b/src/views/warehouse_product/outbound_list.vue @@ -41,6 +41,14 @@ placeholder="请输入商品" /> + + + 查询 重置 @@ -162,7 +170,8 @@ const queryParams = reactive({ warehouse_id: '', product_id: '', financial_pm: 0, - store_id: '' + store_id: '', + bar_code: '' }) // 选中数据