diff --git a/src/api/marketing_custom.ts b/src/api/marketing_custom.ts new file mode 100644 index 0000000..8952b7f --- /dev/null +++ b/src/api/marketing_custom.ts @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +// 市场经营--客户信息列表 +export function apiMarketingCustomLists(params: any) { + return request.get({ url: '/marketing.marketing_custom/lists', params }) +} + +// 添加市场经营--客户信息 +export function apiMarketingCustomAdd(params: any) { + return request.post({ url: '/marketing.marketing_custom/add', params }) +} + +// 编辑市场经营--客户信息 +export function apiMarketingCustomEdit(params: any) { + return request.post({ url: '/marketing.marketing_custom/edit', params }) +} + +// 删除市场经营--客户信息 +export function apiMarketingCustomDelete(params: any) { + return request.post({ url: '/marketing.marketing_custom/delete', params }) +} + +// 市场经营--客户信息详情 +export function apiMarketingCustomDetail(params: any) { + return request.get({ url: '/marketing.marketing_custom/detail', params }) +} + +// 删除市场经营--客户联系人 +export function apiMarketingCustomContactsDelete(params: any) { + return request.post({ url: '/marketing.marketing_custom_contacts/delete', params }) +} + + +// 市场经营--客户联系人列表 +export function apiMarketingCustomContactsLists(params: any) { + return request.get({ url: '/marketing.marketing_custom_contacts/lists', params }) +} \ No newline at end of file diff --git a/src/api/marketing_custom_return_visit.ts b/src/api/marketing_custom_return_visit.ts new file mode 100644 index 0000000..1a194a0 --- /dev/null +++ b/src/api/marketing_custom_return_visit.ts @@ -0,0 +1,45 @@ +import request from '@/utils/request' + +// 市场经营--客户回访列表列表 +export function apiMarketingCustomReturnVisitLists(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit/lists', params }) +} + +// 添加市场经营--客户回访列表 +export function apiMarketingCustomReturnVisitAdd(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit/add', params }) +} + +// 编辑市场经营--客户回访列表 +export function apiMarketingCustomReturnVisitEdit(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit/edit', params }) +} + +// 删除市场经营--客户回访列表 +export function apiMarketingCustomReturnVisitDelete(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit/delete', params }) +} + +// 市场经营--客户回访列表详情 +export function apiMarketingCustomReturnVisitDetail(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit/detail', params }) +} + + +export function apimarketing_custom_return_visit_surveyLists(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit_survey/lists', params }) +} + +// 删除市场经营--客户回访列表 +export function apimarketing_custom_return_visit_surveytDelete(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_survey/delete', params }) +} + +export function apimarketing_custom_return_visit_evaluateLists(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit_evaluate/lists', params }) +} + +// 删除市场经营--客户回访列表 +export function apimarketing_custom_return_visit_evaluateDelete(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_evaluate/delete', params }) +} \ No newline at end of file diff --git a/src/api/marketing_custom_return_visit_evaluate.ts b/src/api/marketing_custom_return_visit_evaluate.ts new file mode 100644 index 0000000..3c0a0e7 --- /dev/null +++ b/src/api/marketing_custom_return_visit_evaluate.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 市场经营--客户回访列表--成员评价列表 +export function apiMarketingCustomReturnVisitEvaluateLists(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit_evaluate/lists', params }) +} + +// 添加市场经营--客户回访列表--成员评价 +export function apiMarketingCustomReturnVisitEvaluateAdd(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_evaluate/add', params }) +} + +// 编辑市场经营--客户回访列表--成员评价 +export function apiMarketingCustomReturnVisitEvaluateEdit(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_evaluate/edit', params }) +} + +// 删除市场经营--客户回访列表--成员评价 +export function apiMarketingCustomReturnVisitEvaluateDelete(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_evaluate/delete', params }) +} + +// 市场经营--客户回访列表--成员评价详情 +export function apiMarketingCustomReturnVisitEvaluateDetail(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit_evaluate/detail', params }) +} \ No newline at end of file diff --git a/src/api/marketing_custom_return_visit_template.ts b/src/api/marketing_custom_return_visit_template.ts new file mode 100644 index 0000000..f2c812b --- /dev/null +++ b/src/api/marketing_custom_return_visit_template.ts @@ -0,0 +1,45 @@ +import request from '@/utils/request' + +// 市场经营--客户回访模板列表 +export function apiMarketingCustomReturnVisitTemplateLists(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit_template/lists', params }) +} + +// 添加市场经营--客户回访模板 +export function apiMarketingCustomReturnVisitTemplateAdd(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_template/add', params }) +} + +// 编辑市场经营--客户回访模板 +export function apiMarketingCustomReturnVisitTemplateEdit(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_template/edit', params }) +} + +// 删除市场经营--客户回访模板 +export function apiMarketingCustomReturnVisitTemplateDelete(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_template/delete', params }) +} + +// 市场经营--客户回访模板详情 +export function apiMarketingCustomReturnVisitTemplateDetail(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit_template/detail', params }) +} + + +// 市场经营--客户回访模板列表 +export function apiMarketingCustomReturnVisitTemplateDetailLists(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit_template_detail/lists', params }) +} + + + +// 删除市场经营--客户回访模板 +export function apiMarketingCustomReturnVisitTemplateDetailDelete(params: any) { + return request.post({ url: '/marketing.marketing_custom_return_visit_template_detail/delete', params }) +} + + +// 市场经营--客户回访模板列表 +export function apiMarketingCustomReturnVisitTemplateSearch(params: any) { + return request.get({ url: '/marketing.marketing_custom_return_visit_template/datas', params }) +} \ No newline at end of file diff --git a/src/api/supervision_material_parallel_testing.ts b/src/api/supervision_material_parallel_testing.ts index 11ac1ba..ce4e4ed 100644 --- a/src/api/supervision_material_parallel_testing.ts +++ b/src/api/supervision_material_parallel_testing.ts @@ -32,3 +32,8 @@ export function apisupervision_material_parallel_testing_detail(params: any) { export function apisupervision_material_parallel_testing_detail_check(params: any) { return request.post({ url: '/supervision_work.supervision_material_parallel_testing_detail/check', params }) } + + +export function apisupervision_material_parallel_testing_delete(params: any) { + return request.post({ url: '/supervision_work.supervision_material_parallel_testing_detail/delete', params }) +} \ No newline at end of file diff --git a/src/components/dialogTable/dialogTableConfig.ts b/src/components/dialogTable/dialogTableConfig.ts index 0c39e40..fea8a3e 100644 --- a/src/components/dialogTable/dialogTableConfig.ts +++ b/src/components/dialogTable/dialogTableConfig.ts @@ -674,5 +674,78 @@ export const financial_borrow_money: Iconfig = { ], }; +import { apiMarketingCustomReturnVisitTemplateLists, } from '@/api/marketing_custom_return_visit_template' + +export const marketing_custom_return_visit_template: Iconfig = { + fetchFn: apiMarketingCustomReturnVisitTemplateLists, + dictData:"cost_type,financial_pay_type", + serchList: [ + { + label: "模板名称", + value: "name", + }, + { + label: "是否启用", + value: "is_use", + select:[ + { + name:'启用', + value:0 + }, + { + name:'不启用', + value:1 + } + ] + }, + { + label: "模板名称", + value: "name", + }, + { + label: "创建人", + value: "create_user", + }, + ], + tableList: [ + { name: "模板名称" }, + { is_use_text: "是否启用" }, + { create_user: "创建人" }, + { create_time: "创建时间" }, + ], +}; + + + +import { apiMarketingCustomReturnVisitLists, } from '@/api/marketing_custom_return_visit' + +export const marketing_custom_return_visit: Iconfig = { + fetchFn: apiMarketingCustomReturnVisitLists, + dictData:'return_visit_type', + serchList: [ + { + label: "回访编号", + value: "code", + }, + { + label: "回访方式", + value: "return_visit_type", + select:'return_visit_type', + }, + { + label: "回访人", + value: "create_user", + }, + + ], + tableList: [ + { contract_name: "合同名称" }, + { code: "回访编号" }, + { return_visit_type_text: "回访方式" }, + { template_name: "回访表模板" }, + { create_user: "回访人" }, + { create_time: "回访日期" }, + ], +}; diff --git a/src/utils/validate.ts b/src/utils/validate.ts index d7e5d0b..b92d4a2 100644 --- a/src/utils/validate.ts +++ b/src/utils/validate.ts @@ -39,7 +39,7 @@ export function checkEmail(rules: any, value: any, callback: any) { : callback(new Error("请输入正确的邮箱")); } -//邮箱 +//idcard export function checkIdcard(rules: any, value: any, callback: any) { /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(value) ? callback() diff --git a/src/views/apply_with_seal/edit.vue b/src/views/apply_with_seal/edit.vue index 610f9c3..407ea69 100644 --- a/src/views/apply_with_seal/edit.vue +++ b/src/views/apply_with_seal/edit.vue @@ -268,8 +268,43 @@ const submituser = (e: any) => { showDialog3.value = false } + +const chekcDate = (rule: any, value: any, callback: any) => { + if (new Date(formData.returndate) < new Date(formData.borrow)) { + callback(new Error('印章借用日期不能早于结束借用日期')) + } else { + callback() + } +} + +const chekcDate1 = (rule: any, value: any, callback: any) => { + if (new Date(formData.sjreturn) < new Date(formData.sjborrow)) { + callback(new Error('实际归还日期不能早于实际借章日期')) + } else { + callback() + } +} // 表单验证 const formRules = reactive({ + + returndate: [{ + required: true, + message: '请选择结束借用日期', + trigger: ['blur'] + }, + { + validator: chekcDate, + trigger: ['blur'] + }], + sjreturn: [{ + required: true, + message: '请选择实际归还日期', + trigger: ['blur'] + }, + { + validator: chekcDate1, + trigger: ['blur'] + }], }) // 获取详情 diff --git a/src/views/cost_approved_projects/edit.vue b/src/views/cost_approved_projects/edit.vue index 7acbdfb..427f2db 100644 --- a/src/views/cost_approved_projects/edit.vue +++ b/src/views/cost_approved_projects/edit.vue @@ -363,7 +363,13 @@ const chekcDate = (rule: any, value: any, callback: any) => { } } - +const chekcDate1 = (rule: any, value: any, callback: any) => { + if (new Date(formData.due_time) < new Date(formData.start_date)) { + callback(new Error('履约金到期时间不能早合同计划开始日期')) + } else { + callback() + } +} // 表单验证 const formRules = reactive({ @@ -406,6 +412,17 @@ const formRules = reactive({ validator: chekcDate, trigger: ['blur'] }], + due_time: [{ + required: true, + message: '请输入合同计划结束日期', + trigger: ['blur'] + }, + { + validator: chekcDate1, + trigger: ['blur'] + }], + + }) diff --git a/src/views/cost_projects/edit.vue b/src/views/cost_projects/edit.vue index 6e5adf3..5c4f738 100644 --- a/src/views/cost_projects/edit.vue +++ b/src/views/cost_projects/edit.vue @@ -329,6 +329,15 @@ function province_change(value: string) { getCityList(); } + +const chekcDate = (rule: any, value: any, callback: any) => { + if (new Date(formData.date) < new Date(formData.starting)) { + callback(new Error('登记日期不能早于计划开始日期')) + } else { + callback() + } +} + // 表单验证 const formRules = reactive({ project_name: [ @@ -359,6 +368,15 @@ const formRules = reactive({ trigger: ["blur"], }, ], + date: [{ + required: true, + message: '请输入登记日期', + trigger: ['blur'] + }, + { + validator: chekcDate, + trigger: ['blur'] + }], jhgq: [ { required: true, diff --git a/src/views/jianli_project_progress_report/edit.vue b/src/views/jianli_project_progress_report/edit.vue index 71b29f6..ded98fa 100644 --- a/src/views/jianli_project_progress_report/edit.vue +++ b/src/views/jianli_project_progress_report/edit.vue @@ -199,8 +199,23 @@ const submituser = (e: any) => { } +const chekcDate = (rule: any, value: any, callback: any) => { + if (new Date(formData.end_date) < new Date(formData.start_date)) { + callback(new Error('实际结束日期不能早于实际开始日期')) + } else { + callback() + } +} + + + // 表单验证 const formRules = reactive({ + end_date: [ + { + validator: chekcDate, + trigger: ['blur'] + }], }) @@ -220,12 +235,6 @@ const setFormData = async (data: Record) => { } -const getDetail = async (row: Record) => { - const data = await apiJianliProjectProgressReportDetail({ - id: row.id - }) - setFormData(data) -} // 提交按钮 @@ -255,6 +264,5 @@ const handleClose = () => { defineExpose({ open, setFormData, - getDetail }) diff --git a/src/views/jianli_project_progress_report/index.vue b/src/views/jianli_project_progress_report/index.vue index 68640a8..6619c55 100644 --- a/src/views/jianli_project_progress_report/index.vue +++ b/src/views/jianli_project_progress_report/index.vue @@ -51,7 +51,7 @@ - +