Merge remote-tracking branch 'origin/master'

This commit is contained in:
zhangkaihuai
2024-06-28 22:03:09 +08:00
10 changed files with 26 additions and 23 deletions

View File

@@ -19,7 +19,7 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="其他文件"> <el-form-item label="其他文件">
<el-card style="width: 100%"> <el-card style="width: 100%;box-shadow: none">
<file-upload @getFile="getOtherFile"/> <file-upload @getFile="getOtherFile"/>
<fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="allFileList" :isSettingCol="false" :pagination="false"> :data="allFileList" :isSettingCol="false" :pagination="false">

View File

@@ -24,7 +24,7 @@
<el-table-column prop="afterTax" label="分摊金额" align="center"> <el-table-column prop="afterTax" label="分摊金额" align="center">
<template #default="scope"> <template #default="scope">
<div v-if="scope.row.afterTax !== null"> <div v-if="scope.row.afterTax !== null">
<!-- {{ toThousands(scope.row.afterTax) }}--> <!-- {{ toThousands(scope.row.afterTax) }}-->
{{ scope.row.afterTax }} {{ scope.row.afterTax }}
</div> </div>
</template> </template>
@@ -33,7 +33,6 @@
</template> </template>
<script setup> <script setup>
import {toThousands} from '@/utils/changePrice.js'
import {exportExcel} from "@/utils/export-excel"; import {exportExcel} from "@/utils/export-excel";
import {getAllocationSummaryDetails} from "@/api/expense-manage"; import {getAllocationSummaryDetails} from "@/api/expense-manage";
@@ -71,6 +70,7 @@ const getSummaries = (param) => {
return prev return prev
} }
}, 0)}` }, 0)}`
sums[index] = parseFloat(sums[index]).toFixed(2)
// sums[index] = toThousands(sums[index]) // sums[index] = toThousands(sums[index])
} else { } else {
sums[index] = '-' sums[index] = '-'
@@ -85,7 +85,7 @@ const exportTable = () => {
if (!$table) { if (!$table) {
$table = $e $table = $e
} }
exportExcel($table, (5 + (Object.keys(tableData.value[0]).length - 5) * 5), "四川省国有资产经营投资管理有限责任公司科技创新项目费用分摊表",2) exportExcel($table, (5 + (Object.keys(tableData.value[0]).length - 5) * 5), "四川省国有资产经营投资管理有限责任公司科技创新项目费用分摊表", 2)
} }
const init = () => { const init = () => {
loading.value = true loading.value = true

View File

@@ -28,7 +28,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="formData.isSpecialFund"> <el-col :span="24" v-if="formData.isSpecialFund">
<el-form-item label="专项资金"> <el-form-item label="专项资金名称">
<span>{{ formData.specialFund }}</span> <span>{{ formData.specialFund }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@@ -8,7 +8,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="专项资金" prop="specialFund" v-if="localFormData.isSpecialFund"> <el-form-item label="专项资金名称" prop="specialFund" v-if="localFormData.isSpecialFund">
<span>{{localFormData.specialFundId===0?localFormData.specialFund:changeName(fundOption,localFormData.specialFundId) }}</span> <span>{{localFormData.specialFundId===0?localFormData.specialFund:changeName(fundOption,localFormData.specialFundId) }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@@ -39,9 +39,9 @@
<el-table-column prop="researchPersonnel" label="研发人员" width="230"> <el-table-column prop="researchPersonnel" label="研发人员" width="230">
<template #default="scope"> <template #default="scope">
<el-form-item prop="researchPersonnel"> <el-form-item prop="researchPersonnel">
{{ scope.row.researchPersonnelName ? scope.row.researchPersonnelName : currentReachPerson.name }} {{ scope.row.researchPersonnelName }}
<el-button @click="showPersonnelPicker(scope.row,scope.$index)"> <el-button @click="showPersonnelPicker(scope.row,scope.$index)">
{{ scope.row.researchPersonnelName || currentReachPerson.name ? '更改' : '请选择研发人员' }} {{ scope.row.researchPersonnelName ? '更改' : '请选择研发人员' }}
</el-button> </el-button>
</el-form-item> </el-form-item>
</template> </template>
@@ -211,13 +211,13 @@ const showPersonnelPicker = (row, index) => {
userPicker.value.showUserPicker() userPicker.value.showUserPicker()
} }
const selected = (select) => { const selected = (select) => {
for (const selectElement of select) { if (!select || select.length === 0) {
currentReachPerson.value = selectElement return
} }
formData.value.tableData.forEach((item, index) => { formData.value.tableData.forEach((item, index) => {
if (index == currentIndex.value) { if (index === currentIndex.value) {
item.researchPersonnel = currentReachPerson.value.id item.researchPersonnel = select[0].id
item.researchPersonnelName = currentReachPerson.value.name item.researchPersonnelName = select[0].name
} }
}) })
} }
@@ -252,7 +252,7 @@ const handleAdd = () => {
workday: '21.75', workday: '21.75',
researchDuration: null, researchDuration: null,
} }
currentReachPerson.value.name='' currentReachPerson.value.name = ''
formData.value.tableData.push(row) formData.value.tableData.push(row)
} }
const handleCopy = (row) => { const handleCopy = (row) => {
@@ -260,6 +260,7 @@ const handleCopy = (row) => {
projectId: row.projectId, projectId: row.projectId,
projectName: '', projectName: '',
researchPersonnel: row.researchPersonnel, researchPersonnel: row.researchPersonnel,
researchPersonnelName: row.researchPersonnelName,
wagesPayable: row.wagesPayable, wagesPayable: row.wagesPayable,
performance: row.performance, performance: row.performance,
reserveFund: row.reserveFund, reserveFund: row.reserveFund,

View File

@@ -57,7 +57,7 @@
</el-col> </el-col>
<el-col :span="6" v-if="formData.isSpecialFund"> <el-col :span="6" v-if="formData.isSpecialFund">
<el-form-item label="专项资金名称" prop="specialFundId"> <el-form-item label="专项资金名称" prop="specialFundId">
<el-select v-model="formData.specialFundId" placeholder="请选择专项资金" clearable filterable> <el-select v-model="formData.specialFundId" placeholder="请选择专项资金名称" clearable filterable>
<el-option <el-option
v-for="item in specialFundOption" v-for="item in specialFundOption"
:key="item.value" :key="item.value"
@@ -171,7 +171,7 @@ const rules = reactive({
companyIds: [{required: true, message: '请选择所属公司', trigger: 'blur'}], companyIds: [{required: true, message: '请选择所属公司', trigger: 'blur'}],
collectType: [{required: true, message: '请选择征集类型', trigger: 'blur'}], collectType: [{required: true, message: '请选择征集类型', trigger: 'blur'}],
deadline: [{required: true, message: '请选择截止时间', trigger: 'blur'}], deadline: [{required: true, message: '请选择截止时间', trigger: 'blur'}],
specialFundId: [{required: true, message: '请选择专项资金', trigger: 'blur'}], specialFundId: [{required: true, message: '请选择专项资金名称', trigger: 'blur'}],
}) })
const tableConfig = reactive({ const tableConfig = reactive({

View File

@@ -116,7 +116,8 @@ const upload = () => {
name: 'Filing/upload', name: 'Filing/upload',
query: { query: {
id: route.query.id, id: route.query.id,
name: activeName.value name: activeName.value,
requirementId:requirementId.value
} }
}) })
} }

View File

@@ -162,7 +162,8 @@ const handleSubmit = async () => {
await router.push({ await router.push({
name: 'Filing/attachment', name: 'Filing/attachment',
query:{ query:{
id: route.query.id id: route.query.id,
requirementId:route.query.requirementId
} }
}) })
} }

View File

@@ -28,7 +28,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="formData.isSpecialFund"> <el-col :span="24" v-if="formData.isSpecialFund">
<el-form-item label="专项资金"> <el-form-item label="专项资金名称">
<span>{{ formData.specialFund }}</span> <span>{{ formData.specialFund }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@@ -8,7 +8,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="专项资金" prop="specialFund" v-if="localFormData.isSpecialFund"> <el-form-item label="专项资金名称" prop="specialFund" v-if="localFormData.isSpecialFund">
<span>{{localFormData.specialFundId===0?localFormData.specialFund:changeName(fundOption,localFormData.specialFundId) }}</span> <span>{{localFormData.specialFundId===0?localFormData.specialFund:changeName(fundOption,localFormData.specialFundId) }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -132,10 +132,10 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<file-component <file-component
title="需求上报附件" title="需求上报附件"
tag="需求上报" tag="需求上报"
v-model:value="localFormData.fileList" v-model:value="localFormData.fileList"
:processViewer="processViewer" :processViewer="processViewer"
:file-list-show="fileListShow" :file-list-show="fileListShow"
labelAlign="top" labelAlign="top"