From 43dc1becd22077bf05e52bc0011061db61c48512 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Tue, 23 Dec 2025 10:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8C=87=E4=BB=A4=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=9A=201=EF=BC=89=E5=8E=BB=E9=99=A4=E6=A0=87?= =?UTF-8?q?=E5=87=86=E6=8C=87=E4=BB=A4=E5=BA=93=E3=80=81=E5=B7=AE=E5=BC=82?= =?UTF-8?q?=E6=AF=94=E5=AF=B9=E3=80=81=E5=B7=AE=E5=BC=82=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=202=EF=BC=89=E5=8E=BB=E9=99=A4=E6=89=80?= =?UTF-8?q?=E6=9C=89=E6=A0=87=E5=87=86=E6=8C=87=E4=BB=A4=E5=BA=93=E6=A6=82?= =?UTF-8?q?=E5=BF=B5=E5=85=88=E5=85=B3=E6=93=8D=E4=BD=9C=E5=8F=8A=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=80=BB=E8=BE=91=203=EF=BC=89=E4=BB=BB=E4=B8=80?= =?UTF-8?q?=E6=9C=BA=E6=9E=84=E5=9D=87=E5=8F=AF=E5=88=9B=E5=BB=BA=E4=BB=BB?= =?UTF-8?q?=E6=84=8F=E5=88=86=E7=B1=BB=E6=A0=87=E7=AD=BE=E3=80=81=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=B1=BB=E5=88=AB=E3=80=81=E6=9C=8D=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E3=80=81=E6=9C=8D=E5=8A=A1=E6=8C=87=E4=BB=A4=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E7=BC=96=E8=BE=91=E4=BB=BB=E6=84=8F=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=204=EF=BC=89=E6=96=B0=E5=A2=9E=E9=95=9C=E5=83=8F=E7=A0=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=9A=E6=9C=AA=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=95=9C=E5=83=8F=E7=A0=81=E6=9C=BA=E6=9E=84=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E7=94=9F=E6=88=90=E9=95=9C=E5=83=8F=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E6=9B=B4=E6=96=B0=E9=95=9C=E5=83=8F=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E6=97=A7=E7=9A=84=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E7=A0=81=E5=B0=86=E5=A4=B1=E6=95=88=EF=BC=9B=E5=8F=AF=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=A4=8D=E5=88=B6=E6=8C=89=E9=92=AE=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E9=95=9C=E5=83=8F=E7=A0=81=205=EF=BC=89?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=8D=E5=8A=A1=E6=8C=87=E4=BB=A4=E5=BA=93?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=9A=E9=9C=80=E8=A6=81=E5=85=88=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=91=A8=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E7=A0=81=E5=90=8E=EF=BC=8C=E5=8F=AF=E6=9F=A5=E7=9C=8B=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E6=9C=BA=E6=9E=84=E6=89=80=E6=9C=89=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=EF=BC=8C=E5=B9=B6=E5=8F=AF=E2=80=9C=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E2=80=9D=E5=88=B0=E6=9C=AC=E6=9C=BA=E6=9E=84=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E5=A6=82=E6=9E=9C=E5=88=86=E7=B1=BB=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E3=80=81=E6=9C=8D=E5=8A=A1=E7=B1=BB=E5=88=AB=E3=80=81=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=B1=BB=E5=9E=8B=E3=80=81=E6=9C=8D=E5=8A=A1=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E6=B1=89=E5=AD=97=E5=AE=8C=E5=85=A8=E4=B8=80=E8=87=B4?= =?UTF-8?q?=EF=BC=8C=E5=88=99=E8=AE=A4=E5=AE=9A=E4=B8=BA=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8C=87=E4=BB=A4=EF=BC=8C=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 6 +- .../src/jeecg/components/JImageUploadtz.vue | 2 +- .../jeecg/components/JUpload/JUploadMP3.vue | 2 +- .../jeecg/components/JUpload/JUploadMP4.vue | 2 +- .../ConfigServiceDirective.api.ts | 160 ++ .../ConfigServiceDirective.data.ts | 192 ++ .../ConfigServiceDirectiveList copy.vue | 1562 ++++++++++++++++ .../ConfigServiceDirectiveList.vue | 1566 +++++++++++++++++ .../components/AbnormalDirectiveList.vue | 320 ++++ .../components/CompareDirectiveList.vue | 319 ++++ .../components/ConfigServiceDirective.data.ts | 254 +++ .../components/ConfigServiceDirectiveForm.vue | 805 +++++++++ .../ConfigServiceDirectiveForm2.vue | 734 ++++++++ .../ConfigServiceDirectiveFormOLDBK.vue | 888 ++++++++++ .../ConfigServiceDirectiveModal.vue | 279 +++ .../components/DirectiveRadioCom.vue | 100 ++ .../components/DirectiveRespositoryList.vue | 411 +++++ .../ConfigServiceDirectiveFormOLDBK.vue | 8 +- .../ConfigServiceDirectiveModal.vue | 13 +- .../components/DirectiveRespositoryList.vue | 6 + 20 files changed, 7614 insertions(+), 15 deletions(-) create mode 100644 src/views/services/serviceDirective copy/ConfigServiceDirective.api.ts create mode 100644 src/views/services/serviceDirective copy/ConfigServiceDirective.data.ts create mode 100644 src/views/services/serviceDirective copy/ConfigServiceDirectiveList copy.vue create mode 100644 src/views/services/serviceDirective copy/ConfigServiceDirectiveList.vue create mode 100644 src/views/services/serviceDirective copy/components/AbnormalDirectiveList.vue create mode 100644 src/views/services/serviceDirective copy/components/CompareDirectiveList.vue create mode 100644 src/views/services/serviceDirective copy/components/ConfigServiceDirective.data.ts create mode 100644 src/views/services/serviceDirective copy/components/ConfigServiceDirectiveForm.vue create mode 100644 src/views/services/serviceDirective copy/components/ConfigServiceDirectiveForm2.vue create mode 100644 src/views/services/serviceDirective copy/components/ConfigServiceDirectiveFormOLDBK.vue create mode 100644 src/views/services/serviceDirective copy/components/ConfigServiceDirectiveModal.vue create mode 100644 src/views/services/serviceDirective copy/components/DirectiveRadioCom.vue create mode 100644 src/views/services/serviceDirective copy/components/DirectiveRespositoryList.vue diff --git a/.env.production b/.env.production index 4a66108..e4666e7 100644 --- a/.env.production +++ b/.env.production @@ -2,7 +2,7 @@ VITE_USE_MOCK = false # 发布路径 -VITE_PUBLIC_PATH = /biz101 +VITE_PUBLIC_PATH = /biz102 # 是否启用gzip或brotli压缩 # 选项值: gzip | brotli | none @@ -13,10 +13,10 @@ VITE_BUILD_COMPRESS = 'gzip' VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false #后台接口父地址(必填) -VITE_GLOB_API_URL=/nursingunit101 +VITE_GLOB_API_URL=/nursingunit102 #后台接口全路径地址(必填) -VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit101 +VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit102 # VITE_GLOB_DOMAIN_URL=http://115.175.20.152/nursingunit104 # 接口父路径前缀 diff --git a/src/components/Form/src/jeecg/components/JImageUploadtz.vue b/src/components/Form/src/jeecg/components/JImageUploadtz.vue index 3c4eefc..d87880a 100644 --- a/src/components/Form/src/jeecg/components/JImageUploadtz.vue +++ b/src/components/Form/src/jeecg/components/JImageUploadtz.vue @@ -16,7 +16,7 @@ | diff --git a/src/components/Form/src/jeecg/components/JUpload/JUploadMP3.vue b/src/components/Form/src/jeecg/components/JUpload/JUploadMP3.vue index 9f4b04c..38a11f4 100644 --- a/src/components/Form/src/jeecg/components/JUpload/JUploadMP3.vue +++ b/src/components/Form/src/jeecg/components/JUpload/JUploadMP3.vue @@ -20,7 +20,7 @@ | diff --git a/src/components/Form/src/jeecg/components/JUpload/JUploadMP4.vue b/src/components/Form/src/jeecg/components/JUpload/JUploadMP4.vue index b71a8e9..0eb1327 100644 --- a/src/components/Form/src/jeecg/components/JUpload/JUploadMP4.vue +++ b/src/components/Form/src/jeecg/components/JUpload/JUploadMP4.vue @@ -20,7 +20,7 @@ | diff --git a/src/views/services/serviceDirective copy/ConfigServiceDirective.api.ts b/src/views/services/serviceDirective copy/ConfigServiceDirective.api.ts new file mode 100644 index 0000000..2edfbaf --- /dev/null +++ b/src/views/services/serviceDirective copy/ConfigServiceDirective.api.ts @@ -0,0 +1,160 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from '/@/hooks/web/useMessage'; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/services/serviceDirective/list', + save = '/services/serviceDirective/add', + batchAdd = '/services/serviceDirective/batchAdd', + edit = '/services/serviceDirective/edit', + deleteOne = '/services/serviceDirective/delete', + deleteBatch = '/services/serviceDirective/deleteBatch', + importExcel = '/services/serviceDirective/importExcel', + exportXls = '/services/serviceDirective/exportXls', + async = '/services/serviceDirective/async', + departList = '/sys/sysDepart/list', + tree = '/services/serviceDirective/tree', + queryById = '/services/serviceDirective/queryById', + syncMediaForBiz = '/services/serviceDirective/syncMediaForBiz', + syncMediaForAllBiz = '/services/serviceDirective/syncMediaForAllBiz', + listByDS = '/services/serviceDirective/listByDS', + idListByDS = '/services/serviceDirective/idListByDS', + syncDirective = '/services/serviceDirective/syncDirective', + useOrStopCascade = '/services/serviceDirective/useOrStopCascade', + compareList = '/services/serviceDirective/compareList', +} + +/** + * 列表接口 - 变更数据源 + * @param params + */ +export const listByDS = (params) => defHttp.get({ url: Api.listByDS, params }); + +/** + * + * @param params 获取对应机构已有指令id + * @returns + */ +export const idListByDS = (params) => defHttp.get({ url: Api.idListByDS, params }); + +/** + * 导出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 }); +export const departList = (params) => defHttp.get({ url: Api.departList, params }); +export const queryById = (params) => defHttp.get({ url: Api.queryById, 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 + */ +export const batchAdd = (params) => { + return defHttp.post({ url: Api.batchAdd, params }, { isTransformResponse: false }); +}; + +/** + * 同步数据 + * @param params + */ +export const asyncFunc = (params) => { + return defHttp.post({ url: Api.async, params }, { isTransformResponse: false }); +}; + +/** + * 获取树结构 + * @param params + * @returns + */ +export const tree = (params) => defHttp.post({ url: Api.tree, params }); + +/** + * 审批通过后将指令资源同步给业务平台 + * @param params + */ +export const syncMediaForBiz = (params) => { + return defHttp.post({ url: Api.syncMediaForBiz, params }); +}; + +/** + * 将指令资源同步给所有业务平台 + * @param params + */ +export const syncMediaForAllBiz = (params) => { + return defHttp.post({ url: Api.syncMediaForAllBiz, params }); +}; + +/** + * 同步 + * @param params + * @returns + */ +export const syncDirective = (dataSourceCode: string, params: any) => { + return defHttp.post({ url: `${Api.syncDirective}?sourceOrgCode=${encodeURIComponent(dataSourceCode)}`, params }); +}; + +/** + * 启用/停用分类标签或服务类别或服务类型下所有服务指令 + * @param params + */ +export const useOrStopCascade = (params) => { + return defHttp.post({ url: Api.useOrStopCascade, params }); +}; + +/** + * 差异数据对比 + * @param params compareOrgCode + * @returns + */ +export const compareList = (params) => defHttp.get({ url: Api.compareList, params }); \ No newline at end of file diff --git a/src/views/services/serviceDirective copy/ConfigServiceDirective.data.ts b/src/views/services/serviceDirective copy/ConfigServiceDirective.data.ts new file mode 100644 index 0000000..e8aec35 --- /dev/null +++ b/src/views/services/serviceDirective copy/ConfigServiceDirective.data.ts @@ -0,0 +1,192 @@ +import { BasicColumn } from '/@/components/Table'; +import { render } from '/@/utils/common/renderUtils'; +const opeMediaAddress = import.meta.env.VITE_OPE_MEDIA_ADDRESS; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + width: 100, + // customCell: (record, index, column) => { + // if (record.instructionRowSpan != null) { + // return { rowSpan: record.instructionRowSpan }; + // } + // }, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryId_dictText', + // customCell: (record, index, column) => { + // if (record.categoryRowSpan != null) { + // return { rowSpan: record.categoryRowSpan }; + // } + // }, + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeId_dictText', + // customCell: (record, index, column) => { + // if (record.typeRowSpan != null) { + // return { rowSpan: record.typeRowSpan }; + // } + // }, + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + }, + // { + // title: '体型标签', + // align: 'center', + // dataIndex: 'bodyTagList', + // width: 150, + // ellipsis: false, + // // format(text, record, index) { + // // if (!!text) { + // // return text.map((item) => item.tagName).join('、'); + // // } else { + // // return '-'; + // // } + // // }, + // }, + // { + // title: '情绪标签', + // align: 'center', + // dataIndex: 'emotionTagList', + // width: 150, + // ellipsis: false, + // // format(text, record, index) { + // // if (!!text) { + // // return text.map((item) => item.tagName).join('、'); + // // } else { + // // return '-'; + // // } + // // }, + // }, + { + title: '收费价格', + align: 'center', + dataIndex: 'tollPrice', + width: 95, + }, + { + title: '提成价格', + align: 'center', + dataIndex: 'comPrice', + width: 95, + }, + // { + // title: '医保报销', + // align: 'center', + // dataIndex: 'izReimbursement_dictText', + // width: 100, + // }, + // { + // title: '机构优惠', + // align: 'center', + // dataIndex: 'izPreferential_dictText', + // width: 100, + // }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleType_dictText', + }, + { + title: '服务时长(分钟)', + align: 'center', + dataIndex: 'serviceDuration', + width: 135, + }, + // { + // title: '指令状态', + // align: 'center', + // dataIndex: 'status_dictText', + // width: 100, + // }, + { + title: '是否启用', + align: 'center', + dataIndex: 'izEnabled_dictText', + width: 100, + }, + { + title: '服务指令图片大图', + align: 'center', + dataIndex: 'previewFile', + customRender: ({ text }) => { + // 如果 text 为空或 null/undefined,使用默认图片 + const imageUrl = text ? opeMediaAddress + text : opeMediaAddress + import.meta.env.VITE_DEFAULT_DIRECTIVE_PRE_PIC; + return render.renderImage({ text: imageUrl }); + }, + // customRender: render.renderImage, + }, + { + title: '服务指令图片小图', + align: 'center', + dataIndex: 'previewFileSmall', + customRender: ({ text }) => { + // 如果 text 为空或 null/undefined,使用默认图片 + const imageUrl = text ? opeMediaAddress + text : opeMediaAddress + import.meta.env.VITE_DEFAULT_DIRECTIVE_PRESMALL_PIC; + return render.renderImage({ text: imageUrl }); + }, + // customRender: render.renderImage, + }, + { + title: '服务指令描述', + align: 'center', + dataIndex: 'serviceContent', + width: 200, + }, + { + title: '指令音频文件', + align: 'center', + dataIndex: 'mp3File', + width: 120, + }, + { + title: '指令视频文件', + align: 'center', + dataIndex: 'mp4File', + width: 120, + }, + { + title: '即时指令图标', + align: 'center', + dataIndex: 'immediateFile', + customRender: ({ text }) => { + // 如果 text 为空或 null/undefined,使用默认图片 + const imageUrl = text ? opeMediaAddress + text : opeMediaAddress + import.meta.env.VITE_DEFAULT_DIRECTIVE_IM_PIC; + return render.renderImage({ text: imageUrl }); + }, + // customRender: render.renderImage, + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + categoryId: { title: '服务类别', order: 0, view: 'list', type: 'string', dictCode: '' }, + typeId: { title: '服务类型', order: 1, view: 'list', type: 'string', dictCode: '' }, + instructionTagId: { title: '分类标签', order: 2, view: 'list', type: 'string', dictCode: 'instruction_tag' }, + directiveName: { title: '服务指令', order: 3, view: 'text', type: 'string' }, + tollPrice: { title: '收费价格', order: 4, view: 'number', type: 'number' }, + comPrice: { title: '提成价格', order: 5, view: 'number', type: 'number' }, + izReimbursement: { title: '医保报销', order: 6, view: 'radio', type: 'string', dictCode: '' }, + izPreferential: { title: '机构优惠', order: 7, view: 'radio', type: 'string', dictCode: '' }, + chargingFrequency: { title: '收费频次', order: 8, view: 'list', type: 'string', dictCode: '' }, + cycleType: { title: '周期类型', order: 9, view: 'list', type: 'string', dictCode: '' }, + sort: { title: '排序', order: 10, view: 'number', type: 'number' }, + serviceContent: { title: '服务说明', order: 11, view: 'textarea', type: 'string' }, + serviceDuration: { title: '服务时长(分钟)', order: 12, view: 'text', type: 'string' }, + izEnabled: { title: '是否启用', order: 13, view: 'radio', type: 'string', dictCode: '' }, + createBy: { title: '创建人', order: 14, view: 'text', type: 'string' }, + createTime: { title: '创建日期', order: 15, view: 'datetime', type: 'string' }, + updateBy: { title: '更新人', order: 16, view: 'text', type: 'string' }, + updateTime: { title: '更新日期', order: 17, view: 'datetime', type: 'string' }, + mp3File: { title: '语音文件', order: 18, view: 'file', type: 'string' }, + mp4File: { title: '视频文件', order: 19, view: 'file', type: 'string' }, +}; diff --git a/src/views/services/serviceDirective copy/ConfigServiceDirectiveList copy.vue b/src/views/services/serviceDirective copy/ConfigServiceDirectiveList copy.vue new file mode 100644 index 0000000..5f347db --- /dev/null +++ b/src/views/services/serviceDirective copy/ConfigServiceDirectiveList copy.vue @@ -0,0 +1,1562 @@ + + + + + diff --git a/src/views/services/serviceDirective copy/ConfigServiceDirectiveList.vue b/src/views/services/serviceDirective copy/ConfigServiceDirectiveList.vue new file mode 100644 index 0000000..f2bc170 --- /dev/null +++ b/src/views/services/serviceDirective copy/ConfigServiceDirectiveList.vue @@ -0,0 +1,1566 @@ + + + + + diff --git a/src/views/services/serviceDirective copy/components/AbnormalDirectiveList.vue b/src/views/services/serviceDirective copy/components/AbnormalDirectiveList.vue new file mode 100644 index 0000000..06eb327 --- /dev/null +++ b/src/views/services/serviceDirective copy/components/AbnormalDirectiveList.vue @@ -0,0 +1,320 @@ + + + + + diff --git a/src/views/services/serviceDirective copy/components/CompareDirectiveList.vue b/src/views/services/serviceDirective copy/components/CompareDirectiveList.vue new file mode 100644 index 0000000..9317a29 --- /dev/null +++ b/src/views/services/serviceDirective copy/components/CompareDirectiveList.vue @@ -0,0 +1,319 @@ + + + + + diff --git a/src/views/services/serviceDirective copy/components/ConfigServiceDirective.data.ts b/src/views/services/serviceDirective copy/components/ConfigServiceDirective.data.ts new file mode 100644 index 0000000..d705928 --- /dev/null +++ b/src/views/services/serviceDirective copy/components/ConfigServiceDirective.data.ts @@ -0,0 +1,254 @@ +import { BasicColumn } from '/@/components/Table'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + width: 100, + // customCell: (record, index, column) => { + // if (record.instructionRowSpan != null) { + // return { rowSpan: record.instructionRowSpan }; + // } + // }, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryId_dictText', + // customCell: (record, index, column) => { + // if (record.categoryRowSpan != null) { + // return { rowSpan: record.categoryRowSpan }; + // } + // }, + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeId_dictText', + // customCell: (record, index, column) => { + // if (record.typeRowSpan != null) { + // return { rowSpan: record.typeRowSpan }; + // } + // }, + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + }, + // { + // title: '体型标签', + // align: 'center', + // dataIndex: 'bodyTagList', + // width: 150, + // ellipsis: false, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + // { + // title: '情绪标签', + // align: 'center', + // dataIndex: 'emotionTagList', + // width: 150, + // ellipsis: false, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + { + title: '收费价格', + align: 'center', + dataIndex: 'tollPrice', + width: 100, + }, + { + title: '提成价格', + align: 'center', + dataIndex: 'comPrice', + }, + // { + // title: '医保报销', + // align: 'center', + // dataIndex: 'izReimbursement_dictText', + // width: 100, + // }, + // { + // title: '机构优惠', + // align: 'center', + // dataIndex: 'izPreferential_dictText', + // width: 100, + // }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleType_dictText', + }, + { + title: '服务时长(分钟)', + align: 'center', + dataIndex: 'serviceDuration', + width: 135, + }, + // { + // title: '指令状态', + // align: 'center', + // dataIndex: 'status_dictText', + // width: 100, + // }, + { + title: '是否启用', + align: 'center', + dataIndex: 'izEnabled_dictText', + width: 100, + }, + // { + // title: '服务指令图片', + // align: 'center', + // dataIndex: 'previewFile', + // customRender: render.renderImage, + // }, + { + title: '服务指令描述', + align: 'center', + dataIndex: 'serviceContent', + width: 200, + }, + // { + // title: '指令音频文件', + // align: 'center', + // dataIndex: 'mp3File', + // width: 120, + // }, + // { + // title: '指令视频文件', + // align: 'center', + // dataIndex: 'mp4File', + // width: 120, + // }, + // { + // title: '即时指令图标', + // align: 'center', + // dataIndex: 'immediateFile', + // customRender: render.renderImage, + // }, +]; + +// 高级查询数据 +export const superQuerySchema = { + categoryId: { title: '服务类别', order: 0, view: 'list', type: 'string', dictCode: '' }, + typeId: { title: '服务类型', order: 1, view: 'list', type: 'string', dictCode: '' }, + instructionTagId: { title: '分类标签', order: 2, view: 'list', type: 'string', dictCode: 'instruction_tag' }, + directiveName: { title: '服务指令', order: 3, view: 'text', type: 'string' }, + tollPrice: { title: '收费价格', order: 4, view: 'number', type: 'number' }, + comPrice: { title: '提成价格', order: 5, view: 'number', type: 'number' }, + izReimbursement: { title: '医保报销', order: 6, view: 'radio', type: 'string', dictCode: '' }, + izPreferential: { title: '机构优惠', order: 7, view: 'radio', type: 'string', dictCode: '' }, + chargingFrequency: { title: '收费频次', order: 8, view: 'list', type: 'string', dictCode: '' }, + cycleType: { title: '周期类型', order: 9, view: 'list', type: 'string', dictCode: '' }, + sort: { title: '排序', order: 10, view: 'number', type: 'number' }, + serviceContent: { title: '服务说明', order: 11, view: 'textarea', type: 'string' }, + serviceDuration: { title: '服务时长(分钟)', order: 12, view: 'text', type: 'string' }, + izEnabled: { title: '是否启用', order: 13, view: 'radio', type: 'string', dictCode: '' }, + createBy: { title: '创建人', order: 14, view: 'text', type: 'string' }, + createTime: { title: '创建日期', order: 15, view: 'datetime', type: 'string' }, + updateBy: { title: '更新人', order: 16, view: 'text', type: 'string' }, + updateTime: { title: '更新日期', order: 17, view: 'datetime', type: 'string' }, + mp3File: { title: '语音文件', order: 18, view: 'file', type: 'string' }, + mp4File: { title: '视频文件', order: 19, view: 'file', type: 'string' }, +}; + + + + +//列表数据 +export const headChildColumns: BasicColumn[] = [ + { + title: '基础信息', + children: [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionName', + ellipsis: true, + width: 100, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryName', + ellipsis: true, + width: 100, + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeName', + ellipsis: true, + width: 100, + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + ellipsis: true, + }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleTypeName', + ellipsis: true, + width: 100, + }, + ] + }, + { + title: '源机构', + children: [ + { + title: '名称', + align: 'center', + dataIndex: 'ownOrgName', + ellipsis: true, + width: 200, + }, + { + title: '是否存在', + align: 'center', + dataIndex: 'ownExist', + ellipsis: true, + width: 100, + }, + ] + }, + { + title: '目标机构', + children: [ + { + title: '名称', + align: 'center', + dataIndex: 'own2OrgName', + ellipsis: true, + width: 200, + }, + { + title: '是否存在', + align: 'center', + dataIndex: 'targetExist', + ellipsis: true, + width: 100, + }, + ] + }, + +]; \ No newline at end of file diff --git a/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveForm.vue b/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveForm.vue new file mode 100644 index 0000000..33399fd --- /dev/null +++ b/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveForm.vue @@ -0,0 +1,805 @@ + + + + + diff --git a/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveForm2.vue b/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveForm2.vue new file mode 100644 index 0000000..6291905 --- /dev/null +++ b/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveForm2.vue @@ -0,0 +1,734 @@ + + + + + \ No newline at end of file diff --git a/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveFormOLDBK.vue b/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveFormOLDBK.vue new file mode 100644 index 0000000..d40fcd4 --- /dev/null +++ b/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveFormOLDBK.vue @@ -0,0 +1,888 @@ + + + + + \ No newline at end of file diff --git a/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveModal.vue b/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveModal.vue new file mode 100644 index 0000000..2c53829 --- /dev/null +++ b/src/views/services/serviceDirective copy/components/ConfigServiceDirectiveModal.vue @@ -0,0 +1,279 @@ + + + + + + diff --git a/src/views/services/serviceDirective copy/components/DirectiveRadioCom.vue b/src/views/services/serviceDirective copy/components/DirectiveRadioCom.vue new file mode 100644 index 0000000..6819805 --- /dev/null +++ b/src/views/services/serviceDirective copy/components/DirectiveRadioCom.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/views/services/serviceDirective copy/components/DirectiveRespositoryList.vue b/src/views/services/serviceDirective copy/components/DirectiveRespositoryList.vue new file mode 100644 index 0000000..576ca51 --- /dev/null +++ b/src/views/services/serviceDirective copy/components/DirectiveRespositoryList.vue @@ -0,0 +1,411 @@ + + + + + diff --git a/src/views/services/serviceDirective/components/ConfigServiceDirectiveFormOLDBK.vue b/src/views/services/serviceDirective/components/ConfigServiceDirectiveFormOLDBK.vue index 177db9d..d40fcd4 100644 --- a/src/views/services/serviceDirective/components/ConfigServiceDirectiveFormOLDBK.vue +++ b/src/views/services/serviceDirective/components/ConfigServiceDirectiveFormOLDBK.vue @@ -124,7 +124,7 @@ | @@ -148,7 +148,7 @@ | @@ -172,7 +172,7 @@ | @@ -196,7 +196,7 @@ | diff --git a/src/views/services/serviceDirective/components/ConfigServiceDirectiveModal.vue b/src/views/services/serviceDirective/components/ConfigServiceDirectiveModal.vue index 18d4306..38fae31 100644 --- a/src/views/services/serviceDirective/components/ConfigServiceDirectiveModal.vue +++ b/src/views/services/serviceDirective/components/ConfigServiceDirectiveModal.vue @@ -14,7 +14,7 @@ - @@ -48,10 +48,10 @@ const disableSubmit = ref(false); const registerForm = ref(); const emit = defineEmits(['register', 'success']); const opeType = ref('')//操作类型 add新增 edit编辑 editMedia主列表-指令资源 look详情 dmlook指令库查看指令详情 audit审核 auditMedia审核列表-指令资源 -const dmVisible = ref(false) +const sdVisible = ref(false) function handleCancelDM() { - dmVisible.value = false + sdVisible.value = false clearCache() emit('success') } @@ -157,7 +157,10 @@ function queryByIdFunc(id) { } function openDM() { - dmVisible.value = true + sdVisible.value = true + nextTick(() => { + dmRef.value.resetChoose(); + }); } function handlePullDM() { @@ -180,7 +183,7 @@ function handlePullDM() { okText: '确认', cancelText: '取消', onOk: () => { - syncDirective(dmRef.value.targetOrgCode, { syncIds: selectedData.ids, }) + syncDirective(dmRef.value.targetOrgCode, { syncIds: selectedData.ids, syncCode: dmRef.value.targetOrgCodeSV }) createMessage.success('指令拉取中,请1分钟后重新查看') // dmRef.value?.init() handleCancelDM() diff --git a/src/views/services/serviceDirective/components/DirectiveRespositoryList.vue b/src/views/services/serviceDirective/components/DirectiveRespositoryList.vue index e21d58b..65c77d7 100644 --- a/src/views/services/serviceDirective/components/DirectiveRespositoryList.vue +++ b/src/views/services/serviceDirective/components/DirectiveRespositoryList.vue @@ -337,6 +337,10 @@ async function searchOrgCode() { } } +function resetChoose(){ + +} + // 添加音频结束监听 onMounted(() => { getOrgInfo().then(res => { @@ -351,6 +355,8 @@ defineExpose({ getSelectedIds, init, targetOrgCode, + targetOrgCodeSV, + resetChoose, });