diff --git a/src/api/app/user.js b/src/api/app/user.js
index f72911f..1a275d5 100644
--- a/src/api/app/user.js
+++ b/src/api/app/user.js
@@ -15,3 +15,16 @@ export function appUpdateUserSetting(data) {
data
})
}
+
+// 根据精准手机号获取用户信息
+export function appGetByEqPhone(eqPhonenumber) {
+ return request({
+ url: "/app/user/getByEqPhone",
+ method: 'get',
+ params: {
+ eqPhonenumber
+ }
+ })
+}
+
+
diff --git a/src/api/mch/storeStaff.js b/src/api/mch/storeStaff.js
new file mode 100644
index 0000000..1be0ccc
--- /dev/null
+++ b/src/api/mch/storeStaff.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询店铺员工列表
+export function mchListStoreStaff(query) {
+ return request({
+ url: '/mch/storeStaff/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询店铺员工详细
+export function mchGetStoreStaff(employId) {
+ return request({
+ url: '/mch/storeStaff/' + employId,
+ method: 'get'
+ })
+}
+
+// 新增店铺员工
+export function mchAddStoreStaff(data) {
+ return request({
+ url: '/mch/storeStaff',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改店铺员工
+export function mchUpdateStoreStaff(data) {
+ return request({
+ url: '/mch/storeStaff',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除店铺员工
+export function mchDelStoreStaff(employId) {
+ return request({
+ url: '/mch/storeStaff/' + employId,
+ method: 'delete'
+ })
+}
diff --git a/src/components/Business/SmUser/UserSearchInput.vue b/src/components/Business/SmUser/UserSearchInput.vue
new file mode 100644
index 0000000..20b297c
--- /dev/null
+++ b/src/components/Business/SmUser/UserSearchInput.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
diff --git a/src/router/mchRouter.js b/src/router/mchRouter.js
index d279718..e06e524 100644
--- a/src/router/mchRouter.js
+++ b/src/router/mchRouter.js
@@ -25,6 +25,17 @@ export const mchRoutes = [
icon: 'store'
}
},
+ {
+ path: 'storeStaff',
+ component: () => import('../views/mch/storeStaff'),
+ hidden: false,
+ name: "MyStoreStaff",
+ meta: {
+ noCache: false,
+ title: '店铺员工',
+ icon: 'agent'
+ }
+ },
{
path: 'store/:storeId',
component: () => import('../views/mch/store/detail.vue'),
diff --git a/src/utils/constants.js b/src/utils/constants.js
index 1ca08af..75a2268 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -8,6 +8,8 @@ export const views = {
withdraw: 'withdraw', // 提现
recharge: 'recharge', // 充值订单
agent: 'agent', // 代理商
+
+ mchStore: 'mchStore', // 商户中心的店铺
}
// 代理商视图
diff --git a/src/utils/mixins.js b/src/utils/mixins.js
index a1f07aa..59a2ef3 100644
--- a/src/utils/mixins.js
+++ b/src/utils/mixins.js
@@ -160,7 +160,7 @@ export const $recharge = {
},
canRefund() {
return (row) => {
- return row.status === '2';
+ return row.status === '2' && row.isFinished;
}
},
canClose() {
diff --git a/src/views/mch/device/index.vue b/src/views/mch/device/index.vue
index 55dcfc7..ddae4df 100644
--- a/src/views/mch/device/index.vue
+++ b/src/views/mch/device/index.vue
@@ -168,11 +168,6 @@
diff --git a/src/views/ss/storeStaff/components/StoreStaffEditDialog.vue b/src/views/ss/storeStaff/components/StoreStaffEditDialog.vue
index f1d516a..7a960db 100644
--- a/src/views/ss/storeStaff/components/StoreStaffEditDialog.vue
+++ b/src/views/ss/storeStaff/components/StoreStaffEditDialog.vue
@@ -1,12 +1,15 @@
-
-
+
+
-
+
-
+
+
+
+
@@ -51,21 +54,60 @@