报名对接接口
parent
d6c222a916
commit
486419a749
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 1.3 KiB |
|
|
@ -6,6 +6,8 @@ enum Api {
|
||||||
AddBiddingInfo = '/api/BiddingInfo/AddBiddingInfo',
|
AddBiddingInfo = '/api/BiddingInfo/AddBiddingInfo',
|
||||||
EditBiddingInfo = '/api/BiddingInfo/EditBiddingInfo',
|
EditBiddingInfo = '/api/BiddingInfo/EditBiddingInfo',
|
||||||
DeleteBiddingInfo = '/api/BiddingInfo/DeleteBiddingInfo',
|
DeleteBiddingInfo = '/api/BiddingInfo/DeleteBiddingInfo',
|
||||||
|
// 报名
|
||||||
|
AddPpRegistration = '/api/BidAnnouncement/AddPpRegistration'
|
||||||
}
|
}
|
||||||
const getRequestBiddingListUrl = (userType) => {
|
const getRequestBiddingListUrl = (userType) => {
|
||||||
switch(userType){
|
switch(userType){
|
||||||
|
|
@ -43,4 +45,10 @@ export function DeleteBiddingInfo(id) {
|
||||||
return defHttp.post({
|
return defHttp.post({
|
||||||
url: `${Api.DeleteBiddingInfo}?id=${id}`,
|
url: `${Api.DeleteBiddingInfo}?id=${id}`,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
export function AddPpRegistration(params) {
|
||||||
|
return defHttp.post({
|
||||||
|
url: Api.AddPpRegistration,
|
||||||
|
params,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 1.3 KiB |
|
|
@ -96,7 +96,7 @@
|
||||||
<a-dropdown overlayClassName="operate-dropdown" placement="bottom" :arrow="{ pointAtCenter: true }">
|
<a-dropdown overlayClassName="operate-dropdown" placement="bottom" :arrow="{ pointAtCenter: true }">
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu @click="operateClick">
|
<a-menu @click="operateClick">
|
||||||
<a-menu-item key="1" v-if="user == 2">报名</a-menu-item>
|
<a-menu-item key="1" v-if="user == 2" @click="signUp(record)">报名</a-menu-item>
|
||||||
<a-menu-item key="2" v-if="user == 3" :disabled="record.nowStatus !== '待审核'" @click="openAddTenderModal('update',record)">修改</a-menu-item>
|
<a-menu-item key="2" v-if="user == 3" :disabled="record.nowStatus !== '待审核'" @click="openAddTenderModal('update',record)">修改</a-menu-item>
|
||||||
<a-menu-item key="3" v-if="user == 3" @click="changeNowStatus(record, '正常')">审核</a-menu-item>
|
<a-menu-item key="3" v-if="user == 3" @click="changeNowStatus(record, '正常')">审核</a-menu-item>
|
||||||
<a-menu-item key="4" v-if="user == 3" @click="changeNowStatus(record, '待审核')">变更</a-menu-item>
|
<a-menu-item key="4" v-if="user == 3" @click="changeNowStatus(record, '待审核')">变更</a-menu-item>
|
||||||
|
|
@ -223,7 +223,7 @@ import { ref, onMounted } from "vue"
|
||||||
import { yearOptions, proxyColumns, supplierColumns, proprietorColumns, biddingformOptions, biddingtypeOptions, nowStatusOptions } from './util'
|
import { yearOptions, proxyColumns, supplierColumns, proprietorColumns, biddingformOptions, biddingtypeOptions, nowStatusOptions } from './util'
|
||||||
import { SearchOutlined, PlusOutlined, DownOutlined } from '@ant-design/icons-vue'
|
import { SearchOutlined, PlusOutlined, DownOutlined } from '@ant-design/icons-vue'
|
||||||
import InsertModal from './InsertModal/index.vue'
|
import InsertModal from './InsertModal/index.vue'
|
||||||
import { LoadBiddingInfo, EditBiddingInfo } from '@/api/demo/tender'
|
import { LoadBiddingInfo, EditBiddingInfo, AddPpRegistration } from '@/api/demo/tender'
|
||||||
import { getUserType, AnnouncementOptions } from '@/views/demo/util'
|
import { getUserType, AnnouncementOptions } from '@/views/demo/util'
|
||||||
import { message } from "ant-design-vue"
|
import { message } from "ant-design-vue"
|
||||||
import { AddBidAnnouncement, EditBidAnnouncement } from '@/api/demo/announcement'
|
import { AddBidAnnouncement, EditBidAnnouncement } from '@/api/demo/announcement'
|
||||||
|
|
@ -377,6 +377,15 @@ const insertAnnouncement = () => {
|
||||||
fromValue.value.createTime = ''
|
fromValue.value.createTime = ''
|
||||||
fromValue.value.content = ''
|
fromValue.value.content = ''
|
||||||
}
|
}
|
||||||
|
const signUp = (record) => {
|
||||||
|
let params = {
|
||||||
|
biddingInfoId: record.id
|
||||||
|
}
|
||||||
|
AddPpRegistration(params).then(res => {
|
||||||
|
message.success('报名成功')
|
||||||
|
query()
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue