47 lines
1.7 KiB
Vue
47 lines
1.7 KiB
Vue
<template>
|
|
<request-form
|
|
title="用印申请"
|
|
subtitle="填写用印信息,支持手机端快速提交"
|
|
biz-type="seal"
|
|
:request-api="submitSeal"
|
|
:initial-form="initialForm"
|
|
:sections="sections"
|
|
:flow-fields="flowFields"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import RequestForm from '@/components/hrm/RequestForm.vue'
|
|
import { addSealReq } from '@/api/hrm/seal'
|
|
|
|
export default {
|
|
components: { RequestForm },
|
|
data() {
|
|
return {
|
|
initialForm: { sealType: '', applyFileIds: '', reason: '', remark: '' },
|
|
sections: [
|
|
{ key: 'basic', title: '基础信息', fields: [
|
|
{ key: 'sealType', label: '用印类型', type: 'select', required: true, placeholder: '请选择用印类型', options: [
|
|
'山东福安德信息科技有限公司采购部专用章FAD201400201.png',
|
|
'山东福安德信息科技有限公司采购部专用章FAD201400202.png',
|
|
'山东福安德信息科技有限公司采购部专用章FAD201400401.png'
|
|
] },
|
|
{ key: 'applyFileIds', label: '附件', type: 'file', required: true, placeholder: '上传盖章文件', accept: '.pdf' }
|
|
]},
|
|
{ key: 'desc', title: '说明', fields: [
|
|
{ key: 'reason', label: '用途说明', type: 'textarea', required: true, placeholder: '请说明盖章用途与背景' },
|
|
{ key: 'remark', label: '备注', type: 'textarea', required: false, placeholder: '可选' }
|
|
]}
|
|
],
|
|
flowFields: [
|
|
{ key: 'sealType', label: '用印类型', required: true },
|
|
{ key: 'applyFileIds', label: '附件', required: true },
|
|
{ key: 'reason', label: '用途说明', required: true }
|
|
]
|
|
}
|
|
},
|
|
methods: { submitSeal(payload) { return addSealReq({ ...payload, status: 'pending', bizType: 'seal' }) } }
|
|
}
|
|
</script>
|
|
|
|
<style scoped></style> |