diff --git a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.api.ts b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.api.ts new file mode 100644 index 0000000..f1a9229 --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.api.ts @@ -0,0 +1,95 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/innovationvoucher/innovationVoucher/list', + list1 = '/innovationvoucher/innovationVoucher/list1', + save='/innovationvoucher/innovationVoucher/add', + edit='/innovationvoucher/innovationVoucher/edit', + edit1='/innovationvoucher/innovationVoucher/edit1', + deleteOne = '/innovationvoucher/innovationVoucher/delete', + deleteBatch = '/innovationvoucher/innovationVoucher/deleteBatch', + importExcel = '/innovationvoucher/innovationVoucher/importExcel', + exportXls = '/innovationvoucher/innovationVoucher/exportXls', + tjsh = '/innovationvoucher/innovationVoucher/tjsh', + shtg = '/innovationvoucher/innovationVoucher/shtg', +} +export const tjsh = (params,handleSuccess) => { + return defHttp.get({url: Api.tjsh, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +export const saveOrUpdate1 = (params, isUpdate) => { + let url = isUpdate ? Api.edit1 : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} + + +/** + * 导出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 list1 = (params) => defHttp.get({ url: Api.list1, params }); + +export const shtg = (params,handleSuccess) => { + return defHttp.get({url: Api.shtg, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 删除单个 + * @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/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.data.ts b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.data.ts new file mode 100644 index 0000000..18a76e9 --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.data.ts @@ -0,0 +1,96 @@ +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: 'cxqCode' + }, + { + title: '申报项目名称', + align: "center", + dataIndex: 'proName' + }, + { + title: '申报类别', + align: "center", + dataIndex: 'proType_dictText' + }, + { + title: '申领金额', + align: "center", + dataIndex: 'proMoney' + }, + { + title: '附件', + align: "center", + dataIndex: 'attachment', + }, + { + title: '申领单位', + align: "center", + dataIndex: 'proDept_dictText' + }, + { + title: '使用单位', + align: "center", + dataIndex: 'applyDept_dictText' + }, + { + title: '是否同意', + align: "center", + dataIndex: 'sfState_dictText' + }, + { + title: '审核状态', + align: "center", + dataIndex: 'state_dictText' + }, + { + title: '使用状态', + align: "center", + dataIndex: 'useState_dictText' + }, + { + title: '驳回原因', + align: "center", + dataIndex: 'reject' + }, + { + title: '是否申请兑现', + align: "center", + dataIndex: 'sfSqdxSta_dictText' + }, + { + title: '兑现审核状态', + align: "center", + dataIndex: 'dxshSta_dictText' + }, + { + title: '兑现驳回原因', + align: "center", + dataIndex: 'dxReject' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + cxqCode: {title: '创新券编码',order: 0,view: 'text', type: 'string',}, + proName: {title: '申报项目名称',order: 1,view: 'text', type: 'string',}, + proType: {title: '申报类别',order: 2,view: 'list', type: 'string',dictCode: 'cxq_type',}, + proMoney: {title: '申领金额',order: 3,view: 'number', type: 'number',}, + attachment: {title: '附件',order: 4,view: 'file', type: 'string',}, + proDept: {title: '申领单位',order: 5,view: 'sel_depart', type: 'string',}, + applyDept: {title: '使用单位',order: 6,view: 'sel_depart', type: 'string',}, + sfState: {title: '是否同意',order: 7,view: 'list', type: 'string',dictCode: 'cxq_sf_sta',}, + state: {title: '审核状态',order: 8,view: 'list', type: 'string',dictCode: 'in_exam_status',}, + useState: {title: '使用状态',order: 9,view: 'list', type: 'string',dictCode: 'cxq_use_sta',}, + reject: {title: '驳回原因',order: 10,view: 'textarea', type: 'string',}, + sfSqdxSta: {title: '是否申请兑现',order: 11,view: 'list', type: 'string',dictCode: 'sqdx_sf',}, + dxshSta: {title: '兑现审核状态',order: 12,view: 'list', type: 'string',dictCode: 'in_exam_status',}, + dxReject: {title: '兑现驳回原因',order: 13,view: 'textarea', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList.vue b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList.vue new file mode 100644 index 0000000..9dcfbb1 --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList1.vue b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList1.vue new file mode 100644 index 0000000..5764adc --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList1.vue @@ -0,0 +1,325 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/innovationvoucher/V20241028_1__menu_insert_InnovationVoucher.sql b/jeecgboot-vue3/src/views/innovationvoucher/V20241028_1__menu_insert_InnovationVoucher.sql new file mode 100644 index 0000000..85c6369 --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/V20241028_1__menu_insert_InnovationVoucher.sql @@ -0,0 +1,26 @@ +-- 注意:该页面对应的前台目录为views/innovationvoucher文件夹下 +-- 如果你想更改到其他目录,请修改sql中component字段对应的值 + + +INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) +VALUES ('2024102802283080040', NULL, '创新券表', '/innovationvoucher/innovationVoucherList', 'innovationvoucher/InnovationVoucherList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2024-10-28 14:28:04', NULL, NULL, 0); + +-- 权限控制sql +-- 新增 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102802283080041', '2024102802283080040', '添加创新券表', NULL, NULL, 0, NULL, NULL, 2, 'innovationvoucher:innovation_voucher:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-28 14:28:04', NULL, NULL, 0, 0, '1', 0); +-- 编辑 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102802283080042', '2024102802283080040', '编辑创新券表', NULL, NULL, 0, NULL, NULL, 2, 'innovationvoucher:innovation_voucher:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-28 14:28:04', NULL, NULL, 0, 0, '1', 0); +-- 删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102802283080043', '2024102802283080040', '删除创新券表', NULL, NULL, 0, NULL, NULL, 2, 'innovationvoucher:innovation_voucher:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-28 14:28:04', NULL, NULL, 0, 0, '1', 0); +-- 批量删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102802283080044', '2024102802283080040', '批量删除创新券表', NULL, NULL, 0, NULL, NULL, 2, 'innovationvoucher:innovation_voucher:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-28 14:28:04', NULL, NULL, 0, 0, '1', 0); +-- 导出excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102802283080045', '2024102802283080040', '导出excel_创新券表', NULL, NULL, 0, NULL, NULL, 2, 'innovationvoucher:innovation_voucher:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-28 14:28:04', NULL, NULL, 0, 0, '1', 0); +-- 导入excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102802283080046', '2024102802283080040', '导入excel_创新券表', NULL, NULL, 0, NULL, NULL, 2, 'innovationvoucher:innovation_voucher:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-28 14:28:04', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm.vue b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm.vue new file mode 100644 index 0000000..5ae5e1d --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm1.vue b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm1.vue new file mode 100644 index 0000000..8377b5d --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm1.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal.vue b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal.vue new file mode 100644 index 0000000..a6bc7ab --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal1.vue b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal1.vue new file mode 100644 index 0000000..b0595fb --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal1.vue @@ -0,0 +1,77 @@ + + + + + +