소스 검색

档案管理

安生 4 년 전
부모
커밋
9575779f44
5개의 변경된 파일191개의 추가작업 그리고 9개의 파일을 삭제
  1. 156 0
      src/components/files/option.vue
  2. 4 2
      src/views/system/actwork/havedone.vue
  3. 21 3
      src/views/system/actwork/todo.vue
  4. 8 2
      src/views/system/duty/duty.vue
  5. 2 2
      src/views/system/email/detail.vue

+ 156 - 0
src/components/files/option.vue

@@ -0,0 +1,156 @@
+<template>
+    <div style="padding: 0 30px">
+            <el-form ref="form" :model="form" :rules="rules" label-width="90px">
+              <el-form-item label="档案归属" prop="documentType">
+                <el-input v-model="form.deptId" v-show="false"></el-input>
+                  <el-input title="选择归属部门" v-model="form.archivesType" placeholder="选择归属部门" prop="avtiveSend" :disabled="true">
+                    <template slot="append">
+                      <el-button
+                        type="primary"
+                        icon="el-icon-plus"
+                        size="mini"
+                        @click="handleSelectDept">
+                        选择部门
+                      </el-button>
+                    </template>
+                  </el-input>
+              </el-form-item>
+              <el-form-item label="档案名称" prop="archivesName">
+                <el-input v-model="form.archivesName" placeholder="请输入档案名称" />
+              </el-form-item>
+              <el-form-item label="档案actkey" prop="actkey">
+                <el-input v-model="form.actkey" placeholder="请输入档案名称" />
+              </el-form-item>
+              <el-form-item label="档案id" prop="taskid">
+                <el-input v-model="form.taskId" placeholder="请输入档案名称" />
+              </el-form-item>
+
+              <el-button type="primary" @click="submit()">归档</el-button>
+
+            </el-form>
+      <el-dialog :title="tctitle" :visible.sync="deptOpen" width="20%" append-to-body style="size: 30px">
+        <el-tree
+          :data="deptOptions"
+          :expand-on-click-node="false"
+          :filter-node-method="filterNode"
+          ref="tree"
+          default-expand-all
+          @node-click="handleNodeClick"
+          empty-text="加载中,请稍后"
+          :props="defaultProps"
+        ></el-tree>
+        <div slot="footer" class="dialog-footer">
+          <el-button type="primary" @click="getDeptAll">确 定</el-button>
+          <el-button @click="cancel">取 消</el-button>
+        </div>
+
+      </el-dialog>
+
+    </div>
+</template>
+
+<script>
+  import { addArchives } from "@/api/system/archives/archives.js";
+  import { listDept } from "@/api/system/archives/column.js";
+  import Treeselect from "@riophae/vue-treeselect";
+  import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  export default {
+    name: 'option',
+    components: {
+      Treeselect
+    },
+    props:['optiontitle','optionactkey','optionid'],
+    data(){
+      return{
+        depid: [],
+        depname: [],
+        deptOpen:false,
+        // 部门树选项
+        deptOptions: [],
+        defaultProps: {
+          children: "children",
+          label: "deptName"
+        },
+        doc:[],
+        options:[],
+        // 表单参数
+        form: {},
+        // 表单校验
+        rules: {
+        }
+      }
+    },
+    created() {
+      this.getList();
+      this.option();
+    },
+    methods:{
+
+      // 筛选节点
+      filterNode(value, data) {
+        if (!value) return true;
+        return data.leabel.indexOf(value) !== -1;
+      },
+      // 节点单击事件
+      handleNodeClick(data) {
+        console.log(data)
+        if(data.children.length == 0 ){
+          this.form.deptId = data.deptId;
+          this.form.parentId = data.parentId;
+          this.form.archivesType = data.deptName;
+        }else{
+          return false
+        }
+
+      },
+
+      option(){
+        this.form.archivesName = this.optiontitle;
+        this.form.actkey = this.optionactkey;
+        this.form.taskId = this.optionid;
+      },
+
+      /** 查询文档列表 */
+      getList() {
+        this.loading = true;
+        listDept(this.queryParams).then(response => {
+          console.log(response.data)
+          this.deptOptions = this.handleTree(response.data, "deptId");
+          console.log(this.deptOptions)
+          // this.doc = this.handleTree(response.data, "deptId");
+          this.loading = false;
+        });
+      },
+      submit(){
+
+        addArchives(this.form).then(response => {
+            this.msgSuccess("成功");
+        });
+      },
+      getDeptAll(){
+        this.deptOpen = false;
+      },
+      cancel() {
+        this.$emit('getList');
+        this.contentOpen = false;
+        this.deptOpen = false;
+        this.reset();
+
+      },
+      // 表单重置
+      reset() {
+        this.form = {
+          everyone: undefined,
+        };
+        this.resetForm("form");
+      },
+      handleSelectDept() {
+        this.deptOpen = true;
+      },
+    }
+  }
+</script>
+
+<style scoped>
+
+</style>

+ 4 - 2
src/views/system/actwork/havedone.vue

@@ -99,10 +99,11 @@
            <el-button @click="cancel">关 闭</el-button>
       </span>
     </el-dialog>
-    <el-dialog id="actform" title="流程详情" :visible.sync="actOpen" :before-close="cancel" append-to-body width="80%"
-               top="10" height="90%">
+    <el-dialog id="actform" title="流程详情" :visible.sync="actOpen" :before-close="cancel" append-to-body width="80%" top="10" height="90%">
       <!-- 动态引入组件-->
       <component :is="actForm" :data="details":actOpen="actOpen" @getList="getList" ></component>
+
+
     </el-dialog>
   </div>
 </template>
@@ -111,6 +112,7 @@
   import { havedInfo } from "@/api/activiti/form/fw";
   import { recordImg, examineHistory } from '@/api/system/meapply/meapply'
   import {getStartFormKey } from '@/api/activiti/process/startprocess'
+
   export default {
     name: 'havedone',
     data(){

+ 21 - 3
src/views/system/actwork/todo.vue

@@ -62,7 +62,7 @@
             size="small"
             type="text"
             icon="el-icon-edit"
-            @click="openactform(scope.row.processDfinitionId,scope.row.businessKey)"
+            @click="openactform(scope.row.processDfinitionId,scope.row.businessKey,scope.row.name,scope.row.title)"
           >办理</el-button>
         <!--  <el-button
             size="small"
@@ -85,6 +85,8 @@
                top="10" height="90%">
       <!-- 动态引入组件-->
       <component :is="actForm" :data="details":actOpen="actOpen" @getList="getList" ></component>
+
+      <Option :optiontitle="optiontitle" :optionactkey="optionactkey" :optionid="optionid" v-show="optiontrue"></Option>
     </el-dialog>
 
   </div>
@@ -93,9 +95,10 @@
 <script>
   import {toDoItemListInfo} from "@/api/activiti/form/fw";
   import {getStartFormKey } from '@/api/activiti/process/startprocess'
+  import Option from "@/components/files/option";
   export default {
     name: 'todo',
-
+    components: {Option},
     data(){
       return {
         //流程遮罩层
@@ -107,6 +110,10 @@
         },
         dialogVisible:false,
         tabPosition:'left',
+        optiontrue:false,
+        optiontitle:'',
+        optionactkey:'',
+        optionid:'',
         // 遮罩层
         loading: true,
         // 选中数组
@@ -151,7 +158,17 @@
             this.$router.push({path:'/actwork/todo/tododetails',query: {id:actkey }})
         },
       //通过流程key查询启动的表单fromkey
-      openactform(actkey,id) {
+      openactform(actkey,id,name,title) {
+
+        if(name == "赋文号归档分发"){
+          this.optiontrue = true;
+          this.optiontitle = title;
+          this.optionactkey = actkey;
+          this.optionid = id;
+        }else{
+          this.optiontrue = false;
+        }
+
         let vue = this
         actkey=actkey.split(":")[0];
         this.details.getactkey = actkey//动态传参到下面的页面
@@ -172,6 +189,7 @@
         this.loading = true;
         toDoItemListInfo(this.toDoParams).then(response => {
           this.infoList = response.rows;
+          console.log(response.rows)
           this.total = response.total;
           this.loading = false;
           this.actOpen=false;

+ 8 - 2
src/views/system/duty/duty.vue

@@ -436,8 +436,6 @@
         this.$refs.selectUserByDept3.childOpen=true;
         this.open3 = true;
         this.title = "选择晚上值班人员";
-
-
         this.$refs.selectUserByDept1.childOpen=false;
         this.$refs.selectUserByDept2.childOpen=false;
         this.$refs.selectUserByDept.childOpen=false;
@@ -472,6 +470,14 @@
       cancel() {
         this.form = {};
         this.dialogVisible = false;
+        this.open = false;
+        this.open1 = false;
+        this.open2 = false;
+        this.open3 = false;
+        this.$refs.selectUserByDept.childOpen = false;
+        this.$refs.selectUserByDept1.childOpen = false;
+        this.$refs.selectUserByDept2.childOpen = false;
+        this.$refs.selectUserByDept3.childOpen = false;
         this.reset();
       },
       // 表单重置

+ 2 - 2
src/views/system/email/detail.vue

@@ -73,8 +73,8 @@
 
       </el-table-column>
       <el-table-column label="邮件主题" align="center" prop="mailTheme" />
-      <!--<el-table-column label="收件人-账号" align="center" prop="receiverAccount" />-->
-      <el-table-column label="收件人" align="center" prop="receiverName" v-if="receiverAccount != 'admin'" />
+<!--      <el-table-column label="收件人-账号" align="center" prop="receiverAccount" />-->
+      <el-table-column label="收件人" align="center" prop="receiverName" v-if="receiverAccount == 'admin'" />
       <el-table-column label="接收时间" width="180" align="center" prop="readTime"/>
       <el-table-column label="操作" width="200" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">