Explorar el Código

前端流程调整

Zimo hace 23 horas
padre
commit
73dd414efe

+ 1 - 1
src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue

@@ -39,7 +39,7 @@
             />
           </el-card>
 
-          <el-form-item label="是否转工单" prop="ifTrans" v-if="company!='rh'">
+          <el-form-item label="是否转工单" prop="ifTrans" v-if="company!='rh' &&processInstance.name==='故障上报流程'">
             <el-select
               v-model="approveReasonForm.ifTrans"
               placeholder="请选择是否转工单"

+ 5 - 2
src/views/bpm/processInstance/detail/index.vue

@@ -214,8 +214,11 @@ const getApprovalDetail = async () => {
     // 获得用户列表
     userOptions.value = await UserApi.getSimpleUserList()
     const userId = useUserStore().getUser.id
-    deptUsers.value = await UserApi.getMaintainUsers(userId, processInstance.value.businessKey);
-    company.value = await IotDeviceApi.getCompany(processInstance.value.businessKey)
+    debugger
+    if (processInstance.value.name!=='QHSE事故上报') {
+      deptUsers.value = await UserApi.getMaintainUsers(userId, processInstance.value.businessKey);
+      company.value = await IotDeviceApi.getCompany(processInstance.value.businessKey)
+    }
     debugger
     // 设置表单信息
     if (processDefinition.value.formType === BpmModelFormType.NORMAL) {