|
@@ -4,25 +4,12 @@
|
|
|
|
|
|
<el-tabs type="border-card" v-model="taskSelectedTab" @tab-click="onTabChange">
|
|
<el-tabs type="border-card" v-model="taskSelectedTab" @tab-click="onTabChange">
|
|
<el-tab-pane label="表单信息" name="form-first">
|
|
<el-tab-pane label="表单信息" name="form-first">
|
|
- <component
|
|
|
|
- :formReadOnly="formReadOnly"
|
|
|
|
- v-if="formType === '2'"
|
|
|
|
- :class="formReadOnly ? 'readonly' : ''"
|
|
|
|
- ref="form"
|
|
|
|
- :businessId="businessId"
|
|
|
|
- :is="form"
|
|
|
|
- :status="status"
|
|
|
|
- @callBackFunc="callBackFunc"
|
|
|
|
- @changeLoading="changeLoading"
|
|
|
|
- ></component>
|
|
|
|
|
|
+ <component :formReadOnly="formReadOnly" v-if="formType === '2'" :class="formReadOnly ? 'readonly' : ''"
|
|
|
|
+ ref="form" :businessId="businessId" :is="form" :status="status" @callBackFunc="callBackFunc"
|
|
|
|
+ @changeLoading="changeLoading"></component>
|
|
|
|
|
|
- <PreviewForm
|
|
|
|
- v-if="formType !== '2'"
|
|
|
|
- :processDefinitionId="procDefId"
|
|
|
|
- :edit="true"
|
|
|
|
- :taskFormData="taskFormData"
|
|
|
|
- ref="form"
|
|
|
|
- />
|
|
|
|
|
|
+ <PreviewForm v-if="formType !== '2'" :processDefinitionId="procDefId" :edit="true"
|
|
|
|
+ :taskFormData="taskFormData" ref="form" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="流程信息" v-if="procInsId" name="form-second">
|
|
<el-tab-pane label="流程信息" v-if="procInsId" name="form-second">
|
|
<flow-time-line :historicTaskList="historicTaskList" />
|
|
<flow-time-line :historicTaskList="historicTaskList" />
|
|
@@ -34,77 +21,59 @@
|
|
<span>流程图</span>
|
|
<span>流程图</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <flow-chart
|
|
|
|
- ref="chart1"
|
|
|
|
- v-if="procInsId"
|
|
|
|
- :processInstanceId="procInsId"
|
|
|
|
- />
|
|
|
|
- <flow-chart
|
|
|
|
- ref="chart2"
|
|
|
|
- v-if="!procInsId"
|
|
|
|
- :processDefId="procDefId"
|
|
|
|
- />
|
|
|
|
|
|
+ <flow-chart ref="chart1" v-if="procInsId" :processInstanceId="procInsId" />
|
|
|
|
+ <flow-chart ref="chart2" v-if="!procInsId" :processDefId="procDefId" />
|
|
</el-card>
|
|
</el-card>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="流转记录" v-if="procInsId" name="form-forth">
|
|
<el-tab-pane label="流转记录" v-if="procInsId" name="form-forth">
|
|
<flow-step :historicTaskList="historicTaskList" />
|
|
<flow-step :historicTaskList="historicTaskList" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="入库修改历史" v-if="commonJS.isNotEmpty(wareHouseId)" name="form-sixth">
|
|
<el-tab-pane label="入库修改历史" v-if="commonJS.isNotEmpty(wareHouseId)" name="form-sixth">
|
|
- <vxe-table
|
|
|
|
- ref="wareHouseTable"
|
|
|
|
- border="inner"
|
|
|
|
- size="small"
|
|
|
|
- :key="222"
|
|
|
|
- max-height="1000px"
|
|
|
|
- class="vxe-table-element"
|
|
|
|
- :data="dataListHi">
|
|
|
|
|
|
+ <vxe-table ref="wareHouseTable" border="inner" size="small" :key="222" max-height="1000px"
|
|
|
|
+ class="vxe-table-element" :data="dataListHi">
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column min-width="120" align="center" title="修改类型" field="updateTradeType">
|
|
<vxe-column min-width="120" align="center" title="修改类型" field="updateTradeType">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <span v-if="commonJS.isNotEmpty(scope.row.updateTradeType)"> {{scope.row.updateTradeType}} </span>
|
|
|
|
|
|
+ <span v-if="commonJS.isNotEmpty(scope.row.updateTradeType)"> {{ scope.row.updateTradeType }}
|
|
|
|
+ </span>
|
|
<span v-else> -- </span>
|
|
<span v-else> -- </span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="160" align="center" title="修改商品" field="updateTradeName">
|
|
<vxe-column min-width="160" align="center" title="修改商品" field="updateTradeName">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <span v-if="commonJS.isNotEmpty(scope.row.updateTradeName)"> {{scope.row.updateTradeName}} </span>
|
|
|
|
|
|
+ <span v-if="commonJS.isNotEmpty(scope.row.updateTradeName)"> {{ scope.row.updateTradeName }}
|
|
|
|
+ </span>
|
|
<span v-else> -- </span>
|
|
<span v-else> -- </span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="160" align="center" title="修改人" field="updateUser">
|
|
<vxe-column min-width="160" align="center" title="修改人" field="updateUser">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <span v-if="scope.row.endflag === '2'">(创建人) {{scope.row.updateUser}} </span>
|
|
|
|
- <span v-else>{{scope.row.updateUser}} </span>
|
|
|
|
|
|
+ <span v-if="scope.row.endflag === '2'">(创建人) {{ scope.row.updateUser }} </span>
|
|
|
|
+ <span v-else>{{ scope.row.updateUser }} </span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="160" align="center" title="修改时间" field="createTime"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="修改时间" field="createTime"></vxe-column>
|
|
<vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
<vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
- <template #default="scope">
|
|
|
|
|
|
+ <template #default="scope">
|
|
<el-button type="text" size="small" @click="hiDetail(scope.row)">修改详情</el-button>
|
|
<el-button type="text" size="small" @click="hiDetail(scope.row)">修改详情</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
</vxe-table>
|
|
</vxe-table>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="领用退回历史" v-if="returnId" name="form-seventh">
|
|
<el-tab-pane label="领用退回历史" v-if="returnId" name="form-seventh">
|
|
- <vxe-table
|
|
|
|
- ref="returnTable"
|
|
|
|
- border="inner"
|
|
|
|
- :key="111"
|
|
|
|
- size="small"
|
|
|
|
- class="vxe-table-element"
|
|
|
|
- max-height="1000px"
|
|
|
|
- :data="dataListHiCollect">
|
|
|
|
|
|
+ <vxe-table ref="returnTable" border="inner" :key="111" size="small" class="vxe-table-element"
|
|
|
|
+ max-height="1000px" :data="dataListHiCollect">
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="退回物品" field="returnGoods">
|
|
<vxe-column min-width="160" align="center" title="退回物品" field="returnGoods">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <span v-if="commonJS.isNotEmpty(scope.row.returnGoods)"> {{scope.row.returnGoods}} </span>
|
|
|
|
|
|
+ <span v-if="commonJS.isNotEmpty(scope.row.returnGoods)"> {{ scope.row.returnGoods }} </span>
|
|
<span v-else> -- </span>
|
|
<span v-else> -- </span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="160" align="center" title="退回申请人" field="returnUserName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="退回申请人" field="returnUserName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="退回时间" field="createTime"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="退回时间" field="createTime"></vxe-column>
|
|
<vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
<vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
- <template #default="scope">
|
|
|
|
|
|
+ <template #default="scope">
|
|
<el-button type="text" size="small" @click="hiDetailCollect(scope.row)">退回详情</el-button>
|
|
<el-button type="text" size="small" @click="hiDetailCollect(scope.row)">退回详情</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
@@ -112,27 +81,21 @@
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="归档历史" v-if="commonJS.isNotEmpty(cwArchiveHiFlag)" name="form-cwArchive">
|
|
<el-tab-pane label="归档历史" v-if="commonJS.isNotEmpty(cwArchiveHiFlag)" name="form-cwArchive">
|
|
- <vxe-table
|
|
|
|
- ref="wareHouseTable"
|
|
|
|
- border="inner"
|
|
|
|
- size="small"
|
|
|
|
- :key="222"
|
|
|
|
- max-height="1000px"
|
|
|
|
- class="vxe-table-element"
|
|
|
|
- :data="cwArchiveDataListHiCollect">
|
|
|
|
|
|
+ <vxe-table ref="wareHouseTable" border="inner" size="small" :key="222" max-height="1000px"
|
|
|
|
+ class="vxe-table-element" :data="cwArchiveDataListHiCollect">
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="归档发起人" field="userName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="归档发起人" field="userName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="归档时间" field="auditDate"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="归档时间" field="auditDate"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="归档状态" field="status">
|
|
<vxe-column min-width="160" align="center" title="归档状态" field="status">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-button @click="detail(scope.row)" effect="dark"
|
|
<el-button @click="detail(scope.row)" effect="dark"
|
|
- :type="$dictUtils.getDictLabel('cw_status_flag', scope.row.status, '-')">
|
|
|
|
- {{$dictUtils.getDictLabel("cw_status", scope.row.status, '-')}}
|
|
|
|
|
|
+ :type="$dictUtils.getDictLabel('cw_status_flag', scope.row.status, '-')">
|
|
|
|
+ {{ $dictUtils.getDictLabel("cw_status", scope.row.status, '-') }}
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
<vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
- <template #default="scope">
|
|
|
|
|
|
+ <template #default="scope">
|
|
<el-button type="text" size="small" @click="hiDetailCwArchive(scope.row)">归档详情</el-button>
|
|
<el-button type="text" size="small" @click="hiDetailCwArchive(scope.row)">归档详情</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
@@ -142,35 +105,23 @@
|
|
|
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
|
|
|
- <el-card
|
|
|
|
- style="margin-top: 10px; padding-bottom: 66px"
|
|
|
|
- v-if="!procInsId || taskId"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-card style="margin-top: 10px; padding-bottom: 66px" v-if="!procInsId || taskId">
|
|
<el-form :model="auditForm" ref="auditForm" v-loading="loading" label-width="120px">
|
|
<el-form :model="auditForm" ref="auditForm" v-loading="loading" label-width="120px">
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="16">
|
|
<el-col :span="16">
|
|
-<!-- <el-form-item-->
|
|
|
|
-<!-- v-if="!procInsId"-->
|
|
|
|
-<!-- label="流程标题"-->
|
|
|
|
-<!-- prop="title"-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- <el-input-->
|
|
|
|
-<!-- placeholder="请输入流程标题"-->
|
|
|
|
-<!-- v-model="title"-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- </el-input>-->
|
|
|
|
-<!-- </el-form-item>-->
|
|
|
|
- <el-form-item
|
|
|
|
- v-if="taskId"
|
|
|
|
- label="审批信息"
|
|
|
|
- prop="message"
|
|
|
|
- >
|
|
|
|
- <el-input
|
|
|
|
- type="textarea"
|
|
|
|
- :rows="3"
|
|
|
|
- placeholder="请输入审批意见"
|
|
|
|
- v-model="auditForm.message"
|
|
|
|
- >
|
|
|
|
|
|
+ <!-- <el-form-item-->
|
|
|
|
+ <!-- v-if="!procInsId"-->
|
|
|
|
+ <!-- label="流程标题"-->
|
|
|
|
+ <!-- prop="title"-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- <el-input-->
|
|
|
|
+ <!-- placeholder="请输入流程标题"-->
|
|
|
|
+ <!-- v-model="title"-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- </el-input>-->
|
|
|
|
+ <!-- </el-form-item>-->
|
|
|
|
+ <el-form-item v-if="taskId" label="审批信息" prop="message">
|
|
|
|
+ <el-input type="textarea" :rows="3" placeholder="请输入审批意见" v-model="auditForm.message">
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -180,21 +131,14 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="16">
|
|
<el-col :span="16">
|
|
- <el-form-item
|
|
|
|
- v-if="isCC"
|
|
|
|
- :rules="[
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: '用户不能为空',
|
|
|
|
- trigger: 'blur',
|
|
|
|
- },
|
|
|
|
- ]"
|
|
|
|
- prop="userIds"
|
|
|
|
- label="抄送给"
|
|
|
|
- >
|
|
|
|
- <user-select
|
|
|
|
- v-model="auditForm.userIds"
|
|
|
|
- ></user-select>
|
|
|
|
|
|
+ <el-form-item v-if="isCC" :rules="[
|
|
|
|
+ {
|
|
|
|
+ required: true,
|
|
|
|
+ message: '用户不能为空',
|
|
|
|
+ trigger: 'blur',
|
|
|
|
+ },
|
|
|
|
+ ]" prop="userIds" label="抄送给">
|
|
|
|
+ <user-select v-model="auditForm.userIds"></user-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<!--<el-col :span="16">
|
|
<!--<el-col :span="16">
|
|
@@ -205,22 +149,14 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>-->
|
|
</el-col>-->
|
|
<el-col :span="16">
|
|
<el-col :span="16">
|
|
- <el-form-item
|
|
|
|
- v-if="isAssign"
|
|
|
|
- :rules="[
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: '用户不能为空',
|
|
|
|
- trigger: 'blur',
|
|
|
|
- },
|
|
|
|
- ]"
|
|
|
|
- prop="assignee"
|
|
|
|
- label="指定"
|
|
|
|
- >
|
|
|
|
- <user-select
|
|
|
|
- :limit="1"
|
|
|
|
- v-model="auditForm.assignee"
|
|
|
|
- ></user-select>
|
|
|
|
|
|
+ <el-form-item v-if="isAssign" :rules="[
|
|
|
|
+ {
|
|
|
|
+ required: true,
|
|
|
|
+ message: '用户不能为空',
|
|
|
|
+ trigger: 'blur',
|
|
|
|
+ },
|
|
|
|
+ ]" prop="assignee" label="指定">
|
|
|
|
+ <user-select :limit="1" v-model="auditForm.assignee"></user-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -230,52 +166,24 @@
|
|
<div class="FlowFormFooter">
|
|
<div class="FlowFormFooter">
|
|
<template v-for="(button, index) in buttons">
|
|
<template v-for="(button, index) in buttons">
|
|
<template v-if="button.isHide === '0'">
|
|
<template v-if="button.isHide === '0'">
|
|
- <el-button
|
|
|
|
- size="large"
|
|
|
|
- type="primary"
|
|
|
|
- v-if="button.code !== '_flow_print'"
|
|
|
|
- :key="index"
|
|
|
|
- @click="submit(button, buttons)"
|
|
|
|
- v-noMoreClick
|
|
|
|
- v-loading="loading"
|
|
|
|
- plain
|
|
|
|
- >{{ button.name }}</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- size="large"
|
|
|
|
- type="primary"
|
|
|
|
- v-if="button.code === '_flow_print'"
|
|
|
|
- @click="print"
|
|
|
|
- :key="index"
|
|
|
|
- v-noMoreClick
|
|
|
|
- v-loading="loading"
|
|
|
|
- plain
|
|
|
|
- >{{ button.name }}</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button size="large" type="primary" v-if="button.code !== '_flow_print'" :key="index"
|
|
|
|
+ @click="submit(button, buttons)" v-noMoreClick v-loading="loading" plain>{{ button.name
|
|
|
|
+ }}</el-button>
|
|
|
|
+ <el-button size="large" type="primary" v-if="button.code === '_flow_print'" @click="print"
|
|
|
|
+ :key="index" v-noMoreClick v-loading="loading" plain>{{ button.name }}</el-button>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
<task-back-nodes ref="taskBackNodes" @getBackTaskDefKey="back" />
|
|
<task-back-nodes ref="taskBackNodes" @getBackTaskDefKey="back" />
|
|
- <user-select-dialog
|
|
|
|
- title="选择转办用户"
|
|
|
|
- ref="transferUserSelectDialog"
|
|
|
|
- :limit="1"
|
|
|
|
- @doSubmit="selectUsersToTransferTask"
|
|
|
|
- ></user-select-dialog>
|
|
|
|
- <user-select-dialog
|
|
|
|
- title="选择委派用户"
|
|
|
|
- ref="delegateUserSelectDialog"
|
|
|
|
- :limit="1"
|
|
|
|
- @doSubmit="selectUsersToDelateTask"
|
|
|
|
- ></user-select-dialog>
|
|
|
|
- <user-select-dialog
|
|
|
|
- title="选择加签用户"
|
|
|
|
- ref="addSignTaskUserSelectDialog"
|
|
|
|
- @doSubmit="selectUsersToAddSignTask"
|
|
|
|
- ></user-select-dialog>
|
|
|
|
|
|
+ <user-select-dialog title="选择转办用户" ref="transferUserSelectDialog" :limit="1"
|
|
|
|
+ @doSubmit="selectUsersToTransferTask"></user-select-dialog>
|
|
|
|
+ <user-select-dialog title="选择委派用户" ref="delegateUserSelectDialog" :limit="1"
|
|
|
|
+ @doSubmit="selectUsersToDelateTask"></user-select-dialog>
|
|
|
|
+ <user-select-dialog title="选择加签用户" ref="addSignTaskUserSelectDialog"
|
|
|
|
+ @doSubmit="selectUsersToAddSignTask"></user-select-dialog>
|
|
<CollectReturnHi ref="collectReturnHi"></CollectReturnHi>
|
|
<CollectReturnHi ref="collectReturnHi"></CollectReturnHi>
|
|
<WareHouseHi ref="wareHouseHi"></WareHouseHi>
|
|
<WareHouseHi ref="wareHouseHi"></WareHouseHi>
|
|
- <ProjectReportArchiveForm ref="projectReportArchiveForm" ></ProjectReportArchiveForm>
|
|
|
|
|
|
+ <ProjectReportArchiveForm ref="projectReportArchiveForm"></ProjectReportArchiveForm>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -307,7 +215,7 @@ export default {
|
|
collectService: null,
|
|
collectService: null,
|
|
wareHouseService: null,
|
|
wareHouseService: null,
|
|
projectReportArchiveService: null,
|
|
projectReportArchiveService: null,
|
|
- beforeCreate () {
|
|
|
|
|
|
+ beforeCreate() {
|
|
this.collectService = new CollectService()
|
|
this.collectService = new CollectService()
|
|
this.wareHouseService = new WareHouseService()
|
|
this.wareHouseService = new WareHouseService()
|
|
this.projectReportArchiveService = new ProjectReportArchiveService()
|
|
this.projectReportArchiveService = new ProjectReportArchiveService()
|
|
@@ -358,22 +266,22 @@ export default {
|
|
this.buttons = null
|
|
this.buttons = null
|
|
if (this.status === "start") {
|
|
if (this.status === "start") {
|
|
this.buttons = [{ code: "_flow_start", name: "启动", isHide: "0" }];
|
|
this.buttons = [{ code: "_flow_start", name: "启动", isHide: "0" }];
|
|
- }else if (this.status === 'startAndClose') { // 送审、关闭
|
|
|
|
- this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
|
|
|
|
|
|
+ } else if (this.status === 'startAndClose') { // 送审、关闭
|
|
|
|
+ this.buttons = [{ code: '_flow_start', name: '送审', isHide: '0' }, { code: '_flow_close', name: '关闭', isHide: '0' }]
|
|
} else if (this.status === 'reapplyFlag') { // 重新申请、流程终止、关闭
|
|
} else if (this.status === 'reapplyFlag') { // 重新申请、流程终止、关闭
|
|
- this.buttons = [{code: '_flow_reapply', name: '重新申请', isHide: '0'}, {code: '_flow_stop', name: '流程终止', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
|
|
|
|
|
|
+ this.buttons = [{ code: '_flow_reapply', name: '重新申请', isHide: '0' }, { code: '_flow_stop', name: '流程终止', isHide: '0' }, { code: '_flow_close', name: '关闭', isHide: '0' }]
|
|
} else if (this.status === 'startAndHold') { // 送审、暂存、关闭
|
|
} else if (this.status === 'startAndHold') { // 送审、暂存、关闭
|
|
- this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_save', name: '暂存', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
|
|
|
|
|
|
+ this.buttons = [{ code: '_flow_start', name: '送审', isHide: '0' }, { code: '_flow_save', name: '暂存', isHide: '0' }, { code: '_flow_close', name: '关闭', isHide: '0' }]
|
|
} else if (this.status === 'startAndCloseFiled') { // 送审、关闭
|
|
} else if (this.status === 'startAndCloseFiled') { // 送审、关闭
|
|
- this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
|
|
|
|
|
|
+ this.buttons = [{ code: '_flow_start', name: '送审', isHide: '0' }, { code: '_flow_close', name: '关闭', isHide: '0' }]
|
|
} else if (this.status === 'startAndHoldFiled') { // 送审、暂存、关闭
|
|
} else if (this.status === 'startAndHoldFiled') { // 送审、暂存、关闭
|
|
- this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_save', name: '暂存', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
|
|
|
|
|
|
+ this.buttons = [{ code: '_flow_start', name: '送审', isHide: '0' }, { code: '_flow_save', name: '暂存', isHide: '0' }, { code: '_flow_close', name: '关闭', isHide: '0' }]
|
|
} else if (this.status === 'startAndCloseBorrow') {
|
|
} else if (this.status === 'startAndCloseBorrow') {
|
|
- this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
|
|
|
|
|
|
+ this.buttons = [{ code: '_flow_start', name: '送审', isHide: '0' }, { code: '_flow_close', name: '关闭', isHide: '0' }]
|
|
} else if (this.status === 'reback') {
|
|
} else if (this.status === 'reback') {
|
|
- this.buttons = [{code: '_flow_reback', name: '撤回', isHide: '0'}]
|
|
|
|
|
|
+ this.buttons = [{ code: '_flow_reback', name: '撤回', isHide: '0' }]
|
|
} else if (this.status === 'agreeAndReject') {
|
|
} else if (this.status === 'agreeAndReject') {
|
|
- this.buttons = [{code: '_flow_agree', name: '同意', isHide: '0'}, {code: '_flow_reject', name: '驳回', isHide: '0'}]
|
|
|
|
|
|
+ this.buttons = [{ code: '_flow_agree', name: '同意', isHide: '0' }, { code: '_flow_reject', name: '驳回', isHide: '0' }]
|
|
this.status = 'audit'
|
|
this.status = 'audit'
|
|
} else if (this.procDefKey && this.taskDefKey) {
|
|
} else if (this.procDefKey && this.taskDefKey) {
|
|
// 读取按钮
|
|
// 读取按钮
|
|
@@ -426,7 +334,7 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- changeBusiness () {
|
|
|
|
|
|
+ changeBusiness() {
|
|
this.$refs.form.close()
|
|
this.$refs.form.close()
|
|
this.businessId = 'false'
|
|
this.businessId = 'false'
|
|
},
|
|
},
|
|
@@ -514,7 +422,7 @@ export default {
|
|
this.changeBusiness()
|
|
this.changeBusiness()
|
|
useTabs.close()
|
|
useTabs.close()
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
@@ -536,8 +444,8 @@ export default {
|
|
if (this.formType === "2") {
|
|
if (this.formType === "2") {
|
|
// 外置表单
|
|
// 外置表单
|
|
this.$refs.form.startForm(
|
|
this.$refs.form.startForm(
|
|
- (businessTable, businessId, inputForm,recordType) => {
|
|
|
|
- vars = { ...vars, ...inputForm ,recordType}
|
|
|
|
|
|
+ (businessTable, businessId, inputForm, recordType) => {
|
|
|
|
+ vars = { ...vars, ...inputForm, recordType }
|
|
console.log(vars)
|
|
console.log(vars)
|
|
if (inputForm.procDefId) {
|
|
if (inputForm.procDefId) {
|
|
this.procDefId = inputForm.procDefId
|
|
this.procDefId = inputForm.procDefId
|
|
@@ -555,8 +463,8 @@ export default {
|
|
if (recordType) {
|
|
if (recordType) {
|
|
this.recordType = recordType
|
|
this.recordType = recordType
|
|
}
|
|
}
|
|
- if (inputForm.days){
|
|
|
|
- this.days=inputForm.days
|
|
|
|
|
|
+ if (inputForm.days) {
|
|
|
|
+ this.days = inputForm.days
|
|
}
|
|
}
|
|
console.log('this.recordType', this.recordType)
|
|
console.log('this.recordType', this.recordType)
|
|
let assignee = this.auditForm.assignee
|
|
let assignee = this.auditForm.assignee
|
|
@@ -580,7 +488,7 @@ export default {
|
|
this.changeBusiness()
|
|
this.changeBusiness()
|
|
useTabs.close();
|
|
useTabs.close();
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
@@ -606,7 +514,7 @@ export default {
|
|
this.changeBusiness()
|
|
this.changeBusiness()
|
|
useTabs.close();
|
|
useTabs.close();
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
@@ -622,14 +530,14 @@ export default {
|
|
},
|
|
},
|
|
// 同意
|
|
// 同意
|
|
agree(vars) {
|
|
agree(vars) {
|
|
- vars = {...vars, agree: true}
|
|
|
|
- if (this.formType === '2') {
|
|
|
|
- this.commit(vars)
|
|
|
|
- }
|
|
|
|
|
|
+ vars = { ...vars, agree: true }
|
|
|
|
+ if (this.formType === '2') {
|
|
|
|
+ this.commit(vars)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 重新申请
|
|
// 重新申请
|
|
- reapply (vars) {
|
|
|
|
- vars = {...vars, agree: true}
|
|
|
|
|
|
+ reapply(vars) {
|
|
|
|
+ vars = { ...vars, agree: true }
|
|
if (this.formType === '2') { // 外置表单
|
|
if (this.formType === '2') { // 外置表单
|
|
let param = {
|
|
let param = {
|
|
num: this.$route.query.num,
|
|
num: this.$route.query.num,
|
|
@@ -649,8 +557,8 @@ export default {
|
|
taskName: ''
|
|
taskName: ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.$refs.form.reapplyForm((businessTable, businessId, inputForm,recordType) => {
|
|
|
|
- vars = {...vars, ...inputForm,recordType}
|
|
|
|
|
|
+ this.$refs.form.reapplyForm((businessTable, businessId, inputForm, recordType) => {
|
|
|
|
+ vars = { ...vars, ...inputForm, recordType }
|
|
if (inputForm.procDefId) {
|
|
if (inputForm.procDefId) {
|
|
param.procDefId = inputForm.procDefId
|
|
param.procDefId = inputForm.procDefId
|
|
}
|
|
}
|
|
@@ -659,9 +567,9 @@ export default {
|
|
assignee = inputForm.assignee
|
|
assignee = inputForm.assignee
|
|
}
|
|
}
|
|
console.log('recordType', recordType)
|
|
console.log('recordType', recordType)
|
|
- this.recordType=recordType
|
|
|
|
|
|
+ this.recordType = recordType
|
|
if (!this.commonJS.isEmpty(inputForm.days)) {
|
|
if (!this.commonJS.isEmpty(inputForm.days)) {
|
|
- this.days=inputForm.days
|
|
|
|
|
|
+ this.days = inputForm.days
|
|
}
|
|
}
|
|
console.log('this.recordType', this.recordType)
|
|
console.log('this.recordType', this.recordType)
|
|
taskService.audit({
|
|
taskService.audit({
|
|
@@ -685,14 +593,14 @@ export default {
|
|
// this.$router.push({path: '/flowable/task/TodoList'})
|
|
// this.$router.push({path: '/flowable/task/TodoList'})
|
|
// this.cc(data)
|
|
// this.cc(data)
|
|
if (this.$route.query.routePath) {
|
|
if (this.$route.query.routePath) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
var num = this.$route.query.num
|
|
var num = this.$route.query.num
|
|
if (num === '2') {
|
|
if (num === '2') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/Pending'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/Pending' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else if (num === '3') {
|
|
} else if (num === '3') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/PendingList' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -714,14 +622,14 @@ export default {
|
|
// this.$router.push({path: '/flowable/task/TodoList'})
|
|
// this.$router.push({path: '/flowable/task/TodoList'})
|
|
// this.cc(data)
|
|
// this.cc(data)
|
|
if (this.$route.query.routePath) {
|
|
if (this.$route.query.routePath) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
var num = this.$route.query.num
|
|
var num = this.$route.query.num
|
|
if (num === '2') {
|
|
if (num === '2') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/Pending'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/Pending' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else if (num === '3') {
|
|
} else if (num === '3') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/PendingList' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -923,7 +831,8 @@ export default {
|
|
this.procDefId.includes('Process_1722404901733') ||
|
|
this.procDefId.includes('Process_1722404901733') ||
|
|
this.procDefId.includes('Process_1722412442950') ||
|
|
this.procDefId.includes('Process_1722412442950') ||
|
|
this.procDefId.includes('Process_1722416114655') ||
|
|
this.procDefId.includes('Process_1722416114655') ||
|
|
- this.procDefId.includes('Process_1723517404891')
|
|
|
|
|
|
+ this.procDefId.includes('Process_1723517404891') ||
|
|
|
|
+ this.procDefId.includes('Process_1751269402209')
|
|
) {
|
|
) {
|
|
console.log('进入新版驳回')
|
|
console.log('进入新版驳回')
|
|
this.$confirm(`确定驳回流程吗?`, '提示', {
|
|
this.$confirm(`确定驳回流程吗?`, '提示', {
|
|
@@ -932,10 +841,10 @@ export default {
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
if (this.formType === '2') {
|
|
if (this.formType === '2') {
|
|
- vars = {...vars, agree: false}
|
|
|
|
|
|
+ vars = { ...vars, agree: false }
|
|
// await this.commit(vars) // 驳回
|
|
// await this.commit(vars) // 驳回
|
|
this.$refs.form.updateStatusById('reject', (assignee) => {
|
|
this.$refs.form.updateStatusById('reject', (assignee) => {
|
|
- if (this.commonJS.isEmpty(this.auditForm.assignee)){
|
|
|
|
|
|
+ if (this.commonJS.isEmpty(this.auditForm.assignee)) {
|
|
this.auditForm.assignee = assignee
|
|
this.auditForm.assignee = assignee
|
|
}
|
|
}
|
|
taskService.audit({
|
|
taskService.audit({
|
|
@@ -957,20 +866,20 @@ export default {
|
|
// this.$router.push({path: '/flowable/task/TodoList'})
|
|
// this.$router.push({path: '/flowable/task/TodoList'})
|
|
// this.cc(data)
|
|
// this.cc(data)
|
|
if (this.$route.query.routePath) {
|
|
if (this.$route.query.routePath) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
var num = this.$route.query.num
|
|
var num = this.$route.query.num
|
|
if (num === '2') {
|
|
if (num === '2') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/Pending'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/Pending' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else if (num === '3') {
|
|
} else if (num === '3') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/PendingList' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
- }else if (this.cs === 'cs') {
|
|
|
|
- this.$router.push({path: '/dashboard/index'})
|
|
|
|
|
|
+ } else if (this.cs === 'cs') {
|
|
|
|
+ this.$router.push({ path: '/dashboard/index' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
- }else if (this.cs === 'cs2') {
|
|
|
|
- this.$router.push({path: '/home'})
|
|
|
|
|
|
+ } else if (this.cs === 'cs2') {
|
|
|
|
+ this.$router.push({ path: '/home' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -1079,10 +988,10 @@ export default {
|
|
this.procDefId.includes('Process_1702534302878')
|
|
this.procDefId.includes('Process_1702534302878')
|
|
) {
|
|
) {
|
|
if (this.formType === '2') {
|
|
if (this.formType === '2') {
|
|
- vars = {...vars, agree: false}
|
|
|
|
|
|
+ vars = { ...vars, agree: false }
|
|
// await this.commit(vars) // 驳回
|
|
// await this.commit(vars) // 驳回
|
|
this.$refs.form.updateStatusById('reject', (assignee) => {
|
|
this.$refs.form.updateStatusById('reject', (assignee) => {
|
|
- if (this.commonJS.isEmpty(this.auditForm.assignee)){
|
|
|
|
|
|
+ if (this.commonJS.isEmpty(this.auditForm.assignee)) {
|
|
this.auditForm.assignee = assignee
|
|
this.auditForm.assignee = assignee
|
|
}
|
|
}
|
|
taskService.audit({
|
|
taskService.audit({
|
|
@@ -1104,20 +1013,20 @@ export default {
|
|
// this.$router.push({path: '/flowable/task/TodoList'})
|
|
// this.$router.push({path: '/flowable/task/TodoList'})
|
|
// this.cc(data)
|
|
// this.cc(data)
|
|
if (this.$route.query.routePath) {
|
|
if (this.$route.query.routePath) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
var num = this.$route.query.num
|
|
var num = this.$route.query.num
|
|
if (num === '2') {
|
|
if (num === '2') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/Pending'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/Pending' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else if (num === '3') {
|
|
} else if (num === '3') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/PendingList' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
- }else if (this.cs === 'cs') {
|
|
|
|
- this.$router.push({path: '/dashboard/index'})
|
|
|
|
|
|
+ } else if (this.cs === 'cs') {
|
|
|
|
+ this.$router.push({ path: '/dashboard/index' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
- }else if (this.cs === 'cs2') {
|
|
|
|
- this.$router.push({path: '/home'})
|
|
|
|
|
|
+ } else if (this.cs === 'cs2') {
|
|
|
|
+ this.$router.push({ path: '/home' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -1135,7 +1044,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 驳回至指定节点(节点是从0开始)
|
|
// 驳回至指定节点(节点是从0开始)
|
|
- rejectToPointNum (num) {
|
|
|
|
|
|
+ rejectToPointNum(num) {
|
|
this.$confirm(`确定驳回流程吗?`, '提示', {
|
|
this.$confirm(`确定驳回流程吗?`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
@@ -1154,7 +1063,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 撤回
|
|
// 撤回
|
|
- reback () {
|
|
|
|
|
|
+ reback() {
|
|
this.$confirm(`确定撤回流程吗?`, '提示', {
|
|
this.$confirm(`确定撤回流程吗?`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
@@ -1171,7 +1080,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
useTabs.close()
|
|
useTabs.close()
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
@@ -1203,9 +1112,9 @@ export default {
|
|
useTabs.close();
|
|
useTabs.close();
|
|
var num = this.$route.query.num
|
|
var num = this.$route.query.num
|
|
if (num === '2') {
|
|
if (num === '2') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/Pending'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/Pending' })
|
|
} else if (num === '3') {
|
|
} else if (num === '3') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/PendingList' })
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
@@ -1239,7 +1148,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 减签
|
|
// 减签
|
|
- delMultiInstance() {},
|
|
|
|
|
|
+ delMultiInstance() { },
|
|
// 转办
|
|
// 转办
|
|
transfer() {
|
|
transfer() {
|
|
this.$refs.transferUserSelectDialog.open();
|
|
this.$refs.transferUserSelectDialog.open();
|
|
@@ -1285,14 +1194,14 @@ export default {
|
|
useTabs.close()
|
|
useTabs.close()
|
|
// this.cc(data)
|
|
// this.cc(data)
|
|
if (this.$route.query.routePath) {
|
|
if (this.$route.query.routePath) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
var num = this.$route.query.num
|
|
var num = this.$route.query.num
|
|
if (num === '2') {
|
|
if (num === '2') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/Pending'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/Pending' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else if (num === '3') {
|
|
} else if (num === '3') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/PendingList' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -1309,11 +1218,11 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 关闭
|
|
// 关闭
|
|
- close () {
|
|
|
|
|
|
+ close() {
|
|
this.changeBusiness()
|
|
this.changeBusiness()
|
|
useTabs.close()
|
|
useTabs.close()
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
@@ -1324,11 +1233,11 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 关闭
|
|
// 关闭
|
|
- cancel () {
|
|
|
|
|
|
+ cancel() {
|
|
this.changeBusiness()
|
|
this.changeBusiness()
|
|
useTabs.close()
|
|
useTabs.close()
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/dashboard/index',
|
|
path: '/dashboard/index',
|
|
@@ -1359,11 +1268,11 @@ export default {
|
|
}
|
|
}
|
|
// eslint-disable-next-line no-unused-vars
|
|
// eslint-disable-next-line no-unused-vars
|
|
this.$refs.form.agreeForm(
|
|
this.$refs.form.agreeForm(
|
|
- (businessTable, businessId, inputForm,recordType) => {
|
|
|
|
|
|
+ (businessTable, businessId, inputForm, recordType) => {
|
|
if (this.commonJS.isNotEmpty(inputForm)) {
|
|
if (this.commonJS.isNotEmpty(inputForm)) {
|
|
if (this.commonJS.isNotEmpty(inputForm.assignee)) {
|
|
if (this.commonJS.isNotEmpty(inputForm.assignee)) {
|
|
this.auditForm.assignee = inputForm.assignee
|
|
this.auditForm.assignee = inputForm.assignee
|
|
- if ( inputForm.imprestAmountArrears == 0) {
|
|
|
|
|
|
+ if (inputForm.imprestAmountArrears == 0) {
|
|
this.reject2();
|
|
this.reject2();
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -1372,7 +1281,7 @@ export default {
|
|
this.days = inputForm.days
|
|
this.days = inputForm.days
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- vars = { ...vars, ...inputForm,recordType }
|
|
|
|
|
|
+ vars = { ...vars, ...inputForm, recordType }
|
|
taskService
|
|
taskService
|
|
.audit({
|
|
.audit({
|
|
taskId: this.taskId,
|
|
taskId: this.taskId,
|
|
@@ -1381,8 +1290,8 @@ export default {
|
|
procDefId: this.procDefId,
|
|
procDefId: this.procDefId,
|
|
comment: this.auditForm,
|
|
comment: this.auditForm,
|
|
assignee: this.auditForm.assignee,
|
|
assignee: this.auditForm.assignee,
|
|
- recordType:recordType,
|
|
|
|
- days :this.days,
|
|
|
|
|
|
+ recordType: recordType,
|
|
|
|
+ days: this.days,
|
|
vars: vars
|
|
vars: vars
|
|
})
|
|
})
|
|
.then((data) => {
|
|
.then((data) => {
|
|
@@ -1396,20 +1305,20 @@ export default {
|
|
// this.$router.push({path: "/flowable/task/TodoList"});
|
|
// this.$router.push({path: "/flowable/task/TodoList"});
|
|
// this.cc(data);
|
|
// this.cc(data);
|
|
if (this.$route.query.routePath) {
|
|
if (this.$route.query.routePath) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
var num = this.$route.query.num
|
|
var num = this.$route.query.num
|
|
if (num === '2') {
|
|
if (num === '2') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/Pending'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/Pending' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else if (num === '3') {
|
|
} else if (num === '3') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/PendingList' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
- }else if (this.cs === 'cs') {
|
|
|
|
- this.$router.push({path: '/dashboard/index'})
|
|
|
|
|
|
+ } else if (this.cs === 'cs') {
|
|
|
|
+ this.$router.push({ path: '/dashboard/index' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
- }else if (this.cs === 'cs2') {
|
|
|
|
- this.$router.push({path: '/home'})
|
|
|
|
|
|
+ } else if (this.cs === 'cs2') {
|
|
|
|
+ this.$router.push({ path: '/home' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -1438,14 +1347,14 @@ export default {
|
|
// this.$router.push({path: "/flowable/task/TodoList"});
|
|
// this.$router.push({path: "/flowable/task/TodoList"});
|
|
// this.cc(data);
|
|
// this.cc(data);
|
|
if (this.$route.query.routePath) {
|
|
if (this.$route.query.routePath) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
var num = this.$route.query.num
|
|
var num = this.$route.query.num
|
|
if (num === '2') {
|
|
if (num === '2') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/Pending'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/Pending' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else if (num === '3') {
|
|
} else if (num === '3') {
|
|
- this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
|
|
|
|
|
|
+ this.$router.push({ path: '/sys/dashboard/workBench/PendingList' })
|
|
this.cc(data)
|
|
this.cc(data)
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -1533,13 +1442,13 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
//文件补充
|
|
//文件补充
|
|
- fileApply(vars){
|
|
|
|
|
|
+ fileApply(vars) {
|
|
let message = ""
|
|
let message = ""
|
|
if (this.formType === "2") {
|
|
if (this.formType === "2") {
|
|
// 外置表单
|
|
// 外置表单
|
|
this.$refs.form.fileApply(
|
|
this.$refs.form.fileApply(
|
|
- (businessTable, businessId, inputForm,recordType,createById,newTitle,title,procDefId,procDefKey,fileMessage) => {
|
|
|
|
- vars = { ...vars, ...inputForm ,recordType}
|
|
|
|
|
|
+ (businessTable, businessId, inputForm, recordType, createById, newTitle, title, procDefId, procDefKey, fileMessage) => {
|
|
|
|
+ vars = { ...vars, ...inputForm, recordType }
|
|
console.log(vars)
|
|
console.log(vars)
|
|
if (procDefId) {
|
|
if (procDefId) {
|
|
this.procDefId = procDefId
|
|
this.procDefId = procDefId
|
|
@@ -1557,8 +1466,8 @@ export default {
|
|
if (recordType) {
|
|
if (recordType) {
|
|
this.recordType = recordType
|
|
this.recordType = recordType
|
|
}
|
|
}
|
|
- if (inputForm.days){
|
|
|
|
- this.days=inputForm.days
|
|
|
|
|
|
+ if (inputForm.days) {
|
|
|
|
+ this.days = inputForm.days
|
|
}
|
|
}
|
|
|
|
|
|
let assignee = createById
|
|
let assignee = createById
|
|
@@ -1606,7 +1515,7 @@ export default {
|
|
this.changeBusiness()
|
|
this.changeBusiness()
|
|
useTabs.close();
|
|
useTabs.close();
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
|
|
- this.$router.push({path: this.$route.query.routePath})
|
|
|
|
|
|
+ this.$router.push({ path: this.$route.query.routePath })
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
path: '/sys/dashboard/workBench/PendingList',
|
|
@@ -1623,7 +1532,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
- myNotice (taskId, proDefId, title, userName, createDate) {
|
|
|
|
|
|
+ myNotice(taskId, proDefId, title, userName, createDate) {
|
|
this.inputForm = {
|
|
this.inputForm = {
|
|
taskId: '',
|
|
taskId: '',
|
|
title: '',
|
|
title: '',
|
|
@@ -1657,7 +1566,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- callBackFunc (type) {
|
|
|
|
|
|
+ callBackFunc(type) {
|
|
// 隐藏同意按钮
|
|
// 隐藏同意按钮
|
|
if (type === 'hide') {
|
|
if (type === 'hide') {
|
|
// 读取按钮
|
|
// 读取按钮
|
|
@@ -1692,14 +1601,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 开启/关闭taskForm页面的加载中状态
|
|
// 开启/关闭taskForm页面的加载中状态
|
|
- changeLoading (loading) {
|
|
|
|
|
|
+ changeLoading(loading) {
|
|
if (this.commonJS.isNotEmpty(loading)) {
|
|
if (this.commonJS.isNotEmpty(loading)) {
|
|
this.loading = loading
|
|
this.loading = loading
|
|
} else {
|
|
} else {
|
|
this.loading = false
|
|
this.loading = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onTabChange (event) {
|
|
|
|
|
|
+ onTabChange(event) {
|
|
if (event.props.name === 'form-sixth') {
|
|
if (event.props.name === 'form-sixth') {
|
|
if (this.commonJS.isNotEmpty(this.wareHouseId)) {
|
|
if (this.commonJS.isNotEmpty(this.wareHouseId)) {
|
|
this.wareHouseService.findHiById(this.wareHouseId).then((data) => {
|
|
this.wareHouseService.findHiById(this.wareHouseId).then((data) => {
|
|
@@ -1725,19 +1634,19 @@ export default {
|
|
}*/
|
|
}*/
|
|
},
|
|
},
|
|
// 打开财务归档修改历史详情页
|
|
// 打开财务归档修改历史详情页
|
|
- hiDetailCwArchive (row) {
|
|
|
|
|
|
+ hiDetailCwArchive(row) {
|
|
if (this.commonJS.isNotEmpty(row.id)) {
|
|
if (this.commonJS.isNotEmpty(row.id)) {
|
|
this.$refs.projectReportArchiveForm.init('view', row.id)
|
|
this.$refs.projectReportArchiveForm.init('view', row.id)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 打开入库修改历史详情页
|
|
// 打开入库修改历史详情页
|
|
- hiDetail (row) {
|
|
|
|
|
|
+ hiDetail(row) {
|
|
if (this.commonJS.isNotEmpty(row.id)) {
|
|
if (this.commonJS.isNotEmpty(row.id)) {
|
|
this.$refs.wareHouseHi.init(row.id)
|
|
this.$refs.wareHouseHi.init(row.id)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 打开领用退回历史详情页
|
|
// 打开领用退回历史详情页
|
|
- hiDetailCollect (row) {
|
|
|
|
|
|
+ hiDetailCollect(row) {
|
|
if (this.commonJS.isNotEmpty(row.id)) {
|
|
if (this.commonJS.isNotEmpty(row.id)) {
|
|
this.$refs.collectReturnHi.init(row.id)
|
|
this.$refs.collectReturnHi.init(row.id)
|
|
}
|
|
}
|
|
@@ -1789,7 +1698,7 @@ export default {
|
|
dataListHi: [],
|
|
dataListHi: [],
|
|
dataListHiCollect: [],
|
|
dataListHiCollect: [],
|
|
cwArchiveDataListHiCollect: [],
|
|
cwArchiveDataListHiCollect: [],
|
|
- recordType:''
|
|
|
|
|
|
+ recordType: ''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
};
|
|
};
|
|
@@ -1800,10 +1709,12 @@ export default {
|
|
position: relative;
|
|
position: relative;
|
|
padding: 10px;
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.title {
|
|
.title {
|
|
padding: 15px;
|
|
padding: 15px;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
+
|
|
.FlowFormFooter {
|
|
.FlowFormFooter {
|
|
position: fixed;
|
|
position: fixed;
|
|
right: 0;
|
|
right: 0;
|
|
@@ -1826,22 +1737,26 @@ export default {
|
|
font-size 0.3s;
|
|
font-size 0.3s;
|
|
/* right: 20.125px; */
|
|
/* right: 20.125px; */
|
|
}
|
|
}
|
|
-.aminui-side-split + .aminui-side + .aminui-body.el-container {
|
|
|
|
|
|
+
|
|
|
|
+.aminui-side-split+.aminui-side+.aminui-body.el-container {
|
|
.FlowFormFooter {
|
|
.FlowFormFooter {
|
|
left: 275px;
|
|
left: 275px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.aminui-side-split + .aminui-side.isCollapse + .aminui-body.el-container {
|
|
|
|
|
|
+
|
|
|
|
+.aminui-side-split+.aminui-side.isCollapse+.aminui-body.el-container {
|
|
.FlowFormFooter {
|
|
.FlowFormFooter {
|
|
left: 130px;
|
|
left: 130px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.aminui-side + .aminui-body.el-container {
|
|
|
|
|
|
+
|
|
|
|
+.aminui-side+.aminui-body.el-container {
|
|
.FlowFormFooter {
|
|
.FlowFormFooter {
|
|
left: 200px;
|
|
left: 200px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.aminui-side.isCollapse + .aminui-body.el-container {
|
|
|
|
|
|
+
|
|
|
|
+.aminui-side.isCollapse+.aminui-body.el-container {
|
|
.FlowFormFooter {
|
|
.FlowFormFooter {
|
|
left: 65px;
|
|
left: 65px;
|
|
}
|
|
}
|