add 添加审批附件上传
This commit is contained in:
parent
3de82fe3c2
commit
5a18b3f92b
@ -8,6 +8,9 @@
|
|||||||
<el-checkbox label="3" name="type">短信</el-checkbox>
|
<el-checkbox label="3" name="type">短信</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="附件">
|
||||||
|
<fileUpload v-model="form.fileId" :fileType="['doc', 'xls', 'ppt', 'txt', 'pdf', 'xlsx', 'docx', 'zip']" :fileSize="'20'"/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="审批意见">
|
<el-form-item label="审批意见">
|
||||||
<el-input v-model="form.message" type="textarea" resize="none" />
|
<el-input v-model="form.message" type="textarea" resize="none" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -27,7 +30,6 @@ import { ref } from 'vue';
|
|||||||
import { ComponentInternalInstance } from 'vue';
|
import { ComponentInternalInstance } from 'vue';
|
||||||
import { ElForm } from 'element-plus';
|
import { ElForm } from 'element-plus';
|
||||||
import { completeTask, backProcess, getBusinessStatus } from '@/api/workflow/task';
|
import { completeTask, backProcess, getBusinessStatus } from '@/api/workflow/task';
|
||||||
import { any } from 'vue-types';
|
|
||||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -58,6 +60,7 @@ const form = ref<Record<string, any>>({
|
|||||||
});
|
});
|
||||||
//打开弹窗
|
//打开弹窗
|
||||||
const openDialog = (id?: string) => {
|
const openDialog = (id?: string) => {
|
||||||
|
form.value.fileId = undefined
|
||||||
taskId.value = id;
|
taskId.value = id;
|
||||||
form.value.message = undefined;
|
form.value.message = undefined;
|
||||||
dialog.visible = true;
|
dialog.visible = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user