fix : 修复提交按钮旁边的返回页面细节

This commit is contained in:
2024-06-10 00:25:00 +08:00
parent bf0cb73946
commit d3fe46f0bc
9 changed files with 59 additions and 14 deletions

View File

@@ -27,6 +27,7 @@
<div class="oper-page-btn"> <div class="oper-page-btn">
<el-button color="#DED0B2" v-if="route.query.state==0" @click="handleSubmit(applyForm)">提交</el-button> <el-button color="#DED0B2" v-if="route.query.state==0" @click="handleSubmit(applyForm)">提交</el-button>
<el-button color="#DED0B2" v-else-if="route.query.state==3" @click="handleSubmit(applyForm)">重新提交</el-button> <el-button color="#DED0B2" v-else-if="route.query.state==3" @click="handleSubmit(applyForm)">重新提交</el-button>
<el-button @click="handleBack">返回</el-button>
</div> </div>
</div> </div>
</template> </template>
@@ -70,6 +71,9 @@ const processDiagramViewer = ref(false)
const name = ref(router.currentRoute.value.name) const name = ref(router.currentRoute.value.name)
const applyForm = ref() const applyForm = ref()
const deploymentId = ref() const deploymentId = ref()
const handleBack = () => {
history.back()
}
const compositeParam = (item) => { const compositeParam = (item) => {
// let tag = '' // let tag = ''
// if (name.value === 'Initiation/apply' || route.query.state==3) { // if (name.value === 'Initiation/apply' || route.query.state==3) {

View File

@@ -122,11 +122,6 @@ const tableConfig = reactive({
} }
} }
}, },
{
prop: 'digest',
label: '摘要',
align: 'center'
},
{ {
prop: 'afterTax', prop: 'afterTax',
label: '税后余额(元)', label: '税后余额(元)',

View File

@@ -244,6 +244,7 @@
<!-- <el-button type="info" @click="staging">存为草稿</el-button>--> <!-- <el-button type="info" @click="staging">存为草稿</el-button>-->
<el-button color="#DED0B2" v-if="name==='Summary/add'" @click="handleSubmit(summaryForm)">发布</el-button> <el-button color="#DED0B2" v-if="name==='Summary/add'" @click="handleSubmit(summaryForm)">发布</el-button>
<el-button color="#DED0B2" v-else @click="handleResubmit">重新发布</el-button> <el-button color="#DED0B2" v-else @click="handleResubmit">重新发布</el-button>
<el-button @click="handleBack">返回</el-button>
</div> </div>
</div> </div>
</template> </template>
@@ -307,6 +308,9 @@ const rules = reactive({
contentDescription: [{required: true, message: '请输入研发项目关键内容描述', trigger: 'blur'}] contentDescription: [{required: true, message: '请输入研发项目关键内容描述', trigger: 'blur'}]
}) })
const handleBack = () => {
history.back()
}
const disabledDate = (time) => { const disabledDate = (time) => {
return time.getTime() < new Date(formData.value.startTime).getTime(); return time.getTime() < new Date(formData.value.startTime).getTime();
} }

View File

@@ -12,6 +12,7 @@
<div class="oper-page-btn"> <div class="oper-page-btn">
<el-button color="#DED0B2" v-if="name==='Filing/conclusion'" @click="handleSubmit">提交</el-button> <el-button color="#DED0B2" v-if="name==='Filing/conclusion'" @click="handleSubmit">提交</el-button>
<el-button color="#DED0B2" v-else @click="handleResubmit">重新提交</el-button> <el-button color="#DED0B2" v-else @click="handleResubmit">重新提交</el-button>
<el-button @click="handleBack">返回</el-button>
</div> </div>
</div> </div>
</template> </template>
@@ -92,6 +93,9 @@ const handleDownload = (row) => {
a.click() a.click()
}) })
} }
const handleBack = () => {
history.back()
}
const compositeParam = (item) => { const compositeParam = (item) => {
let tag = '' let tag = ''
if (name.value === 'Filing/conclusion' || name.value === 'Filing/edit') { if (name.value === 'Filing/conclusion' || name.value === 'Filing/edit') {

View File

@@ -9,6 +9,7 @@
<script setup lang="jsx"> <script setup lang="jsx">
import fvSelect from '@/fvcomponents/fvSelect/index.vue' import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import {toThousands} from '@/utils/changePrice.js'
const router = useRouter() const router = useRouter()
const route = useRoute() const route = useRoute()
@@ -125,7 +126,10 @@ const tableConfig = reactive({
{ {
prop: 'afterTax', prop: 'afterTax',
label: '税后余额(元)', label: '税后余额(元)',
align: 'center' align: 'center',
currentRender:({row})=>{
return <span>{toThousands(row.afterTax)}</span>
}
} }
], ],
api: '/workflow/mosr/expense/ledger', api: '/workflow/mosr/expense/ledger',

View File

@@ -21,6 +21,7 @@
<div class="oper-page-btn"> <div class="oper-page-btn">
<el-button color="#DED0B2" v-if="name==='Implementation/check'" @click="handleSubmit(applyForm)">提交</el-button> <el-button color="#DED0B2" v-if="name==='Implementation/check'" @click="handleSubmit(applyForm)">提交</el-button>
<el-button color="#DED0B2" v-else @click="handleResubmit(applyForm)">重新提交</el-button> <el-button color="#DED0B2" v-else @click="handleResubmit(applyForm)">重新提交</el-button>
<el-button @click="handleBack">返回</el-button>
</div> </div>
</div> </div>
</template> </template>
@@ -46,6 +47,9 @@ const otherFileList = ref([])
const processInstanceData = ref() const processInstanceData = ref()
const processDiagramViewer = ref(true) const processDiagramViewer = ref(true)
const processStore = useProcessStore() const processStore = useProcessStore()
const handleBack = () => {
history.back()
}
const compositeParam = (item) => { const compositeParam = (item) => {
let tag = '' let tag = ''
if (name.value === 'Implementation/check' || name.value === 'Implementation/edit') { if (name.value === 'Implementation/check' || name.value === 'Implementation/edit') {

View File

@@ -245,6 +245,7 @@ const tableConfig = reactive({
prop: 'oper', prop: 'oper',
label: '操作', label: '操作',
align: 'center', align: 'center',
fixed:'right',
showOverflowTooltip: false, showOverflowTooltip: false,
currentRender: ({row, index}) => { currentRender: ({row, index}) => {
let btn = [] let btn = []

View File

@@ -13,6 +13,7 @@
import fvSelect from '@/fvcomponents/fvSelect/index.vue' import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import {computed, ref} from "vue"; import {computed, ref} from "vue";
import {getBaseInfoApi} from "@/components/steps/api"; import {getBaseInfoApi} from "@/components/steps/api";
import {getResearchUser} from "@/api/expense-manage";
const route = useRoute() const route = useRoute()
const schema = computed(() => { const schema = computed(() => {
@@ -94,14 +95,17 @@ const tableConfig = reactive({
width:'80' width:'80'
}, },
{ {
prop: 'name', prop: 'time',
label: '时间', label: '时间',
align: 'center' align: 'center'
}, },
{ {
prop: 'researchPersonnel', prop: 'researchPersonnel',
label: '研发人员', label: '研发人员',
align: 'center' align: 'center',
currentRender:({row})=>{
return <span>{getResearchName(row.researchPersonnel)}</span>
}
}, },
{ {
prop: 'wagesPayable', prop: 'wagesPayable',
@@ -117,24 +121,29 @@ const tableConfig = reactive({
prop: 'reserveFund', prop: 'reserveFund',
label: '公积金', label: '公积金',
align: 'center' align: 'center'
},{ },
{
prop: 'socialSecurity', prop: 'socialSecurity',
label: '社保', label: '社保',
align: 'center' align: 'center'
},{ },
{
prop: 'annuity', prop: 'annuity',
label: '年金', label: '年金',
align: 'center' align: 'center'
},{ },
{
prop: 'workday', prop: 'workday',
label: '工作日(天)', label: '工作日(天)',
align: 'center' align: 'center'
},{ },
{
prop: 'researchDuration', prop: 'researchDuration',
label: '研发工时(天)', label: '研发工时(天)',
align: 'center' align: 'center'
},{ },
prop: 'survey', {
prop: 'subtotal',
label: '小计', label: '小计',
align: 'center' align: 'center'
} }
@@ -144,6 +153,21 @@ const tableConfig = reactive({
projectId: route.query.id 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 () => { const getBaseInfo = async () => {
try { try {
const {code, data} = await getBaseInfoApi(route.query.id) const {code, data} = await getBaseInfoApi(route.query.id)
@@ -152,6 +176,7 @@ const getBaseInfo = async () => {
} }
} }
getResearchOptions()
getBaseInfo() getBaseInfo()
</script> </script>

View File

@@ -21,6 +21,7 @@
<div class="oper-page-btn"> <div class="oper-page-btn">
<el-button color="#DED0B2" v-if="name==='Initiation/apply'" @click="handleSubmit(applyForm)">提交</el-button> <el-button color="#DED0B2" v-if="name==='Initiation/apply'" @click="handleSubmit(applyForm)">提交</el-button>
<el-button color="#DED0B2" v-else @click="handleResubmit">重新提交</el-button> <el-button color="#DED0B2" v-else @click="handleResubmit">重新提交</el-button>
<el-button @click="handleBack">返回</el-button>
</div> </div>
</div> </div>
</template> </template>
@@ -87,6 +88,9 @@ const loading = ref(false)
const processInstanceData = ref() const processInstanceData = ref()
const processDiagramViewer = ref(true) const processDiagramViewer = ref(true)
const name = ref(router.currentRoute.value.name) const name = ref(router.currentRoute.value.name)
const handleBack = () => {
history.back()
}
const handleDownload = (row) => { const handleDownload = (row) => {
downloadFile(row.fileId).then(res => { downloadFile(row.fileId).then(res => {
const blob = new Blob([res]) const blob = new Blob([res])