fix : 修复申请文件校验
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="jsx">
|
||||
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||
// import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||
|
||||
const router = useRouter();
|
||||
const searchConfig = reactive([
|
||||
@@ -42,16 +42,17 @@ const searchConfig = reactive([
|
||||
valueFormat: 'YYYY-MM-DD',
|
||||
},
|
||||
colProps: {}
|
||||
}, {
|
||||
label: '状态',
|
||||
prop: 'state',
|
||||
component: shallowRef(fvSelect),
|
||||
props: {
|
||||
placeholder: '请选择状态',
|
||||
clearable: true,
|
||||
cacheKey: 'special_fund'
|
||||
}
|
||||
},
|
||||
// {
|
||||
// label: '状态',
|
||||
// prop: 'state',
|
||||
// component: shallowRef(fvSelect),
|
||||
// props: {
|
||||
// placeholder: '请选择状态',
|
||||
// clearable: true,
|
||||
// cacheKey: 'special_fund'
|
||||
// }
|
||||
// },
|
||||
])
|
||||
const tableIns = ref()
|
||||
const tableConfig = reactive({
|
||||
@@ -76,7 +77,7 @@ const tableConfig = reactive({
|
||||
label: '状态',
|
||||
align: 'center',
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => (<Tag dictType={'special_fund'} value={row.state}/>)
|
||||
// currentRender: ({row, index}) => (<Tag dictType={'special_fund'} value={row.state}/>)
|
||||
},
|
||||
{
|
||||
prop: 'oper',
|
||||
@@ -89,25 +90,25 @@ const tableConfig = reactive({
|
||||
if(row.buttons){
|
||||
buttons = new Set(Array.from(row.buttons))
|
||||
}
|
||||
if (buttons.has("details")) {
|
||||
// if (buttons.has("details")) {
|
||||
btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'})
|
||||
}
|
||||
if (buttons.has("edit")) {
|
||||
// }
|
||||
// if (buttons.has("edit")) {
|
||||
btn.push({label: '编辑', prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'})
|
||||
}
|
||||
if (buttons.has("report")) {
|
||||
// }
|
||||
// if (buttons.has("report")) {
|
||||
btn.push({label: '明细导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
|
||||
}
|
||||
if (buttons.has("report")) {
|
||||
// }
|
||||
// if (buttons.has("report")) {
|
||||
btn.push({label: '汇总导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
|
||||
}
|
||||
// }
|
||||
return (
|
||||
<div style={{width: '100%'}}>
|
||||
{
|
||||
btn.map(item => (
|
||||
<el-button
|
||||
type={item.type}
|
||||
v-perm={item.prem}
|
||||
// v-perm={item.prem}
|
||||
onClick={() => item.func()}
|
||||
link
|
||||
>
|
||||
@@ -116,11 +117,11 @@ const tableConfig = reactive({
|
||||
))
|
||||
}
|
||||
{
|
||||
buttons.has("delete") ?
|
||||
// buttons.has("delete") ?
|
||||
<popover-delete name={row.requirementName} type={'费用分摊'} btnType={'danger'}
|
||||
perm={['mosr:requirement:del']}
|
||||
onDelete={() => handleDelete(row)}/>
|
||||
: ''
|
||||
// : ''
|
||||
}
|
||||
</div>
|
||||
)
|
||||
@@ -148,7 +149,7 @@ const handleDetail = (row) => {
|
||||
router.push({
|
||||
name: 'Share/detail',
|
||||
query: {
|
||||
id:row.id
|
||||
id:row.allocationId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user