Browse Source

修改问题

master
wang 2 months ago
parent
commit
55ff04fb6c
  1. BIN
      dist.zip
  2. 7
      src/api/business/letter/letter-api.js
  3. 9
      src/components/system/service-count/excel-statistics-detail.vue
  4. 5
      src/components/system/service-count/firm-statistics-detail.vue
  5. 4
      src/constants/system/review-const.js
  6. 17
      src/views/business/erp/letter/letter-list.vue
  7. 33
      src/views/business/erp/penalty-apply/penalty-apply-list.vue
  8. 6
      src/views/business/erp/service/service-applications-list.vue
  9. 2
      src/views/business/erp/service/service-applications-report-list.vue
  10. 12
      src/views/mobile/service/create.vue
  11. 4
      src/views/mobile/service/detail.vue

BIN
dist.zip

Binary file not shown.

7
src/api/business/letter/letter-api.js

@ -44,6 +44,13 @@ export const letterApi = {
return getRequest(`/letter/isLetter/${userId}`); return getRequest(`/letter/isLetter/${userId}`);
}, },
/**
* 检查用户是否已签署律所承诺书 @author wzh
*/
isLetterDept: (userId) => {
return getRequest(`/letter/isLetterDept/${userId}`);
},
/** /**
* 查询所有承诺书 @author wzh * 查询所有承诺书 @author wzh
*/ */

9
src/components/system/service-count/excel-statistics-detail.vue

@ -193,17 +193,16 @@ async function handleQuery() {
queryLoading.value = true; queryLoading.value = true;
try { try {
const params = { const params = {
...localQueryForm, ...localQueryForm
pageNum: 1, //
pageSize: 500 //
}; };
// //
const res = await serviceApplicationsApi.statistics(params); const res = await serviceApplicationsApi.statistics(params);
console.log('律师统计查询结果:', res); console.log('律师统计查询结果:', res);
if (res.data && res.data.list && Array.isArray(res.data.list)) { if (res.data && Array.isArray(res.data)) {
tableData.value = res.data.list.map(item => ({ tableData.value = res.data.map(item => ({
...item, ...item,
// //
lawyerName: item.lawyerName || '-', lawyerName: item.lawyerName || '-',

5
src/components/system/service-count/firm-statistics-detail.vue

@ -225,9 +225,8 @@ async function handleExport() {
const exportParams = { const exportParams = {
quarter: props.params.quarter, quarter: props.params.quarter,
year: props.params.year, year: props.params.year,
firmId: props.params.firmId, firmId: props.params.firmId
pageNum: 1, //
pageSize: 500
}; };
await serviceApplicationsApi.exportLawyer(exportParams); await serviceApplicationsApi.exportLawyer(exportParams);

4
src/constants/system/review-const.js

@ -44,6 +44,10 @@ export const QUARTER_ENUM = {
* 服务审核状态 * 服务审核状态
*/ */
export const SERVICEC_REVIEW_ENUM = { export const SERVICEC_REVIEW_ENUM = {
NOSUBMIT: {
value: 0,
desc: '未提交',
},
APPROVAL: { APPROVAL: {
value: 1, value: 1,
desc: '待审核', desc: '待审核',

17
src/views/business/erp/letter/letter-list.vue

@ -319,7 +319,7 @@ import AgreementModal from '/@/views/system/home/components/agreement.vue';
async function handleFirmUpload() { async function handleFirmUpload() {
try { try {
// //
const hasSigned = await checkUserSigned(); const hasSigned = await checkUserSigned('cto');
if (hasSigned) { if (hasSigned) {
message.warning('您已经签署过律所承诺书,无需重复上传'); message.warning('您已经签署过律所承诺书,无需重复上传');
return; return;
@ -543,7 +543,7 @@ import AgreementModal from '/@/views/system/home/components/agreement.vue';
} }
// //
async function checkUserSigned() { async function checkUserSigned(letterType = 'user') {
try { try {
// //
const loginRes = await loginApi.getLoginInfo(); const loginRes = await loginApi.getLoginInfo();
@ -554,8 +554,17 @@ import AgreementModal from '/@/views/system/home/components/agreement.vue';
return false; return false;
} }
// 使 //
const res = await letterApi.isLetter(loginInfo.employeeId); let apiCall;
if (letterType === 'cto') {
//
apiCall = letterApi.isLetterDept(loginInfo.employeeId);
} else {
//
apiCall = letterApi.isLetter(loginInfo.employeeId);
}
const res = await apiCall;
if (res.code === 0 && res.data !== undefined) { if (res.code === 0 && res.data !== undefined) {
// truefalse // truefalse
return res.data === true; return res.data === true;

33
src/views/business/erp/penalty-apply/penalty-apply-list.vue

@ -9,7 +9,7 @@
<!---------- 查询表单form begin -----------> <!---------- 查询表单form begin ----------->
<a-form class="smart-query-form"> <a-form class="smart-query-form">
<a-row class="smart-query-form-row"> <a-row class="smart-query-form-row">
<a-form-item label="申请人" class="smart-query-form-item"> <a-form-item label="申请人" class="smart-query-form-item" v-if="isCeo || isCto">
<a-input style="width: 150px" v-model:value="queryForm.userName" placeholder="请输入申请人" /> <a-input style="width: 150px" v-model:value="queryForm.userName" placeholder="请输入申请人" />
</a-form-item> </a-form-item>
<a-form-item label="申请日期" class="smart-query-form-item"> <a-form-item label="申请日期" class="smart-query-form-item">
@ -45,11 +45,17 @@
<!---------- 表格操作行 begin -----------> <!---------- 表格操作行 begin ----------->
<a-row class="smart-table-btn-block"> <a-row class="smart-table-btn-block">
<div class="smart-table-operate-block"> <div class="smart-table-operate-block">
<a-button @click="showForm" type="primary" v-if="!isCeo"> <a-button @click="() => showForm('user')" type="primary" v-if="!isCeo">
<template #icon> <template #icon>
<PlusOutlined /> <PlusOutlined />
</template> </template>
新建 申请律师无处罚证明
</a-button>
<a-button @click="() => showForm('cto')" type="primary" v-if="isCto">
<template #icon>
<PlusOutlined />
</template>
申请律所无处罚证明
</a-button> </a-button>
</div> </div>
<div class="smart-table-setting-block"> <div class="smart-table-setting-block">
@ -249,6 +255,21 @@ import PenaltyApplyForm from './penalty-apply-form.vue';
dataIndex: 'userName', dataIndex: 'userName',
ellipsis: true, ellipsis: true,
}, },
{
title: '无处罚证明类型',
dataIndex: 'type',
ellipsis: true,
customRender: ({ text, record }) => {
// type
if (text === 'cto') {
return '律所无处罚证明';
} else if (text === 'user') {
return '律师无处罚证明';
} else {
return text || '未知类型';
}
},
},
{ {
title: '申请日期', title: '申请日期',
dataIndex: 'applyDate', dataIndex: 'applyDate',
@ -403,8 +424,10 @@ import PenaltyApplyForm from './penalty-apply-form.vue';
// ---------------------------- / ---------------------------- // ---------------------------- / ----------------------------
const formRef = ref(); const formRef = ref();
function showForm(data) { function showForm(type, data) {
formRef.value.show(data); // type
const formData = data ? { ...data, type } : { type };
formRef.value.show(formData);
} }
// ---------------------------- ---------------------------- // ---------------------------- ----------------------------

6
src/views/business/erp/service/service-applications-list.vue

@ -644,6 +644,12 @@ import AgreementModal from '/@/views/system/home/components/agreement-modal.vue'
return; return;
} }
//
if (loginInfo.value && loginInfo.value.lawFirmAgreementSignFlag === false) {
message.warning('您尚未签署律所承诺书,无法进行服务上报。请先签署律所承诺书。');
return;
}
// //
const canReportRecords = tableData.value.filter(record => const canReportRecords = tableData.value.filter(record =>
selectedRowKeyList.value.includes(record.applicationId) && canReportRecord(record) selectedRowKeyList.value.includes(record.applicationId) && canReportRecord(record)

2
src/views/business/erp/service/service-applications-report-list.vue

@ -775,7 +775,7 @@ onMounted(async () => {
// //
Modal.warning({ Modal.warning({
title: '提示', title: '提示',
content: '您尚未签署承诺书,无法进行服务申报。请先下载承诺书进行签约并上传。', content: '您尚未签署律师承诺书,无法进行服务申报。请先下载承诺书进行签约并上传。',
okText: '知道了', okText: '知道了',
}); });
} }

12
src/views/mobile/service/create.vue

@ -716,13 +716,13 @@ function removeFile(fileId) {
async function handleSave() { async function handleSave() {
// //
if (!agreementSigned.value) { if (!agreementSigned.value) {
message.warning('您尚未签署承诺书,无法进行服务申报。请先签署承诺书。') message.warning('您尚未签署律师承诺书,无法进行服务申报。请先签署承诺书。')
return return
} }
// //
if (!agreementSigned.value) { if (!agreementSigned.value) {
message.warning('您尚未签署承诺书,无法进行服务申报。请先签署承诺书。') message.warning('您尚未签署律师承诺书,无法进行服务申报。请先签署承诺书。')
return return
} }
@ -1054,13 +1054,7 @@ async function loadDraftData(applicationId) {
currentActivity.value = selectedActivity currentActivity.value = selectedActivity
currentActivityType.value = selectedActivity.timeType || '' currentActivityType.value = selectedActivity.timeType || ''
form.serviceType = selectedActivity.timeType || '' form.serviceType = selectedActivity.timeType || ''
console.log('更新后的活动类型:', currentActivityType.value)
console.log('更新后的活动信息:', currentActivity.value)
console.log('表单中的服务时长:', form.serviceDuration)
console.log('表单中的案件编号:', form.recordNo)
} else { } else {
console.log('未找到对应的活动,活动名称ID:', form.activityNameId)
console.log('活动列表:', activityList.value)
} }
} else { } else {
console.log('活动名称ID或活动列表为空:', form.activityNameId, activityList.value.length) console.log('活动名称ID或活动列表为空:', form.activityNameId, activityList.value.length)
@ -1091,7 +1085,7 @@ onMounted(async () => {
// //
const isSigned = await getUserInfo() const isSigned = await getUserInfo()
if (!isSigned) { if (!isSigned) {
message.warning('您尚未签署承诺书,无法进行服务申报。请先签署承诺书。') message.warning('您尚未签署律师承诺书,无法进行服务申报。请先签署承诺书。')
// //
setTimeout(() => { setTimeout(() => {
router.back() router.back()

4
src/views/mobile/service/detail.vue

@ -825,13 +825,13 @@ async function handleSave() {
// //
if (!agreementSigned.value) { if (!agreementSigned.value) {
message.warning('您尚未签署承诺书,无法进行操作。请先签署承诺书。') message.warning('您尚未签署律师承诺书,无法进行操作。请先签署承诺书。')
return return
} }
// //
if (!agreementSigned.value) { if (!agreementSigned.value) {
message.warning('您尚未签署承诺书,无法进行操作。请先签署承诺书。') message.warning('您尚未签署律师承诺书,无法进行操作。请先签署承诺书。')
return return
} }

Loading…
Cancel
Save