|
|
|
@ -84,11 +84,16 @@
|
|
|
|
|
import { BasicForm, useForm } from '/@/components/Form'
|
|
|
|
|
import ApplyInfo from './components/applyInfo.vue'
|
|
|
|
|
import { numberThousandFormat } from '/@/utils/commonUtil'
|
|
|
|
|
import { useMultipleTabStore } from '/@/store/modules/multipleTab'
|
|
|
|
|
// 业务表格
|
|
|
|
|
import BusinessTable from './components/businessTable.vue'
|
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
const tabStore = useMultipleTabStore()
|
|
|
|
|
const go = useGo()
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
const visible = ref(false)
|
|
|
|
|
import { formSchema } from './columns'
|
|
|
|
|
import { Save, Get, Delete, ApplyAudit } from '../api'
|
|
|
|
@ -136,10 +141,17 @@
|
|
|
|
|
Save(postData).then(res => {
|
|
|
|
|
loading.value = false
|
|
|
|
|
visible.value = false
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
if (route.fullPath == '/paid-apply/create') {
|
|
|
|
|
// 新建成功
|
|
|
|
|
// 关闭当前页面
|
|
|
|
|
const { fullPath } = route //获取当前路径
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go(`/paid-apply/detail?id=${res.data.id}`)
|
|
|
|
|
}, 50)
|
|
|
|
|
} else {
|
|
|
|
|
createMessage.success('保存成功')
|
|
|
|
|
bid.value = res.data.id
|
|
|
|
|
visible.value = false
|
|
|
|
|
init()
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|