From 5b4fefa4f9044339ad6b0352e74fc5f3c213cd27 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期四, 03 八月 2023 16:18:12 +0800 Subject: [PATCH] 修改流程详情,主数据表单状态字段显示 --- Source/UBCS-WEB/src/views/work/process/leave/detail.vue | 11 ++++++----- Source/UBCS-WEB/src/views/work/process/leave/form.vue | 2 +- Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue | 4 ++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue index 767e02d..471114a 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue @@ -531,6 +531,10 @@ if (this.disabledProp.includes(formItem.field)) { formItem.readOnly = true; } + if(formItem.field=='lcstatus'){ + formItem.field=formItem.field+'_text'; + formItem.readOnly=true; + } // 璁剧疆琛ㄥ崟鏍¢獙鐨勮鍒欙紝鏂囨湰 let message = "璇烽�夋嫨"; let trigger = "change"; diff --git a/Source/UBCS-WEB/src/views/work/process/leave/detail.vue b/Source/UBCS-WEB/src/views/work/process/leave/detail.vue index ac6c335..38de030 100644 --- a/Source/UBCS-WEB/src/views/work/process/leave/detail.vue +++ b/Source/UBCS-WEB/src/views/work/process/leave/detail.vue @@ -6,7 +6,7 @@ <el-button @click="handleCancel">鍏抽棴</el-button> </el-form-item> </el-row> - <el-card shadow="hover"> + <el-card v-if="false" shadow="hover"> <div slot="header"> <span>瀹℃壒淇℃伅</span> </div> @@ -26,7 +26,7 @@ </el-col> </el-row> <el-form-item label="鎻忚堪"> - <el-input :disabled="true" type="textarea" v-model="form.reason" /> + <el-input :disabled="true" type="textarea" v-model="form.processDesc" /> </el-form-item> </el-card> <el-card shadow="hover"> @@ -91,16 +91,17 @@ this.flowList = data.data; } }) - leaveDetail(this.businessId,this.processInstanceId).then(res => { + /*leaveDetail(this.businessId,this.processInstanceId).then(res => { const data = res.data; if (data.success) { this.form = data.data; } - }) + })*/ }, handleCancel() { this.$router.$avueRouter.closeTag(); - this.$router.push({path: `/work/start`}); + this.$router.go(-1) + //this.$router.push({path: `/work/start`}); } } } diff --git a/Source/UBCS-WEB/src/views/work/process/leave/form.vue b/Source/UBCS-WEB/src/views/work/process/leave/form.vue index de380a2..17da53e 100644 --- a/Source/UBCS-WEB/src/views/work/process/leave/form.vue +++ b/Source/UBCS-WEB/src/views/work/process/leave/form.vue @@ -70,7 +70,7 @@ }, { label: '鎻忚堪', - prop: 'reason', + prop: 'processDesc', type: 'textarea', span: 24, rules: [ -- Gitblit v1.9.3