fix : 修复申请文件校验

This commit is contained in:
2024-06-01 20:33:28 +08:00
parent 4a0b3db4e4
commit 346ad4c4df
6 changed files with 264 additions and 176 deletions

View File

@@ -97,12 +97,12 @@
<!-- </el-input>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column prop="subtotal" label="小计">
<template #default="scope">
<el-input v-model="scope.row.subtotal" placeholder="请输入小计" clearable>
</el-input>
</template>
</el-table-column>
<!-- <el-table-column prop="subtotal" label="小计">-->
<!-- <template #default="scope">-->
<!-- <el-input v-model="scope.row.subtotal" placeholder="请输入小计" clearable>-->
<!-- </el-input>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column prop="oper" label="操作">
<template #default="scope">
<el-button type="primary" @click="handleCopy(scope.row)" link style="font-size: 18px">复制</el-button>
@@ -147,7 +147,7 @@ const form = ref()
const nameOptions = ref([
{
label: "某项目",
value: '2'
value: '42'
}
])
const researchOptions = ref([
@@ -168,7 +168,7 @@ const tableData = ref([
annuity: '',
workday: '',
researchDuration: '',
subtotal: '',
// subtotal: '',
}
])
const handleAdd = () => {
@@ -183,7 +183,7 @@ const handleAdd = () => {
annuity: '',
workday: '',
researchDuration: '',
subtotal: '',
// subtotal: '',
}
tableData.value.push(row)
}
@@ -199,7 +199,8 @@ const handleSubmit = (instance) => {
if (!valid) return
let params = {
...formData.value,
usrAllocations: tableData.value
usrAllocations: tableData.value,
deploymentId: processInstanceData.value.deploymentId,
}
const {code, msg} = await addAllocation(params)
ElNotification({