فهرست منبع

日志首件上报参数修改

duy 1 سال پیش
والد
کامیت
c432b65e60
2فایلهای تغییر یافته به همراه34 افزوده شده و 3 حذف شده
  1. 6 0
      src/api/modules/other.js
  2. 28 3
      src/global/components/hc-tasks-user/index.vue

+ 6 - 0
src/api/modules/other.js

@@ -123,6 +123,12 @@ export const checkCustomFlowUserIsEVisaPermissions = (form, msg = true) => httpA
     method: 'post',
     data: form,
 }, msg)
+//检查所选的流程环节处理人是否具有审批权限(日志和首件)
+export const checkCustomFlowUserIsEVisaPermissions3 = (form, msg = true) => httpApi({
+    url: '/api/blade-business/eVisaTaskCheck/checkCustomFlowUserIsEVisaPermissions3',
+    method: 'post',
+    data: form,
+}, msg)
 //资料查询页面
 export const checkCustomFlowUserIsEVisaPermissionsquery = (form, msg = true) => httpApi({
     url: '/api/blade-business/eVisaTaskCheck/batchCheckCustomFlowUserIsEVisaPermissions2',

+ 28 - 3
src/global/components/hc-tasks-user/index.vue

@@ -143,7 +143,7 @@
 import { onMounted, ref, watch } from 'vue'
 import tasksFlowApi from '~api/tasks/flow'
 import { deepClone, getArrValue } from 'js-fast-way'
-import { checkCustomFlowUserIsEVisaPermissions, checkCustomFlowUserIsEVisaPermissionsquery } from '~api/other'
+import { checkCustomFlowUserIsEVisaPermissions, checkCustomFlowUserIsEVisaPermissions3, checkCustomFlowUserIsEVisaPermissionsquery } from '~api/other'
 import Draggable from 'vuedraggable'
 
 //参数
@@ -366,7 +366,8 @@ const sureSignUserClick = () => {
         if (type === 'first') {
             flowJson['firstId'] = typeDatas.value
         } else if (type === 'log') {
-            flowJson['theLogPrimaryKeyId'] = typeDatas.value
+            // flowJson['theLogPrimaryKeyId'] = typeDatas.value
+            flowJson['theLogPrimaryKeyId'] = nodeId.value
         } else if (type === 'wbs') {
             flowJson['privatePKeyId'] = typeDatas.value
         } else if (type === 'query') {
@@ -385,8 +386,10 @@ const sureSignUserClick = () => {
             }
         })
         //效验人员
-        if (type === 'first' || type === 'log' || type === 'wbs') {
+        if (type === 'wbs') {
             getCheckCustomFlowUserIsEVisaPermissions(flowJson, newUser, newUserId, users)
+        } else if (type === 'first' || type === 'log' ) {
+            getCheckCustomFlowUserIsEVisaPermissions3(flowJson, newUser, newUserId, users)
         } else if (type === 'query') {
             getCheckCustomFlowUserIsEVisaPermissionsquery(flowJson, newUser, newUserId, users)
         } else {
@@ -441,6 +444,28 @@ const getCheckCustomFlowUserIsEVisaPermissionsquery = async (flowJson, newUser,
         emit('change', [], [], '')
     }
 }
+
+//日志和首件页面
+const getCheckCustomFlowUserIsEVisaPermissions3 = async (flowJson, newUser, newUserId, users) => {
+    const { error, code, data } = await checkCustomFlowUserIsEVisaPermissions3({
+        projectId: projectId.value,
+        contractId: contractId.value,
+        customFlowUserList: newUserId,
+        ...flowJson,
+        // nodeId:nodeId.value,
+        classifyType:classifyType.value,
+        tableOwner:tableOwner.value,
+        infoIds:infoIds.value,
+    })
+    //处理数据
+    sureSignUserLoading.value = false
+    if (!error && code === 200 && data === true) {
+        showModal.value = false
+        emit('change', newUser, newUserId, users)
+    } else {
+        emit('change', [], [], '')
+    }
+}
 </script>
 
 <style lang="scss" scoped>