From 61efaa758b3f4d030b90fe6eb8360d785b4d8c05 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Mon, 12 May 2025 13:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=81=E7=A8=8B=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/lowCode/form/index.ts | 2 +- src/components/formTable/index.vue | 3 +- src/views/formTable/page/cardPage.vue | 17 +- src/views/formTable/page/flowAndLog.vue | 51 +++++- src/views/formTable/pageInfo.vue | 199 +++++++++++++++++++++++- src/views/lookCodePage/index.vue | 2 +- 6 files changed, 254 insertions(+), 20 deletions(-) diff --git a/src/api/lowCode/form/index.ts b/src/api/lowCode/form/index.ts index 3ade3fc..aae93e4 100644 --- a/src/api/lowCode/form/index.ts +++ b/src/api/lowCode/form/index.ts @@ -30,7 +30,7 @@ export function gainFormPageListCont(data: any) { }); } -//多视图数据处理 +//多视图数据处理 gainFormPageListCont export function multiViewPage(data: any) { return request({ url: '/systemapi/customer_form/multiViewPage', diff --git a/src/components/formTable/index.vue b/src/components/formTable/index.vue index 593d201..47c9b8a 100644 --- a/src/components/formTable/index.vue +++ b/src/components/formTable/index.vue @@ -31,7 +31,8 @@ const props = withDefaults( afterResponse?: Function | string // 请求数据加载完成后数据处理方法,可对返回数据处理 beforeSubmit?: Function | string // 表单提交前数据处理,可对提交数据处理,新增和保存都会触发 afterSubmit?: Function // 表单提交后,默认提示提交结果,可return false阻止提示 - btnClick?: (key: string) => boolean | void // 按钮点击事件 + btnClick?: (key: string) => boolean | void // 按钮点击事件 + changeKeyVal?: Function; //监听表单值该表 }>(), { type: 1, // 1新增;2修改;3查看(表单模式) ;4查看; 5设计 diff --git a/src/views/formTable/page/cardPage.vue b/src/views/formTable/page/cardPage.vue index 96d56df..fbd2fbe 100644 --- a/src/views/formTable/page/cardPage.vue +++ b/src/views/formTable/page/cardPage.vue @@ -742,31 +742,32 @@ const delTask = (val:any) => { @ 1:提交审批;2:重新申请;3:撤回;4:申请修改;5:修改;6:删除 */ const butIsShow = (val:any,type:number) => { - // console.log("判断是否显示",val) + console.log("判断是否显示--->type",type) + console.log("判断是否显示",val) switch (type) { case 7: - if(val.flowIsOpens == 1 && val.taskStatus == 1){ + if(val.flowIsOpens == 1 && val.taskStatus*1 == 1){ return true; }else{ return false; } break; case 2: - if(val.flowIsOpens == 1 && val.taskStatus == 2){ + if(val.flowIsOpens == 1 && val.taskStatus*1 == 2){ return true; }else{ return false; } break; case 3: - if(val.flowIsOpens == 1 && val.taskStatus == 3 && val.isRetract){ + if(val.flowIsOpens == 1 && val.taskStatus*1 == 3 && val.isRetract){ return true; }else{ return false; } break; case 4: - if(val.flowIsOpens == 1 && val.taskStatus == 4){ + if(val.flowIsOpens == 1 && val.taskStatus*1 == 4){ return true; }else{ return false; @@ -780,7 +781,7 @@ const butIsShow = (val:any,type:number) => { } break; case 6: - if(val.flowIsOpens != 1 || (val.flowIsOpens == 1 && (val.taskStatus == 1 || val.taskStatus == 2))){ + if(val.flowIsOpens != 1 || (val.flowIsOpens == 1 && (val.taskStatus*1 == 1 || val.taskStatus*1 == 2))){ return true; }else{ return false; @@ -873,14 +874,14 @@ defineExpose({ formTableStr =========> {{ props.formTableStr }}



tableDataList =========> {{ tableDataList }}



--> - + - +
状态 草稿 diff --git a/src/views/formTable/page/flowAndLog.vue b/src/views/formTable/page/flowAndLog.vue index cb3e259..f00f34d 100644 --- a/src/views/formTable/page/flowAndLog.vue +++ b/src/views/formTable/page/flowAndLog.vue @@ -4,8 +4,11 @@ @ 备注: 流程和历史记录 -->