diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java index cfa0190..27ed968 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java @@ -94,6 +94,7 @@ public class InnovationVoucherController extends JeecgController queryWrapper = QueryGenerator.initQueryWrapper(innovationVoucher, req.getParameterMap()); queryWrapper.eq("state","3"); + queryWrapper.orderByDesc("create_time"); Page page = new Page(pageNo, pageSize); IPage pageList = innovationVoucherService.page(page, queryWrapper); return Result.OK(pageList); @@ -296,9 +297,13 @@ public class InnovationVoucherController extends JeecgController add(@RequestBody InnovationVoucher innovationVoucher) { LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + SysDepart sysDepart = sysDepartService.getById(loginUser.getOrgId()); + if(sysDepart.getStatus().equals("0")){ + return Result.error("该用户单位冻结,无法申请"); + } innovationVoucher.setProDept(loginUser.getOrgId()); String uuid = IdUtil.randomUUID().replaceAll("-", ""); - if(sysDepartService.getById(loginUser.getOrgId()).getOrgCategory().equals("3")){ + if(sysDepart.getOrgCategory().equals("3")){ innovationVoucher.setFlag("1"); String cxqCode = "XQ"; cxqCode += uuid.substring(0, 18); @@ -484,6 +489,33 @@ public class InnovationVoucherController extends JeecgController edit4(@RequestBody InnovationVoucher innovationVoucher) { + InnovationVoucher innovationVouchervo = innovationVoucherService.getById(innovationVoucher.getId()); + if(innovationVouchervo==null) { + return Result.error("未找到对应数据"); + } + if(innovationVouchervo.getDxshFlag().equals("0")){ + innovationVoucher.setDxshSta("2"); + }else { + innovationVoucher.setDxshSta("1"); + } + innovationVoucher.setSfSqdxSta("1"); + innovationVoucher.setDxReject(""); + + innovationVoucherService.updateById(innovationVoucher); + return Result.OK("提交兑现审核成功!"); + } + /** * 审核通过 * diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/entity/InnovationVoucher.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/entity/InnovationVoucher.java index bbc9433..31d4c67 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/entity/InnovationVoucher.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/entity/InnovationVoucher.java @@ -133,4 +133,12 @@ public class InnovationVoucher implements Serializable { @Excel(name = "兑现驳回原因", width = 15) @ApiModelProperty(value = "兑现驳回原因") private java.lang.String dxReject; + /**兑现理由*/ + @Excel(name = "兑现理由", width = 15) + @ApiModelProperty(value = "兑现理由") + private java.lang.String dxReason; + /**合同*/ + @Excel(name = "合同", width = 15) + @ApiModelProperty(value = "合同") + private java.lang.String dxContract; } diff --git a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.api.ts b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.api.ts index 96eebeb..1a615d5 100644 --- a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.api.ts +++ b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.api.ts @@ -15,6 +15,7 @@ enum Api { edit1='/innovationvoucher/innovationVoucher/edit1', edit2='/innovationvoucher/innovationVoucher/edit2', edit3='/innovationvoucher/innovationVoucher/edit3', + edit4='/innovationvoucher/innovationVoucher/edit4', deleteOne = '/innovationvoucher/innovationVoucher/delete', deleteBatch = '/innovationvoucher/innovationVoucher/deleteBatch', importExcel = '/innovationvoucher/innovationVoucher/importExcel', @@ -65,6 +66,11 @@ export const saveOrUpdate3 = (params, isUpdate) => { return defHttp.post({ url: url, params }, { isTransformResponse: false }); } +export const saveOrUpdate4 = (params, isUpdate) => { + let url = isUpdate ? Api.edit4 : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} + /** * 导出api diff --git a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.data4.ts b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.data4.ts index 9ccf40c..b7b98ae 100644 --- a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.data4.ts +++ b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucher.data4.ts @@ -70,6 +70,16 @@ export const columns: BasicColumn[] = [ align: "center", dataIndex: 'dxshSta_dictText' }, + { + title: '兑现理由', + align: "center", + dataIndex: 'dxReason', + }, + { + title: '合同', + align: "center", + dataIndex: 'dxContract', + }, { title: '兑现驳回原因', align: "center", diff --git a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList4.vue b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList4.vue index 5dc1d48..4c1aae2 100644 --- a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList4.vue +++ b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList4.vue @@ -72,10 +72,24 @@ 无文件 下载 + + + + @@ -84,9 +98,10 @@ import { BasicTable, useTable, TableAction } from '/@/components/Table'; import { useListPage } from '/@/hooks/system/useListPage'; import { columns, superQuerySchema } from './InnovationVoucher.data4'; - import { list4, deleteOne, batchDelete, getImportUrl, getExportUrl,tjdxsh } from './InnovationVoucher.api'; + import { list4, deleteOne, batchDelete, getImportUrl, getExportUrl } from './InnovationVoucher.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import InnovationVoucherModal from './components/InnovationVoucherModal.vue' + import InnovationVoucherModal4 from './components/InnovationVoucherModal4.vue' import { useUserStore } from '/@/store/modules/user'; import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; @@ -97,6 +112,7 @@ const queryParam = reactive({}); const toggleSearchStatus = ref(false); const registerModal = ref(); + const registerModal4 = ref(); const userStore = useUserStore(); //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ @@ -190,8 +206,16 @@ /** * 提交兑现审核事件 */ - async function tjdxshcz(record) { +/* async function tjdxshcz(record) { await tjdxsh({id: record.id}, handleSuccess); + }*/ + + /** + * 驳回 + */ + function tjdxshcz(record: Recordable) { + registerModal4.value.disableSubmit = false; + registerModal4.value.edit(record); } /** diff --git a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList5.vue b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList5.vue index bc1f0bb..2ae3b3f 100644 --- a/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList5.vue +++ b/jeecgboot-vue3/src/views/innovationvoucher/InnovationVoucherList5.vue @@ -72,6 +72,19 @@ 无文件 下载 + + + diff --git a/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm4.vue b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm4.vue new file mode 100644 index 0000000..cca88f9 --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherForm4.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal4.vue b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal4.vue new file mode 100644 index 0000000..30a302b --- /dev/null +++ b/jeecgboot-vue3/src/views/innovationvoucher/components/InnovationVoucherModal4.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/system/usersetting/BaseSetting.vue b/jeecgboot-vue3/src/views/system/usersetting/BaseSetting.vue index 619a538..906a665 100644 --- a/jeecgboot-vue3/src/views/system/usersetting/BaseSetting.vue +++ b/jeecgboot-vue3/src/views/system/usersetting/BaseSetting.vue @@ -39,10 +39,10 @@ 性别 {{ userInfo.sexText }} -
- 职位 - {{ userInfo.postText ? userInfo.postText : "未填写" }} -
+ + + +
编辑 @@ -65,159 +65,159 @@