|
|
@@ -17,6 +17,17 @@
|
|
|
</el-button>
|
|
|
<el-button type="primary" @click="handleAddTask">办结任务</el-button>
|
|
|
<el-button type="primary" @click="handleAssign">返回</el-button>
|
|
|
+ <el-tooltip
|
|
|
+ v-if="currentNode !== 'clcs' && currentNode !== 'sdsh'"
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ content="点击此按钮整体阶段将退回到实体审核,重新复核"
|
|
|
+ placement="top-start"
|
|
|
+ >
|
|
|
+ <el-button type="primary" icon="el-icon-s-flag" @click="handleFh">
|
|
|
+ 复核
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 标签页面 -->
|
|
|
@@ -100,6 +111,40 @@
|
|
|
<el-button type="primary" @click="submitProcess">确定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="showFhDialog"
|
|
|
+ title="任务复核"
|
|
|
+ width="600px"
|
|
|
+ :modal="false"
|
|
|
+ custom-class="process-dialog"
|
|
|
+ >
|
|
|
+ <div class="dialog-content">
|
|
|
+ <div class="form-item process-form-item">
|
|
|
+ <label class="form-label">意见:</label>
|
|
|
+ <div class="form-content">
|
|
|
+ <el-input
|
|
|
+ v-model="processParams.content"
|
|
|
+ type="textarea"
|
|
|
+ :rows="6"
|
|
|
+ placeholder="请输入意见"
|
|
|
+ maxlength="500"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="form-item">
|
|
|
+ <label class="form-label">发送方式:</label>
|
|
|
+ <el-checkbox-group v-model="additionalParams.sendType">
|
|
|
+ <el-checkbox label="site">站内消息</el-checkbox>
|
|
|
+ <el-checkbox label="sms">短信通知</el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </div> -->
|
|
|
+ </div>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="showFhDialog = false">取消</el-button>
|
|
|
+ <el-button type="primary" @click="submitFh">发送</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -158,6 +203,7 @@
|
|
|
showAbortDialog: false,
|
|
|
showRejectDialog: false,
|
|
|
showProcessDialog: false, // 流转下一步/退回上一步弹窗
|
|
|
+ showFhDialog: false,
|
|
|
// 弹窗数据
|
|
|
additionalParams: {},
|
|
|
// 当前操作按钮信息
|
|
|
@@ -459,28 +505,63 @@
|
|
|
}
|
|
|
|
|
|
const response = await doProcessBtn(params)
|
|
|
-
|
|
|
- if (response && response.code === 200) {
|
|
|
- this.$message.success(this.currentButton.value + '操作成功')
|
|
|
- // 关闭所有弹窗
|
|
|
- this.showSupplementDialog = false
|
|
|
- this.showAbortDialog = false
|
|
|
- this.showRejectDialog = false
|
|
|
- this.showProcessDialog = false
|
|
|
- // 关闭主弹窗
|
|
|
- this.handleClose()
|
|
|
- // 触发父组件刷新列表
|
|
|
- this.$emit('refresh')
|
|
|
- } else {
|
|
|
- this.$message.error(
|
|
|
- response?.message || this.currentButton.value + '操作失败'
|
|
|
- )
|
|
|
- }
|
|
|
+ this.handleOperationResponse(response)
|
|
|
} catch (error) {
|
|
|
// this.$message.error(this.currentButton.value + '操作失败')
|
|
|
console.error(this.currentButton.value + '操作失败')
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ // 处理操作响应
|
|
|
+ handleOperationResponse(response) {
|
|
|
+ if (response && response.code === 200) {
|
|
|
+ this.$message.success(this.currentButton.value + '操作成功')
|
|
|
+ // 关闭所有弹窗
|
|
|
+ this.showSupplementDialog = false
|
|
|
+ this.showAbortDialog = false
|
|
|
+ this.showRejectDialog = false
|
|
|
+ this.showProcessDialog = false
|
|
|
+ // 关闭主弹窗
|
|
|
+ this.handleClose()
|
|
|
+ // 触发父组件刷新列表
|
|
|
+ this.$emit('refresh')
|
|
|
+ } else {
|
|
|
+ this.$message.error(
|
|
|
+ response?.message || this.currentButton.value + '操作失败'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleFh() {
|
|
|
+ this.showFhDialog = true
|
|
|
+ },
|
|
|
+ async submitFh() {
|
|
|
+ if (!this.processParams.content || !this.processParams.content.trim()) {
|
|
|
+ this.$message.error('请输入退回意见')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const params = {
|
|
|
+ taskId: this.id,
|
|
|
+ processNodeKey: this.currentNode,
|
|
|
+ key: 8,
|
|
|
+ content: this.processParams.content,
|
|
|
+ }
|
|
|
+ const response = await doProcessBtn(params)
|
|
|
+ if (response && response.code === 200) {
|
|
|
+ this.$message.success('操作成功')
|
|
|
+ // 关闭所有弹窗
|
|
|
+ this.showFhDialog = false
|
|
|
+ this.showSupplementDialog = false
|
|
|
+ this.showAbortDialog = false
|
|
|
+ this.showRejectDialog = false
|
|
|
+ this.showProcessDialog = false
|
|
|
+ // 关闭主弹窗
|
|
|
+ this.handleClose()
|
|
|
+ // 触发父组件刷新列表
|
|
|
+ this.$emit('refresh')
|
|
|
+ } else {
|
|
|
+ this.$message.error(response?.message || '操作失败')
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|