fix : 修复提交按钮旁边的返回页面细节
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||
import {computed, ref} from "vue";
|
||||
import {getBaseInfoApi} from "@/components/steps/api";
|
||||
import {getResearchUser} from "@/api/expense-manage";
|
||||
|
||||
const route = useRoute()
|
||||
const schema = computed(() => {
|
||||
@@ -94,14 +95,17 @@ const tableConfig = reactive({
|
||||
width:'80'
|
||||
},
|
||||
{
|
||||
prop: 'name',
|
||||
prop: 'time',
|
||||
label: '时间',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'researchPersonnel',
|
||||
label: '研发人员',
|
||||
align: 'center'
|
||||
align: 'center',
|
||||
currentRender:({row})=>{
|
||||
return <span>{getResearchName(row.researchPersonnel)}</span>
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'wagesPayable',
|
||||
@@ -117,24 +121,29 @@ const tableConfig = reactive({
|
||||
prop: 'reserveFund',
|
||||
label: '公积金',
|
||||
align: 'center'
|
||||
},{
|
||||
},
|
||||
{
|
||||
prop: 'socialSecurity',
|
||||
label: '社保',
|
||||
align: 'center'
|
||||
},{
|
||||
},
|
||||
{
|
||||
prop: 'annuity',
|
||||
label: '年金',
|
||||
align: 'center'
|
||||
},{
|
||||
},
|
||||
{
|
||||
prop: 'workday',
|
||||
label: '工作日(天)',
|
||||
align: 'center'
|
||||
},{
|
||||
},
|
||||
{
|
||||
prop: 'researchDuration',
|
||||
label: '研发工时(天)',
|
||||
align: 'center'
|
||||
},{
|
||||
prop: 'survey',
|
||||
},
|
||||
{
|
||||
prop: 'subtotal',
|
||||
label: '小计',
|
||||
align: 'center'
|
||||
}
|
||||
@@ -144,6 +153,21 @@ const tableConfig = reactive({
|
||||
projectId: route.query.id
|
||||
}
|
||||
})
|
||||
const researchOptions = ref([])
|
||||
const getResearchOptions = async () => {
|
||||
const res = await getResearchUser()
|
||||
researchOptions.value = res.data
|
||||
}
|
||||
const getResearchName=(id)=>{
|
||||
if(!id)return;
|
||||
let label=''
|
||||
researchOptions.value.forEach(item=>{
|
||||
if(item.value==id){
|
||||
label=item.label
|
||||
}
|
||||
})
|
||||
return label
|
||||
}
|
||||
const getBaseInfo = async () => {
|
||||
try {
|
||||
const {code, data} = await getBaseInfoApi(route.query.id)
|
||||
@@ -152,6 +176,7 @@ const getBaseInfo = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
getResearchOptions()
|
||||
getBaseInfo()
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user