add
This commit is contained in:
parent
ebb2746b7a
commit
11c2cfbb3b
@ -3,12 +3,23 @@
|
||||
<popup ref="popupRef" :showFootBtn="false" title="审批详情" :async="true" width="60vw">
|
||||
<el-card>
|
||||
<template #header>审批内容</template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<el-descriptions :column="3" border>
|
||||
<el-descriptions-item v-for="item in formData.extends" :label="item.label" label-align="left"
|
||||
align="left">
|
||||
{{ item.text || item.value }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</el-card>
|
||||
<el-card>
|
||||
<template #header>审批流程</template>
|
||||
|
@ -5,35 +5,28 @@
|
||||
<template #header>
|
||||
审批内容
|
||||
</template>
|
||||
<qj v-if="type == '请假'"></qj>
|
||||
<cc v-if="type == '出差'"></cc>
|
||||
<wc v-if="type == '外出'"></wc>
|
||||
<jb v-if="type == '加班'"></jb>
|
||||
<hysyd v-if="type == '会议室预定'"></hysyd>
|
||||
<gwlz v-if="type == '公文流转'"></gwlz>
|
||||
<wpwx v-if="type == '物品维修'"></wpwx>
|
||||
<zzjy v-if="type == '资质借用'"></zzjy>
|
||||
<yz v-if="type == '用章'"></yz>
|
||||
<yc v-if="type == '用车'"></yc>
|
||||
<ycgh v-if="type == '用车归还'"></ycgh>
|
||||
<jk v-if="type == '借款'"></jk>
|
||||
<fk v-if="type == '付款'"></fk>
|
||||
<jl v-if="type == '奖励'"></jl>
|
||||
<cg v-if="type == '采购'"></cg>
|
||||
<hdjf v-if="type == '活动经费'"></hdjf>
|
||||
<rz v-if="type == '入职'"></rz>
|
||||
<zz v-if="type == '转正'"></zz>
|
||||
<lz v-if="type == '离职'"></lz>
|
||||
<zg v-if="type == '转岗'"></zg>
|
||||
<zpxq v-if="type == '招聘需求'"></zpxq>
|
||||
<tysp v-if="type == '通用审批'"></tysp>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<qj ref="forms" v-if="type == '请假'"></qj>
|
||||
<cc ref="forms" v-if="type == '出差'"></cc>
|
||||
<wc ref="forms" v-if="type == '外出'"></wc>
|
||||
<jb ref="forms" v-if="type == '加班'"></jb>
|
||||
<hysyd ref="forms" v-if="type == '会议室预定'"></hysyd>
|
||||
<gwlz ref="forms" v-if="type == '公文流转'"></gwlz>
|
||||
<wpwx ref="forms" v-if="type == '物品维修'"></wpwx>
|
||||
<zzjy ref="forms" v-if="type == '资质借用'"></zzjy>
|
||||
<yz ref="forms" v-if="type == '用章'"></yz>
|
||||
<yc ref="forms" v-if="type == '用车'"></yc>
|
||||
<ycgh ref="forms" v-if="type == '用车归还'"></ycgh>
|
||||
<jk ref="forms" v-if="type == '借款'"></jk>
|
||||
<fk ref="forms" v-if="type == '付款'"></fk>
|
||||
<jl ref="forms" v-if="type == '奖励'"></jl>
|
||||
<cg ref="forms" v-if="type == '采购'"></cg>
|
||||
<hdjf ref="forms" v-if="type == '活动经费'"></hdjf>
|
||||
<rz ref="forms" v-if="type == '入职'"></rz>
|
||||
<zz ref="forms" v-if="type == '转正'"></zz>
|
||||
<lz ref="forms" v-if="type == '离职'"></lz>
|
||||
<zg ref="forms" v-if="type == '转岗'"></zg>
|
||||
<zpxq ref="forms" v-if="type == '招聘需求'"></zpxq>
|
||||
<tysp ref="forms" v-if="type == '通用审批'"></tysp>
|
||||
|
||||
|
||||
</el-card>
|
||||
@ -60,7 +53,6 @@ import ycgh from './form/xz/ycgh.vue'
|
||||
import jk from './form/cw/jk.vue'
|
||||
import fk from './form/cw/fk.vue'
|
||||
import jl from './form/cw/jl.vue'
|
||||
|
||||
import cg from './form/cw/cg.vue'
|
||||
import hdjf from './form/cw/hdjf.vue'
|
||||
import rz from './form/rs/rz.vue'
|
||||
@ -79,9 +71,10 @@ let props = defineProps({
|
||||
})
|
||||
|
||||
|
||||
console.log(qja, 'qja')
|
||||
|
||||
|
||||
|
||||
const forms = ref('')
|
||||
const emit = defineEmits(["success", "close"]);
|
||||
const formRef = shallowRef<FormInstance>();
|
||||
const popupRef = shallowRef<InstanceType<typeof Popup>>();
|
||||
@ -128,11 +121,13 @@ const setExtend = async (data: Record<any, any>) => {
|
||||
|
||||
// 提交按钮
|
||||
const handleSubmit = async () => {
|
||||
await formRef.value?.validate();
|
||||
await forms.value?.check();
|
||||
const data = { ...formData };
|
||||
await apiOaoaApproveAdd(data)
|
||||
popupRef.value?.close();
|
||||
emit("success");
|
||||
|
||||
|
||||
};
|
||||
|
||||
//打开弹窗
|
||||
|
@ -88,5 +88,12 @@ const formRules = reactive({
|
||||
}],
|
||||
})
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -89,6 +89,13 @@ setRules()
|
||||
|
||||
const showPerDialog = ref(false)
|
||||
const personnel = ref(null)
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
</script>
|
@ -100,4 +100,12 @@ const formRules = reactive({
|
||||
})
|
||||
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -97,4 +97,13 @@ const submituser = (e) => {
|
||||
formData[value + "_id"] = e.id
|
||||
showPerDialog.value = false
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -67,6 +67,13 @@ const formRules = reactive({
|
||||
trigger: ['blur']
|
||||
}],
|
||||
})
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
</script>
|
@ -89,5 +89,12 @@ const calcDay = () => {
|
||||
formData.qjts = daysDiff || 0
|
||||
}
|
||||
}
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -91,4 +91,12 @@ const calcDay = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -4,7 +4,7 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item label="请假类型" prop="qjlx">
|
||||
<el-select v-model="formData.qjlx" placeholder="请选择请假类型" class="flex-1">
|
||||
<el-option :label="item" :value="index" v-for="(item, index) in qjlxList" :key="index">
|
||||
<el-option :label="item" :value="item" v-for="(item, index) in qjlxList" :key="index">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -97,8 +97,14 @@ const calcDay = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
|
||||
</script>
|
5
src/views/oa_Initiate/form/jq/qja.js
Normal file
5
src/views/oa_Initiate/form/jq/qja.js
Normal file
@ -0,0 +1,5 @@
|
||||
const qja = {
|
||||
name: "sdasd"
|
||||
|
||||
}
|
||||
export default qja
|
@ -93,5 +93,13 @@ const calcDay = () => {
|
||||
formData.qjts = daysDiff || 0
|
||||
}
|
||||
}
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
</script>
|
@ -62,5 +62,12 @@ setRules()
|
||||
const showPerDialog = ref(false)
|
||||
const personnel = ref(null)
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -125,4 +125,13 @@ const submituser = (e) => {
|
||||
formData[value + "_id"] = e.id
|
||||
showPerDialog.value = false
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -118,4 +118,13 @@ const submituser = (e) => {
|
||||
formData[value + "_id"] = e.id
|
||||
showPerDialog.value = false
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -142,4 +142,13 @@ const submituser = (e) => {
|
||||
formData[value + "_id"] = e.id
|
||||
showPerDialog.value = false
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -122,4 +122,13 @@ const submituser = (e) => {
|
||||
formData[value + "_id"] = e.id
|
||||
showPerDialog.value = false
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -110,4 +110,13 @@ const submituser = (e) => {
|
||||
formData[value + "_id"] = e.id
|
||||
showPerDialog.value = false
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -86,6 +86,13 @@ const formRules = reactive({
|
||||
trigger: ['blur']
|
||||
}],
|
||||
})
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
</script>
|
@ -85,6 +85,13 @@ const formRules = reactive({
|
||||
})
|
||||
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
</script>
|
@ -110,5 +110,13 @@ const formRules = reactive({
|
||||
}],
|
||||
})
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
</script>
|
@ -100,6 +100,13 @@ const formRules = reactive({
|
||||
}],
|
||||
})
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
</script>
|
@ -70,5 +70,12 @@ const formRules = reactive({
|
||||
}],
|
||||
})
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -89,6 +89,13 @@ const formRules = reactive({
|
||||
|
||||
})
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
|
||||
</script>
|
@ -185,4 +185,12 @@ const submituser = (e) => {
|
||||
showPerDialog.value = false
|
||||
}
|
||||
|
||||
const check = async () => {
|
||||
await formRef.value?.validate();
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
check
|
||||
});
|
||||
</script>
|
@ -68,6 +68,7 @@ import { apiOaFlowTypeLists, apiOaoaApproveLists, apiOaoaApproveDetail } from "@
|
||||
import EditPopup from './edit.vue'
|
||||
import detailPopup from './detail.vue'
|
||||
import { apiOaFlowTypeDetail } from '@/api/oa_flow_type'
|
||||
import qja from './form/jq/qja.js'
|
||||
|
||||
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
|
Loading…
x
Reference in New Issue
Block a user