add
This commit is contained in:
parent
5bfd95a64c
commit
14a41a40cb
@ -1,10 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="edit-popup">
|
<div class="edit-popup">
|
||||||
<el-card>
|
<el-card>
|
||||||
{{ userInfo }}
|
|
||||||
{{ formData?.check_status }}
|
|
||||||
{{ formData.create_user }}
|
|
||||||
{{ formData?.check_status == 0 && formData.create_user == userInfo.id }}
|
|
||||||
<el-descriptions :column="3" title="审21批详情" border>
|
<el-descriptions :column="3" title="审21批详情" border>
|
||||||
<el-descriptions-item label="审批主题" label-align="left" align="left" label-class-name="my-label">
|
<el-descriptions-item label="审批主题" label-align="left" align="left" label-class-name="my-label">
|
||||||
{{ formData.title }}
|
{{ formData.title }}
|
||||||
@ -30,8 +26,6 @@
|
|||||||
<el-steps :active="activeStep" simple :align-center="true">
|
<el-steps :active="activeStep" simple :align-center="true">
|
||||||
<el-step :title="getStep(item, index)" :icon="index == 0 ? Avatar : Clock"
|
<el-step :title="getStep(item, index)" :icon="index == 0 ? Avatar : Clock"
|
||||||
v-for="(item, index) in formData.step" :key="index" />
|
v-for="(item, index) in formData.step" :key="index" />
|
||||||
<el-step :title="getStep(item, index)" :icon="index == 0 ? Avatar : Clock"
|
|
||||||
v-for="(item, index) in formData.step" :key="index" />
|
|
||||||
</el-steps>
|
</el-steps>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="审批记录" label-align="left" align="left">
|
<el-descriptions-item label="审批记录" label-align="left" align="left">
|
||||||
@ -39,8 +33,6 @@
|
|||||||
style="margin-top: 20px">
|
style="margin-top: 20px">
|
||||||
<el-step :title="item.check_time + item.title" v-for="(item, index) in formData.record"
|
<el-step :title="item.check_time + item.title" v-for="(item, index) in formData.record"
|
||||||
:key="index" />
|
:key="index" />
|
||||||
<el-step :title="item.check_time + item.title" v-for="(item, index) in formData.record"
|
|
||||||
:key="index" />
|
|
||||||
</el-steps>
|
</el-steps>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<div v-if="formData?.current_check_user_ids?.includes(String(userInfo.id))">
|
<div v-if="formData?.current_check_user_ids?.includes(String(userInfo.id))">
|
||||||
@ -50,7 +42,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审批">
|
<el-form-item label="审批">
|
||||||
<el-button type="primary" @click="checkFn(1)">
|
<el-button type="primary" @click="checkFn(1)">
|
||||||
通过1212
|
通过
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button @click="checkFn(2)">
|
<el-button @click="checkFn(2)">
|
||||||
拒绝
|
拒绝
|
||||||
@ -58,20 +50,12 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</div>
|
</div>
|
||||||
|
<el-descriptions-item label="操作" label-align="left" align="left"
|
||||||
<!-- <div v-if="formData?.check_status == 0 && formData.create_user == userInfo.id">
|
v-if="formData?.check_status == 0 && formData.create_user == userInfo.id">
|
||||||
<el-descriptions-item label="操作1" label-align="left" align="left">
|
|
||||||
<el-form-item label="意见">
|
|
||||||
<el-input v-model="remark" clearable placeholder="请输入" type="textarea" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="审批">
|
|
||||||
<el-button @click="revokeFn">
|
<el-button @click="revokeFn">
|
||||||
撤销121212
|
撤销
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</div> -->
|
|
||||||
|
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
@ -89,7 +73,6 @@ const userInfo = computed(() => userStore.userInfo)
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
approve_id: Number
|
approve_id: Number
|
||||||
})
|
})
|
||||||
|
|
||||||
let activeStep = ref(0)
|
let activeStep = ref(0)
|
||||||
const remark = ref('')
|
const remark = ref('')
|
||||||
|
|
||||||
@ -98,7 +81,7 @@ const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
|||||||
|
|
||||||
// 表单数据
|
// 表单数据
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
"id": 11,
|
"id": '',
|
||||||
"title": "",
|
"title": "",
|
||||||
"create_user": 1,
|
"create_user": 1,
|
||||||
"check_status": 0,
|
"check_status": 0,
|
||||||
|
@ -44,6 +44,11 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-button @click="submit" type="primary">
|
||||||
|
提交
|
||||||
|
</el-button>
|
||||||
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
@ -53,18 +58,17 @@ import { ref, reactive, defineProps } from 'vue'
|
|||||||
import { apiFlowTypeLists, } from '@/api/flow_type'
|
import { apiFlowTypeLists, } from '@/api/flow_type'
|
||||||
import { apiFlowLists, apiFlowDetail, apiFlowDelete } from '@/api/flow'
|
import { apiFlowLists, apiFlowDetail, apiFlowDelete } from '@/api/flow'
|
||||||
import { useRoute } from "vue-router"
|
import { useRoute } from "vue-router"
|
||||||
const route = useRoute()
|
|
||||||
|
|
||||||
|
const route = useRoute()
|
||||||
const emits = defineEmits(["confirm"]);
|
const emits = defineEmits(["confirm"]);
|
||||||
|
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
flow_type: "",
|
flow_type: "",
|
||||||
flow_path: "",
|
flow_path: "",
|
||||||
path: route.fullPath
|
path: route.path
|
||||||
})
|
})
|
||||||
|
|
||||||
const flowTyprList = ref([])
|
const flowTyprList = ref([])
|
||||||
|
|
||||||
const getFlowtypeList = async () => {
|
const getFlowtypeList = async () => {
|
||||||
let res = await apiFlowTypeLists()
|
let res = await apiFlowTypeLists()
|
||||||
flowTyprList.value = res.lists
|
flowTyprList.value = res.lists
|
||||||
@ -86,27 +90,25 @@ const getFlowTypeList = async () => {
|
|||||||
|
|
||||||
// 获取流程详情
|
// 获取流程详情
|
||||||
const flowDetail = ref({})
|
const flowDetail = ref({})
|
||||||
|
|
||||||
const getDetail = async () => {
|
const getDetail = async () => {
|
||||||
let res = await apiFlowDetail({ id: formData.flow_path })
|
let res = await apiFlowDetail({ id: formData.flow_path })
|
||||||
flowDetail.value = res
|
flowDetail.value = res
|
||||||
|
//
|
||||||
emits("confirm", formData);
|
emits("confirm", formData);
|
||||||
}
|
}
|
||||||
|
|
||||||
const getDescr = (item) => {
|
// 流程说明
|
||||||
if (item.flow_step == 1) return "当前部门负责人"
|
const getDescr = (item) => { return item.flow_step == 1 ? "当前部门负责人" : (item.flow_user.map(val => ([val.name]))).join(',') }
|
||||||
else {
|
|
||||||
return (item.flow_user.map(val => ([val.name]))).join(',')
|
// 提交审批
|
||||||
}
|
const submit = () => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getFlowtypeList()
|
||||||
|
|
||||||
const numberToChinese = (num) => {
|
const numberToChinese = (num) => {
|
||||||
let chineseNum = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"];
|
let chineseNum = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"];
|
||||||
return chineseNum[num];
|
return chineseNum[num];
|
||||||
}
|
}
|
||||||
// 选中数据子父传递
|
|
||||||
getFlowtypeList()
|
|
||||||
|
|
||||||
console.log(route.fullPath, "route")
|
|
||||||
|
|
||||||
</script>
|
</script>
|
@ -112,8 +112,8 @@
|
|||||||
<el-table-column label="报价金额" prop="sale_amount" show-overflow-tooltip />
|
<el-table-column label="报价金额" prop="sale_amount" show-overflow-tooltip />
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-row>
|
</el-row>
|
||||||
<flowDetail :approve_id="formData?.approve_id" />
|
<!-- <flowProcess></flowProcess> -->
|
||||||
<flowProcess></flowProcess>
|
<!-- <flowDetail :approve_id="formData?.approve_id" /> -->
|
||||||
|
|
||||||
</popup>
|
</popup>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user