diff --git a/src/views/admin/bizSuppliers/NuBizSuppliersApply.api.ts b/src/views/admin/bizSuppliers/NuBizSuppliersApply.api.ts new file mode 100644 index 0000000..828784f --- /dev/null +++ b/src/views/admin/bizSuppliers/NuBizSuppliersApply.api.ts @@ -0,0 +1,94 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/bizSuppliers/nuBizSuppliersApply/list', + listPage = '/bizSuppliers/nuBizSuppliersApply/listPage', + getModifyHistoryInfo = '/bizSuppliers/nuBizSuppliersApply/getModifyHistoryInfo', + getModifyInfo = '/bizSuppliers/nuBizSuppliersApply/getModifyInfo', + save='/bizSuppliers/nuBizSuppliersApply/add', + edit='/bizSuppliers/nuBizSuppliersApply/edit', + audit='/bizSuppliers/nuBizSuppliersApply/audit', + bgAudit='/bizSuppliers/nuBizSuppliersApply/bgAudit', + deleteOne = '/bizSuppliers/nuBizSuppliersApply/delete', + deleteBatch = '/bizSuppliers/nuBizSuppliersApply/deleteBatch', + importExcel = '/bizSuppliers/nuBizSuppliersApply/importExcel', + exportXls = '/bizSuppliers/nuBizSuppliersApply/exportXls', +} + +export const getModifyHistoryInfo = (params) => { + return defHttp.post({ url: Api.getModifyHistoryInfo, params }); +}; +export const getModifyInfo = (params) => { + return defHttp.post({ url: Api.getModifyInfo, params }); +}; +/** + * 审批提交 + * @param params + */ +export const auditSubmit = (params) => { + return defHttp.post({ url: Api.audit, params }); +}; +export const bgAuditSubmit = (params) => { + return defHttp.post({ url: Api.bgAudit, 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 listPage = (params) => defHttp.get({ url: Api.listPage, 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/bizSuppliers/NuBizSuppliersApply.data.ts b/src/views/admin/bizSuppliers/NuBizSuppliersApply.data.ts new file mode 100644 index 0000000..f8b391c --- /dev/null +++ b/src/views/admin/bizSuppliers/NuBizSuppliersApply.data.ts @@ -0,0 +1,185 @@ +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: 'suppliersName' + }, + { + title: '供应商性质', + align: "center", + dataIndex: 'suppliersNature_dictText', + width: 100 + }, + { + title: '负责人', + align: "center", + dataIndex: 'personInCharge', + width: 100 + }, + { + title: '联系电话', + align: "center", + dataIndex: 'contactNumber', + width: 100 + }, + // { + // title: '供应状态', + // align: "center", + // dataIndex: 'supplyState_dictText' + // }, + { + title: '供应商地址', + align: "center", + dataIndex: 'suppliersAddress' + }, + { + title: '开户行', + align: "center", + dataIndex: 'openingBank' + }, + { + title: '开户行账号', + align: "center", + dataIndex: 'openingBankNo' + }, + { + title: '资质照片', + align: "center", + dataIndex: 'imgPath', + customRender: render.renderImage, + width: 100 + }, + { + title: '审核状态', + align: "center", + dataIndex: 'applyStatus', + customRender: ({ text, record }) => { + var applyStatus = ''; + if (text == '1' || text == '4') { + applyStatus = '待审核'; + } else if (text == '2') { + applyStatus = '审核通过'; + } else if (text == '3' || text == '5') { + applyStatus = '审核驳回'; + } + return applyStatus; + }, + width: 100 + }, + { + title: '审核内容', + align: "center", + dataIndex: 'applyContent', + width: 150 + }, +]; + + +//列表数据 +export const columns2: BasicColumn[] = [ + { + title: '供应商名称', + align: "center", + dataIndex: 'suppliersName' + }, + { + title: '供应商性质', + align: "center", + dataIndex: 'suppliersNature_dictText', + width: 100 + }, + { + title: '负责人', + align: "center", + dataIndex: 'personInCharge', + width: 100 + }, + { + title: '联系电话', + align: "center", + dataIndex: 'contactNumber', + width: 100 + }, + // { + // title: '供应状态', + // align: "center", + // dataIndex: 'supplyState_dictText' + // }, + { + title: '供应商地址', + align: "center", + dataIndex: 'suppliersAddress' + }, + { + title: '开户行', + align: "center", + dataIndex: 'openingBank' + }, + { + title: '开户行账号', + align: "center", + dataIndex: 'openingBankNo' + }, + { + title: '资质照片', + align: "center", + dataIndex: 'imgPath', + customRender: render.renderImage, + width: 100 + }, + { + title: '审核状态', + align: "center", + dataIndex: 'applyStatus', + customRender: ({ text, record }) => { + var applyStatus = ''; + if (text == '1' || text == '4') { + applyStatus = '待审核'; + } else if (text == '2') { + applyStatus = '审核通过'; + } else if (text == '3' || text == '5') { + applyStatus = '审核驳回'; + } + return applyStatus; + }, + width: 100 + }, + { + title: '审核内容', + align: "center", + dataIndex: 'applyContent', + width: 150 + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + suppliersName: {title: '供应商名称',order: 0,view: 'text', type: 'string',}, + suppliersNature: {title: '供应商性质',order: 1,view: 'list', type: 'string',dictCode: '',}, + suppliersAddress: {title: '供应商地址',order: 2,view: 'text', type: 'string',}, + personInCharge: {title: '负责人',order: 3,view: 'text', type: 'string',}, + contactNumber: {title: '联系电话',order: 4,view: 'text', type: 'string',}, + supplyState: {title: '供应状态',order: 5,view: 'list', type: 'string',dictCode: '',}, + openingBank: {title: '开户行',order: 6,view: 'text', type: 'string',}, + openingBankNo: {title: '开户行账号',order: 7,view: 'text', type: 'string',}, + imgPath: {title: '资质照片',order: 8,view: 'image', type: 'string',}, + status: {title: '审核状态',order: 9,view: 'text', type: 'string',}, + auditContent: {title: '审核内容',order: 10,view: 'text', type: 'string',}, +}; + +export const applyObj = { + suppliersName: '供应商名称', + suppliersNature: '供应商性质', + suppliersAddress: '供应商地址', + personInCharge: '负责人', + contactNumber: '联系电话', + openingBank: '开户行', + openingBankNo: '开户行账号', + imgPath: '营业执照', +}; \ No newline at end of file diff --git a/src/views/admin/bizSuppliers/NuBizSuppliersApplyList.vue b/src/views/admin/bizSuppliers/NuBizSuppliersApplyList.vue new file mode 100644 index 0000000..7ea1a62 --- /dev/null +++ b/src/views/admin/bizSuppliers/NuBizSuppliersApplyList.vue @@ -0,0 +1,238 @@ + + + + + diff --git a/src/views/admin/bizSuppliers/NuBizSuppliersAuditHistoryList.vue b/src/views/admin/bizSuppliers/NuBizSuppliersAuditHistoryList.vue new file mode 100644 index 0000000..9c76e3a --- /dev/null +++ b/src/views/admin/bizSuppliers/NuBizSuppliersAuditHistoryList.vue @@ -0,0 +1,231 @@ + + + + + diff --git a/src/views/admin/bizSuppliers/NuBizSuppliersAuditHistoryModal.vue b/src/views/admin/bizSuppliers/NuBizSuppliersAuditHistoryModal.vue new file mode 100644 index 0000000..43c8bd1 --- /dev/null +++ b/src/views/admin/bizSuppliers/NuBizSuppliersAuditHistoryModal.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/views/admin/bizSuppliers/NuBizSuppliersInfo.api.ts b/src/views/admin/bizSuppliers/NuBizSuppliersInfo.api.ts new file mode 100644 index 0000000..74bd19b --- /dev/null +++ b/src/views/admin/bizSuppliers/NuBizSuppliersInfo.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/bizSuppliers/nuBizSuppliersInfo/list', + save='/bizSuppliers/nuBizSuppliersInfo/add', + edit='/bizSuppliers/nuBizSuppliersInfo/edit', + deleteOne = '/bizSuppliers/nuBizSuppliersInfo/delete', + deleteBatch = '/bizSuppliers/nuBizSuppliersInfo/deleteBatch', + importExcel = '/bizSuppliers/nuBizSuppliersInfo/importExcel', + exportXls = '/bizSuppliers/nuBizSuppliersInfo/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/bizSuppliers/NuBizSuppliersInfo.data.ts b/src/views/admin/bizSuppliers/NuBizSuppliersInfo.data.ts new file mode 100644 index 0000000..c897371 --- /dev/null +++ b/src/views/admin/bizSuppliers/NuBizSuppliersInfo.data.ts @@ -0,0 +1,73 @@ +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: 'suppliersName' + }, + { + title: '供应商性质', + align: "center", + dataIndex: 'suppliersNature_dictText' + }, + { + title: '供应商地址', + align: "center", + dataIndex: 'suppliersAddress' + }, + { + title: '负责人', + align: "center", + dataIndex: 'personInCharge' + }, + { + title: '联系电话', + align: "center", + dataIndex: 'contactNumber' + }, + // { + // title: '供应状态', + // align: "center", + // dataIndex: 'supplyState_dictText' + // }, + { + title: '开户行', + align: "center", + dataIndex: 'openingBank' + }, + { + title: '开户行账号', + align: "center", + dataIndex: 'openingBankNo' + }, + { + title: '资质照片', + align: "center", + dataIndex: 'imgPath', + customRender: render.renderImage, + }, + { + title: '创建日期', + align: "center", + dataIndex: 'createTime' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + suppliersName: {title: '供应商名称',order: 0,view: 'text', type: 'string',}, + suppliersNature: {title: '供应商性质',order: 1,view: 'list', type: 'string',dictCode: 'suppliers_nature',}, + suppliersAddress: {title: '供应商地址',order: 2,view: 'text', type: 'string',}, + personInCharge: {title: '负责人',order: 3,view: 'text', type: 'string',}, + contactNumber: {title: '联系电话',order: 4,view: 'text', type: 'string',}, + supplyState: {title: '供应状态',order: 5,view: 'list', type: 'string',dictCode: 'supply_status',}, + openingBank: {title: '开户行',order: 6,view: 'text', type: 'string',}, + openingBankNo: {title: '开户行账号',order: 7,view: 'text', type: 'string',}, + imgPath: {title: '资质照片',order: 8,view: 'image', type: 'string',}, + createTime: {title: '创建日期',order: 9,view: 'datetime', type: 'string',}, +}; diff --git a/src/views/admin/bizSuppliers/NuBizSuppliersInfoList.vue b/src/views/admin/bizSuppliers/NuBizSuppliersInfoList.vue new file mode 100644 index 0000000..07872be --- /dev/null +++ b/src/views/admin/bizSuppliers/NuBizSuppliersInfoList.vue @@ -0,0 +1,252 @@ + + + + + diff --git a/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyBgForm.vue b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyBgForm.vue new file mode 100644 index 0000000..cf90de1 --- /dev/null +++ b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyBgForm.vue @@ -0,0 +1,261 @@ + + + + + \ No newline at end of file diff --git a/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyDetailForm.vue b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyDetailForm.vue new file mode 100644 index 0000000..b8b0057 --- /dev/null +++ b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyDetailForm.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyForm.vue b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyForm.vue new file mode 100644 index 0000000..0db7593 --- /dev/null +++ b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyForm.vue @@ -0,0 +1,232 @@ + + + + + diff --git a/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyHistoryForm.vue b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyHistoryForm.vue new file mode 100644 index 0000000..3e0b78e --- /dev/null +++ b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyHistoryForm.vue @@ -0,0 +1,271 @@ + + + + + \ No newline at end of file diff --git a/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyHistoryModal.vue b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyHistoryModal.vue new file mode 100644 index 0000000..1fb6d5a --- /dev/null +++ b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyHistoryModal.vue @@ -0,0 +1,109 @@ + + + + + + diff --git a/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyModal.vue b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyModal.vue new file mode 100644 index 0000000..46e9c32 --- /dev/null +++ b/src/views/admin/bizSuppliers/components/NuBizSuppliersApplyModal.vue @@ -0,0 +1,107 @@ + + + + + + diff --git a/src/views/admin/bizSuppliers/components/NuBizSuppliersInfoForm.vue b/src/views/admin/bizSuppliers/components/NuBizSuppliersInfoForm.vue new file mode 100644 index 0000000..d2ff127 --- /dev/null +++ b/src/views/admin/bizSuppliers/components/NuBizSuppliersInfoForm.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/src/views/admin/bizSuppliers/components/NuBizSuppliersInfoModal.vue b/src/views/admin/bizSuppliers/components/NuBizSuppliersInfoModal.vue new file mode 100644 index 0000000..9c360aa --- /dev/null +++ b/src/views/admin/bizSuppliers/components/NuBizSuppliersInfoModal.vue @@ -0,0 +1,82 @@ + + + + + + diff --git a/src/views/synchronization/eldertag/syncList copy.vue b/src/views/synchronization/eldertag/syncList copy.vue new file mode 100644 index 0000000..bae7775 --- /dev/null +++ b/src/views/synchronization/eldertag/syncList copy.vue @@ -0,0 +1,403 @@ + + + + + \ No newline at end of file