970319330@qq.com hace 1 semana
padre
commit
3c12dfea61

+ 2 - 2
src/Form/ourServiceMaterial/add.vue

@@ -1,12 +1,12 @@
 <template>
     <div>
-        <el-button
+        <!-- <el-button
             :size="btn_size ? btn_size : 'small'"
             type="primary"
             @click="show"
         >
             {{ title_btn ? $t(title_btn) : $t("新 建") }}
-        </el-button>
+        </el-button> -->
         <el-drawer
             :title="title_drawer ? $t(title_drawer) : $t(`新建服务物料`)"
             :visible.sync="dialogFormVisible"

+ 1 - 0
src/bgj/headquartersServiceMaterial/index.vue

@@ -258,6 +258,7 @@
                         :list="scope.data.column.data.attinfos"
                         :deletebtn="false"
                     ></previewImage>
+                    <span v-else>--</span>
                 </p>
                 <p v-else-if="scope.data.column.columnname === 'brand'">
                     <span

+ 13 - 0
src/bgj/integralgoverning/index.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>
+        积分调整
+    </div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style></style>

+ 13 - 0
src/bgj/integrationrule/index.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>
+        积分规则
+    </div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style></style>

+ 1 - 0
src/bgj/ourServiceMaterial/index.vue

@@ -114,6 +114,7 @@
                         :list="scope.data.column.data.attinfos"
                         :deletebtn="false"
                     ></previewImage>
+                    <span v-else>--</span>
                 </p>
                 <p v-else-if="scope.data.column.columnname === 'domain'">
                     <span

+ 8 - 4
src/bgj/ourServiceMaterial/modules/detail.vue

@@ -16,7 +16,7 @@
         >
             <div slot="tags"></div>
             <template slot="customOperation">
-                <Edit
+                <!-- <Edit
                     v-if="mainData.isenable == 0"
                     class="inline-16"
                     title_btn="编辑"
@@ -24,7 +24,7 @@
                     btn_size="mini"
                     :data="mainData"
                     @onSuccess="queryMainData"
-                ></Edit>
+                ></Edit> -->
                 <el-button
                     v-if="
                         mainData.isenable == 0 &&
@@ -73,7 +73,7 @@
 </template>
 
 <script>
-import Edit from "@/Form/ourServiceMaterial/add";
+// import Edit from "@/Form/ourServiceMaterial/add";
 import BaseInfo from "@/bgj/headquartersServiceMaterial/modules/baseInfo";
 import saleClass from "./saleClass";
 export default {
@@ -87,7 +87,11 @@ export default {
             deleteLoading: false,
         };
     },
-    components: { Edit, BaseInfo, saleClass },
+    components: {
+        // Edit,
+        BaseInfo,
+        saleClass,
+    },
     methods: {
         async queryMainData() {
             const res = await this.$api.requested({

+ 13 - 0
src/bgj/pointsbasedorder/index.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>
+        积分订单
+    </div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style></style>

+ 13 - 0
src/bgj/pointsbasedorder/modules/detail.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>积分订单详情</div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style>
+
+</style>

+ 13 - 0
src/bgj/pointsbasedproducts/index.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>
+        积分商品管理
+    </div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style></style>

+ 2 - 2
src/bgj/serviceAppointment/index.vue

@@ -133,7 +133,7 @@
             <template v-slot:tbOpreation="scope">
                 <changeBill
                     v-if="
-                        mainData.status == '待处理' &&
+                        scope.data.data.status == '待处理' &&
                         tool.checkAuth($route.name, 'changeBill')
                     "
                     class="inline-16"
@@ -142,7 +142,7 @@
                 ></changeBill>
                 <assignAgent
                     v-if="
-                        mainData.status == '待处理' &&
+                        scope.data.data.status == '待处理' &&
                         tool.checkAuth($route.name, 'assignAgent')
                     "
                     class="inline-16"

+ 13 - 0
src/bgj/staffpointsaccount/index.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>
+        人员积分管理
+    </div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style></style>

+ 60 - 0
src/router/bgj.js

@@ -114,5 +114,65 @@ const bgj = [
       },
     ],
   },
+  {
+    path: '/staffpointsaccount',
+    name: 'staffpointsaccount',
+    meta: {
+      title: '人员积分管理',
+      ast_nav: true,
+      keeproute: true,
+    },
+    component: () => import(/* webpackChunkName: "about" */ '@/bgj/staffpointsaccount/index')
+  }, {
+    path: '/integrationrule',
+    name: 'integrationrule',
+    meta: {
+      title: '积分规则',
+      ast_nav: true,
+      keeproute: true,
+    },
+    component: () => import(/* webpackChunkName: "about" */ '@/bgj/integrationrule/index')
+  }, {
+    path: '/integralgoverning',
+    name: 'integralgoverning',
+    meta: {
+      title: '积分调整',
+      ast_nav: true,
+      keeproute: true,
+    },
+    component: () => import(/* webpackChunkName: "about" */ '@/bgj/integralgoverning/index')
+  }, {
+    path: '/pointsbasedproducts',
+    name: 'pointsbasedproducts',
+    meta: {
+      title: '积分商品管理',
+      ast_nav: true,
+      keeproute: true,
+    },
+    component: () => import(/* webpackChunkName: "about" */ '@/bgj/pointsbasedproducts/index')
+  },
+  {
+    path: '/pointsbasedorder',
+    name: 'pointsbasedorder',
+    meta: {
+      title: '积分订单',
+      ast_nav: true,
+      keeproute: true,
+    },
+    component: () => import(/* webpackChunkName: "about" */ '@/bgj/pointsbasedorder/index'),
+    children: [
+      {
+        path: '/pointsbasedorderDetail',
+        name: 'pointsbasedorder',
+        meta: {
+          title: '积分订单详情',
+          ast_nav: true,
+          keeproute: true,
+        },
+        component: () =>
+          import(/* webpackChunkName: "about" */ '@/bgj/pointsbasedorder/modules/detail'),
+      },
+    ],
+  }
 ];
 export default bgj;

+ 11 - 1
src/router/index.js

@@ -173,7 +173,17 @@ let routes = [
 ];
 
 
-routes[2].children = [...routes[2].children,...HManagement,...SManagement,...HDrpManagement,...SDrpManagement,...WebsiteManagement,...OptionSystem,...bgj]
+routes[2].children = [...routes[2].children,...HManagement,...SManagement,...HDrpManagement,...SDrpManagement,...WebsiteManagement,...OptionSystem,...bgj, {
+  path: '/404',
+  name: 'notFound',
+  meta: { title: '404', ast_nav: false },
+  component: () => import(/* webpackChunkName: "error" */ '@/views/errorPage/404.vue')
+}]
+
+routes.push({
+  path: '*',
+  redirect: '/404'
+})
 
 const router = new VueRouter({
   mode: 'hash',

+ 45 - 0
src/views/errorPage/404.vue

@@ -0,0 +1,45 @@
+<template>
+  <div class="error-page">
+    <div class="error-content">
+      <div class="error-icon">404</div>
+      <h2>页面不存在</h2>
+      <p>抱歉,您访问的页面不存在或已被移除</p>
+      <el-button type="primary" @click="$router.push('/home')">返回首页</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'NotFound'
+}
+</script>
+
+<style scoped>
+.error-page {
+  height: 100%;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  background: #f0f2f5;
+}
+.error-content {
+  text-align: center;
+}
+.error-icon {
+  font-size: 120px;
+  font-weight: bold;
+  color: #c0c4cc;
+  line-height: 1;
+}
+h2 {
+  font-size: 24px;
+  color: #606266;
+  margin: 20px 0 12px;
+}
+p {
+  font-size: 14px;
+  color: #909399;
+  margin-bottom: 24px;
+}
+</style>