|
@@ -107,6 +107,7 @@
|
|
|
>
|
|
|
<el-button
|
|
|
icon="Right"
|
|
|
+ @click="passThrough"
|
|
|
>审核通过</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -162,7 +163,9 @@ defineOptions({
|
|
|
import { onMounted, reactive, ref } from 'vue'
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
import { getProjectProcessId } from '@/api/process'
|
|
|
+import { processApproval } from '@/api/approver'
|
|
|
import { queryFileList } from '@/api/file'
|
|
|
+import { ElMessageBox } from 'element-plus'
|
|
|
import sign from '@/assets/sign.png'
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
@@ -210,7 +213,7 @@ const queryProjectProcessById = () => {
|
|
|
fileCondition.code = comprehensive.code
|
|
|
queryFileList(fileCondition).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
- console.log(res.data.list)
|
|
|
+ // console.log(res.data.list)
|
|
|
fileList.length = 0
|
|
|
fileList.push(...res.data.list)
|
|
|
}
|
|
@@ -228,7 +231,19 @@ const repulseShow = ref(false)
|
|
|
const openRepulse = () => {
|
|
|
repulseShow.value = true
|
|
|
}
|
|
|
-const repulseApply = () => {}
|
|
|
+// 审核数据
|
|
|
+const approvalData = reactive({
|
|
|
+ projectProcess: {},
|
|
|
+ description: {}
|
|
|
+})
|
|
|
+// 确认打回
|
|
|
+const repulseApply = () => {
|
|
|
+ processApproval(approvalData).then(res => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ console.log(res.data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
// 补充文件
|
|
|
const supplyFile = () => {
|
|
|
router.push({ path: '/layout/projectManage/projectDetails', query: { code: comprehensive.code }})
|
|
@@ -236,6 +251,21 @@ const supplyFile = () => {
|
|
|
|
|
|
// 详情类型
|
|
|
const detailType = route.query.type
|
|
|
+
|
|
|
+const passThrough = () => {
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ '确认审批通过吗?',
|
|
|
+ '确认',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {})
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|