diff --git a/.env.development b/.env.development
index 138a850..6d99809 100644
--- a/.env.development
+++ b/.env.development
@@ -1,7 +1,7 @@
ENV = 'development'
# 接口地址
-# VUE_APP_BASE_API = 'http://192.168.2.17:8000'
+# VUE_APP_BASE_API = 'http://192.168.2.202:8000'
# VUE_APP_BASE_API = 'http://192.168.2.42:8000'
# VUE_APP_BASE_API = 'http://192.168.2.133:8000'
# 测试
diff --git a/README.md b/README.md
index 3e031e8..e304a16 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,13 @@ npm run build:prod
#### 常见问题
+0、运行报错
+解决方案:
+```
+$env:NODE_OPTIONS="--openssl-legacy-provider"
+```
+
+
1、linux 系统在安装依赖的时候会出现 node-sass 无法安装的问题
解决方案:
diff --git a/src/api/application-song.js b/src/api/application-song.js
new file mode 100644
index 0000000..6a2cd4c
--- /dev/null
+++ b/src/api/application-song.js
@@ -0,0 +1,54 @@
+import request from "@/utils/request";
+
+
+/**
+ * 查询歌曲列表
+ * @returns
+ */
+export function tbShopSonglist(params) {
+ return request({
+ url: "/api/tbShopSong",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ ...params
+ }
+ });
+}
+/**
+ * 新增歌曲
+ * @returns
+ */
+export function tbShopSongAdd(data) {
+ return request({
+ url: "/api/tbShopSong",
+ method: "post",
+ data: {
+ shopId: localStorage.getItem("shopId"),
+ ...data
+ }
+ });
+}
+
+/**
+ * 修改歌曲
+ * @returns
+ */
+export function tbShopSongEdit(data) {
+ return request({
+ url: "/api/tbShopSong",
+ method: "put",
+ data
+ });
+}
+/**
+ * 删除歌曲
+ * @returns
+ */
+export function tbShopSongDel(ids) {
+ return request({
+ url: 'api/tbProduct/',
+ method: 'delete',
+ data: ids
+ })
+}
diff --git a/src/api/consumable.js b/src/api/consumable.js
index c195eba..8ca3ae3 100644
--- a/src/api/consumable.js
+++ b/src/api/consumable.js
@@ -63,7 +63,7 @@ export function posttbConsInfostockIn(data) {
export function postapitbConsInfo(data) {
return request({
url: '/api/tbConsInfo',
- method: "post",
+ method: "put",
data
});
}
diff --git a/src/api/shop.js b/src/api/shop.js
index 5891ae2..3a7a91c 100644
--- a/src/api/shop.js
+++ b/src/api/shop.js
@@ -443,6 +443,21 @@ export function queryAllShopUser(params) {
}
});
}
+/**
+ * 查询商家用户概述信息
+ * @returns
+ */
+export function queryAllShopInfo(params) {
+ return request({
+ url: `/api/tbShopUser/summary`,
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ ...params
+ }
+ });
+}
+
/**
* 修改商品排序
diff --git a/src/api/table.js b/src/api/table.js
index ee1c9d8..31b8dfd 100644
--- a/src/api/table.js
+++ b/src/api/table.js
@@ -85,3 +85,36 @@ export function downloadTableCode(data) {
responseType: "blob"
});
}
+
+
+/**
+ * 桌台统计
+ * @returns
+ */
+export function summaryTable(params) {
+ return request({
+ url: `/api/summary/table`,
+ method: "get",
+ params:{
+ shopId: localStorage.getItem("shopId"),
+ ...params
+ }
+ });
+}
+
+/**
+ * 桌台统计导出文档
+ * @returns
+ */
+export function summaryTableDownload(data) {
+ return request({
+ url: `/api/summary/table/download`,
+ method: "POST",
+ data:{
+ shopId: localStorage.getItem("shopId"),
+ ...data
+ },
+ responseType: 'blob'
+
+ });
+}
diff --git a/src/router/routers.js b/src/router/routers.js
index 4ebc72a..9774697 100644
--- a/src/router/routers.js
+++ b/src/router/routers.js
@@ -52,6 +52,12 @@ export const constantRouterMap = [
component: (resolve) => require(['@/views/home/data_forms'], resolve),
name: 'data_forms',
meta: { title: '数据报表' }
+ },
+ {
+ path: 'data_tables',
+ component: (resolve) => require(['@/views/home/data_tables'], resolve),
+ name: 'data_tables',
+ meta: { title: '桌台统计' }
}
]
},
diff --git a/src/views/application/choose_song.vue b/src/views/application/choose_song.vue
index 6ecfad8..a045c59 100644
--- a/src/views/application/choose_song.vue
+++ b/src/views/application/choose_song.vue
@@ -1,3 +1,139 @@
- 点歌
-
\ No newline at end of file
+
+
+
+ 添加歌曲
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/application/componentsCompoents/add-song.vue b/src/views/application/componentsCompoents/add-song.vue
new file mode 100644
index 0000000..8e8d2a4
--- /dev/null
+++ b/src/views/application/componentsCompoents/add-song.vue
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/data_forms.vue b/src/views/home/data_forms.vue
index 86f3373..f134562 100644
--- a/src/views/home/data_forms.vue
+++ b/src/views/home/data_forms.vue
@@ -86,11 +86,17 @@
¥{{ scope.row.cash }}
-
+
+
+ ¥{{ scope.row.recharge }}
+
+
+
¥{{ scope.row.deposit }}
+
+
+
+
+ 全部
+ 今天
+ 昨天
+ 最近7天
+ 最近30天
+ 本周
+ 本月
+ 自定义
+
+
+
+
+ 查询
+ 重置
+
+ 导出Excel
+ 下载中...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.orderCount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/invoicing/components/operatingDetail.vue b/src/views/invoicing/components/operatingDetail.vue
index 86dbc1b..9cce97b 100644
--- a/src/views/invoicing/components/operatingDetail.vue
+++ b/src/views/invoicing/components/operatingDetail.vue
@@ -1,7 +1,7 @@
- 【{{ tableData.detail.subType == '-1' ? '退货出库' : '供应商入库' }}】
+ 【{{ row.type }}】
@@ -10,13 +10,14 @@
- - {{ scope.row.number }} {{ scope.row.unitName }}
+ - {{ scope.row.number }} {{
+ scope.row.unitName
+ }}
- {{ returnNowHasNumbr( scope.row)}}
-
+ {{ returnNowHasNumbr(scope.row) }}
@@ -37,6 +38,7 @@ export default {
data() {
return {
dayjs,
+ row: '',
dialogVisible: false,
tableData: {
loading: false,
@@ -51,12 +53,13 @@ export default {
},
methods: {
//返回现有库存数量
- returnNowHasNumbr(row){
- return row.stockNumber*1 + row.number*1 +row.unitName
+ returnNowHasNumbr(row) {
+ return row.stockNumber * 1 + row.number * 1 + row.unitName
},
- show(id) {
+ show(row) {
this.dialogVisible = true
- this.getTableData(id)
+ this.row = row
+ this.getTableData(row.id)
},
async getTableData(id) {
this.tableData.loading = true
diff --git a/src/views/invoicing/consumable/cons_record.vue b/src/views/invoicing/consumable/cons_record.vue
index 3118a3b..ccd68b8 100644
--- a/src/views/invoicing/consumable/cons_record.vue
+++ b/src/views/invoicing/consumable/cons_record.vue
@@ -38,7 +38,8 @@
+ @current-change="paginationChangetype"
+ @size-change="e => { clickseetableData.size = e; clickseetableData.page = 0; getTableData() }" />
@@ -64,8 +65,12 @@ export default {
this.getTableData()
},
methods: {
+ pageSizeChange(e) {
+ this.clickseetableData.size = e
+ this.getTableData()
+ },
paginationChangetype(e) {
- this.tableDatatype.page = e - 1
+ this.clickseetableData.page = e - 1
this.getTableData()
},
// 查看查询耗材流水信息
diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue
index 36bd3bf..06e9172 100644
--- a/src/views/invoicing/consumable/information.vue
+++ b/src/views/invoicing/consumable/information.vue
@@ -4,24 +4,61 @@
-
+
-
+
-
+
-
+
-
-
+
+
@@ -33,12 +70,22 @@
- 添加
+ 添加
-
+
@@ -47,7 +94,7 @@
- {{ dayjs(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
+ {{ dayjs(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") }}
@@ -65,11 +112,24 @@
{{ dayjs(scope.row.createdAt).format('YYYY-MM-DD HH:mm:ss') }}
-->
-
+
- 耗材记录
- 耗材盘点
+ 编辑
+ 耗材记录
+ 耗材盘点
@@ -83,70 +143,160 @@
-
+ {
+ tableData.size = e;
+ tableData.page = 0;
+ getTableData();
+ }
+ "
+ />
-
+
-
+
取 消
- 确 定
+ 确 定
-
+
-
+
-
-
+
+
- 去选择
+ 去选择
-
+
-
+
-
+
-
+
取 消
- 确 定
+
+ 确 定
+
-
+
@@ -163,19 +313,30 @@
-
+
-
+
- {{ scope.row.bizType }}{{ scope.row.amount }}
+ {{ scope.row.bizType }}{{ scope.row.amount }}
@@ -183,7 +344,10 @@
-
+
@@ -204,43 +372,53 @@
\ No newline at end of file
+
diff --git a/src/views/invoicing/consumable/specifications.vue b/src/views/invoicing/consumable/specifications.vue
index 57e22fc..bc0a78d 100644
--- a/src/views/invoicing/consumable/specifications.vue
+++ b/src/views/invoicing/consumable/specifications.vue
@@ -78,7 +78,8 @@
+ layout="total, sizes, prev, pager, next, jumper" @current-change="paginationChange"
+ @size-change="e => { tableData.size = e; getTableData() }" />
@@ -103,7 +104,7 @@
去选择耗材信息
-
+
@@ -123,7 +124,7 @@
去选择耗材信息
-
+
@@ -177,7 +178,8 @@
+ @current-change="paginationChangeinformation"
+ @size-change="e => { tableDatainformation.size = e; tableDatainformation.page = 0; getTableDatainformation() }" />
diff --git a/src/views/invoicing/consumable/type.vue b/src/views/invoicing/consumable/type.vue
index 8bf3f35..7599ceb 100644
--- a/src/views/invoicing/consumable/type.vue
+++ b/src/views/invoicing/consumable/type.vue
@@ -66,7 +66,8 @@
+ layout="total, sizes, prev, pager, next, jumper" @current-change="paginationChange"
+ @size-change="e => { tableData.size = e; tableData.page = 0; getTableData() }" />
diff --git a/src/views/invoicing/goods_stoks.vue b/src/views/invoicing/goods_stoks.vue
index 2466b51..71b4bf8 100644
--- a/src/views/invoicing/goods_stoks.vue
+++ b/src/views/invoicing/goods_stoks.vue
@@ -6,6 +6,11 @@
+
+
+
+
+
开
@@ -96,8 +101,9 @@
-
+
@@ -123,6 +129,7 @@