|
@@ -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>
|