| | |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | |
| | | <el-button |
| | | type="danger" |
| | | size="mini" |
| | | @click="handleApplyCancel(scope.$index, scope.row)" |
| | | v-if="matchState(scope,/[]/)" |
| | | plain |
| | | >{{$t('dataApply.type1')}}</el-button> |
| | | |
| | | <el-button |
| | | type="warning" |
| | | size="mini" |
| | | @click="handleReApply(scope.$index, scope.row)" |
| | | v-if="matchState1(scope,/[]/)" |
| | | plain |
| | | >{{$t('dataApply.ReApply')}}</el-button> |
| | |
| | | <template slot-scope="scope"> |
| | | |
| | | <el-button |
| | | v-if="scope.row.status == 0" |
| | | type="danger" |
| | | size="mini" |
| | | @click="handleApplyRepulse(scope.$index, scope.row)" |
| | | plain |
| | | >打回</el-button> |
| | | |
| | | <el-button |
| | | v-if="scope.row.status == 0" |
| | | @click="handleApplyAdopt(scope.$index, scope.row)" |
| | | type="success" |
| | | size="mini" |
| | | plain |
| | |
| | | import MyBread from "../../components/MyBread.vue"; |
| | | import { |
| | | apply_selectByPage, |
| | | apply_selectFlows |
| | | apply_selectFlows, |
| | | apply_updateForDiscard, |
| | | apply_updateForSubmit, |
| | | apply_updateForReject, |
| | | apply_updateForResubmit |
| | | } from "../../api/api"; |
| | | export default { |
| | | //import引入的组件需要注入到对象中才能使用 |
| | |
| | | status: null |
| | | }, |
| | | count: 0, |
| | | detailsId: null, |
| | | }; |
| | | }, |
| | | methods: { |
| | | async handleApplyRepulse(index, row) { |
| | | const data = await apply_updateForReject({ flowId: row.id }); |
| | | if (data.code != 200) { |
| | | return this.$message.error("列表调用失败"); |
| | | } |
| | | this.showRestData(); |
| | | }, |
| | | async handleApplyAdopt(index, row) { |
| | | |
| | | const data = await apply_updateForSubmit({ flowId: row.id }); |
| | | if (data.code != 200) { |
| | | return this.$message.error("列表调用失败"); |
| | | } |
| | | this.showRestData(); |
| | | }, |
| | | async showRestData() { |
| | | const data1 = await apply_selectFlows({ |
| | | applyid: |
| | | this.detailsId |
| | | }) |
| | | if (data1.code != 200) { |
| | | return this.$message.error("列表调用失败"); |
| | | } |
| | | this.detailsFrom.tableData = data.result; |
| | | }, |
| | | async handleReApply(index, row) { |
| | | const data = await apply_updateForResubmit({ applyid: row.id }); |
| | | if (data.code != 200) { |
| | | return this.$message.error("列表调用失败"); |
| | | } |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | this.getAllData(); |
| | | }, |
| | | async handleApplyCancel(index, row) { |
| | | const data = await apply_updateForDiscard({ applyid: row.id }); |
| | | if (data.code != 200) { |
| | | return this.$message.error("列表调用失败"); |
| | | } |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | this.getAllData(); |
| | | }, |
| | | async handlDetails(index, row) { |
| | | |
| | | this.detailsId = row.id; |
| | | const data = await apply_selectFlows({ applyid: row.id }) |
| | | if (data.code != 200) { |
| | | |
| | | return this.$message.error("列表调用失败"); |
| | | } |
| | | this.detailsFrom.tableData = data.result; |
| | | this.detailsFrom.tabs = row.tabs; |