Commit fef92969 by yuzhenWang

Merge branch 'test' into 'feature-20260316wyz-预约修改'

Test

See merge request !96
parents ea3141b0 22d3ffda
...@@ -21,17 +21,19 @@ ...@@ -21,17 +21,19 @@
"@element-plus/icons-vue": "^2.3.1", "@element-plus/icons-vue": "^2.3.1",
"@vueup/vue-quill": "1.2.0", "@vueup/vue-quill": "1.2.0",
"@vueuse/core": "13.3.0", "@vueuse/core": "13.3.0",
"ali-oss": "^6.23.0",
"axios": "1.9.0", "axios": "1.9.0",
"clipboard": "2.0.11", "clipboard": "2.0.11",
"dayjs": "^1.11.18", "dayjs": "^1.11.18",
"echarts": "5.6.0", "echarts": "5.6.0",
"element-plus": "^2.9.9", "element-plus": "^2.13.5",
"file-saver": "2.0.5", "file-saver": "2.0.5",
"fuse.js": "6.6.2", "fuse.js": "6.6.2",
"js-beautify": "1.14.11", "js-beautify": "1.14.11",
"js-cookie": "3.0.5", "js-cookie": "3.0.5",
"jsencrypt": "3.3.2", "jsencrypt": "3.3.2",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"p-limit": "^7.3.0",
"pinia": "3.0.2", "pinia": "3.0.2",
"spark-md5": "^3.0.2", "spark-md5": "^3.0.2",
"splitpanes": "^4.0.4", "splitpanes": "^4.0.4",
......
import request from '@/utils/request' import request from '@/utils/request'
// 修改上传图片方法,添加正确的请求配置 // 修改上传图片方法,添加正确的请求配置
export function uploadImage(data) { export function uploadImage(data) {
console.log('data', data) console.log('data', data)
...@@ -168,9 +167,9 @@ export function uploadMaterialList(data) { ...@@ -168,9 +167,9 @@ export function uploadMaterialList(data) {
}) })
} }
// 删除上传文件 // 删除上传文件
export function delUploadFile(fileBizId) { export function delUploadFile(fileBizId,projectBizId) {
return request({ return request({
url: `/oss/api/ossFile/del?fileBizId=${fileBizId}`, url: `/oss/api/ossFile/del?fileBizId=${fileBizId}&projectBizId=${projectBizId}`,
method: 'delete' method: 'delete'
}) })
} }
...@@ -221,3 +220,19 @@ export function insuranceReconciliationCompany(data) { ...@@ -221,3 +220,19 @@ export function insuranceReconciliationCompany(data) {
method: 'post' method: 'post'
}) })
} }
// 获取STS凭证
export function getStstoken(projectBizId) {
return request({
url: `/oss/api/sts/sts-token?projectBizId=${projectBizId}`,
method: 'get'
})
}
// 大文件分片上传接口
export function batchSaveFiles(data) {
return request({
url: '/oss/api/sts/batch/save/files',
data: data,
method: 'post'
})
}
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<span class="iconfont icon-yanqiweiwancheng"></span> <span class="iconfont icon-yanqiweiwancheng"></span>
<span <span
>{{ parseTime(processInfo.createTime) }}{{ >{{ parseTime(processInfo.createTime) }}{{
processInfo.customerName || '--' processInfo.userBizId || '--'
}}创建</span }}创建</span
> >
</div> </div>
...@@ -321,7 +321,7 @@ const getDictsData = async () => { ...@@ -321,7 +321,7 @@ const getDictsData = async () => {
projectBizId: userStore.projectInfo.projectBizId, projectBizId: userStore.projectInfo.projectBizId,
tenantBizId: userStore.projectInfo.tenantBizId, tenantBizId: userStore.projectInfo.tenantBizId,
fieldBizId: 'field_olk1qZe81qHHKXbw', fieldBizId: 'field_olk1qZe81qHHKXbw',
fieldValueBizId: 'field_value_yXzTigvgUdRMFpoR' fieldValueBizId: 'field_value_yXzTigvgUdRMFpoR',
} }
const response6 = await secondAdditonalList(params6) const response6 = await secondAdditonalList(params6)
if (response6.code == 200) { if (response6.code == 200) {
......
...@@ -867,7 +867,7 @@ const viewHistory = () => { ...@@ -867,7 +867,7 @@ const viewHistory = () => {
} }
const handleTableSelectChange = (father, row, key) => { const handleTableSelectChange = (father, row, key) => {
searchOptions.value[key].forEach(item => { searchOptions.value[key].forEach(item => {
console.log('item', item) // console.log('item', item)
if (row[key] == item.value) { if (row[key] == item.value) {
row[key] = item.label row[key] = item.label
// row.userBizId = item.userBizId // row.userBizId = item.userBizId
...@@ -879,7 +879,10 @@ const handleTableSelectChange = (father, row, key) => { ...@@ -879,7 +879,10 @@ const handleTableSelectChange = (father, row, key) => {
row.email = item.email row.email = item.email
row.cardType = item.cardType row.cardType = item.cardType
} else if (key == 'realName') { } else if (key == 'realName') {
// console.log('转介人',item)
row.userSaleBizId = item.value row.userSaleBizId = item.value
row.phone = item.phone
row.email = item.email
} else if (key == 'contractingCompanyName') { } else if (key == 'contractingCompanyName') {
row.contractingCompanyId = item.value row.contractingCompanyId = item.value
} }
...@@ -963,7 +966,7 @@ const searchSelectList = async (query, key) => { ...@@ -963,7 +966,7 @@ const searchSelectList = async (query, key) => {
} else if (key == 'realName') { } else if (key == 'realName') {
const params5 = { const params5 = {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 999,
realName: queryString realName: queryString
} }
const response5 = await getUserSaleExpandList(params5) const response5 = await getUserSaleExpandList(params5)
...@@ -980,7 +983,7 @@ const searchSelectList = async (query, key) => { ...@@ -980,7 +983,7 @@ const searchSelectList = async (query, key) => {
} else if (key == 'name') { } else if (key == 'name') {
const params5 = { const params5 = {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 999,
realName: queryString realName: queryString
} }
const response5 = await getAllSignList(params5) const response5 = await getAllSignList(params5)
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
<div class="fileUploadBox"> <div class="fileUploadBox">
<el-upload <el-upload
:action="uploadImgUrl" :action="uploadImgUrl"
:data="{'projectBizId':userStore.projectInfo.projectBizId}"
:headers="headers" :headers="headers"
multiple multiple
:limit="limit" :limit="limit"
...@@ -138,6 +139,8 @@ import CardOne from '@/components/formCard/cardOne' ...@@ -138,6 +139,8 @@ import CardOne from '@/components/formCard/cardOne'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { addFile, getAppointmentFile, delFile, editAppointmentFile } from '@/api/sign/appointment' import { addFile, getAppointmentFile, delFile, editAppointmentFile } from '@/api/sign/appointment'
import useDictStore from '@/store/modules/dict' import useDictStore from '@/store/modules/dict'
import useUserStore from '@/store/modules/user'
const userStore = useUserStore()
import { import {
uploadMaterialList, uploadMaterialList,
delUploadFile, delUploadFile,
...@@ -395,7 +398,7 @@ const uploadSuccess = (res, file, fileList) => { ...@@ -395,7 +398,7 @@ const uploadSuccess = (res, file, fileList) => {
// 删除已上传的文件(仅从列表移除,不调用后端删除) // 删除已上传的文件(仅从列表移除,不调用后端删除)
const removeUploadedFile = (file, index) => { const removeUploadedFile = (file, index) => {
try { try {
delUploadFile(file.fileBizId).then(response => { delUploadFile(file.fileBizId,userStore.projectInfo.projectBizId).then(response => {
uploadedFiles.value.splice(index, 1) uploadedFiles.value.splice(index, 1)
}) })
} catch (error) { } catch (error) {
......
...@@ -310,7 +310,7 @@ const data = reactive({ ...@@ -310,7 +310,7 @@ const data = reactive({
dialogForm: {}, dialogForm: {},
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 4, pageSize: 10,
name: undefined name: undefined
} }
}) })
...@@ -463,6 +463,7 @@ const handleSearchSelectChange = (father, key) => { ...@@ -463,6 +463,7 @@ const handleSearchSelectChange = (father, key) => {
} }
form.value['apiProductPlanMainInfoDto']['insuranceTypeName'] = item.label form.value['apiProductPlanMainInfoDto']['insuranceTypeName'] = item.label
form.value['apiProductPlanMainInfoDto']['insuranceTypeId'] = item.value form.value['apiProductPlanMainInfoDto']['insuranceTypeId'] = item.value
form.value['apiProductPlanMainInfoDto']['insuranceTypeCode'] = item.code
} }
}) })
} }
...@@ -497,7 +498,7 @@ const searchSelectList = async (query, fieldKey) => { ...@@ -497,7 +498,7 @@ const searchSelectList = async (query, fieldKey) => {
loginTenantBizId: userStore.projectInfo.tenantBizId, loginTenantBizId: userStore.projectInfo.tenantBizId,
productName: query.trim(), productName: query.trim(),
pageNo: 1, pageNo: 1,
pageSize: 10 pageSize: 999
} }
const response = await getInsuranceProductList(params) const response = await getInsuranceProductList(params)
...@@ -517,16 +518,14 @@ const searchSelectList = async (query, fieldKey) => { ...@@ -517,16 +518,14 @@ const searchSelectList = async (query, fieldKey) => {
const params = { const params = {
productName: query.trim(), productName: query.trim(),
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 999,
projectBizId: userStore.projectInfo.projectBizId, projectBizId: userStore.projectInfo.projectBizId,
tenantBizId: userStore.projectInfo.tenantBizId, tenantBizId: userStore.projectInfo.tenantBizId,
fieldBizId: 'field_olk1qZe81qHHKXbw', fieldBizId: 'field_olk1qZe81qHHKXbw',
fieldValueBizId: fieldValueBizId:fieldKey === 'productLaunchName'? 'field_value_yXzTigvgUdRMFpoR' : 'field_value_uOfJH5ucA2YwJpbn',
fieldKey === 'productLaunchName' categoryCodeList:[form.value.apiProductPlanMainInfoDto.insuranceTypeCode || ''],
? 'field_value_yXzTigvgUdRMFpoR' insuranceCompanyBizIdList:[form.value.apiProductPlanMainInfoDto.companyId || '']
: 'field_value_uOfJH5ucA2YwJpbn'
} }
const response = await secondAdditonalList(params) const response = await secondAdditonalList(params)
if (response.code == 200) { if (response.code == 200) {
response.data.records = response.data.records.map(item => { response.data.records = response.data.records.map(item => {
...@@ -541,7 +540,7 @@ const searchSelectList = async (query, fieldKey) => { ...@@ -541,7 +540,7 @@ const searchSelectList = async (query, fieldKey) => {
} else if (fieldKey === 'companyName') { } else if (fieldKey === 'companyName') {
const params9 = { const params9 = {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 999,
queryContent: query.trim() queryContent: query.trim()
} }
const response9 = await getInsuranceCompany(params9) const response9 = await getInsuranceCompany(params9)
...@@ -566,7 +565,7 @@ const searchSelectList = async (query, fieldKey) => { ...@@ -566,7 +565,7 @@ const searchSelectList = async (query, fieldKey) => {
} }
const params1 = { const params1 = {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 999,
name: query.trim() name: query.trim()
} }
const response1 = await getInsuranceCategory(params1) const response1 = await getInsuranceCategory(params1)
...@@ -583,7 +582,7 @@ const searchSelectList = async (query, fieldKey) => { ...@@ -583,7 +582,7 @@ const searchSelectList = async (query, fieldKey) => {
} else if (fieldKey == 'reconciliationCompanyName') { } else if (fieldKey == 'reconciliationCompanyName') {
const params1 = { const params1 = {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 999,
name: query.trim() name: query.trim()
} }
const response1 = await insuranceReconciliationCompany(params1) const response1 = await insuranceReconciliationCompany(params1)
......
...@@ -423,8 +423,8 @@ const loadTableData = async () => { ...@@ -423,8 +423,8 @@ const loadTableData = async () => {
// 表格操作菜单 // 表格操作菜单
const dropdownItems = [ const dropdownItems = [
{ label: '查看详情', value: 'viewDetail' }, { label: '查看保单详情', value: 'viewDetail' },
{ label: '更新数据', value: 'updateData' }, { label: '补充保单信息', value: 'updateData' },
{ label: '生成签单报告', value: 'generateReport' }, { label: '生成签单报告', value: 'generateReport' },
{ label: '设置新单状态', value: 'setNewSingleStatus' }, { label: '设置新单状态', value: 'setNewSingleStatus' },
// { label: '查看关联', value: 'viewRelated' }, // { label: '查看关联', value: 'viewRelated' },
......
...@@ -157,18 +157,34 @@ ...@@ -157,18 +157,34 @@
/> />
<el-table-column fixed="right" label="操作" min-width="120"> <el-table-column fixed="right" label="操作" min-width="120">
<template #default="scope"> <template #default="scope">
<el-popconfirm title="确定删除吗?" @confirm="deleteFile(scope.row)"> <div style="display: flex; gap: 8px;">
<template #reference>
<el-button <!-- 👇 新增:查看按钮 -->
<!-- <el-button
link link
type="danger" type="primary"
size="small" size="small"
:disabled="props.mode === 'viewDetail'" @click="viewFile(scope.row)"
:disabled="!scope.row.fileUrl"
> >
删除 查看
</el-button> </el-button> -->
</template>
</el-popconfirm> <!-- 原有:删除按钮 (带确认框) -->
<el-popconfirm title="确定删除吗?" @confirm="deleteFile(scope.row)">
<template #reference>
<el-button
link
type="danger"
size="small"
:disabled="props.mode === 'viewDetail'"
>
删除
</el-button>
</template>
</el-popconfirm>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -189,13 +205,20 @@ ...@@ -189,13 +205,20 @@
dialogTitle="文件导入" dialogTitle="文件导入"
dialogWidth="80%" dialogWidth="80%"
:openDialog="fileUploadDialogFlag" :openDialog="fileUploadDialogFlag"
:showAction="true" :showAction="false"
:showClose="true" :showClose="true"
@close="((fileUploadDialogFlag = false), (files = ''))" @close="handleDialogClose"
@confirm="((fileUploadDialogFlag = false), (files = ''))"
> >
<!-- <FileUploader/> --> <FileUploader
<FileUpload :tenant-biz-id="userStore.projectInfo.tenantBizId"
:project-biz-id="userStore.projectInfo.projectBizId"
:object-biz-id="props.policyBizId"
:object-type="'DOCUMENT'"
:project-type="'pc'"
:upload-concurrency="3"
ref="uploaderRef"
/>
<!-- <FileUpload
v-model="files" v-model="files"
:data="{ obiectTableName: 'policy_follow', objectBizId: props.policyBizId }" :data="{ obiectTableName: 'policy_follow', objectBizId: props.policyBizId }"
:file-type="['xlsx', 'xls', 'doc', 'docx', 'pdf', 'txt', 'jpg', 'jpeg', 'png', 'gif']" :file-type="['xlsx', 'xls', 'doc', 'docx', 'pdf', 'txt', 'jpg', 'jpeg', 'png', 'gif']"
...@@ -204,7 +227,7 @@ ...@@ -204,7 +227,7 @@
:fileSize="15" :fileSize="15"
:name="'files'" :name="'files'"
@uploadEnd="handleUploadEnd" @uploadEnd="handleUploadEnd"
/> /> -->
</CommonDialog> </CommonDialog>
</div> </div>
</template> </template>
...@@ -266,7 +289,17 @@ const props = defineProps({ ...@@ -266,7 +289,17 @@ const props = defineProps({
default: '' default: ''
} }
}) })
const uploaderRef = ref(null);
// 【关键】当弹窗关闭时,强制清空上传组件列表
const handleDialogClose = () => {
if (uploaderRef.value) {
// 调用子组件暴露的清空方法
// 你需要在子组件中使用 defineExpose 暴露 clearList 方法
uploaderRef.value.clearList();
fileUploadDialogFlag.value = false
getAttachmentListDetail(props.policyBizId)
}
};
const emit = defineEmits(['update:modelValue', 'submit', 'cancel', 'saveRow']) const emit = defineEmits(['update:modelValue', 'submit', 'cancel', 'saveRow'])
const introducerTableData = ref([]) const introducerTableData = ref([])
...@@ -656,7 +689,7 @@ const basicPlanFormConfig = ref([ ...@@ -656,7 +689,7 @@ const basicPlanFormConfig = ref([
valueKey: 'productName', valueKey: 'productName',
labelKey: 'productName', labelKey: 'productName',
transform: res => { transform: res => {
console.log('======子组件选择选项后,父组件接收的值产品名称:', res?.data.records || []) // console.log('======子组件选择选项后,父组件接收的值产品名称:', res?.data.records || [])
return res?.data.records || [] return res?.data.records || []
}, },
onChangeExtraFields: { onChangeExtraFields: {
...@@ -896,7 +929,7 @@ const attachmentTableColumns = ref([ ...@@ -896,7 +929,7 @@ const attachmentTableColumns = ref([
prop: 'originalName', prop: 'originalName',
label: '文件名', label: '文件名',
sortable: true, sortable: true,
width: '150', width: '300',
formatter: row => row.originalName || '-' formatter: row => row.originalName || '-'
}, },
{ {
...@@ -910,8 +943,8 @@ const attachmentTableColumns = ref([ ...@@ -910,8 +943,8 @@ const attachmentTableColumns = ref([
prop: 'createTime', prop: 'createTime',
label: '上传时间', label: '上传时间',
sortable: true, sortable: true,
width: '150', width: '200',
formatter: row => row.createTime || '-' formatter: row => formatToDateTime(row.createTime || '-')
}, },
{ {
prop: 'creatorName', prop: 'creatorName',
...@@ -1100,7 +1133,7 @@ const handleCancel = () => { ...@@ -1100,7 +1133,7 @@ const handleCancel = () => {
const deleteFile = (row)=>{ const deleteFile = (row)=>{
console.log(row) console.log(row)
const fileBizId = row.fileBizId || ''; const fileBizId = row.fileBizId || '';
delUploadFile(fileBizId).then(res=>{ delUploadFile(fileBizId,userStore.projectInfo.projectBizId).then(res=>{
console.log(res) console.log(res)
if(res.code===200){ if(res.code===200){
getAttachmentListDetail(props.policyBizId) getAttachmentListDetail(props.policyBizId)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment