From 13a39e1b13c706c27ac334682b1976182a961d50 Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Wed, 2 Apr 2025 11:49:08 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Sidebar/components/SidebarLogo.vue | 20 +++-
src/router/index.ts | 33 -------
src/views/shop/list/index.vue | 95 ++++++++-----------
3 files changed, 58 insertions(+), 90 deletions(-)
diff --git a/src/layout/components/Sidebar/components/SidebarLogo.vue b/src/layout/components/Sidebar/components/SidebarLogo.vue
index 4aa6d74..1a2fc92 100644
--- a/src/layout/components/Sidebar/components/SidebarLogo.vue
+++ b/src/layout/components/Sidebar/components/SidebarLogo.vue
@@ -3,7 +3,22 @@
- {{ userStore.userInfo.shopName }}
+
+
+
+ {{ userStore.userInfo.shopName }}
+
+
+
+
+
+
+ 门店 1
+ 门店 2
+ 门店 3
+
+
+
@@ -30,7 +45,8 @@ defineProps({
background-color: $sidebar-logo-background;
.title {
- flex-shrink: 0; /* 防止容器在空间不足时缩小 */
+ flex-shrink: 0;
+ /* 防止容器在空间不足时缩小 */
margin-left: 10px;
font-size: 16px;
color: #5a5e66;
diff --git a/src/router/index.ts b/src/router/index.ts
index e85ecdb..8d57ace 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -63,38 +63,6 @@ export const constantRoutes: RouteRecordRaw[] = [
keepAlive: true,
},
},
- {
- path: "credit",
- name: "",
- component: () => import("@/views/data/credit/index.vue"),
- meta: {
- title: "挂账管理",
- affix: false,
- keepAlive: true,
-
- },
- },
- {
- path: "credit-detail",
- name: "",
- component: () => import("@/views/data/credit/detail.vue"),
- meta: {
- title: "挂账明细",
- affix: false,
- keepAlive: true,
- hidden: true
- },
- },
- {
- path: "work",
- name: "",
- component: () => import("@/views/data/work.vue"),
- meta: {
- title: "交班记录",
- affix: false,
- keepAlive: true,
- },
- },
{
path: "401",
component: () => import("@/views/error/401.vue"),
@@ -473,7 +441,6 @@ export const constantRoutes: RouteRecordRaw[] = [
// /**列表end */
-
// ],
// },
// {
diff --git a/src/views/shop/list/index.vue b/src/views/shop/list/index.vue
index a084d3d..efaff9a 100644
--- a/src/views/shop/list/index.vue
+++ b/src/views/shop/list/index.vue
@@ -3,33 +3,16 @@
-
+
-
+
-
+
@@ -42,33 +25,31 @@
添加店铺
-
+
-
+
-
+
{{ scope.row.shopName }}
-
+
未激活
-
+
试用
-
+
正式
-
+
独立小程序
@@ -76,23 +57,24 @@
-
+
快餐版
餐饮版
-
-
- -
+
+
+
+
+
{{ scope.row.shopName }}
+
(主店:)
+
+
+
-
+
@@ -106,17 +88,23 @@
-
+
+
+
编辑
-
+
+
+
激活
更多
-
+
+
+
@@ -136,14 +124,9 @@
-
+
@@ -217,7 +200,7 @@ function dropdownClick(e, row) {
});
getTableData();
})
- .catch(() => {});
+ .catch(() => { });
return;
}
}
@@ -257,6 +240,7 @@ async function getTableData() {
.head-container {
margin-bottom: 20px;
}
+
.shop_info {
display: flex;
@@ -265,8 +249,9 @@ async function getTableData() {
padding-left: 4px;
}
}
+
.el-link {
min-height: 23px;
margin: 0 5px;
}
-
\ No newline at end of file
+
From d0a757957d6011bb963581b9c558758bf36ff3a7 Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Wed, 2 Apr 2025 13:40:02 +0800
Subject: [PATCH 2/4] 1
---
src/views/data/index.vue | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/views/data/index.vue b/src/views/data/index.vue
index 220f131..5d53718 100644
--- a/src/views/data/index.vue
+++ b/src/views/data/index.vue
@@ -52,6 +52,9 @@
营业
+
+
+
今天
昨天
@@ -383,6 +386,7 @@ export default {
saveAmount: null,
},
],
+ storeList: [{ label: "门店1", value: 1 }],
trade: {},
formatDecimal,
topData: "",
From 11b297baa50e2ec0dd8bf93d3e59e2b81e5cd15e Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Wed, 2 Apr 2025 17:14:55 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E6=96=B0=E9=9C=80=E6=B1=82=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9:=E8=8F=9C=E5=8D=95=E8=B0=83=E6=95=B4=EF=BC=8C?=
=?UTF-8?q?=E5=88=86=E5=BA=97=E4=B8=8B=E6=8B=89=E5=A2=9E=E5=8A=A0=EF=BC=8C?=
=?UTF-8?q?=E5=88=86=E5=BA=97=E7=AE=A1=E7=90=86=E5=A2=9E=E5=8A=A0=EF=BC=8C?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BA=97=E9=93=BA=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/admin/system/menu/index.vue | 2 +-
src/views/data/index.vue | 62 +-
src/views/data/sales.vue | 55 +-
src/views/product/index.vue | 5 +-
src/views/product/indexconfig/content.ts | 7 +
.../branchStore/components/activateCode.vue | 60 ++
.../shop/branchStore/components/addShop.vue | 531 ++++++++++++++++++
.../branchStore/components/detailModal.vue | 156 +++++
src/views/shop/branchStore/index.vue | 142 +++++
src/views/shop/list/components/addShop.vue | 113 ++--
src/views/shop/staff/config/search.ts | 18 +
11 files changed, 1017 insertions(+), 134 deletions(-)
create mode 100644 src/views/shop/branchStore/components/activateCode.vue
create mode 100644 src/views/shop/branchStore/components/addShop.vue
create mode 100644 src/views/shop/branchStore/components/detailModal.vue
create mode 100644 src/views/shop/branchStore/index.vue
diff --git a/src/views/admin/system/menu/index.vue b/src/views/admin/system/menu/index.vue
index 3cc209b..140584b 100644
--- a/src/views/admin/system/menu/index.vue
+++ b/src/views/admin/system/menu/index.vue
@@ -40,7 +40,7 @@
}"
@row-click="handleRowClick"
>
-
+
{{ scope.row.title }}
diff --git a/src/views/data/index.vue b/src/views/data/index.vue
index 5d53718..7a177c3 100644
--- a/src/views/data/index.vue
+++ b/src/views/data/index.vue
@@ -47,26 +47,29 @@
-->
-
+
-
-
+
+
-
- 今天
- 昨天
- 最近7天
- 最近30天
- 本周
- 本月
- 自定义
-
-
-
+
+
+ 今天
+ 昨天
+ 最近7天
+ 最近30天
+ 本周
+ 本月
+ 自定义
+
+
+
+
@@ -139,16 +142,16 @@
@@ -168,18 +171,18 @@
@@ -387,6 +390,7 @@ export default {
},
],
storeList: [{ label: "门店1", value: 1 }],
+ storeId: null,
trade: {},
formatDecimal,
topData: "",
diff --git a/src/views/data/sales.vue b/src/views/data/sales.vue
index 561701e..84b4597 100644
--- a/src/views/data/sales.vue
+++ b/src/views/data/sales.vue
@@ -10,14 +10,15 @@
+
+
+
+
+
+
-
+
@@ -32,16 +33,9 @@
本月
自定义
-
+
查询
@@ -57,7 +51,9 @@
-
+
+
+
¥{{ payCount.totalAmount || 0 }}
@@ -66,7 +62,9 @@
-
+
+
+
¥{{ payCount.refundAmount || 0 }}
@@ -75,7 +73,9 @@
-
+
+
+
{{ payCount.saleCount || 0 }}
@@ -84,7 +84,9 @@
-
+
+
+
{{ payCount.refundCount || 0 }}
@@ -145,14 +147,9 @@
-
+
@@ -185,6 +182,8 @@ export default {
downloadLoading: false,
payCount: "",
payCountTotal: 0,
+ storeList: [{ label: "门店1", value: 1 }],
+ storeId: null,
};
},
filters: {
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index 041d104..1136ea5 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -301,10 +301,13 @@ async function handleEditClick(row: IObject) {
// 其他工具栏
function handleToolbarClick(name: string) {
console.log(name);
- if (name === "custom1") {
+ if ( name === "custom1" ) {
// ElMessage.success("点击了自定义1按钮");
myDialogRef.value.open();
}
+ if ( name === "custom2" ) { //商品同步
+
+ }
}
async function confirm() {
let res = await UserAPI.stockWarning(form.warnLine)
diff --git a/src/views/product/indexconfig/content.ts b/src/views/product/indexconfig/content.ts
index efd789d..1ff4f71 100644
--- a/src/views/product/indexconfig/content.ts
+++ b/src/views/product/indexconfig/content.ts
@@ -66,6 +66,13 @@ const contentConfig: IContentConfig
= {
name: "custom1",
auth: "import",
},
+ {
+ icon: "refresh",
+ text: "同步",
+ type: "danger",
+ name: "custom2",
+ auth: "import",
+ },
],
cols: [
// { type: "selection", width: 50, align: "center" },
diff --git a/src/views/shop/branchStore/components/activateCode.vue b/src/views/shop/branchStore/components/activateCode.vue
new file mode 100644
index 0000000..7b77d78
--- /dev/null
+++ b/src/views/shop/branchStore/components/activateCode.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+ 注:输入有效激活码表示添加的同时直接激活该店铺。
+
+
+
+ 取消
+ 确定
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/shop/branchStore/components/addShop.vue b/src/views/shop/branchStore/components/addShop.vue
new file mode 100644
index 0000000..433a32b
--- /dev/null
+++ b/src/views/shop/branchStore/components/addShop.vue
@@ -0,0 +1,531 @@
+
+
+
+
+
+
+
+
+
+ 单店
+ 连锁店
+ 加盟店
+
+ 请谨慎修改!!!
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 先付费
+ 后付费
+
+ 请谨慎修改!!!
+
+
+
+ 不可直接管理
+ 直接管理
+
+ 请谨慎修改!!!
+
+
+
+ 试用
+ 正式
+
+
+
+
+ 注:输入有效激活码表示添加的同时直接激活该店铺。
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择坐标
+
+
+
+
+
+
+
+
+
+
+
+
+ 开启
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.name }}-{{ item.address }}
+
经纬度:{{ item.location.lng }},{{ item.location.lat }}
+
+
+ 选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/shop/branchStore/components/detailModal.vue b/src/views/shop/branchStore/components/detailModal.vue
new file mode 100644
index 0000000..da4a678
--- /dev/null
+++ b/src/views/shop/branchStore/components/detailModal.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/shop/branchStore/index.vue b/src/views/shop/branchStore/index.vue
new file mode 100644
index 0000000..8ba25d3
--- /dev/null
+++ b/src/views/shop/branchStore/index.vue
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.shopName }}{{ scope.row.shopName }}
+ 账号:{{ scope.row.shopName }}
+ 联系电话:{{ scope.row.phone }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dayjs(scope.row.expireTime).format("YYYY-MM-DD HH:mm:ss") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/shop/list/components/addShop.vue b/src/views/shop/list/components/addShop.vue
index 44f3395..433a32b 100644
--- a/src/views/shop/list/components/addShop.vue
+++ b/src/views/shop/list/components/addShop.vue
@@ -1,17 +1,7 @@
-
+
-
+
@@ -23,22 +13,18 @@
请谨慎修改!!!
-
-
-
+
+
+ 是
+ 否
+
+
+
+
+
+
@@ -78,24 +64,14 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
diff --git a/src/views/finance/supplierBill/index.vue b/src/views/finance/supplierBill/index.vue
new file mode 100644
index 0000000..74b06c0
--- /dev/null
+++ b/src/views/finance/supplierBill/index.vue
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+ 账单总金额(全部/本月)
+ 2000/1000
+
+
+
+ 已付款总金额(全部/本月)
+ 2000/1000
+
+
+ 未付款总金额(全部/本月)
+ 2000/1000
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 账单记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/finance/supplierBill/paymentRecord.vue b/src/views/finance/supplierBill/paymentRecord.vue
new file mode 100644
index 0000000..d8f1b87
--- /dev/null
+++ b/src/views/finance/supplierBill/paymentRecord.vue
@@ -0,0 +1,131 @@
+
+
+
+
+
+ 供应商:供应商名称
+
+
+
+
+
+
+
+
+ {{ scope.row.shopName }}({{ scope.row.shopName }})
+ 账号:{{ scope.row.shopName }}
+ 联系电话:{{ scope.row.phone }}
+
+
+
+
+
+
+
+
+ 员工名称:{{ scope.row.shopName }}
+ 员工编号:{{ scope.row.shopName }}
+ 员工账号:{{ scope.row.phone }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/inventory/consumables/components/add-haocai copy.vue b/src/views/inventory/consumables/components/add-haocai copy.vue
deleted file mode 100644
index f4a6d8c..0000000
--- a/src/views/inventory/consumables/components/add-haocai copy.vue
+++ /dev/null
@@ -1,197 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 确 定
-
-
-
- {{ dialogtitle }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 确 定
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/product/indexconfig/content.ts b/src/views/product/indexconfig/content.ts
index 1ff4f71..9598603 100644
--- a/src/views/product/indexconfig/content.ts
+++ b/src/views/product/indexconfig/content.ts
@@ -59,13 +59,6 @@ const contentConfig: IContentConfig = {
pk: "id",
toolbar: [
"add",
- {
- icon: "edit",
- text: "库存预警",
- type: "info",
- name: "custom1",
- auth: "import",
- },
{
icon: "refresh",
text: "同步",
@@ -73,6 +66,14 @@ const contentConfig: IContentConfig = {
name: "custom2",
auth: "import",
},
+ {
+ icon: "edit",
+ text: "库存预警",
+ type: "info",
+ name: "custom1",
+ auth: "import",
+ },
+
],
cols: [
// { type: "selection", width: 50, align: "center" },
diff --git a/src/views/shop/branchStore/components/activateCode.vue b/src/views/shop/branchStore/components/activateCode.vue
deleted file mode 100644
index 7b77d78..0000000
--- a/src/views/shop/branchStore/components/activateCode.vue
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
- 注:输入有效激活码表示添加的同时直接激活该店铺。
-
-
-
- 取消
- 确定
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/shop/branchStore/components/addShop.vue b/src/views/shop/branchStore/components/addShop.vue
deleted file mode 100644
index 433a32b..0000000
--- a/src/views/shop/branchStore/components/addShop.vue
+++ /dev/null
@@ -1,531 +0,0 @@
-
-
-
-
-
-
-
-
-
- 单店
- 连锁店
- 加盟店
-
- 请谨慎修改!!!
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 先付费
- 后付费
-
- 请谨慎修改!!!
-
-
-
- 不可直接管理
- 直接管理
-
- 请谨慎修改!!!
-
-
-
- 试用
- 正式
-
-
-
-
- 注:输入有效激活码表示添加的同时直接激活该店铺。
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 选择坐标
-
-
-
-
-
-
-
-
-
-
-
-
- 开启
- 关闭
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ item.name }}-{{ item.address }}
-
经纬度:{{ item.location.lng }},{{ item.location.lat }}
-
-
- 选择
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/shop/branchStore/components/detailModal.vue b/src/views/shop/branchStore/components/detailModal.vue
deleted file mode 100644
index da4a678..0000000
--- a/src/views/shop/branchStore/components/detailModal.vue
+++ /dev/null
@@ -1,156 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/shop/branchStore/index.vue b/src/views/shop/branchStore/index.vue
index 8ba25d3..668ecf7 100644
--- a/src/views/shop/branchStore/index.vue
+++ b/src/views/shop/branchStore/index.vue
@@ -19,33 +19,42 @@
-
+
- {{ scope.row.shopName }}{{ scope.row.shopName }}
+ {{ scope.row.shopName }}({{ scope.row.shopName }})
账号:{{ scope.row.shopName }}
联系电话:{{ scope.row.phone }}
-
+
-
+
-
+
-
+
-
- {{ dayjs(scope.row.expireTime).format("YYYY-MM-DD HH:mm:ss") }}
-
+
+
+
+
+
+
+
+ 同步启用
+
+
+ 账号启用
+
@@ -108,6 +117,21 @@ async function getTableData() {
console.log(error);
}
}
+function handleSync(e) {
+ console.log(e)
+ ElMessageBox.confirm(`同步功能开启后不能关闭,请确认是否给${e.shopName}开启同步?`, "提示", {
+ confirmButtonText: "确认",
+ cancelButtonText: "取消",
+ type: "warning",
+ }).then(async () => {
+ const res = await ShopApi.delete({ id: row.id });
+ ElMessage({
+ type: "success",
+ message: "同步成功",
+ });
+ getTableData();
+ }).catch(() => { });
+}
// 重置查询
function resetHandle() {
state.query.name = "";