| | |
| | | <view class="bottom-container"> |
| | | <!-- 待办按钮 --> |
| | | <view class="bottom-content__item"> |
| | | <view @click="theFormDataClick(item.tableId)" v-if="item.procDefId == 'WAY_BILL:4:87504'"> |
| | | <view @click="theFormDataClick(item.tableId)" v-if="item.processName == '发运通知单'"> |
| | | <image src="@/static/home/jindu.png" mode=""></image> |
| | | <view>申请详情</view> |
| | | </view> |
| | |
| | | <image src="@/static/home/tongguo.png" mode=""></image> |
| | | <view>通过</view> |
| | | </view> |
| | | <view @click="rejectModalShow = true"> |
| | | <view @click="rejectClick(item)"> |
| | | <image src="@/static/home/bohui.png" mode=""></image> |
| | | <view>驳回</view> |
| | | </view> |
| | |
| | | <script> |
| | | import popupMenu from '@/components/common/popup-menu/popup-menu.vue'; |
| | | import combinationCard from '@/components/common/combination-card/combination-card.vue'; |
| | | import { callWithErrorHandling } from "vue"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | }, |
| | | // 通过 |
| | | adopClick(v) { |
| | | console.log('通过',v); |
| | | this.adoptModalShow = true; |
| | | this.adoptForm.ids = v.id; |
| | | this.modalType = 0; |
| | |
| | | // 通过模态框 |
| | | adoptModalConfirm() { |
| | | this.adoptModalShow = false; |
| | | this.checkBoxValue.forEach(item => { |
| | | this.adoptDataBox.push(item.slice(0, 6)) |
| | | }) |
| | | this.adoptForm.ids = this.adoptDataBox.toString(); |
| | | this.$reqPost('passAll', this.adoptForm, 'form').then(res => { |
| | | if(this.checkBoxValue.length >= 1){ |
| | | this.checkBoxValue.forEach(item => { |
| | | this.adoptDataBox.push(item.slice(0, 6)) |
| | | }) |
| | | this.adoptForm.ids = this.adoptDataBox.toString(); |
| | | } |
| | | this.$reqPost('passAll', this.adoptForm).then(res => { |
| | | console.log('是否还原', this.adoptForm.ids, this.rejectForm.procInstIds); |
| | | if (res.code == 0) { |
| | | this.$u.toast('操作成功!'); |
| | | } else { |
| | | this.$u.toast('添加失败!!'); |
| | | } |
| | | // 初始化 |
| | | this.checkBoxValue = [] |
| | | this.adoptForm.ids = ''; |
| | | this.adoptForm.comment = ''; |
| | | this.init(); |
| | | }); |
| | | }, |
| | | adoptModalCancel() { |
| | | this.adoptModalShow = false; |
| | | }, |
| | | // 驳回点击 |
| | | rejectClick(v) { |
| | | this.modalType = 1; |
| | | this.rejectModalShow = true; |
| | | this.rejectForm.procInstIds = v.procInstId; |
| | | }, |
| | | // 驳回模态框 |
| | | rejectModalConfirm() { |
| | | this.rejectModalShow = false; |
| | | this.checkBoxValue.forEach(item => { |
| | | this.rejectDataBox.push(item.slice(6, 12)) |
| | | }) |
| | | this.rejectForm.procInstIds = this.rejectDataBox.toString(); |
| | | this.$reqPost('backAll', this.rejectForm, 'form').then(res => { |
| | | if(this.checkBoxValue.length >= 1){ |
| | | this.checkBoxValue.forEach(item => { |
| | | this.rejectDataBox.push(item.slice(6, 12)) |
| | | }) |
| | | this.rejectForm.procInstIds = this.rejectDataBox.toString(); |
| | | } |
| | | this.$reqPost('backAll', this.rejectForm).then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('操作成功!'); |
| | | } else { |
| | | this.$u.toast('操作失败!!!'); |
| | | } |
| | | // 初始化 |
| | | this.rejectForm.procInstIds = ''; |
| | | this.rejectForm.comment = ''; |
| | | this.checkBoxValue = [] |
| | | this.init(); |
| | | }); |
| | | }, |
| | | rejectModalCancel() { |
| | | this.rejectModalShow = false; |
| | | }, |
| | | rejectClick(v) { |
| | | this.modalType = 1; |
| | | this.rejectModalShow = true; |
| | | this.rejectForm.procInstIds = v.procInstId; |
| | | }, |
| | | |
| | | batchRejectClick() { |
| | | if (this.checkBoxValue.length != 0) { |
| | | this.rejectModalShow = true; |