43 lines
1.5 KiB
Vue
43 lines
1.5 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: ['合同用印', '公章', '财务章', '法人章', '其他'] },
|
|
{ key: 'applyFileIds', label: '附件', type: 'file', required: true, placeholder: '上传盖章文件' }
|
|
]},
|
|
{ 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) } }
|
|
}
|
|
</script>
|
|
|
|
<style scoped></style> |