Pārlūkot izejas kodu

1、增加基础功能相关页面

zhoux 2 gadi atpakaļ
vecāks
revīzija
97264e96ff

+ 19 - 5
src/components/base/index-button-group/base-index-button.vue

@@ -3,7 +3,8 @@
   <Button ref="button" :loading="loading"
           :disabled="disabledFlag"
           :icon="'iconfont iconfont icon-' + (!this.$config.button[name]?'':this.$config.button[name].icon)"
-          :type="name=='add'?'success':'default'" @click="handleClick" >{{ vm.$t(name) + '(' + vm.$config.button[name].hotKey + ')'}}
+          :type="name=='add'?'success':'default'" @click="handleClick">
+    {{ setButtonName(name) }}
     <Poptip popper-class="base-button-class" trigger="hover" transfer placement="bottom" v-model="visible">
       <Icon type="ios-arrow-down" v-if="childOptions.length > 0 && !visible"></Icon>
       <Icon type="ios-arrow-up" v-if="childOptions.length > 0 && visible"></Icon>
@@ -77,13 +78,26 @@ export default {
   },
   methods: {
     /**
+     * @desc   : 设置快捷键
+     * @author : 周兴
+     * @date   : 2024/1/30 11:44
+     */
+    setButtonName(name){
+      let title = vm.$t(name)
+      if(this.$config.button[name] && this.$config.button[name].hotKey){
+        return title + '(' + this.$config.button[name].hotKey + ')';
+      }else{
+        return title;
+      }
+    },
+    /**
      * @desc   : 鼠标进入事件
      * @author : 周兴
      * @date   : 2023/10/31 9:06
      */
-    handleMouseEnter(e){
+    handleMouseEnter(e) {
       // console.log('ee',e)
-      if(this.childOptions && this.childOptions.length > 0){
+      if (this.childOptions && this.childOptions.length > 0) {
         this.visible = true;
       }
     },
@@ -93,9 +107,9 @@ export default {
      * @date   : 2022/4/24 20:12
      */
     handleClick() {
-      if(this.childOptions && this.childOptions.length > 0){
+      if (this.childOptions && this.childOptions.length > 0) {
         this.visible = true;
-      }else{
+      } else {
         this.$refs.button.$el.focus();
         this.$emit('click')
       }

+ 4 - 1
src/libs/base/util.js

@@ -45,7 +45,9 @@ export const getMenuByRouter = (list, access) => {
       if (item.children && item.children.length > 0) {
         obj.children = item.children.copy();
       }
-      res.push(obj);
+      if (!item.meta.hideInMenu) {
+        res.push(obj);
+      }
     }
     // if ((hasChild(item) || (item.meta && item.meta.showAlways)) && showThisMenuEle(item, access)) {
     //   obj.children = getMenuByRouter(item.children, access)
@@ -53,6 +55,7 @@ export const getMenuByRouter = (list, access) => {
     // if (item.meta && item.meta.href) obj.href = item.meta.href
     // if (showThisMenuEle(item, access)) res.push(obj)
   })
+  console.log(res)
   return res
 }
 

+ 1 - 0
src/libs/tools/tools.js

@@ -188,6 +188,7 @@ export const objEqual = (obj1, obj2) => {
 }
 
 
+
 /**
  * @param {Array} target 目标数组
  * @param {Array} arr 需要查询的数组

+ 1 - 0
src/locale/lang/zh-CN.js

@@ -62,6 +62,7 @@ export const button = {
   deletePivot: '删除透视表',
   print: '打印',
   disable: '停用',
+  changeDisplayNo:'调整顺序',
   save: '保存',
   saveQuotation: '报价',
   saveT: '暂存',

+ 228 - 0
src/router/routers.js

@@ -1,4 +1,5 @@
 import Main from '@/components/main'
+import parentView from '_c/base/parent-view'
 
 /**
  * iview-admin中meta除了原生参数外可配置的参数:
@@ -69,6 +70,233 @@ let menu = [
     ]
   },
   {
+    path: '',
+    name: '系统管理',
+    component: Main,
+    meta: {
+      title: '系统管理',
+      notCache: true
+    },
+    children: [
+      {
+        path: '',
+        name: '系统管理',
+        component: parentView,
+        flgRight:true,
+        meta: {
+          title: '系统管理',
+          notCache: true,
+          flgRight:true,
+        },
+        children: [
+          {
+            path: '/core/org/index',
+            name: '部门管理',
+            component: () => import('@/view/core/org/index.vue'),
+            meta: {
+              title: '部门管理',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/core/role/index',
+            name: '角色管理',
+            component: () => import('@/view/core/role/index.vue'),
+            meta: {
+              title: '角色管理',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/core/staff/index',
+            name: '员工管理',
+            component: () => import('@/view/core/staff/index.vue'),
+            meta: {
+              title: '员工管理',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/core/system-setting/index',
+            name: '系统参数',
+            component: () => import('@/view/core/system-setting/index.vue'),
+            meta: {
+              title: '系统参数',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/core/basicData/index',
+            name: '基础资料',
+            component: () => import('@/view/core/basic-data/index.vue'),
+            meta: {
+              title: '基础资料',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+        ]
+      },
+      {
+        path: '',
+        name: '商品资料',
+        component: parentView,
+        flgRight:true,
+        meta: {
+          title: '商品资料',
+          notCache: true,
+          flgRight:true,
+        },
+        children:[
+          {
+            path: '/core/goodsAttr/index',
+            name: '商品属性',
+            component: () => import('@/view/core/goods-attr/index.vue'),
+            meta: {
+              title: '商品属性',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/core/goods/index',
+            name: '商品档案',
+            component: () => import('@/view/core/goods/index.vue'),
+            meta: {
+              title: '商品档案',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+        ]
+      },
+      {
+        path: '',
+        name: '客户管理',
+        component: parentView,
+        flgRight:true,
+        meta: {
+          title: '客户管理',
+          notCache: true,
+          flgRight:true,
+        },
+        children:[
+          {
+            path: '/core/customer/index',
+            name: '客户资料',
+            component: () => import('@/view/core/customer/index.vue'),
+            meta: {
+              title: '客户资料',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/core/customerFollow/index',
+            name: '客户跟进',
+            component: () => import('@/view/core/customer-follow/index.vue'),
+            meta: {
+              title: '客户跟进',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+        ]
+      }
+    ]
+  },
+  {
+    path: '',
+    name: '采购管理',
+    component: Main,
+    meta: {
+      title: '采购管理',
+      notCache: true
+    },
+    children:[
+      {
+        path: '',
+        name: '基础数据',
+        component: parentView,
+        flgRight: true,
+        meta: {
+          title: '基础数据',
+          notCache: true,
+          flgRight: true,
+        },
+        children: [
+          {
+            path: '/core/supplier/index',
+            name: '供应商',
+            component: () => import('@/view/core/supplier/index.vue'),
+            meta: {
+              title: '供应商',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+        ]
+      },
+      {
+        path: '',
+        name: '采购业务',
+        component: parentView,
+        flgRight: true,
+        meta: {
+          title: '采购业务',
+          notCache: true,
+          flgRight: true,
+        },
+        children: [
+          {
+            path: '/pur/purOrder/index',
+            name: '采购订单',
+            component: () => import('@/view/pur/pur-order/index.vue'),
+            meta: {
+              title: '采购订单',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/pur/purReject/index',
+            name: '采购退货',
+            component: () => import('@/view/pur/pur-reject/index.vue'),
+            meta: {
+              title: '采购退货',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/pur/purEnter/index',
+            name: '采购入库',
+            component: () => import('@/view/pur/pur-enter/index.vue'),
+            meta: {
+              title: '采购入库',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+          {
+            path: '/pur/purBySale/index',
+            name: '以销定采',
+            component: () => import('@/view/pur/pur-by-sale/index.vue'),
+            meta: {
+              title: '以销定采',
+              notCache: false,
+              flgRight:true,
+            },
+          },
+        ]
+      }
+    ]
+  },
+  {
     path: '/401',
     name:
       'error_401',

+ 4 - 5
src/store/module/app.js

@@ -14,8 +14,7 @@ import {
 import router from '@/router'
 import config from '@/config'
 import { loadMenu } from '@/libs/base/router-util'
-import routers from '@/router/basic-router'
-import coreRouters from '@/router/core-router'
+import routers from '@/router/routers'
 const { homeName } = config
 
 const closePage = (state, route) => {
@@ -44,9 +43,9 @@ export default {
     // menuList: (state, getters, rootState) => getMenuByRouter(getMoreMenu(), rootState.user.access),
     //todo 临时拼接基础数据的路由routers
     // 原版  ↓
-    menuList: (state, getters, rootState) => getMenuByRouter(state.menuList.length > 0 ? state.menuList : loadMenu(), rootState.user.access),
-    // menuList: (state, getters, rootState) => getMenuByRouter([...routers,...coreRouters, ...state.menuList.length > 0 ? state.menuList : loadMenu()], rootState.user.access),
-    // menuList: (state, getters, rootState) => getMenuByRouter(routers, rootState.user.access),
+    // menuList: (state, getters, rootState) => getMenuByRouter(state.menuList.length > 0 ? state.menuList : loadMenu(), rootState.user.access),
+    // menuList: (state, getters, rootState) => getMenuByRouter([...routers, ...state.menuList.length > 0 ? state.menuList : loadMenu()], rootState.user.access),
+    menuList: (state, getters, rootState) => getMenuByRouter(routers, rootState.user.access),
     errorCount: state => state.errorList.length
   },
   mutations: {

+ 1 - 0
src/store/module/user.js

@@ -224,6 +224,7 @@ export default {
       // todo 前台保存权限
       // commit('setAccess', data.user.funCodeList)
       let menu = data.menu;
+      menu = []
       let menuCopy = menu.copy();
       // menuCopy = menuCopy.filter(it => it.flgRight && it.objectCode !== 'home')
       menuCopy = menuCopy.filter(it =>  it.objectCode !== 'home')

+ 13 - 0
src/view/core/basic-data/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/core/customer-follow/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/core/customer/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/core/goods-attr/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/core/goods/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/core/org/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "org"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 138 - 0
src/view/core/role/index.vue

@@ -0,0 +1,138 @@
+<!-- @desc:角色管理  @auth:周兴  @time:2024/1/30 9:21 -->
+<template>
+  <div class="main-div" ref="mainDiv">
+    <loading :loading="loading" v-if="!modalVisible"></loading>
+    <!--按钮区-->
+    <BaseIndexButtonGroup ref="BaseIndexButtonGroup" id="BaseIndexButtonGroup">
+      <template #left>
+        <!--    查询    -->
+        <BaseIndexButton ref="search" name="search"></BaseIndexButton>
+        <!--    清空条件    -->
+        <BaseIndexButton ref="clear" name="clear"></BaseIndexButton>
+        <!--    编辑    -->
+        <BaseIndexButton ref="edit" name="edit"></BaseIndexButton>
+        <!--    启用    -->
+        <BaseIndexButton ref="enable" name="enable"></BaseIndexButton>
+        <!--    停用    -->
+        <BaseIndexButton ref="disable" name="disable"></BaseIndexButton>
+        <!--    调整顺序    -->
+        <BaseIndexButton ref="changeDisplayNo" name="changeDisplayNo"></BaseIndexButton>
+      </template>
+      <template #right>
+        <!--   新建     -->
+        <BaseIndexButton ref="add" name="add"></BaseIndexButton>
+      </template>
+    </BaseIndexButtonGroup>
+
+    <!--  查询条件区域  -->
+    <div id="search-cond-div" ref="search-cond-div" class="search-cond-class">
+      <SearchCond ref="searchCond" v-model="searchCond"
+                  @collapse-change="collapseChange" :setFlag="false"
+                  :search-content="searchContent"></SearchCond>
+    </div>
+
+    <!--  表格部分  -->
+    <div>
+      <DkTable :id="'table-'+$options.name" ref="table-select" :data="tableData"
+               :page-total="pageInfo.total"
+               :current-page="pageInfo.currentPage"
+               :height="tableHeight" :primaryKey="primaryKey"
+               :multiple="false"
+               :choose-flag="false"
+               @pageChange="pageSizeChange">
+        <DkTableColumn field="角色编码" type="link"
+                       @on-link="handleLink(Object.assign($event,{button:'edit'}))"></DkTableColumn>
+        <DkTableColumn field="角色名称"></DkTableColumn>
+        <DkTableColumn field="功能权限"></DkTableColumn>
+        <DkTableColumn field="数据权限"></DkTableColumn>
+        <DkTableColumn field="敏感数据"></DkTableColumn>
+        <DkTableColumn field="flgValid" type="switch" ></DkTableColumn>
+        <DkTableColumn field="remarks" width="auto"></DkTableColumn>
+      </DkTable>
+    </div>
+
+    <!--新建编辑-->
+    <DkModal
+      :loading="loading"
+      v-model="editAddModal"
+      ref="modal_editAdd"
+      @on-visible-change="handleVisibleModal"
+      @modalOk="save"
+      :saveFlag="true"
+      :title="modalTitle"
+    >
+      <DkForm ref="formInline" v-model="formData" :col-count="1">
+        <!--  角色编码  -->
+        <DkFormItem prop="角色编码" :required="true">
+          <InputPop v-model="formData.roleName" />
+        </DkFormItem>
+        <!--  角色名称  -->
+        <DkFormItem prop="角色名称" :required="true">
+          <InputPop v-model="formData.roleName" />
+        </DkFormItem>
+        <!--  功能权限  -->
+        <DkFormItem prop="功能权限" :data-type="$config.dataType.array">
+          <SelectMagnifier v-model="formData.functionIds" :display-text="formData.functionNames"
+                           :type="this.$config.MagnifierType.organization"
+                           :multiple="false"></SelectMagnifier>
+        </DkFormItem>
+        <!--  数据权限  -->
+        <DkFormItem prop="数据权限" :data-type="$config.dataType.array">
+          <SelectMagnifier v-model="formData.purviewIds" :display-text="formData.purviewNames"
+                           :type="this.$config.MagnifierType.organization"
+                           :multiple="false"></SelectMagnifier>
+        </DkFormItem>
+        <!--  敏感数据  -->
+        <DkFormItem prop="敏感数据" >
+          <SelectMagnifier v-model="formData.functionIds" :display-text="formData.functionNames"
+                           :type="this.$config.MagnifierType.organization"
+                           :multiple="false"></SelectMagnifier>
+        </DkFormItem>
+        <!--   备注     -->
+        <DkFormItem prop="remarks">
+          <InputPop v-model="formData.remarks" textareaFlag/>
+        </DkFormItem>
+      </DkForm>
+    </DkModal>
+  </div>
+</template>
+
+<script>
+import {indexMixin} from "@/mixins";
+
+export default {
+  name: "index",
+  mixins: [indexMixin],
+  data() {
+    let self = this
+    return {
+      formData: {
+        roleCode:null,
+        roleName: '',
+        functions: null,
+        purviews: null,
+        displayNo: 0,
+        remarks: ''
+      },
+      // 查询条件
+      searchContent: [
+        {
+          itemCode: 'roleName',
+        },
+        self.$config.flgValidSearch // 有效标识
+      ],
+    }
+  },
+  methods:{
+
+  },
+  created() {
+    this.primaryKey = 'roleId'  // 设置主键Id
+    this.routeObjName = 'role'  // 设置路由名称
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 0 - 156
src/view/core/staff/form.vue

@@ -1,156 +0,0 @@
-<!-- @desc:新建编辑员工  @auth:周兴  @time:2023/7/18 11:17 -->
-<template>
-  <DkForm ref="formInline" v-model="formData" :col-count="1">
-    <DkFormItem prop="staffCode" :required="true">
-      <InputPop v-model="formData.staffCode" ref="staffCode"/>
-    </DkFormItem>
-    <DkFormItem prop="staffName" :required="true">
-      <InputPop v-model="formData.staffName" ref="staffName"/>
-    </DkFormItem>
-
-    <!--    岗位    -->
-    <DkFormItem prop="jobId" :required="true" :data-type="this.$config.dataType.number" :label="$t('jobName')">
-      <SelectPop v-model="formData.jobId" ref="jobId" :multiple="false"
-                 :options="jobList"
-                 labelKey="jobName"
-                 valueKey="jobId">
-      </SelectPop>
-    </DkFormItem>
-
-    <!--    职务    -->
-    <DkFormItem prop="postId" :required="true" :data-type="this.$config.dataType.number">
-      <SelectPop v-model="formData.postId" ref="postId" :multiple="false"
-                 :options="postList"
-                 labelKey="postName"
-                 valueKey="postId">
-      </SelectPop>
-    </DkFormItem>
-    <!--    组织机构    -->
-    <DkFormItem prop="orgId" :required="true" :data-type="this.$config.dataType.number">
-      <SelectPop v-model="formData.orgId" ref="orgId" :multiple="false"
-                 :tree-flag="true"
-                 :show-toolbar="true"
-                 :tree-strict="false"
-                 :options="orgList"
-                 labelKey="orgName"
-                 valueKey="orgId">
-      </SelectPop>
-    </DkFormItem>
-    <!--    员工状态    -->
-    <DkFormItem prop="staffStatus" :required="true">
-      <SelectPop v-model="formData.staffStatus" ref="staffStatus" :multiple="false"
-                 :options="staffStatusList"
-                 :disabled="modalParams.button === $config.formMode.edit"
-                 labelKey="kindName"
-                 valueKey="kindCode">
-      </SelectPop>
-    </DkFormItem>
-    <!--    备注    -->
-    <DkFormItem prop="remarks">
-      <InputPop v-model="formData.remarks" textareaFlag/>
-    </DkFormItem>
-  </DkForm>
-</template>
-
-<script>
-
-import {modalMixin} from "@/mixins/modal";
-
-export default {
-  name: "staff-form",
-  mixins: [modalMixin],
-  data(){
-    return{
-      orgList:[],
-      staffStatusList:[],
-      postList:[],
-      jobList:[]
-    }
-  },
-  methods:{
-    /**
-     * @desc   : 加载数据
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:09
-     */
-    initData(type) {
-      // 加载工种数据源
-      this.getJob();
-      // 加载职务数据源
-      this.getPost();
-      // 加载组织部门数据源
-      this.getOrg();
-      //获取员工状态
-      this.getStaffStatus();
-    },
-    /**
-     * @desc   : 获取工种数据源
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:10
-     */
-    getJob() {
-      let params = {
-        ftyId: this.$store.state.user.ftyId
-      }
-      this.excute(this.$service.commonService, this.$service.commonService.getJob, params).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.jobList = res.data;
-        }
-      })
-    },
-    /**
-     * @desc   : 获取职务数据源
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:10
-     */
-    getPost() {
-      let params = {
-        ftyId: this.$store.state.user.ftyId
-      }
-      this.excute(this.$service.commonService, this.$service.commonService.getPost, params).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.postList = res.data;
-        }
-      })
-    },
-    /**
-     * @desc   : 获取组织部门数据源
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:10
-     */
-    getOrg() {
-      let params = {
-        ftyId: this.$store.state.user.ftyId
-      }
-      this.excute(this.$service.commonService, this.$service.commonService.getOrg, params).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.orgList = res.data;
-        }
-      })
-    },
-    /**
-     * @desc   : 获取员工状态数据源
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:10
-     */
-    getStaffStatus() {
-      let params = {
-        ftyId: this.$store.state.user.ftyId,
-        kindType: this.$config.kindType.staffStatus,
-      }
-      this.excute(this.$service.commonService, this.$service.commonService.getDataKind, params).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.staffStatusList = res.data?.copy();
-        }
-      })
-    },
-  },
-  created() {
-    this.initData();  // 加载初始数据
-  }
-}
-</script>
-
-<style scoped>
-
-</style>

+ 0 - 541
src/view/core/staff/index.vue

@@ -1,562 +1,21 @@
 <!-- @desc:员工管理  @auth:沈博  @time:2022年12月13日14:14:50 -->
 <template>
-  <div class="main-div" ref="mainDiv">
-    <!--加载中-->
-    <loading :loading="loading" v-if="!modalVisible"></loading>
-    <Upload v-show="false"
-            :headers="{Authorization: 'Bearer ' + $store.state.user.token}"
-            :action="this.$config.serviceUrl + '/mdm-server/core/staff/import'"
-            accept=".xls, .xlsx" :on-success="uploadSuccess"
-    >
-      <Button ref="uploadButton" >
-      </Button>
-    </Upload>
-    <!--按钮区-->
-    <BaseIndexButtonGroup id="BaseIndexButtonGroup">
-      <template #left>
-        <!--    查询    -->
-        <BaseIndexButton right-button="staff-select" ref="search" name="search"></BaseIndexButton>
-        <!--    清空条件    -->
-        <BaseIndexButton right-button="staff-clear" ref="clear" name="clear"></BaseIndexButton>
-        <!--    编辑    -->
-        <BaseIndexButton right-button="staff-edit" ref="edit" name="edit"></BaseIndexButton>
-        <!--    批量离职    -->
-        <BaseIndexButton right-button="staff-dimission" ref="dimission" name="dimission"/>
-        <!--    导入    -->
-        <BaseIndexButton right-button="staff-import" ref="import" name="import" :is-must-choose-flag="false"></BaseIndexButton>
-        <!--    下载模板    -->
-        <BaseIndexButton ref="downloadTemplate" name="downloadTemplate" :is-must-choose-flag="false"></BaseIndexButton>
-      </template>
-      <template #right>
-        <!--   新建     -->
-        <BaseIndexButton right-button="post-add" ref="add" name="add"></BaseIndexButton>
-      </template>
-    </BaseIndexButtonGroup>
 
-    <!--  查询条件区域  -->
-    <div id="search-cond-div" ref="search-cond-div" class="search-cond-class">
-      <SearchCond ref="searchCond" v-model="searchCond"
-                  @collapse-change="collapseChange" :set-flag="false"
-                  :search-content="searchContent"></SearchCond>
-    </div>
-    <div>
-      <DkTable :id="'table-'+$options.name" ref="table-select" :data="tableData"
-               :pageFlag=true
-               :page-total="pageInfo.total"
-               :current-page="pageInfo.currentPage"
-               :height="this.tableHeight" primaryKey="staffId"
-               @pageChange="pageSizeChange">
-        <DkTableColumn field="staffCode" type="link" @on-link="handleLink(Object.assign($event,{button:'edit'}))"></DkTableColumn>
-        <DkTableColumn field="staffName"></DkTableColumn>
-<!--        <DkTableColumn field="orgName"></DkTableColumn>-->
-        <DkTableColumn field="orgLevelName" width="300"></DkTableColumn>
-        <DkTableColumn field="jobName" :title="$t('jobName')"></DkTableColumn>
-        <DkTableColumn field="postName"></DkTableColumn>
-        <DkTableColumn field="staffStatusName"></DkTableColumn>
-        <DkTableColumn field="remarks" width="auto"></DkTableColumn>
-      </DkTable>
-    </div>
-    <!--新建编辑-->
-    <DkModal
-      :loading="loading"
-      v-model="editAddModal"
-      ref="modal_editAdd"
-      @on-visible-change="handleVisibleModal"
-      @modalOk="save"
-      :saveFlag="true"
-      :title="modalTitle"
-    >
-      <DkForm ref="formInline" v-model="formData" :col-count="1">
-        <DkFormItem prop="staffCode" :required="true">
-          <InputPop v-model="formData.staffCode" ref="staffCode"/>
-        </DkFormItem>
-        <DkFormItem prop="staffName" :required="true">
-          <InputPop v-model="formData.staffName" ref="staffName"/>
-        </DkFormItem>
-
-        <!--    岗位    -->
-        <DkFormItem prop="jobId" :required="true" :data-type="this.$config.dataType.number" :label="$t('jobName')">
-          <SelectPop v-model="formData.jobId" ref="jobId" :multiple="false"
-                     :options="jobList"
-                     labelKey="jobName"
-                     valueKey="jobId">
-          </SelectPop>
-        </DkFormItem>
-
-        <!--    职务    -->
-        <DkFormItem prop="postId" :required="true" :data-type="this.$config.dataType.number">
-          <SelectPop v-model="formData.postId" ref="postId" :multiple="false"
-                     :options="postList"
-                     labelKey="postName"
-                     valueKey="postId">
-          </SelectPop>
-        </DkFormItem>
-        <!--    组织机构    -->
-<!--        <DkFormItem prop="orgId" :required="true" :data-type="this.$config.dataType.number">-->
-<!--          <SelectPop v-model="formData.orgId" ref="orgId" :multiple="false"-->
-<!--                     :tree-flag="true"-->
-<!--                     :show-toolbar="true"-->
-<!--                     :tree-strict="false"-->
-<!--                     :options="orgList"-->
-<!--                     labelKey="orgName"-->
-<!--                     valueKey="orgId">-->
-<!--          </SelectPop>-->
-<!--        </DkFormItem>-->
-
-        <DkFormItem :required="true" prop="orgId" :data-type="$config.dataType.number" :label="$t('organizationLevel')">
-          <SelectMagnifier v-model="formData.orgId" :display-text="formData.levelName"
-                           :type="this.$config.MagnifierType.organization"
-                           :multiple="false"
-                           title="业务部门"
-                           @ok="chooseOrg"></SelectMagnifier>
-        </DkFormItem>
-
-        <!--    员工状态    -->
-        <DkFormItem prop="staffStatus" :required="true">
-          <SelectPop v-model="formData.staffStatus" ref="staffStatus" :multiple="false"
-                     :options="staffStatusList"
-                     :disabled="modalParams.button === $config.formMode.edit"
-                     labelKey="kindName"
-                     valueKey="kindCode">
-          </SelectPop>
-        </DkFormItem>
-        <!--    备注    -->
-        <DkFormItem prop="remarks">
-          <InputPop v-model="formData.remarks" textareaFlag/>
-        </DkFormItem>
-      </DkForm>
-    </DkModal>
-
-    <DkModal
-      :loading="loading"
-      v-model="userEditModal"
-      @modalOk="saveUserData"
-      fullscreen
-    >
-      <!--    5385 员工档案-离职时打开用户信息时要有关闭按钮,关闭按钮不离职也不自动打卡-->
-      <UserForm type="edit-staff" :user-id="userEditId" :dismiss-staff-id-list="disStaffIdList" v-if="userEditModal" ref="userForm"/>
-    </DkModal>
-  </div>
 </template>
 
 <script>
 import {indexMixin} from '@/mixins'
-import UserForm from '@/view/core/user/form'
 
 export default {
   name: 'staff',
   mixins: [indexMixin],
-  components: {UserForm},
   data() {
-    let self = this
-    return {
-      editAddModal: false,
-      modalTitle: '',//新建编辑弹窗名称
-      submitType: '',//新建编辑提交类型
-      formData: {
-        postName: '',
-        displayNo: 0,
-        remarks: '',
-        jobId: null,
-        postId: null,
-        orgId: null,
-        staffStatus: null,
-        levelName:'',
-      },
-      jobList: [],
-      postList: [],
-      orgList: [],
-      staffStatusList: [],
-      searchContent: [
-        {
-          itemCode: 'staffCode',
-        },
-        {
-          itemCode: 'staffName',
-        },
-        {
-          itemCode: 'orgIds',
-          itemName:self.$t('organizationLevel'),
-          valueFormat: {code: 'orgIds'},
-          valueKind: self.$config.docUserInput.mSearch,
-          magnifierType: self.$config.MagnifierType.organization
-        },
-        {
-          itemCode: 'staffStatus',
-          valueFormat: {code: 'staffStatusList', data: [], valueKey: 'kindCode', labelKey: 'kindName',},
-          valueKind: self.$config.docUserInput.mChoice
-        },
-      ],
-      //编辑用户弹窗
-      userEditModal: false,
-      userEditId: null,
-      //待编辑用户ID
-      userEditIdList: [],
-      //暂存用户编辑数据
-      userEditDataList: [],
-      //要离职的员工ID
-      disStaffIdList: []
-    }
   },
   methods: {
 
-    // region 一览界面操作
-    /**
-     * @desc   : switch停用启用
-     * @author : 沈博
-     * @date   : 2022年12月13日15:38:58
-     */
-    onSwitchChange(param) {
-      //todo 2023年5月8日13:14:53  有效标识这列去掉
-      if (param.flgValid) {
-        this.excuteNoParam(this.$service.staffService, this.$service.staffService.enable, [param.staffId])
-      } else {
-        this.excuteNoParam(this.$service.staffService, this.$service.staffService.disable, [param.staffId])
-      }
-    },
-    /**
-     * @desc   : 获取数据
-     * @author : 沈博
-     * @date   : 2022年12月13日15:04:17
-     */
-    getData(params) {
-      // 查询数据
-      return this.excute(this.$service.staffService, this.$service.staffService.selectByCond, params);
-    },
-    /**
-     * @desc   : 批量离职
-     * @author : 姜宁
-     * @date   : 2023/2/13 10:25
-     */
-    dimission() {
-      this.userEditId = null
-      this.userEditIdList = []
-      if (this.$refs['table-select'].batchKeys.length >= 1) {
-        this.$IBMessage({
-            content: this.$t('Q_002', {'param': this.$t('dimission')}),
-            title: this.$t('systemQuestion')
-          },
-          {
-            ok: () => {
-              for (let it of this.$refs['table-select'].batchRows) {
-                //检查是否关联了用户,如果关联,依次编辑用户
-                let userIds = it.userIds
-                if (userIds && userIds.length) {
-                  this.userEditIdList = this.userEditIdList.concat(userIds)
-                }
-                this.userEditIdList = this.userEditIdList.unique()
-              }
-              if (this.userEditIdList.length > 0) {
-                this.userEditId = this.userEditIdList[0]
-                this.disStaffIdList = this.$refs['table-select'].batchKeys
-                this.userEditModal = true
-              }else{
-                // 如果没有关联用户就直接执行离职操作
-                this.doDimission()
-              }
-            },
-          }
-        )
-      } else {
-        this.$Message.warning(this.$t('W_013'))
-      }
-    }
-    ,
-    /**
-     * @desc   : 执行离职
-     * @author : 洪旭东
-     * @date   : 2023-05-09 14:52
-     */
-    doDimission(){
-      //选中userId集合
-      let staffIds = [];
-      this.$refs['table-select'].batchRows.forEach((item, index) => {
-        staffIds.push(item.staffId);
-      });
-      let params = {
-        ftyId: this.$store.state.user.ftyId,
-        staffStatus: this.$config.modelKind.staffStatusDimission, // '员工状态-离职'
-        staffIds: staffIds,
-        userList: this.userEditDataList
-      }
-      this.excute(this.$service.staffService, this.$service.staffService.dimission, params).then(res => {//调用api接口
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.$Message.success(this.$t('I_001', {'param': this.$t('dimission')}))
-          this.userEditId = null
-          this.userEditIdList = []
-          this.userEditDataList = []
-        } else {
-          this.$Message.warning(res.message)
-        }
-      })
-    },
-    /**
-     * @desc   : 暂存编辑用户数据
-     * @author : 洪旭东
-     * @date   : 2023-05-09 16:24
-     */
-    saveUserData () {
-      this.$refs.userForm._validData().then(res => {
-        if (!res) {
-          return;
-        }
-        // 2、给参数赋值
-        this.$refs.userForm.setParams()
-        this.$refs.userForm.params.ftyId = this.$store.state.user.ftyId
-        this.userEditDataList.push(this.$refs.userForm.params)
-        this.userEditIdList = this.userEditIdList.filter(f => f!=this.$refs.userForm.params.userId)
-        if (this.userEditIdList.length > 0) {
-          this.userEditId = this.userEditIdList[0]
-          this.$refs.userForm._detail(this.userEditId)
-        } else {
-          this.userEditModal = false
-          this.doDimission()
-        }
-      })
-    },
-    /**
-     * @desc   : 导入
-     * @author : 姜宁
-     * @date   : 2023/3/10 15:07
-     */
-    importExcel(){
-      this.$refs.uploadButton.$el.click()
-    },
-    /**
-     * @desc   : 导入加载成功
-     * @author : 姜宁
-     * @date   : 2023/3/10 15:07
-     */
-    uploadSuccess (res) {
-      if (res.code === this.$config.SUCCESS_CODE) {
-        this.$Message.success(res.message)
-      } else if(res.code === -1) {
-        this.$Message.info({
-          render: h => {
-            return h('div',
-              [h('span',res.message),h('a',{style:{marginLeft:'5px'},on:{click:()=>{
-                    const stringData = res.data.toString().replaceAll(",","\n")
-                    const blob = new Blob([stringData], {
-                      type: "text/plain;charset=utf-8"
-                    })
-                    const objectURL = URL.createObjectURL(blob)
-                    const aTag = document.createElement('a')
-                    aTag.href = objectURL
-                    aTag.download = new Date().format("yyyy-MM-dd hh:mm:ss")+"员工导入日志.txt"
-                    aTag.click()
-                    URL.revokeObjectURL(objectURL)
-                  }}},res.data?'下载错误信息':'')]
-            )
-          }
-        });
-      }else{
-        this.$Message.warning(res.message)
-      }
-    },
-    /**
-     * @desc   : 下载模板
-     * @author : 洪旭东
-     * @date   : 2023-08-01 11:49
-     */
-    downloadTemplate () {
-      window.location.href = this.$config.serviceUrl + this.$service.staffService.prefix + this.$service.staffService.downloadTemplate
-    },
-    // endregion
-
-    // region 新建/编辑
-    /**
-     * @desc   : 给参数赋值
-     * @author :沈博
-     * @date   : 2022年12月13日10:56:56
-     */
-    clear() {
-      this.formData = {
-        staffName: '',
-        staffId: null,
-        remarks: '',
-        displayNo: 0,
-        jobId: null,
-        postId: null,
-        orgId: null,
-        staffStatus: this.$config.modelKind.staffStatusInOffice,
-      }
-    },
-    /**
-     * @desc   : 加载数据
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:09
-     */
-    initData(type) {
-      // 加载工种数据源
-      this.getJob();
-      // 加载职务数据源
-      this.getPost();
-      // 加载组织部门数据源
-      this.getOrg();
-      //获取员工状态
-      this.getStaffStatus();
-    },
-    /**
-     * @desc   : 获取工种数据源
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:10
-     */
-    getJob() {
-      let params = {
-        ftyId: this.$store.state.user.ftyId
-      }
-      this.excute(this.$service.commonService, this.$service.commonService.getJob, params).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.jobList = res.data;
-        }
-      })
-    },
-    /**
-     * @desc   : 获取职务数据源
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:10
-     */
-    getPost() {
-      let params = {
-        ftyId: this.$store.state.user.ftyId
-      }
-      this.excute(this.$service.commonService, this.$service.commonService.getPost, params).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.postList = res.data;
-        }
-      })
-    },
-    /**
-     * @desc   : 获取组织部门数据源
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:10
-     */
-    getOrg() {
-      let params = {
-        ftyId: this.$store.state.user.ftyId
-      }
-      this.excute(this.$service.commonService, this.$service.commonService.getOrg, params).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          let list = this.searchContent.filter(it => it.valueFormat.code == 'orgIds')
-          if (list.length > 0) {
-            list[0].valueFormat.data = res.data.copy()
-          }
-          this.orgList = res.data;
-        }
-      })
-    },
-    /**
-     * @desc   : 获取员工状态数据源
-     * @author : 姜宁
-     * @date   : 2023/1/9 13:10
-     */
-    getStaffStatus() {
-      let params = {
-        ftyId: this.$store.state.user.ftyId,
-        kindType: this.$config.kindType.staffStatus,
-      }
-      this.excute(this.$service.commonService, this.$service.commonService.getDataKind, params).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.staffStatusList = res.data?.copy();
-          // 默认状态
-          this.formData.staffStatus = this.$config.modelKind.staffStatusInOffice;
-          let list = this.searchContent.filter(it => it.valueFormat.code == 'staffStatusList')
-          if (list.length > 0) {
-            list[0].valueFormat.data = res.data
-            // 赋值默认值
-            this.$refs['searchCond'].setDefault('staffStatusList',[this.$config.modelKind.staffStatusInOffice])
-            // console.log("staffStatus",this.$config.modelKind.staffStatusInOffice)
-            // list[0].valueFormat.default = [this.$config.modelKind.staffStatusInOffice];
-          }
-        }
-      })
-    },
-    /**
-     * @desc   : 放大镜控件绑定值--业务部门
-     * @author : 姜宁
-     * @date   : 2023/12/27 13:05
-     */
-    chooseOrg(rows) {
-      if (rows){
-        this.formData.orgId = rows[0].orgId;
-        this.formData.levelName = rows[0].levelName
-      }
-      else{
-        this.formData.orgId = null;
-        this.formData.orgName ='';
-      }
-    },
-    /**
-     * @desc   : 给参数赋值
-     * @author : 沈博
-     * @date   : 2022年12月13日10:56:56
-     */
-    setParams() {
-      this.params = this.formData
-      this.params.cpId = this.$store.state.user.cpId
-      this.params.sysId = this.$store.state.user.sysId
-    },
-    /**
-     * @desc   : 保存数据
-     * @author :沈博
-     * @date   : 2022年12月13日10:56:56
-     */
-    saveData() {
-      if (this.modalParams.button === this.$config.formMode.add){
-        delete this.params.modelId // 解决提示主键重复的问题,删除主键代码
-        return this.excute(this.$service.staffService, this.$service.staffService.insert, this.params)
-      }
-      else{
-        return this.excute(this.$service.staffService, this.$service.staffService.update, this.params)
-      }
-    },
-    /**
-     * @desc   : 新建按钮点击事件
-     * @author : 沈博
-     * @date   : 2022年12月13日10:28:36
-     */
-    add() {
-      this.modalTitle = this.setTitle(this.$config.formMode.add, 'staff')
-      this.modalParams = {
-        button: this.$config.formMode.add,
-      }
-      this.editAddModal = true
-    },
-    /**
-     * @desc   : 编辑按钮事件
-     * @author : 沈博
-     * @date   : 2022年12月13日10:13:23
-     */
-    edit(rows) {
-      this.modalParams = {
-        button: this.$config.formMode.edit,
-        closeFlag: true
-      }
-      this.modalTitle = this.setTitle(this.$config.formMode.edit, 'staff')
-      if (rows.length > 0) {
-        this.detail(rows[0].staffId)
-      }
-      this.editAddModal = true
-    },
-    /**
-     * @desc   : 通过id查询
-     * @author : 沈博
-     * @date   : 2022/5/5 13:15
-     */
-    detail(id) {
-      this.excuteNoParam(this.$service.staffService, this.$service.staffService.selectById,
-        [id], false).then(res => {//调用api查询方法
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.formData = res.data
-        }
-      })
-    },
-    // endregion
   }
   ,
   created() {
-    this.primaryKey = 'staffId'  // 设置主键Id
-    this.routeObjName = 'staff'  // 设置路由名称
   }
 }
 </script>

+ 13 - 0
src/view/core/supplier/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/pur/pur-by-sale/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/pur/pur-enter/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/pur/pur-order/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/pur/pur-reject/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 209 - 209
src/view/single-page/home/home.vue

@@ -1,211 +1,211 @@
 <!-- @desc:首页工作台  @auth:洪旭东  @time:2022-05-02 10:28 -->
 <template>
   <div class="main-div">
-    <!--    待办-->
-    <Card class="card card-upcoming" @contextmenu.native.prevent>
-      <p slot="title">
-        今日产量
-      </p>
-      <Tooltip style="cursor: pointer" slot="extra" :content="$t('refresh')" theme="light"
-               v-if="flgWarning">
-        <Button icon="md-refresh" shape="circle" class="circle-button" @click="refreshWaitCenter"></Button>
-      </Tooltip>
-      <!--      预警设置按钮-->
-      <!--      <Tooltip style="cursor: pointer" slot="extra" :content="$t('earlyWarningSetting')" theme="light">-->
-      <!--        <Button icon="md-settings" shape="circle" class="circle-button" @click="setHomeWarning"></Button>-->
-      <!--      </Tooltip>-->
-      <Button icon="md-settings" slot="extra" shape="circle" class="circle-button" @click="setHomeWarning"></Button>
-      <div style="display: flex;align-items: center;">
-        <div class="upcoming" :style="{padding: (flgWarning?'':0)}">
-          <!--成型产量-->
-          <div class="upcoming-card" v-for="(item,index) in homeWarningData_quan" :key="'quan'+index"
-               @click="openDrawer(item)">
-            <div class="upcoming-card-right">
-              <div class="upcoming-card-last">昨日{{ item.lastCount }}
-                <Icon v-if="item.currentCount<item.lastCount" type="iconfont iconfont icon-down"
-                      style="color: #191A23"/>
-                <Icon v-else-if="item.currentCount>item.lastCount" type="iconfont iconfont icon-up"
-                      style="color: #EE6666"/>
-              </div>
-              <div class="upcoming-card-number">{{ item.currentCount }}</div>
-              <div class="upcoming-card-text">{{ item.warningName }}</div>
-            </div>
-          </div>
-          <!--质量-->
-          <div class="upcoming-card" v-for="(item,index) in homeWarningData_qa" :key="'qa'+index"
-               @click="openDrawer(item)"
-               style="background-color: #70AD47 !important;">
-            <div class="upcoming-card-right">
-              <div class="upcoming-card-last">昨日{{ item.lastCount }}%
-                <Icon v-if="item.currentCount<item.lastCount" type="iconfont iconfont icon-down"
-                      style="color: #191A23"/>
-                <Icon v-else-if="item.currentCount>item.lastCount" type="iconfont iconfont icon-up"
-                      style="color: #EE6666"/>
-              </div>
-              <div class="upcoming-card-number">{{ item.currentCount }}%</div>
-              <div class="upcoming-card-text">{{ item.warningName }}</div>
-            </div>
-          </div>
-        </div>
-      </div>
-    </Card>
-
-    <!--产量分析-->
-    <Card class="card card-upcoming" @contextmenu.native.prevent>
-      <p slot="title">
-        产量分析
-      </p>
-      <div slot="extra">
-        <DateWeek @time="getWeekOutPutTime" ref="weekOutPutTime" init/>
-      </div>
-      <Echarts type="bar" :table-columns="tableWeekOutPutColumns" ref="chart_quantity" title="一周产量分析"
-               :style="'height: 300px;width: 100%'" :row-field-keys="tableQualityRowFields"
-               :table-data="tableWeekOutputData"/>
-    </Card>
-
-    <!--质量分析-->
-    <Card class="card card-upcoming" @contextmenu.native.prevent>
-      <p slot="title">
-        质量分析
-      </p>
-      <div slot="extra">
-        <DateWeek @time="getWeekQualityTime" ref="weekQualityTime" init/>
-      </div>
-      <Echarts type="line" :table-columns="tableWeekQualityColumns" ref="chart_quality" title="一周质量分析"
-               :style="'height: 300px;width: 100%'" :row-field-keys="tableQualityRowFields"
-               :table-data="tableWeekQualityData"/>
-    </Card>
-
-    <div style="display: flex">
-      <!--半检缺陷TOP5-->
-      <Card class="card card-upcoming" style="width: 50%" @contextmenu.native.prevent>
-        <p slot="title">
-          半检缺陷TOP5
-        </p>
-        <div slot="extra">
-          <DateWeek @time="getHalfCheckTime"/>
-        </div>
-        <Echarts type="bar" :table-columns="tableHalfCheckColumns" ref="halfCheckTopDefect" title="半检缺陷TOP5"
-                 :style="'height: 300px;width: 100%'" :table-data="tableHalfCheckData" x-value/>
-      </Card>
-      <!--成检缺陷TOP5-->
-      <Card class="card card-upcoming" style="width: 49.5%;margin-left: 0.5%" @contextmenu.native.prevent>
-        <p slot="title">
-          成检缺陷TOP5
-        </p>
-        <div slot="extra">
-          <DateWeek @time="getCheckTime"/>
-        </div>
-        <Echarts type="bar" :table-columns="tableCheckColumns" ref="checkTopDefect" title="成检缺陷TOP5"
-                 :style="'height: 300px;width: 100%'" :table-data="tableCheckData" x-value/>
-      </Card>
-    </div>
-
-    <!--月订单达成率-->
-    <Card class="card card-upcoming" @contextmenu.native.prevent>
-      <p slot="title">
-        月订单达成率
-      </p>
-      <div slot="extra">
-        <DateWeek @time="getTime"/>
-      </div>
-      <Echarts type="bar" :table-columns="tableOrderColumns" ref="chart_quantity" title="月订单达成率"
-               subTitle="2023-08-01~2023-08-07"
-               :style="'height: 300px;width: 100%'" :row-field-keys="tableOrderRowFields" :table-data="tableOrderData"
-               :data-type="['bar', 'line']"/>
-    </Card>
-
-
-    <Drawer :closable="false" placement="bottom" v-model="drawerShow" :height="drawerHeight" style="overflow-y:hidden">
-      <!--预警中心-->
-      <Card :bordered="false">
-        <p slot="title">{{ drawTitle }}
-          <Tooltip :content="!drawerMax?$t('max'):$t('close')" theme="light"
-                   style="float: right;margin-right: 10px;cursor: pointer">
-            <Icon v-if="!drawerMax" type="ios-expand" size="18" @click="maxDrawer"/>
-            <Icon v-else type="md-close" size="18" @click="drawerShow = false;"/>
-          </Tooltip>
-        <div style="clear: both;"></div>
-        </p>
-        <DkTable :id="'table-'+$options.name" ref="table-select" :data="homeWarningItemData"
-                 :pageFlag="false"
-                 :choose-flag="false"
-                 :show-setting-flag="false"
-                 :auto-width-flag="false"
-                 :height="drawerHeight - 94">
-          <DkTableColumn field="nodeName"></DkTableColumn>
-          <DkTableColumn field="modelCodeName" :title="$t('pdtModel')"></DkTableColumn>
-          <DkTableColumn field="logoCodeName" :title="$t('productLogo')"></DkTableColumn>
-          <DkTableColumn field="colourCodeName" :title="$t('productColour')"></DkTableColumn>
-          <DkTableColumn field="gradeName"></DkTableColumn>
-          <DkTableColumn field="prodUserCodeName" :title="$t('prodUserCode')"></DkTableColumn>
-          <DkTableColumn field="opnTime" :dataType="$config.dataType.dateTime"></DkTableColumn>
-          <DkTableColumn field="pdtProdQty" :dataType="$config.dataType.number"></DkTableColumn>
-        </DkTable>
-      </Card>
-    </Drawer>
-    <!--预警设置modal-->
-    <DkModal
-      :loading="settingModalLoading"
-      v-model="settingModal"
-      ref="modal_setting"
-      :title="$t('earlyWarningSetting')"
-      :save-flag="true"
-      @on-visible-change="onVisibleChange"
-      @modalOk="saveData()"
-      width="900px"
-    >
-      <DkTabs v-model="currentWarningType" :options="tabsOptions"></DkTabs>
-      <!--     预警     -->
-      <div :style="'height: ' + (tableHeight )+ 'px'" class="split-div-class"
-           v-show="currentWarningType == 0">
-        <DkSplit v-model="split">
-          <EditTable slot="left" ref="warnTable_quantity"
-                     :data="warningSettingFormData"
-                     :height="tableHeight"
-                     :choose-flag="false"
-                     :auto-focus="false"
-                     :enabledRepeat=true
-                     majorField="setId"
-                     :columns="warningSettingTableColumn"
-                     :show-setting-flag="false"
-                     @delRow="warnDelRow"
-                     @current-change="currentFlow"
-          ></EditTable>
-          <!-- 工序行切换-->
-          <EditTable slot="right" ref="flowNode"
-                     :data="warningSettingFormData[currentRowIndex]?.flowList"
-                     :height="tableHeight"
-                     control-id="nodeId"
-                     :choose-flag="false"
-                     :columns="flowNodeColumn"
-                     :show-setting-flag="false"
-                     :enabled-repeat="false"
-                     enabled-repeat-id="nodeId"
-                     @delRow="flowDelRow"
-                     @chooseData="chooseFlowValue"
-
-          ></EditTable>
-        </DkSplit>
-      </div>
-
-      <!--     预警 2    -->
-      <EditTable ref="warnTable_quality" v-show="currentWarningType == 1"
-                 :data="warningSettingFormData_qa"
-                 :height="tableHeight"
-                 :choose-flag="false"
-                 :auto-focus="false"
-                 :columns="warningSettingTableColumn_qa"
-                 :enabled-repeat="false"
-                 enabled-repeat-id="kindCode"
-                 majorField="setId"
-                 control-id="qualityType"
-                 :show-setting-flag="false"
-                 @chooseData="chooseQualityType"
-                 @delRow="warnDelRow"></EditTable>
-    </DkModal>
-    <!--    底部留白-->
-    <div style="width: 100%; height: 20px"></div>
+<!--    &lt;!&ndash;    待办&ndash;&gt;-->
+<!--    <Card class="card card-upcoming" @contextmenu.native.prevent>-->
+<!--      <p slot="title">-->
+<!--        今日产量-->
+<!--      </p>-->
+<!--      <Tooltip style="cursor: pointer" slot="extra" :content="$t('refresh')" theme="light"-->
+<!--               v-if="flgWarning">-->
+<!--        <Button icon="md-refresh" shape="circle" class="circle-button" @click="refreshWaitCenter"></Button>-->
+<!--      </Tooltip>-->
+<!--      &lt;!&ndash;      预警设置按钮&ndash;&gt;-->
+<!--      &lt;!&ndash;      <Tooltip style="cursor: pointer" slot="extra" :content="$t('earlyWarningSetting')" theme="light">&ndash;&gt;-->
+<!--      &lt;!&ndash;        <Button icon="md-settings" shape="circle" class="circle-button" @click="setHomeWarning"></Button>&ndash;&gt;-->
+<!--      &lt;!&ndash;      </Tooltip>&ndash;&gt;-->
+<!--      <Button icon="md-settings" slot="extra" shape="circle" class="circle-button" @click="setHomeWarning"></Button>-->
+<!--      <div style="display: flex;align-items: center;">-->
+<!--        <div class="upcoming" :style="{padding: (flgWarning?'':0)}">-->
+<!--          &lt;!&ndash;成型产量&ndash;&gt;-->
+<!--          <div class="upcoming-card" v-for="(item,index) in homeWarningData_quan" :key="'quan'+index"-->
+<!--               @click="openDrawer(item)">-->
+<!--            <div class="upcoming-card-right">-->
+<!--              <div class="upcoming-card-last">昨日{{ item.lastCount }}-->
+<!--                <Icon v-if="item.currentCount<item.lastCount" type="iconfont iconfont icon-down"-->
+<!--                      style="color: #191A23"/>-->
+<!--                <Icon v-else-if="item.currentCount>item.lastCount" type="iconfont iconfont icon-up"-->
+<!--                      style="color: #EE6666"/>-->
+<!--              </div>-->
+<!--              <div class="upcoming-card-number">{{ item.currentCount }}</div>-->
+<!--              <div class="upcoming-card-text">{{ item.warningName }}</div>-->
+<!--            </div>-->
+<!--          </div>-->
+<!--          &lt;!&ndash;质量&ndash;&gt;-->
+<!--          <div class="upcoming-card" v-for="(item,index) in homeWarningData_qa" :key="'qa'+index"-->
+<!--               @click="openDrawer(item)"-->
+<!--               style="background-color: #70AD47 !important;">-->
+<!--            <div class="upcoming-card-right">-->
+<!--              <div class="upcoming-card-last">昨日{{ item.lastCount }}%-->
+<!--                <Icon v-if="item.currentCount<item.lastCount" type="iconfont iconfont icon-down"-->
+<!--                      style="color: #191A23"/>-->
+<!--                <Icon v-else-if="item.currentCount>item.lastCount" type="iconfont iconfont icon-up"-->
+<!--                      style="color: #EE6666"/>-->
+<!--              </div>-->
+<!--              <div class="upcoming-card-number">{{ item.currentCount }}%</div>-->
+<!--              <div class="upcoming-card-text">{{ item.warningName }}</div>-->
+<!--            </div>-->
+<!--          </div>-->
+<!--        </div>-->
+<!--      </div>-->
+<!--    </Card>-->
+
+<!--    &lt;!&ndash;产量分析&ndash;&gt;-->
+<!--    <Card class="card card-upcoming" @contextmenu.native.prevent>-->
+<!--      <p slot="title">-->
+<!--        产量分析-->
+<!--      </p>-->
+<!--      <div slot="extra">-->
+<!--        <DateWeek @time="getWeekOutPutTime" ref="weekOutPutTime" init/>-->
+<!--      </div>-->
+<!--      <Echarts type="bar" :table-columns="tableWeekOutPutColumns" ref="chart_quantity" title="一周产量分析"-->
+<!--               :style="'height: 300px;width: 100%'" :row-field-keys="tableQualityRowFields"-->
+<!--               :table-data="tableWeekOutputData"/>-->
+<!--    </Card>-->
+
+<!--    &lt;!&ndash;质量分析&ndash;&gt;-->
+<!--    <Card class="card card-upcoming" @contextmenu.native.prevent>-->
+<!--      <p slot="title">-->
+<!--        质量分析-->
+<!--      </p>-->
+<!--      <div slot="extra">-->
+<!--        <DateWeek @time="getWeekQualityTime" ref="weekQualityTime" init/>-->
+<!--      </div>-->
+<!--      <Echarts type="line" :table-columns="tableWeekQualityColumns" ref="chart_quality" title="一周质量分析"-->
+<!--               :style="'height: 300px;width: 100%'" :row-field-keys="tableQualityRowFields"-->
+<!--               :table-data="tableWeekQualityData"/>-->
+<!--    </Card>-->
+
+<!--    <div style="display: flex">-->
+<!--      &lt;!&ndash;半检缺陷TOP5&ndash;&gt;-->
+<!--      <Card class="card card-upcoming" style="width: 50%" @contextmenu.native.prevent>-->
+<!--        <p slot="title">-->
+<!--          半检缺陷TOP5-->
+<!--        </p>-->
+<!--        <div slot="extra">-->
+<!--          <DateWeek @time="getHalfCheckTime"/>-->
+<!--        </div>-->
+<!--        <Echarts type="bar" :table-columns="tableHalfCheckColumns" ref="halfCheckTopDefect" title="半检缺陷TOP5"-->
+<!--                 :style="'height: 300px;width: 100%'" :table-data="tableHalfCheckData" x-value/>-->
+<!--      </Card>-->
+<!--      &lt;!&ndash;成检缺陷TOP5&ndash;&gt;-->
+<!--      <Card class="card card-upcoming" style="width: 49.5%;margin-left: 0.5%" @contextmenu.native.prevent>-->
+<!--        <p slot="title">-->
+<!--          成检缺陷TOP5-->
+<!--        </p>-->
+<!--        <div slot="extra">-->
+<!--          <DateWeek @time="getCheckTime"/>-->
+<!--        </div>-->
+<!--        <Echarts type="bar" :table-columns="tableCheckColumns" ref="checkTopDefect" title="成检缺陷TOP5"-->
+<!--                 :style="'height: 300px;width: 100%'" :table-data="tableCheckData" x-value/>-->
+<!--      </Card>-->
+<!--    </div>-->
+
+<!--    &lt;!&ndash;月订单达成率&ndash;&gt;-->
+<!--    <Card class="card card-upcoming" @contextmenu.native.prevent>-->
+<!--      <p slot="title">-->
+<!--        月订单达成率-->
+<!--      </p>-->
+<!--      <div slot="extra">-->
+<!--        <DateWeek @time="getTime"/>-->
+<!--      </div>-->
+<!--      <Echarts type="bar" :table-columns="tableOrderColumns" ref="chart_quantity" title="月订单达成率"-->
+<!--               subTitle="2023-08-01~2023-08-07"-->
+<!--               :style="'height: 300px;width: 100%'" :row-field-keys="tableOrderRowFields" :table-data="tableOrderData"-->
+<!--               :data-type="['bar', 'line']"/>-->
+<!--    </Card>-->
+
+
+<!--    <Drawer :closable="false" placement="bottom" v-model="drawerShow" :height="drawerHeight" style="overflow-y:hidden">-->
+<!--      &lt;!&ndash;预警中心&ndash;&gt;-->
+<!--      <Card :bordered="false">-->
+<!--        <p slot="title">{{ drawTitle }}-->
+<!--          <Tooltip :content="!drawerMax?$t('max'):$t('close')" theme="light"-->
+<!--                   style="float: right;margin-right: 10px;cursor: pointer">-->
+<!--            <Icon v-if="!drawerMax" type="ios-expand" size="18" @click="maxDrawer"/>-->
+<!--            <Icon v-else type="md-close" size="18" @click="drawerShow = false;"/>-->
+<!--          </Tooltip>-->
+<!--        <div style="clear: both;"></div>-->
+<!--        </p>-->
+<!--        <DkTable :id="'table-'+$options.name" ref="table-select" :data="homeWarningItemData"-->
+<!--                 :pageFlag="false"-->
+<!--                 :choose-flag="false"-->
+<!--                 :show-setting-flag="false"-->
+<!--                 :auto-width-flag="false"-->
+<!--                 :height="drawerHeight - 94">-->
+<!--          <DkTableColumn field="nodeName"></DkTableColumn>-->
+<!--          <DkTableColumn field="modelCodeName" :title="$t('pdtModel')"></DkTableColumn>-->
+<!--          <DkTableColumn field="logoCodeName" :title="$t('productLogo')"></DkTableColumn>-->
+<!--          <DkTableColumn field="colourCodeName" :title="$t('productColour')"></DkTableColumn>-->
+<!--          <DkTableColumn field="gradeName"></DkTableColumn>-->
+<!--          <DkTableColumn field="prodUserCodeName" :title="$t('prodUserCode')"></DkTableColumn>-->
+<!--          <DkTableColumn field="opnTime" :dataType="$config.dataType.dateTime"></DkTableColumn>-->
+<!--          <DkTableColumn field="pdtProdQty" :dataType="$config.dataType.number"></DkTableColumn>-->
+<!--        </DkTable>-->
+<!--      </Card>-->
+<!--    </Drawer>-->
+<!--    &lt;!&ndash;预警设置modal&ndash;&gt;-->
+<!--    <DkModal-->
+<!--      :loading="settingModalLoading"-->
+<!--      v-model="settingModal"-->
+<!--      ref="modal_setting"-->
+<!--      :title="$t('earlyWarningSetting')"-->
+<!--      :save-flag="true"-->
+<!--      @on-visible-change="onVisibleChange"-->
+<!--      @modalOk="saveData()"-->
+<!--      width="900px"-->
+<!--    >-->
+<!--      <DkTabs v-model="currentWarningType" :options="tabsOptions"></DkTabs>-->
+<!--      &lt;!&ndash;     预警     &ndash;&gt;-->
+<!--      <div :style="'height: ' + (tableHeight )+ 'px'" class="split-div-class"-->
+<!--           v-show="currentWarningType == 0">-->
+<!--        <DkSplit v-model="split">-->
+<!--          <EditTable slot="left" ref="warnTable_quantity"-->
+<!--                     :data="warningSettingFormData"-->
+<!--                     :height="tableHeight"-->
+<!--                     :choose-flag="false"-->
+<!--                     :auto-focus="false"-->
+<!--                     :enabledRepeat=true-->
+<!--                     majorField="setId"-->
+<!--                     :columns="warningSettingTableColumn"-->
+<!--                     :show-setting-flag="false"-->
+<!--                     @delRow="warnDelRow"-->
+<!--                     @current-change="currentFlow"-->
+<!--          ></EditTable>-->
+<!--          &lt;!&ndash; 工序行切换&ndash;&gt;-->
+<!--          <EditTable slot="right" ref="flowNode"-->
+<!--                     :data="warningSettingFormData[currentRowIndex]?.flowList"-->
+<!--                     :height="tableHeight"-->
+<!--                     control-id="nodeId"-->
+<!--                     :choose-flag="false"-->
+<!--                     :columns="flowNodeColumn"-->
+<!--                     :show-setting-flag="false"-->
+<!--                     :enabled-repeat="false"-->
+<!--                     enabled-repeat-id="nodeId"-->
+<!--                     @delRow="flowDelRow"-->
+<!--                     @chooseData="chooseFlowValue"-->
+
+<!--          ></EditTable>-->
+<!--        </DkSplit>-->
+<!--      </div>-->
+
+<!--      &lt;!&ndash;     预警 2    &ndash;&gt;-->
+<!--      <EditTable ref="warnTable_quality" v-show="currentWarningType == 1"-->
+<!--                 :data="warningSettingFormData_qa"-->
+<!--                 :height="tableHeight"-->
+<!--                 :choose-flag="false"-->
+<!--                 :auto-focus="false"-->
+<!--                 :columns="warningSettingTableColumn_qa"-->
+<!--                 :enabled-repeat="false"-->
+<!--                 enabled-repeat-id="kindCode"-->
+<!--                 majorField="setId"-->
+<!--                 control-id="qualityType"-->
+<!--                 :show-setting-flag="false"-->
+<!--                 @chooseData="chooseQualityType"-->
+<!--                 @delRow="warnDelRow"></EditTable>-->
+<!--    </DkModal>-->
+<!--    &lt;!&ndash;    底部留白&ndash;&gt;-->
+<!--    <div style="width: 100%; height: 20px"></div>-->
   </div>
 </template>
 
@@ -854,10 +854,10 @@ export default {
     // endregion
   },
   created() {
-    this.getHomeWarning();// 获取预警数据
-    //查询半检、成检缺陷TOP5
-    this.getTopFiveHalfCheckDefect()
-    this.getTopFiveCheckDefect()
+    // this.getHomeWarning();// 获取预警数据
+    // //查询半检、成检缺陷TOP5
+    // this.getTopFiveHalfCheckDefect()
+    // this.getTopFiveCheckDefect()
     this.routeObjName = 'home'  // 设置路由名称
     this.primaryKey = 'setId'  // 设置主键Id
   },