diff --git a/src/views/elder/elderinfo/elderNuLog/NuBizElderNuLog.api.ts b/src/views/elder/elderinfo/elderNuLog/NuBizElderNuLog.api.ts new file mode 100644 index 0000000..23a1a2c --- /dev/null +++ b/src/views/elder/elderinfo/elderNuLog/NuBizElderNuLog.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/elderinfo/nuBizElderNuLog/list', + save='/elderinfo/nuBizElderNuLog/add', + edit='/elderinfo/nuBizElderNuLog/edit', + deleteOne = '/elderinfo/nuBizElderNuLog/delete', + deleteBatch = '/elderinfo/nuBizElderNuLog/deleteBatch', + importExcel = '/elderinfo/nuBizElderNuLog/importExcel', + exportXls = '/elderinfo/nuBizElderNuLog/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/elder/elderinfo/elderNuLog/NuBizElderNuLog.data.ts b/src/views/elder/elderinfo/elderNuLog/NuBizElderNuLog.data.ts new file mode 100644 index 0000000..e609800 --- /dev/null +++ b/src/views/elder/elderinfo/elderNuLog/NuBizElderNuLog.data.ts @@ -0,0 +1,24 @@ +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', + align: "center", + dataIndex: 'elderId' + }, + { + title: '区域id', + align: "center", + dataIndex: 'nuId' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + elderId: {title: '老人id',order: 0,view: 'text', type: 'string',}, + nuId: {title: '区域id',order: 1,view: 'text', type: 'string',}, +}; diff --git a/src/views/elder/elderinfo/elderNuLog/NuBizElderNuLogList.vue b/src/views/elder/elderinfo/elderNuLog/NuBizElderNuLogList.vue new file mode 100644 index 0000000..2a662d8 --- /dev/null +++ b/src/views/elder/elderinfo/elderNuLog/NuBizElderNuLogList.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/src/views/elder/elderinfo/elderNuLog/components/NuBizElderNuLogForm.vue b/src/views/elder/elderinfo/elderNuLog/components/NuBizElderNuLogForm.vue new file mode 100644 index 0000000..c30dc1c --- /dev/null +++ b/src/views/elder/elderinfo/elderNuLog/components/NuBizElderNuLogForm.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/src/views/elder/elderinfo/elderNuLog/components/NuBizElderNuLogModal.vue b/src/views/elder/elderinfo/elderNuLog/components/NuBizElderNuLogModal.vue new file mode 100644 index 0000000..639d2d7 --- /dev/null +++ b/src/views/elder/elderinfo/elderNuLog/components/NuBizElderNuLogModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.data.ts b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.data.ts index 3d02e46..4350694 100644 --- a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.data.ts +++ b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.data.ts @@ -3,6 +3,7 @@ import {FormSchema} from '/@/components/Table'; import { rules} from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; import { getWeekMonthQuarterYear } from '/@/utils'; +const opeMediaAddress = import.meta.env.VITE_OPE_MEDIA_ADDRESS; //列表数据 export const columns: BasicColumn[] = [ { @@ -43,7 +44,12 @@ export const columns: BasicColumn[] = [ { title: '资质照片', align: "center", - dataIndex: 'imgPath' + dataIndex: 'imgPath', + customRender: ({ text }) => { + // 如果 text 为空或 null/undefined,使用默认图片 + const imageUrl = text ? opeMediaAddress + text : opeMediaAddress + import.meta.env.VITE_DEFAULT_DIRECTIVE_PRE_PIC; + return render.renderImage({ text: imageUrl }); + }, }, { title: '审核状态', diff --git a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyList.vue b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyList.vue index ba5d819..3b67116 100644 --- a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyList.vue +++ b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyList.vue @@ -48,6 +48,9 @@ @@ -56,7 +59,7 @@