From 259aec07cd9016c4c2d8cfdc0b65a4ab695ea4ff Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 1 Feb 2024 12:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A1=8C=E5=8F=B0=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 59 +++- src/api/invoicing.js | 12 + src/api/table.js | 64 ++++ .../shopList/index.vue} | 7 +- src/store/modules/app.js | 2 +- src/views/invoicing/operating_record.vue | 9 +- src/views/invoicing/operation_in.vue | 274 ++++++++++++++++++ src/views/invoicing/operation_out.vue | 274 ++++++++++++++++++ .../invoicing/supplier_manage/purchase.vue | 2 +- .../supplier_manage/purchase_detail.vue | 2 +- .../invoicing/supplier_manage/refund.vue | 136 +++++++++ src/views/product/add_shop.vue | 59 +--- src/views/product/components/addGroup.vue | 2 +- src/views/table/components/addEara.vue | 73 +++++ src/views/table/components/addTable.vue | 117 ++++++++ src/views/table/table_list.vue | 209 +++++++++++++ 16 files changed, 1233 insertions(+), 68 deletions(-) create mode 100644 src/api/table.js rename src/{views/product/components/shopList.vue => components/shopList/index.vue} (94%) create mode 100644 src/views/invoicing/operation_in.vue create mode 100644 src/views/invoicing/operation_out.vue create mode 100644 src/views/invoicing/supplier_manage/refund.vue create mode 100644 src/views/table/components/addEara.vue create mode 100644 src/views/table/components/addTable.vue create mode 100644 src/views/table/table_list.vue diff --git a/src/App.vue b/src/App.vue index 19381ca..8f6cd69 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,7 @@ export default { } - diff --git a/src/api/invoicing.js b/src/api/invoicing.js index 29a1731..66a2a31 100644 --- a/src/api/invoicing.js +++ b/src/api/invoicing.js @@ -131,4 +131,16 @@ export function tbProductStockOperateDetail(id) { }) } +/** + * 操作出库/入库 + * @returns + */ +export function tbProductStockOperateOutAndOn(data) { + return request({ + url: `/api/tbProductStockOperate/outAndOn`, + method: 'post', + data + }) +} + diff --git a/src/api/table.js b/src/api/table.js new file mode 100644 index 0000000..006defc --- /dev/null +++ b/src/api/table.js @@ -0,0 +1,64 @@ +// 桌台管理 +import request from '@/utils/request' + +/** + * 台桌列表 + * @returns + */ +export function tbShopTableGet(params) { + return request({ + url: `/api/tbShopTable`, + method: 'get', + params + }) +} + +/** + * 区域 + * @returns + */ +export function tbShopAreaGet(params) { + return request({ + url: `/api/tbShopArea`, + method: 'get', + params + }) +} + +/** + * 增加区域 + * @returns + */ +export function tbShopArea(data, method) { + return request({ + url: `/api/tbShopArea`, + method: method, + data + }) +} + +/** + * 删除区域 + * @returns + */ +export function tbShopAreaDelete(data) { + return request({ + url: `/api/tbShopArea`, + method: 'DELETE', + data + }) +} + +/** + * 增加台桌 + * @returns + */ +export function tbShopTable(data, method) { + return request({ + url: `/api/tbShopTable`, + method: method, + data + }) +} + + diff --git a/src/views/product/components/shopList.vue b/src/components/shopList/index.vue similarity index 94% rename from src/views/product/components/shopList.vue rename to src/components/shopList/index.vue index 702c4c1..f17351a 100644 --- a/src/views/product/components/shopList.vue +++ b/src/components/shopList/index.vue @@ -20,7 +20,11 @@ @@ -125,7 +129,6 @@ export default { } }, show(goods) { - console.log('show-goods===', goods) this.dialogVisible = true if (goods && goods.length) { this.goods = goods diff --git a/src/store/modules/app.js b/src/store/modules/app.js index b9d0726..a12d707 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -6,7 +6,7 @@ const state = { withoutAnimation: false }, device: 'desktop', - size: Cookies.get('size') || 'Default' + size: Cookies.get('size') || 'default' } const mutations = { diff --git a/src/views/invoicing/operating_record.vue b/src/views/invoicing/operating_record.vue index 2096d94..0f73f10 100644 --- a/src/views/invoicing/operating_record.vue +++ b/src/views/invoicing/operating_record.vue @@ -24,7 +24,7 @@ @@ -32,10 +32,13 @@ {{ dayjs(scope.row.stockTime).format('YYYY-MM-DD HH:mm:ss') }} - + diff --git a/src/views/invoicing/operation_in.vue b/src/views/invoicing/operation_in.vue new file mode 100644 index 0000000..726cbc2 --- /dev/null +++ b/src/views/invoicing/operation_in.vue @@ -0,0 +1,274 @@ + + + + + \ No newline at end of file diff --git a/src/views/invoicing/operation_out.vue b/src/views/invoicing/operation_out.vue new file mode 100644 index 0000000..2f1cb12 --- /dev/null +++ b/src/views/invoicing/operation_out.vue @@ -0,0 +1,274 @@ + + + + + \ No newline at end of file diff --git a/src/views/invoicing/supplier_manage/purchase.vue b/src/views/invoicing/supplier_manage/purchase.vue index 622714f..fcaab5b 100644 --- a/src/views/invoicing/supplier_manage/purchase.vue +++ b/src/views/invoicing/supplier_manage/purchase.vue @@ -2,7 +2,7 @@
- diff --git a/src/views/invoicing/supplier_manage/purchase_detail.vue b/src/views/invoicing/supplier_manage/purchase_detail.vue index 1b5cf03..b3207d4 100644 --- a/src/views/invoicing/supplier_manage/purchase_detail.vue +++ b/src/views/invoicing/supplier_manage/purchase_detail.vue @@ -104,7 +104,7 @@ diff --git a/src/views/invoicing/supplier_manage/refund.vue b/src/views/invoicing/supplier_manage/refund.vue new file mode 100644 index 0000000..3ee03d9 --- /dev/null +++ b/src/views/invoicing/supplier_manage/refund.vue @@ -0,0 +1,136 @@ + + + + + \ No newline at end of file diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue index ad5d8cf..d0a1206 100644 --- a/src/views/product/add_shop.vue +++ b/src/views/product/add_shop.vue @@ -192,7 +192,7 @@ import { tbShopUnit, tbShopCategoryGet, tbProductPost, tbProductSpecGet, tbProductGetDetail, tbProductPut } from "@/api/shop"; import addUnit from './components/addUnit' import addClassify from './components/addClassify' -import shopList from './components/shopList' +import shopList from '@/components/shopList' import uploadImg from '@/components/uploadImg' import settings from '@/settings' export default { @@ -556,63 +556,6 @@ export default { + \ No newline at end of file