Parcourir la source

删除冗余代码(云润)

cfort il y a 3 ans
Parent
commit
8cee7d992c

+ 0 - 181
src/views/platform/office/ent/handled.vue

@@ -1,181 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      :selection-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    />
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :instance-id="instanceId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-  </div>
-</template>
-<script>
-import { handled } from '@/api/platform/office/bpmReceived'
-import { statusOptions, endOptions } from '@/business/platform/bpmn/constants'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      instanceId: '', // 编辑dialog需要使用
-
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^inst.subject_^SL', label: '请求标题' },
-            { prop: 'Q^proc_def_name_^SL', name: 'Q^inst.proc_def_name_^SL', label: '流程名称' },
-            { prop: 'Q^status_^S',
-              name: 'Q^inst.status_^S',
-              label: '状态',
-              labelWidth: 70,
-              fieldType: 'select',
-              options: statusOptions
-            },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^inst.create_time_^DL', 'Q^inst.create_time_^DG'],
-              label: '创建时间',
-              fieldType: 'daterange'
-            },
-            { prop: 'end',
-              label: '是否结束',
-              labelWidth: 100,
-              fieldType: 'select',
-              options: endOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 150 },
-          { prop: 'curNode', label: '当前节点', width: 150 },
-          { prop: 'createTime', label: '创建时间', width: 150 },
-          { prop: 'status', label: '状态', tags: statusOptions, width: 100 }
-        ]
-      },
-      pagination: {},
-      sorts: {}
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      handled(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^inst.TYPE_ID_^S'] = this.typeId
-      }
-      params['Q^inst.proc_def_name_^SL'] = '非金属检测'
-      
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data) {
-      this.instanceId = data.id || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 175
src/views/platform/office/ent/over.vue

@@ -1,175 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      :selection-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    />
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :instance-id="instanceId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-  </div>
-</template>
-<script>
-import { handled } from '@/api/platform/office/bpmReceived'
-import { statusOptions, status } from '@/business/platform/bpmn/constants'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      instanceId: '',
-
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^inst.subject_^SL', label: '请求标题', itemWidth: 200 },
-            { prop: 'Q^proc_def_name_^SL', name: 'Q^inst.proc_def_name_^SL', label: '流程名称', itemWidth: 200 },
-            { prop: 'Q^status_^S',
-              name: 'Q^inst.status_^S',
-              label: '状态',
-              itemWidth: 200,
-              labelWidth: 70,
-              fieldType: 'select',
-              options: status
-            },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^inst.create_time_^DL', 'Q^inst.create_time_^DG'],
-              label: '创建时间',
-              fieldType: 'daterange'
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 200 },
-          { prop: 'createTime', label: '创建时间', width: 150 },
-          { prop: 'status', label: '状态', tags: statusOptions, width: 140 }
-        ]
-      },
-      pagination: {},
-      sorts: {}
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      handled(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      params['end'] = '1'
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^TYPE_ID_^S'] = this.typeId
-      }
-	   params['Q^inst.proc_def_name_^SL'] = '非金属检测'
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data) {
-      this.instanceId = data.id || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pending.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0cixtti'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pendingBianZhi.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0j0et2b'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pendingFafang.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_1pfjf0f'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pendingFenPei.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0xt9cxa'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pendingJieGuo.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_1dhbk7c'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pendingPiZhun.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0m7qrqx'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pendingShenHe.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_088bih7'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pendingShiYan.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0oyz5ex'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 325
src/views/platform/office/ent/pendingWanCheng.vue

@@ -1,325 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '请求标题', link: 'dialog', labelWidth: 80, itemWidth: 200 },
-            // { prop: 'Q^creatorId^S',  label: '创建人', labelWidth: 80, itemWidth: 200, fieldType: 'slot', slotName: 'searchFormCreator' },
-            { prop: 'Q^procDefName^SL', name: 'Q^temp.procDefName^SL', label: '流程名称', labelWidth: 80, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            },
-            { prop: 'taskType',
-              label: '任务类型',
-              itemWidth: 200,
-              fieldType: 'select',
-              labelWidth: 80,
-              options: taskTypeOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '请求标题', link: 'dialog' },
-          { prop: 'procDefName', label: '流程名称', width: 120 },
-          { prop: 'name', label: '当前节点', width: 120 },
-          { prop: 'createTime', label: '创建时间', width: 140 },
-          { prop: 'ownerName', label: '所属人', width: 150 },
-          { prop: 'status', label: '待办类型', tags: taskTypeOptions, width: 100 }
-        ],
-        // 管理列
-        rowHandle: {
-          effect: 'display',
-          width: '80px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        }
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_14ryvxl'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/BaoGao.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0ctkdm7'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/FaFang.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_1h4qvom'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/FenPei.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_003iymz'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/JiShu.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0lbeobf'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/JianCe.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_1tvmw6z'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/JiaoYan.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0cyqefn'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/JieShou.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_0a29942'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/PingShen.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_1qptm8e'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/qianZi.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_14ymr0a'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 314
src/views/platform/office/ent/yunrun/shouLi.vue

@@ -1,314 +0,0 @@
-<template>
-  <div>
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-      <template slot="searchFormCreator">
-        <ibps-employee-selector
-          v-model="searchFormCreator"
-          style="width:200px;"
-        />
-      </template>
-      <template v-slot:ownerName="{value}">
-        <el-popover trigger="hover" placement="top" width="250">
-          {{ value }}
-          <div slot="reference" class="ibps-ellipsis">
-            {{ value }}
-          </div>
-        </el-popover>
-      </template>
-    </ibps-crud>
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :task-id="taskId"
-      @callback="search"
-      @close="visible => dialogFormVisible = visible"
-    />
-    <!-- 转办 -->
-    <delegate
-      :task-id="taskId"
-      :title="title"
-      :visible="delegateVisible"
-      @callback="search"
-      @close="visible => delegateVisible = visible"
-    />
-    <!-- 批量审批 -->
-    <approve-dialog
-      :visible="approveDialogVisible"
-      :title="title"
-      :task-id="taskId"
-      :action="action"
-      @callback="search"
-      @close="visible => approveDialogVisible = visible"
-    />
-    </div>
-</template>
-<script>
-import { pending } from '@/api/platform/office/bpmReceived'
-import { batchSuspendProcess, batchRecoverProcess } from '@/api/platform/bpmn/bpmTask'
-import ActionUtils from '@/utils/action'
-import FixHeight from '@/mixins/height'
-import { taskTypeOptions } from '@/business/platform/bpmn/constants'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import Delegate from '@/business/platform/bpmn/task-change/edit'
-import ApproveDialog from '@/business/platform/bpmn/form-ext/approve'
-
-export default {
-  components: {
-    IbpsTypeTree,
-    IbpsEmployeeSelector,
-    Delegate,
-    ApproveDialog,
-    BpmnFormrender
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      width: 200,
-      height: document.clientHeight,
-      dialogFormVisible: false, // 弹窗
-      approveDialogVisible: false, // 批量审批
-      delegateVisible: false,
-      action: '',
-      taskId: '', // 编辑dialog需要使用
-      title: '',
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId: '',
-      loading: false,
-      listData: [],
-      listConfig: {
-        // 工具栏
-        toolbars: [
-          { key: 'search' },
-          {
-            key: 'agree',
-            label: '同意',
-            icon: 'ibps-icon-check-square-o'
-          },
-          {
-            key: 'stop',
-            label: '终止',
-            icon: 'ibps-icon-ioxhost'
-          },
-          {
-            key: 'suspend',
-            label: '挂起',
-            icon: 'ibps-icon-ioxhost '
-          },
-          {
-            key: 'recover',
-            label: '恢复',
-            icon: 'ibps-icon-ioxhost '
-          }
-        ],
-        // 查询条件
-        searchForm: {
-          forms: [
-            { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '标题关键字', link: 'dialog', labelWidth: 82, itemWidth: 200 },
-            {
-              prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
-              name: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
-              label: '时间',
-              fieldType: 'daterange',
-              labelWidth: 80,
-              itemWidth: 200
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-          { prop: 'subject', label: '任务标题', link: 'dialog' },
-          { prop: 'name', label: '任务节点', width: 150 },
-          { prop: 'createTime', label: '开始时间', width: 150 },
-          { prop: 'ownerName', label: '所属人', width: 200 },
-        ],
-        // 管理列
-      /*  rowHandle: {
-          effect: 'display',
-          width: '100px',
-          actions: [
-            {
-              key: 'delegate',
-              label: '转办',
-              icon: 'ibps-icon-mail-forward',
-              hidden: (row, index) => {
-                if (row.allowShfit === 'Y') return false
-                return true
-              }
-
-            }
-          ]
-        } */
-      },
-      pagination: {},
-      sorts: {},
-      searchFormCreator: ''
-
-    }
-  },
-  created() {
-    this.loadData()
-  },
-  methods: {
-    /**
-     * 加载数据
-     */
-    loadData() {
-      this.loading = true
-      pending(this.getFormatParams()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getFormatParams() {
-      const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-      if (this.$utils.isNotEmpty(this.typeId)) {
-        params['Q^temp.TYPE_ID_^S'] = this.typeId
-      }
-     params['Q^NODE_ID_^SL'] = 'Activity_1hun5fz'
-
-      return ActionUtils.formatParams(
-        params,
-        this.pagination,
-        this.sorts)
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    search() {
-      this.loadData()
-    },
-    /**
-     * 重置查询条件
-     */
-    reset() {
-      this.$refs['crud'].handleReset()
-    },
-    /**
-     * 点击表格
-     */
-    handleLinkClick(data, columns) {
-      this.taskId = data.taskId || ''
-      this.dialogFormVisible = true
-    },
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'stop': // 终止
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'stop')
-            this.title = '批量终止流程'
-          }).catch(() => { })
-          break
-        case 'agree': // 同意
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleBatchApprove(ids, 'agree')
-            this.title = '批量同意审批'
-          }).catch(() => { })
-          break
-        case 'suspend': // 挂起
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleSuspend(ids)
-          }).catch(() => { })
-          break
-        case 'recover': // 恢复
-          ActionUtils.selectedMultiRecord(selection).then((ids) => {
-            this.handleRecover(ids)
-          }).catch(() => { })
-          break
-        case 'delegate': // 转办
-          ActionUtils.selectedRecord(selection).then((id) => {
-            this.title = '任务转办'
-            this.handleDelegate(id)
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    /**
-     * 处理批量审批
-     */
-    handleBatchApprove(id = '', action = 'agree') {
-      this.taskId = id
-      this.action = action
-      this.approveDialogVisible = true
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleSuspend(ids) {
-      this.$confirm('确认批量挂起流程任务?', '信息').then(() => {
-        batchSuspendProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('挂起流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    /**
-     * 批量挂起任务
-     */
-    handleRecover(ids) {
-      this.$confirm('确认批量恢复流程任务?', '信息').then(() => {
-        batchRecoverProcess({ taskIds: ids }).then(() => {
-          ActionUtils.successMessage('恢复流程任务成功')
-          this.search()
-        }).catch(err => {
-          console.error(err)
-        })
-      })
-    },
-    handleDelegate(id) {
-      this.taskId = id
-      this.delegateVisible = true
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    }
-  }
-}
-</script>

+ 0 - 381
src/views/platform/office/ent/yunrunJiLu/list.vue

@@ -1,381 +0,0 @@
-<template>
-  <div class="main-container">
-
-
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      :selection-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-
-    <template slot="selectCont" slot-scope="scope">
-      <el-popover
-        :ref="'popover2-' + scope.row.id"
-        placement="bottom"
-        width="280"
-        popper-class="popverClass"
-        trigger="click"
-        @show="getReportAndFile(scope.row)"
-      >
-        <!-- 触发事件 --> <!-- @click="handleAction('detail',null,null,scope.row)"-->
-        <div class="div_test el-icon-s-order" slot="reference" >相关文件列</div>
-        <!-- 弹框内容 -->
-        <div class="div_content">
-          <!-- 获取所有输出报告-->
-          <div class="content_butts" v-if="currReportCont.report.length>0" v-for="(item, i) in currReportCont.report">
-            <span style="cursor: pointer;" @click="clickCont(currReportCont,i)">
-             <i class="el-icon-tickets" style="font-size: 18px;"/>
-            {{item.split('/')[1].split('.')[0].split(' ')[1]}}
-            </span>
-            <br>
-          </div>
-
-          <div class="content_butts" v-if="currReportCont.file">
-           <ibps-attachment v-model="fileId" placeholder="请选择" :download="true" :readonly="true"
-             accept="*" :multiple="true" upload-type="attachment" store="id" media-type=""
-             media="" style="width:100%;" />
-          </div>
-
-
-        </div>
-      </el-popover>
-    </template>
-
-    </ibps-crud>
-
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :instance-id="instanceId"
-      @close="visible => dialogFormVisible = visible"
-    />
-
-
-
-
-    <el-dialog
-        width="85%"
-        :modal-append-to-body='false'
-        :visible.sync="visible">
-
-            <iframe :src="srcUrl" style="width:100%; height: calc(100vh) !important;"></iframe>
-
-      </el-dialog>
-
-  </div>
-
-</template>
-
-<script>
-import { queryPageList } from '@/api/platform/bpmn/bpmInstHis'
-import ActionUtils from '@/utils/action'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import FixHeight from '@/mixins/height'
-import { searchOptions, resultTypeOptions, statusOptions } from '../../../bpmn/bpmInstHis/constants/index.js'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import curdPost from '../../../../../business/platform/form/utils/custom/joinCURD.js' //增删改查规则
-import IbpsAttachment from '@/business/platform/file/attachment/selector'
-export default {
-  components: {
-    IbpsTypeTree,
-    BpmnFormrender,
-   'ibps-attachment': IbpsAttachment
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      dialogFormVisible: false, // 弹窗
-      instanceId: '', // 编辑dialog需要使用
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId:'',
-      srcUrl:'', //报表字段
-      fileId:'',//文件字段
-      isDisable:false, //判断多次点击
-      forClick:'',//判断是否重复点击
-      visible:false,
-      currReportCont:{},
-      title: '',
-      loading: true,
-      height: document.clientHeight,
-      reportAll:"",
-      listData: [],
-      pagination: {},
-      sorts: {},
-      listConfig: {
-        toolbars: [
-          { key: 'search' }
-        ],
-        searchForm: {
-          forms: [
-           { prop: 'Q^subject_^SL', label: '任务标题' },
-          /* { prop: 'Q^proc_def_name_^SL', label: '任务名称' }, */
-            {
-              prop: ['Q^create_Time_^DL', 'Q^create_Time_^DG'],
-              label: '任务时间',
-              fieldType: 'daterange',
-            },
-            {
-              prop: 'Q^status_^S',
-              label: '任务状态',
-              fieldType: 'select',
-              options: searchOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-         { prop: 'subject', label: '任务标题'},
-          { prop: 'createTime', label: '创建时间', sortable: 'custom', dateFormat: 'yyyy-MM-dd', width: 150 },
-          { prop: 'endTime', label: '结束时间', sortable: 'custom', dateFormat: 'yyyy-MM-dd', width:150 },
-          { prop: 'duration', label: '持续时间', filter: 'duration', width: 120 },
-          { prop: 'resultType', label: '审批结果', tags: resultTypeOptions, width: 120 },
-          { prop: 'status', label: '状态', tags: statusOptions, width: 80 }
-        ],
-        rowHandle: {
-          actions: [/* {
-            key: 'detail',label:"内容及附件"
-          } */],
-           effect:'display',
-            width:'100'//固定按钮
-        }
-      }
-    }
-  },
-  created() {
-    this.loadData()
-    this.getConfig() //获取配置的报表
-  },
-  methods: {
-    //获取配置报表数据
-    getConfig(){
-      curdPost('select',this.packNameWhere('t_lcidglbdbb',{'1':'1'})).then(response => {
-                 this.reportAll = response.variables.data
-               })
-      },
-      /* 封装表名与条件*/
-      packNameWhere(name,where){
-        let cont = {}
-        cont['tableName'] = name
-        cont['paramWhere'] = where
-        return cont
-      },
-    // 加载数据
-    loadData() {
-      this.loading = true
-      queryPageList(this.getSearcFormData()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getSearcFormData() {
-        const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-
-        let cont = ActionUtils.formatParams(
-          params,
-          this.pagination,
-          this.sorts)
-
-          cont.parameters = [
-                        {
-                            "relation": "OR",
-                            "parameters": [
-                                {    "relation": "AND",
-                                    "parameters": [
-                                        {
-                                            "key": "Q^proc_Def_Key_^S",
-                                            "value": "Process_08hbmhs",
-                                            "param": "name"
-                                        }
-                                    ]
-                                },
-                                {    "relation": "AND",
-                                    "parameters": [
-                                        {
-                                            "key": "Q^proc_Def_Key_^S",
-                                            "value": "Process_0xlaidt",
-                                            "param": "name1"
-                                        }
-                                    ]
-                                }
-                            ]
-                        }
-                    ]
-
-          return cont
-
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    handleLinkClick(data, columns) {
-      this.handleEdit(data.id)
-    },
-    /**
-     * 查询
-     */
-    search() {
-      this.loadData()
-    },
-    /* 防止多次快速查询*/
-    numbersClick(){
-      this.isDisable = true
-          setTimeout(() => {
-           this.isDisable = false
-          }, 600)
-    },
-    /*1 遍历,返回附件和报告*/
-    selectRetrunData(key){
-       for(let i=0;i<this.reportAll.length;i++){
-          let data = {}
-         if(key.procDefKey === this.reportAll[i].liu_cheng_xuan_ze){
-           if(this.reportAll[i].bao_biao_lu_jing_){
-              data['report'] =this.reportAll[i].bao_biao_lu_jing_.split(",")
-           }
-           data['file'] = this.reportAll[i].fu_jian_nei_rong_
-           data['formId'] = key.bizKey
-           data['mysql'] = this.reportAll[i].shi_fou_zi_biao_
-           return data
-         }
-       }
-
-    },
-
-    /* 2、打开内容与附件,获取相关报告与附件内容*/
-    getReportAndFile(data){
-      if(this.forClick == data.id || this.isDisable){ //判断,是否重复点击  是否多次高速点击
-        if(this.isDisable)  this.$message.error('请勿快速点击!');
-        return
-      }
-      this.numbersClick()
-      this.forClick = data.id
-
-      this.fileId = ''
-      this.currReportCont= {}
-      if(!data.procDefKey) return
-
-      let cont = this.selectRetrunData(data)
-      if(!cont) return
-
-      this.currReportCont = cont
-      if(cont.file && cont.mysql){ //拥有文件的表单,查询对应文件
-        this.getfIle(cont)
-      }
-    },
-    /* 3打开报告 */
-    clickCont(cont,i){
-      this.srcUrl =this.$reportPash.replace("show","pdf")+cont.report[i]+'&id_='+cont.formId
-      this.visible=true
-    },
-    /*3 获取文件内容, 以表名+ id 去获取对应参数*/
-    getfIle(cont){
-      curdPost('select',this.packNameWhere(cont.mysql,{'id_':cont.formId})).then(response => {
-        curdPost('select',this.packNameWhere('t_gdyrqcwt',{'id_':response.variables.data[0]["wei_tuo_id_"]})).then(data => {
-              this.fileId = data.variables.data[0][cont.file]
-               })
-            })
-    },
-
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'detail':// 明细
-         ActionUtils.selectedRecord(selection).then((id) => {
-          this.handleEdit(id)
-            this.title = '信息'
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    },
-    /**
-     * 处理编辑
-     */
-    handleEdit(id = '') {
-      this.instanceId = id
-      this.dialogFormVisible = true
-    }
-  }
-}
-</script>
-<style>
-  .main-container .el-dialog{
-     top: -12%;
-    }
-  .main-container .el-dialog__header{
-    padding: 0;
-     margin: 0;
-    }
-   .main-container .el-dialog__body{
-     padding: 0;
-     margin: 0;
-     height:  calc(100vh) !important;
-   }
-   .main-container .div_test{
-     cursor: pointer;
-   }
-   .main-container .el-popover.popverClass {
-     .div_content {
-       .content_checkbox {
-         .el-checkbox-group {
-           display: flex;
-           flex-direction: column;
-           z-index: 999;
-         }
-         z-index: 999;
-       }
-        .content_butts {
-          z-index: 999;
-             margin-top: 20px;
-             display: flex;
-             justify-content: flex-end;
-             .el-button {
-               padding: 7px 14px;
-              }
-            }
-          }
-
-       }
-</style>

+ 0 - 354
src/views/platform/office/ent/yunrunJiLu/qianZiRen.vue

@@ -1,354 +0,0 @@
-<template>
-  <div class="main-container">
-
-
-    <ibps-crud
-      ref="crud"
-      :height="height"
-      :data="listData"
-      :toolbars="listConfig.toolbars"
-      :search-form="listConfig.searchForm"
-      :pk-key="pkKey"
-      :columns="listConfig.columns"
-      :row-handle="listConfig.rowHandle"
-      :pagination="pagination"
-      :loading="loading"
-      :index-row="false"
-      :selection-row="false"
-      @action-event="handleAction"
-      @sort-change="handleSortChange"
-      @column-link-click="handleLinkClick"
-      @pagination-change="handlePaginationChange"
-    >
-
-    <template slot="selectCont" slot-scope="scope">
-      <el-popover
-        :ref="'popover2-' + scope.row.id"
-        placement="bottom"
-        width="250"
-        popper-class="popverClass"
-        trigger="click"
-        @show="getReportAndFile(scope.row)"
-      >
-        <!-- 触发事件 --> <!-- @click="handleAction('detail',null,null,scope.row)"-->
-        <div class="div_test el-icon-s-order" slot="reference" >内容与附件</div>
-        <!-- 弹框内容 -->
-        <div class="div_content">
-          <!-- 获取所有输出报告-->
-          <div class="content_butts" v-if="currReportCont.report.length>0" v-for="(item, i) in currReportCont.report">
-            <span style="cursor: pointer;" @click="clickCont(currReportCont,i)">
-             <i class="el-icon-tickets" style="font-size: 18px;"/>
-            {{item.split('/')[1].split('.')[0].split(' ')[1]}}
-            </span>
-            <br>
-          </div>
-
-          <div class="content_butts" v-if="currReportCont.file">
-           <ibps-attachment v-model="fileId" placeholder="请选择" :download="true" readonly="true"
-             accept="*" :multiple="true" upload-type="attachment" store="id" media-type=""
-             media="" style="width:100%;" />
-          </div>
-
-
-        </div>
-      </el-popover>
-    </template>
-
-    </ibps-crud>
-
-    <bpmn-formrender
-      :visible="dialogFormVisible"
-      :instance-id="instanceId"
-      @close="visible => dialogFormVisible = visible"
-    />
-
-
-
-
-    <el-dialog
-        width="85%"
-        :modal-append-to-body='false'
-        :visible.sync="visible">
-
-            <iframe :src="srcUrl" style="width:100%;height: calc(100vh) !important;"></iframe>
-
-      </el-dialog>
-
-  </div>
-
-</template>
-
-<script>
-import { queryPageList } from '@/api/platform/bpmn/bpmInstHis'
-import ActionUtils from '@/utils/action'
-import IbpsTypeTree from '@/business/platform/cat/type/tree'
-import FixHeight from '@/mixins/height'
-import { searchOptions, resultTypeOptions, statusOptions } from '../../../bpmn/bpmInstHis/constants/index.js'
-import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
-import curdPost from '../../../../../business/platform/form/utils/custom/joinCURD.js' //增删改查规则
-import IbpsAttachment from '@/business/platform/file/attachment/selector'
-export default {
-  components: {
-    IbpsTypeTree,
-    BpmnFormrender,
-   'ibps-attachment': IbpsAttachment
-  },
-  mixins: [FixHeight],
-  data() {
-    return {
-      dialogFormVisible: false, // 弹窗
-      instanceId: '', // 编辑dialog需要使用
-      pkKey: 'id', // 主键  如果主键不是pk需要传主键
-      typeId:'',
-      srcUrl:'', //报表字段
-      fileId:'',//文件字段
-      isDisable:false, //判断多次点击
-      forClick:'',//判断是否重复点击
-      visible:false,
-      currReportCont:{},
-      title: '',
-      loading: true,
-      height: document.clientHeight,
-      reportAll:"",
-      listData: [],
-      pagination: {},
-      sorts: {},
-      listConfig: {
-        toolbars: [
-          { key: 'search' }
-        ],
-        searchForm: {
-          forms: [
-           { prop: 'Q^subject_^SL', label: '任务标题' },
-          /* { prop: 'Q^proc_def_name_^SL', label: '任务名称' }, */
-            {
-              prop: ['Q^create_Time_^DL', 'Q^create_Time_^DG'],
-              label: '任务时间',
-              fieldType: 'daterange',
-            },
-            {
-              prop: 'Q^status_^S',
-              label: '任务状态',
-              fieldType: 'select',
-              options: searchOptions
-            }
-          ]
-        },
-        // 表格字段配置
-        columns: [
-         { prop: 'subject', label: '任务标题'},
-          { prop: 'createTime', label: '创建时间', sortable: 'custom', dateFormat: 'yyyy-MM-dd', width: 150 },
-          { prop: 'endTime', label: '结束时间', sortable: 'custom', dateFormat: 'yyyy-MM-dd', width:150 },
-          { prop: 'duration', label: '持续时间', filter: 'duration', width: 120 },
-          { prop: 'resultType', label: '审批结果', tags: resultTypeOptions, width: 120 },
-          { prop: 'status', label: '状态', tags: statusOptions, width: 80 }
-        ],
-        rowHandle: {
-          actions: [/* {
-            key: 'detail',label:"内容及附件"
-          } */],
-           effect:'display',
-            width:'100'//固定按钮
-        }
-      }
-    }
-  },
-  created() {
-    this.loadData()
-    this.getConfig() //获取配置的报表
-  },
-  methods: {
-    //获取配置报表数据
-    getConfig(){
-      curdPost('select',this.packNameWhere('t_lcidglbdbb',{'1':'1'})).then(response => {
-                 this.reportAll = response.variables.data
-               })
-      },
-      /* 封装表名与条件*/
-      packNameWhere(name,where){
-        let cont = {}
-        cont['tableName'] = name
-        cont['paramWhere'] = where
-        return cont
-      },
-    // 加载数据
-    loadData() {
-      this.loading = true
-      queryPageList(this.getSearcFormData()).then(response => {
-        ActionUtils.handleListData(this, response.data)
-        this.loading = false
-      }).catch(() => {
-        this.loading = false
-      })
-    },
-    /**
-     * 获取格式化参数
-     */
-    getSearcFormData() {
-        const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
-        if (this.$utils.isNotEmpty(this.typeId)) {
-          params['Q^TYPE_ID_^S'] = this.typeId
-        }
-        params['Q^proc_Def_Key_^SL'] = 'Process_0ocg0f1'
-        return ActionUtils.formatParams(
-          params,
-          this.pagination,
-          this.sorts)
-
-    },
-    /**
-     * 处理分页事件
-     */
-    handlePaginationChange(page) {
-      ActionUtils.setPagination(this.pagination, page)
-      this.loadData()
-    },
-    /**
-     * 处理排序
-     */
-    handleSortChange(sort) {
-      ActionUtils.setSorts(this.sorts, sort)
-      this.loadData()
-    },
-    handleLinkClick(data, columns) {
-      this.handleEdit(data.id)
-    },
-    /**
-     * 查询
-     */
-    search() {
-      this.loadData()
-    },
-    /* 防止多次快速查询*/
-    numbersClick(){
-      this.isDisable = true
-          setTimeout(() => {
-           this.isDisable = false
-          }, 600)
-    },
-    /*1 遍历,返回附件和报告*/
-    selectRetrunData(key){
-       for(let i=0;i<this.reportAll.length;i++){
-          let data = {}
-         if(key.procDefKey === this.reportAll[i].liu_cheng_xuan_ze){
-           if(this.reportAll[i].bao_biao_lu_jing_){
-              data['report'] =this.reportAll[i].bao_biao_lu_jing_.split(",")
-           }
-           data['file'] = this.reportAll[i].fu_jian_nei_rong_
-           data['formId'] = key.bizKey
-           data['mysql'] = this.reportAll[i].shi_fou_zi_biao_
-           return data
-         }
-       }
-
-    },
-
-    /* 2、打开内容与附件,获取相关报告与附件内容*/
-    getReportAndFile(data){
-      if(this.forClick == data.id || this.isDisable){ //判断,是否重复点击  是否多次高速点击
-        if(this.isDisable)  this.$message.error('请勿快速点击!');
-        return
-      }
-      this.numbersClick()
-      this.forClick = data.id
-
-      this.fileId = ''
-      this.currReportCont= {}
-      if(!data.procDefKey) return
-
-      let cont = this.selectRetrunData(data)
-      if(!cont) return
-
-      this.currReportCont = cont
-      if(cont.file && cont.mysql){ //拥有文件的表单,查询对应文件
-        this.getfIle(cont)
-      }
-    },
-    /* 3打开报告 */
-    clickCont(cont,i){
-      this.srcUrl =this.$reportPash.replace("show","pdf")+cont.report[i]+'&id_='+cont.formId
-      this.visible=true
-    },
-    /*3 获取文件内容, 以表名+ id 去获取对应参数*/
-    getfIle(cont){
-      curdPost('select',this.packNameWhere(cont.mysql,{'id_':cont.formId})).then(response => {
-              this.fileId = response.variables.data[0][cont.file]
-               })
-    },
-
-    /**
-     * 处理按钮事件
-     */
-    handleAction(command, position, selection, data) {
-      switch (command) {
-        case 'search':// 查询
-          ActionUtils.setFirstPagination(this.pagination)
-          this.search()
-          break
-        case 'detail':// 明细
-         ActionUtils.selectedRecord(selection).then((id) => {
-          this.handleEdit(id)
-            this.title = '信息'
-          }).catch(() => { })
-          break
-        default:
-          break
-      }
-    },
-
-    handleNodeClick(typeId) {
-      this.typeId = typeId
-      this.loadData()
-    },
-    handleExpandCollapse(isExpand) {
-      this.width = isExpand ? 230 : 30
-    },
-    /**
-     * 处理编辑
-     */
-    handleEdit(id = '') {
-      this.instanceId = id
-      this.dialogFormVisible = true
-    }
-  }
-}
-</script>
-<style>
-  .main-container .el-dialog{
-     top: -12%;
-    }
-  .main-container .el-dialog__header{
-    padding: 0;
-     margin: 0;
-    }
-   .main-container .el-dialog__body{
-     padding: 0;
-     margin: 0;
-     height:  calc(100vh) !important;
-   }
-   .main-container .div_test{
-     cursor: pointer;
-   }
-   .main-container .el-popover.popverClass {
-     .div_content {
-       .content_checkbox {
-         .el-checkbox-group {
-           display: flex;
-           flex-direction: column;
-           z-index: 999;
-         }
-         z-index: 999;
-       }
-        .content_butts {
-          z-index: 999;
-             margin-top: 20px;
-             display: flex;
-             justify-content: flex-end;
-             .el-button {
-               padding: 7px 14px;
-              }
-            }
-          }
-
-       }
-</style>