From 084eb789cfeebf0e04701852914d23311a12ebb8 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Wed, 9 Jul 2025 15:47:55 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=81=E6=9C=BA=E6=9E=84=E9=99=84=E5=8A=A0?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=EF=BC=88=E6=9C=AA=E5=AE=8C=E6=88=90=EF=BC=89?= =?UTF-8?q?=202=E3=80=81=E8=B0=83=E6=95=B4=E5=8F=91=E5=B8=83=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sync/SyncComponent.vue | 14 +- src/layouts/default/header/index.vue | 2 +- src/views/admin/IssueInfo/IssueInfo.data.ts | 6 +- src/views/admin/IssueInfo/IssueInfoList.vue | 444 ++++++++++-------- .../components/IssueInfoDetailForm.vue | 256 +++++----- .../IssueInfo/components/IssueInfoForm.vue | 272 +++++------ src/views/admin/orginfo/OrgInfo.api.ts | 79 ++++ src/views/admin/orginfo/OrgInfo.data.ts | 228 +++++++++ src/views/admin/orginfo/OrgInfoList.vue | 268 +++++++++++ .../admin/orginfo/components/OrgInfoForm.vue | 384 +++++++++++++++ .../admin/orginfo/components/OrgInfoModal.vue | 77 +++ src/views/admin/workorder/WorkOrder.api.ts | 72 +++ src/views/admin/workorder/WorkOrder.data.ts | 65 +++ src/views/admin/workorder/WorkOrderList.vue | 292 ++++++++++++ .../workorder/components/WorkOrderForm.vue | 212 +++++++++ .../workorder/components/WorkOrderModal.vue | 106 +++++ .../synchronization/nuBaseInfo/index.vue | 11 +- 17 files changed, 2331 insertions(+), 457 deletions(-) create mode 100644 src/views/admin/orginfo/OrgInfo.api.ts create mode 100644 src/views/admin/orginfo/OrgInfo.data.ts create mode 100644 src/views/admin/orginfo/OrgInfoList.vue create mode 100644 src/views/admin/orginfo/components/OrgInfoForm.vue create mode 100644 src/views/admin/orginfo/components/OrgInfoModal.vue create mode 100644 src/views/admin/workorder/WorkOrder.api.ts create mode 100644 src/views/admin/workorder/WorkOrder.data.ts create mode 100644 src/views/admin/workorder/WorkOrderList.vue create mode 100644 src/views/admin/workorder/components/WorkOrderForm.vue create mode 100644 src/views/admin/workorder/components/WorkOrderModal.vue diff --git a/src/components/Sync/SyncComponent.vue b/src/components/Sync/SyncComponent.vue index 92e5dbc..1897a28 100644 --- a/src/components/Sync/SyncComponent.vue +++ b/src/components/Sync/SyncComponent.vue @@ -199,11 +199,11 @@ - 源数据 + {{ screenModeTip_left }} 分屏1 分屏2 分屏3 - 已选择 + {{ screenModeTip_right }} -
+
diff --git a/src/views/admin/IssueInfo/IssueInfo.data.ts b/src/views/admin/IssueInfo/IssueInfo.data.ts index 5e48745..1452da9 100644 --- a/src/views/admin/IssueInfo/IssueInfo.data.ts +++ b/src/views/admin/IssueInfo/IssueInfo.data.ts @@ -6,16 +6,16 @@ import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { - title: '创建日期', + title: '发版日期', align: "center", dataIndex: 'createTime', - width: 180, + width: 240, }, { title: '发版类型', align: "center", dataIndex: 'issueType_dictText', - width: 180, + width: 240, }, { title: '发版内容', diff --git a/src/views/admin/IssueInfo/IssueInfoList.vue b/src/views/admin/IssueInfo/IssueInfoList.vue index 270332b..75f7292 100644 --- a/src/views/admin/IssueInfo/IssueInfoList.vue +++ b/src/views/admin/IssueInfo/IssueInfoList.vue @@ -1,17 +1,49 @@ diff --git a/src/views/admin/IssueInfo/components/IssueInfoForm.vue b/src/views/admin/IssueInfo/components/IssueInfoForm.vue index d0da7b3..7e3b99f 100644 --- a/src/views/admin/IssueInfo/components/IssueInfoForm.vue +++ b/src/views/admin/IssueInfo/components/IssueInfoForm.vue @@ -2,18 +2,28 @@ @@ -22,134 +32,134 @@ diff --git a/src/views/admin/orginfo/OrgInfo.api.ts b/src/views/admin/orginfo/OrgInfo.api.ts new file mode 100644 index 0000000..f52b48e --- /dev/null +++ b/src/views/admin/orginfo/OrgInfo.api.ts @@ -0,0 +1,79 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/admin/orginfo/list', + save='/admin/orginfo/add', + edit='/admin/orginfo/edit', + deleteOne = '/admin/orginfo/delete', + deleteBatch = '/admin/orginfo/deleteBatch', + importExcel = '/admin/orginfo/importExcel', + exportXls = '/admin/orginfo/exportXls', + getOrgInfo = '/admin/orginfo/getOrgInfo', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} + +/** + * 获取机构详细信息 + * @param params orgCode 机构编码 + */ +export const getOrgInfo = (params) => defHttp.get({ url: Api.getOrgInfo, params }); \ No newline at end of file diff --git a/src/views/admin/orginfo/OrgInfo.data.ts b/src/views/admin/orginfo/OrgInfo.data.ts new file mode 100644 index 0000000..bb615c6 --- /dev/null +++ b/src/views/admin/orginfo/OrgInfo.data.ts @@ -0,0 +1,228 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '机构ID sys_depart.id 同管理端nu_org_apply_info.pk_id', + align: "center", + dataIndex: 'pkId' + }, + { + title: '微信id', + align: "center", + dataIndex: 'openId' + }, + { + title: '微信名称', + align: "center", + dataIndex: 'wechatName' + }, + { + title: '联系电话', + align: "center", + dataIndex: 'tel' + }, + { + title: '更新日期', + align: "center", + dataIndex: 'updateTime' + }, + { + title: '咨询人姓名', + align: "center", + dataIndex: 'name' + }, + { + title: '性别', + align: "center", + dataIndex: 'sex' + }, + { + title: '民族', + align: "center", + dataIndex: 'national' + }, + { + title: '出生日期', + align: "center", + dataIndex: 'birthDate', + customRender:({text}) =>{ + text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); + return text; + }, + }, + { + title: '住址', + align: "center", + dataIndex: 'idCardAddress' + }, + { + title: '身份证号', + align: "center", + dataIndex: 'idCard' + }, + { + title: '签发机关', + align: "center", + dataIndex: 'issuingAuthority' + }, + { + title: '有效开始日期', + align: "center", + dataIndex: 'startTime', + customRender:({text}) =>{ + text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); + return text; + }, + }, + { + title: '有效结束日期', + align: "center", + dataIndex: 'endTime', + customRender:({text}) =>{ + text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); + return text; + }, + }, + { + title: '身份证正面', + align: "center", + dataIndex: 'cardZmPath' + }, + { + title: '身份证反面', + align: "center", + dataIndex: 'cardFmPath' + }, + { + title: '营业执照照片', + align: "center", + dataIndex: 'comBusinessLicense' + }, + { + title: '企业名称', + align: "center", + dataIndex: 'comName' + }, + { + title: '企业注册地址', + align: "center", + dataIndex: 'comRegisterAddress' + }, + { + title: '企业信用代码', + align: "center", + dataIndex: 'comCreditCode' + }, + { + title: '企业法人', + align: "center", + dataIndex: 'comLegalPerson' + }, + { + title: '机构地址', + align: "center", + dataIndex: 'orgAddress' + }, + { + title: '机构位置坐标:经度', + align: "center", + dataIndex: 'orgCoordinateLo' + }, + { + title: '机构位置坐标:维度', + align: "center", + dataIndex: 'orgCoordinateLa' + }, + { + title: '机构负责人', + align: "center", + dataIndex: 'orgLeader' + }, + { + title: '机构负责人电话', + align: "center", + dataIndex: 'orgLeaderPhone' + }, + { + title: '机构楼宇牌号', + align: "center", + dataIndex: 'orgBuildingNumber' + }, + { + title: '机构房屋性质', + align: "center", + dataIndex: 'orgPropertyType' + }, + { + title: '机构建筑面积', + align: "center", + dataIndex: 'orgBuildingArea' + }, + { + title: '机构省份 sys_category.id', + align: "center", + dataIndex: 'orgProvince' + }, + { + title: '机构城市 sys_category.id', + align: "center", + dataIndex: 'orgCity' + }, + { + title: '机构区域 sys_category.id', + align: "center", + dataIndex: 'orgDistrict' + }, + { + title: '合同附件', + align: "center", + dataIndex: 'contract' + }, + { + title: '合同备注', + align: "center", + dataIndex: 'contractNote' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + pkId: {title: '机构ID sys_depart.id 同管理端nu_org_apply_info.pk_id',order: 0,view: 'text', type: 'string',}, + openId: {title: '微信id',order: 1,view: 'text', type: 'string',}, + wechatName: {title: '微信名称',order: 2,view: 'text', type: 'string',}, + tel: {title: '联系电话',order: 3,view: 'text', type: 'string',}, + updateTime: {title: '更新日期',order: 4,view: 'datetime', type: 'string',}, + name: {title: '咨询人姓名',order: 5,view: 'text', type: 'string',}, + sex: {title: '性别',order: 6,view: 'text', type: 'string',}, + national: {title: '民族',order: 7,view: 'text', type: 'string',}, + birthDate: {title: '出生日期',order: 8,view: 'date', type: 'string',}, + idCardAddress: {title: '住址(身份证上)',order: 9,view: 'text', type: 'string',}, + idCard: {title: '身份证号',order: 10,view: 'text', type: 'string',}, + issuingAuthority: {title: '签发机关',order: 11,view: 'text', type: 'string',}, + startTime: {title: '有效开始日期',order: 12,view: 'date', type: 'string',}, + endTime: {title: '有效结束日期',order: 13,view: 'date', type: 'string',}, + cardZmPath: {title: '身份证正面',order: 14,view: 'text', type: 'string',}, + cardFmPath: {title: '身份证反面',order: 15,view: 'text', type: 'string',}, + comBusinessLicense: {title: '营业执照照片',order: 16,view: 'text', type: 'string',}, + comName: {title: '企业名称',order: 17,view: 'text', type: 'string',}, + comRegisterAddress: {title: '企业注册地址',order: 18,view: 'text', type: 'string',}, + comCreditCode: {title: '企业信用代码',order: 19,view: 'text', type: 'string',}, + comLegalPerson: {title: '企业法人',order: 20,view: 'text', type: 'string',}, + orgAddress: {title: '机构地址',order: 21,view: 'text', type: 'string',}, + orgCoordinateLo: {title: '机构位置坐标:经度',order: 22,view: 'text', type: 'string',}, + orgCoordinateLa: {title: '机构位置坐标:维度',order: 23,view: 'text', type: 'string',}, + orgLeader: {title: '机构负责人',order: 24,view: 'text', type: 'string',}, + orgLeaderPhone: {title: '机构负责人电话',order: 25,view: 'text', type: 'string',}, + orgBuildingNumber: {title: '机构楼宇牌号',order: 26,view: 'text', type: 'string',}, + orgPropertyType: {title: '机构房屋性质',order: 27,view: 'text', type: 'string',}, + orgBuildingArea: {title: '机构建筑面积',order: 28,view: 'number', type: 'number',}, + orgProvince: {title: '机构省份 sys_category.id',order: 29,view: 'text', type: 'string',}, + orgCity: {title: '机构城市 sys_category.id',order: 30,view: 'text', type: 'string',}, + orgDistrict: {title: '机构区域 sys_category.id',order: 31,view: 'text', type: 'string',}, + contract: {title: '合同附件',order: 32,view: 'text', type: 'string',}, + contractNote: {title: '合同备注',order: 33,view: 'text', type: 'string',}, +}; diff --git a/src/views/admin/orginfo/OrgInfoList.vue b/src/views/admin/orginfo/OrgInfoList.vue new file mode 100644 index 0000000..b0b8c0e --- /dev/null +++ b/src/views/admin/orginfo/OrgInfoList.vue @@ -0,0 +1,268 @@ + + + + + diff --git a/src/views/admin/orginfo/components/OrgInfoForm.vue b/src/views/admin/orginfo/components/OrgInfoForm.vue new file mode 100644 index 0000000..2f7c7b9 --- /dev/null +++ b/src/views/admin/orginfo/components/OrgInfoForm.vue @@ -0,0 +1,384 @@ + + + + + diff --git a/src/views/admin/orginfo/components/OrgInfoModal.vue b/src/views/admin/orginfo/components/OrgInfoModal.vue new file mode 100644 index 0000000..c28833b --- /dev/null +++ b/src/views/admin/orginfo/components/OrgInfoModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/admin/workorder/WorkOrder.api.ts b/src/views/admin/workorder/WorkOrder.api.ts new file mode 100644 index 0000000..317a6d4 --- /dev/null +++ b/src/views/admin/workorder/WorkOrder.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/workorder/workOrder/list', + save='/workorder/workOrder/add', + edit='/workorder/workOrder/edit', + deleteOne = '/workorder/workOrder/delete', + deleteBatch = '/workorder/workOrder/deleteBatch', + importExcel = '/workorder/workOrder/importExcel', + exportXls = '/workorder/workOrder/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/src/views/admin/workorder/WorkOrder.data.ts b/src/views/admin/workorder/WorkOrder.data.ts new file mode 100644 index 0000000..1dfeddc --- /dev/null +++ b/src/views/admin/workorder/WorkOrder.data.ts @@ -0,0 +1,65 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '机构名称', + align: "center", + dataIndex: 'orgName', + width:260 + }, + { + title: '平台类型', + align: "center", + dataIndex: 'platType_dictText' + }, + { + title: '标题', + align: "center", + dataIndex: 'title', + width:260 + }, + { + title: '提交人', + align: "center", + dataIndex: 'createBy' + }, + { + title: '提交时间', + align: "center", + dataIndex: 'createTime' + }, + { + title: '处理人', + align: "center", + dataIndex: 'handleBy' + }, + { + title: '回复时间', + align: "center", + dataIndex: 'replyTime' + }, + { + title: '工单状态', + align: "center", + dataIndex: 'status_dictText' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + orgId: {title: '机构ID',order: 0,view: 'text', type: 'string',}, + orgCode: {title: '机构编码',order: 1,view: 'text', type: 'string',}, + orgName: {title: '机构名称',order: 2,view: 'text', type: 'string',}, + platType: {title: '平台类型pc wechat pad',order: 3,view: 'text', type: 'string',}, + title: {title: '标题',order: 4,view: 'text', type: 'string',}, + content: {title: '描述',order: 5,view: 'text', type: 'string',}, + status: {title: '状态 0待接收 1处理中 3已解决 4工单异常 5外部原因',order: 6,view: 'text', type: 'string',}, + createBy: {title: '创建人',order: 7,view: 'text', type: 'string',}, + createTime: {title: '创建时间',order: 8,view: 'datetime', type: 'string',}, + replyTime: {title: '回复时间',order: 9,view: 'datetime', type: 'string',}, + handleBy: {title: '处理人',order: 10,view: 'text', type: 'string',}, +}; diff --git a/src/views/admin/workorder/WorkOrderList.vue b/src/views/admin/workorder/WorkOrderList.vue new file mode 100644 index 0000000..7c414bf --- /dev/null +++ b/src/views/admin/workorder/WorkOrderList.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/src/views/admin/workorder/components/WorkOrderForm.vue b/src/views/admin/workorder/components/WorkOrderForm.vue new file mode 100644 index 0000000..e6c5c43 --- /dev/null +++ b/src/views/admin/workorder/components/WorkOrderForm.vue @@ -0,0 +1,212 @@ + + + + + diff --git a/src/views/admin/workorder/components/WorkOrderModal.vue b/src/views/admin/workorder/components/WorkOrderModal.vue new file mode 100644 index 0000000..20dba72 --- /dev/null +++ b/src/views/admin/workorder/components/WorkOrderModal.vue @@ -0,0 +1,106 @@ + + + + + + diff --git a/src/views/synchronization/nuBaseInfo/index.vue b/src/views/synchronization/nuBaseInfo/index.vue index 66f3386..f326657 100644 --- a/src/views/synchronization/nuBaseInfo/index.vue +++ b/src/views/synchronization/nuBaseInfo/index.vue @@ -10,11 +10,12 @@ handleAsync:同步数据按钮 handleBatchAdd:批量新增 --> -