feat: 合并 admin/manager 重复页 + 公示意向 + 劳务签署
页合并 (admin/manager 共用, route.path 角色感知): - expert: Experts.vue + ExpertNew.vue (list/new/edit/view 一套) - sponsor-orgs: SponsorOrgs.vue - sponsor-people: SponsorPeople.vue + SponsorPersonNew.vue + SponsorPersonDetail.vue - executor-orgs: ExecutorOrgs.vue - executor-people: ExecutorPeople.vue + ExecutorPersonNew.vue + ExecutorPersonDetail.vue - 给 SponsorPeople / ExecutorPeople op 列补上 查看/编辑 按钮 (潜在 bug 修复) - 详情弹窗统一用 el-descriptions 风格 (替代 admin 旧版 ElMessageBox.alert) 后端: - BizSignController + BizSignServiceImpl + PdfService (劳务签署 PDF 流程) - BizPublicityIntentController (公示意向: 支持/执行) - BizPublicitySupportIntent / BizPublicityExecutionIntent ExportVo - BizMeetingAttendee 字段合并 (bank_region 替代 bankProvince/bankCity) - BizExpert 字段合并 (id_card_attachments CSV, bank_region) - Excel 导入模板精简 (开户行 1 列) 前端: - doctor/SignFill + SignContract + SignSuccess (劳务签署 3 页流程) - ImportResultDialog 通用组件 - IdCardUploader 重构 (单 v-model:idCardAttachments, CSV 格式) - AreaCascader 调整 - Login.vue + AdminLayout.vue + PortalShell.vue + Home.vue 适配 DB: 字段合并 (id_card_front/back → id_card_attachments, bank_province/city → bank_region)
This commit is contained in:
@@ -7,4 +7,35 @@ import request from '@/utils/request'
|
||||
*/
|
||||
export function getMyExpertProfile() {
|
||||
return request({ url: '/business/expert/profile', method: 'get' })
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量导入专家 (axios 版, 后端 3 阶段批量: IN查 sys_user → batchInsert → batchInsert biz_expert)
|
||||
* 用于"非 el-upload"场景 (比如自定义拖拽 / 直接 fetch).
|
||||
*
|
||||
* @param {File} file .xlsx / .xls 文件
|
||||
* @param {boolean} updateSupport 已存在 phone 是否跳过 (当前实现固定绑定已有 user_id)
|
||||
* @returns {Promise<{code,msg,data:ImportResult}>}
|
||||
*/
|
||||
export function importExpert(file, updateSupport = false) {
|
||||
const form = new FormData()
|
||||
form.append('file', file)
|
||||
return request({
|
||||
url: '/business/expert/importData',
|
||||
method: 'post',
|
||||
data: form,
|
||||
params: { updateSupport },
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载专家批量导入模板 (返回 blob, 前端用 a[download] 触发保存)
|
||||
*/
|
||||
export function downloadExpertImportTpl() {
|
||||
return request({
|
||||
url: '/business/expert/importTemplate',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 医生劳务协议签署 API
|
||||
* 简化版: 不用 token, 走标准 session 验证
|
||||
* 医生登录后, 移动端 /doctor/sign-fill?attendeeId=X 打开
|
||||
*/
|
||||
export function getSignInfo(attendeeId) {
|
||||
return request({ url: '/business/sign/info', method: 'get', params: { attendeeId } })
|
||||
}
|
||||
export function saveSignProfile(attendeeId, form) {
|
||||
return request({ url: '/business/sign/saveProfile', method: 'post', params: { attendeeId }, data: form, __silentError: true })
|
||||
}
|
||||
export function getSignContract(attendeeId) {
|
||||
return request({ url: '/business/sign/contract', method: 'get', params: { attendeeId }, __silentError: true })
|
||||
}
|
||||
export function submitSign(attendeeId, handsign, contentHtml) {
|
||||
return request({ url: '/business/sign/submit', method: 'post', params: { attendeeId }, data: { handsign, contentHtml }, __silentError: true })
|
||||
}
|
||||
@@ -148,3 +148,12 @@ export function deletePublicitySupportIntent(ids) {
|
||||
export function deletePublicityExecutionIntent(ids) {
|
||||
return request.delete(`/business/publicityExecutionIntent/${Array.isArray(ids) ? ids.join(',') : ids}`)
|
||||
}
|
||||
|
||||
// 导出 (后端 ExcelUtil 写 .xlsx, responseType=blob, 由前端触发下载)
|
||||
// 用法: exportPublicityExecutionIntent(q.value).then(res => { /* res: { data: blob } */ })
|
||||
export function exportPublicityExecutionIntent(params) {
|
||||
return request.post('/business/publicityExecutionIntent/export', null, { params, responseType: 'blob' })
|
||||
}
|
||||
export function exportPublicitySupportIntent(params) {
|
||||
return request.post('/business/publicitySupportIntent/export', null, { params, responseType: 'blob' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user