|
@@ -112,7 +112,7 @@
|
|
|
import {ref, watch, onMounted} from "vue";
|
|
|
import tasksFlowApi from '~api/tasks/flow';
|
|
|
import {getArrValue, deepClone} from "js-fast-way"
|
|
|
-import {checkCustomFlowUserIsEVisaPermissions} from '~api/other';
|
|
|
+import {checkCustomFlowUserIsEVisaPermissions,checkCustomFlowUserIsEVisaPermissionsquery} from '~api/other';
|
|
|
import Draggable from "vuedraggable";
|
|
|
|
|
|
//参数
|
|
@@ -291,6 +291,8 @@ const sureSignUserClick = () => {
|
|
|
flowJson['theLogPrimaryKeyId'] = typeDatas.value
|
|
|
} else if (type === 'wbs') {
|
|
|
flowJson['privatePKeyId'] = typeDatas.value
|
|
|
+ }else if(type === 'query'){
|
|
|
+ flowJson['privatePKeyId'] = typeDatas.value
|
|
|
}
|
|
|
//封装数据
|
|
|
dataList.forEach(item => {
|
|
@@ -307,7 +309,10 @@ const sureSignUserClick = () => {
|
|
|
//效验人员
|
|
|
if (type === 'first' || type === 'log' || type === 'wbs') {
|
|
|
getCheckCustomFlowUserIsEVisaPermissions(flowJson, newUser, newUserId, users)
|
|
|
- } else {
|
|
|
+ }else if(type === 'query') {
|
|
|
+ getCheckCustomFlowUserIsEVisaPermissionsquery(flowJson, newUser, newUserId, users)
|
|
|
+ }
|
|
|
+ else {
|
|
|
showModal.value = false
|
|
|
sureSignUserLoading.value = false
|
|
|
emit('change', newUser, newUserId, users)
|
|
@@ -334,6 +339,23 @@ const getCheckCustomFlowUserIsEVisaPermissions = async (flowJson, newUser, newUs
|
|
|
emit('change', [], [], '')
|
|
|
}
|
|
|
}
|
|
|
+//资料查询页面
|
|
|
+const getCheckCustomFlowUserIsEVisaPermissionsquery = async (flowJson, newUser, newUserId, users) => {
|
|
|
+ const {error, code, data} = await checkCustomFlowUserIsEVisaPermissionsquery({
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId: contractId.value,
|
|
|
+ customFlowUserList: newUserId,
|
|
|
+ ...flowJson
|
|
|
+ })
|
|
|
+ //处理数据
|
|
|
+ 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>
|