|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, watch } from 'vue'
|
|
|
-import { arrIndex, arrToKey, formValidate, getArrValue } from 'js-fast-way'
|
|
|
+import { arrIndex, arrToKey, formValidate, getArrValue, getObjValue } from 'js-fast-way'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import mainApi from '~api/tasks/flow'
|
|
|
|
|
@@ -109,6 +109,33 @@ const getProcessData = async () => {
|
|
|
} else {
|
|
|
processData.value = processDefaultData
|
|
|
}
|
|
|
+}
|
|
|
+//获取流程详情
|
|
|
+const getFixedFlowDetail = async (id)=>{
|
|
|
+ const { error, code, data } = await mainApi.queryFixedFlowDetail({ id: id })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ let users = '', res = getObjValue(data)
|
|
|
+ const list = getArrValue(res['fixedBranchVOList'])
|
|
|
+ console.log(list, 'list')
|
|
|
+ for (let index = 0; index < list.length; index++) {
|
|
|
+ const element = list[index]
|
|
|
+ const item = getArrValue(element['userList'])
|
|
|
+ for (let index1 = 0; index1 < item.length; index1++) {
|
|
|
+ const element1 = item[index1]
|
|
|
+ if (users) {
|
|
|
+ users += `,${element1['userName']}`
|
|
|
+ } else {
|
|
|
+ users = `${element1['userName']}`
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ linkUserJoinString.value = users
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//基础变量
|
|
@@ -135,6 +162,8 @@ const handleProcessValue = (val) => {
|
|
|
const list = processData.value
|
|
|
const index = arrIndex(list, 'id', val)
|
|
|
linkUserJoinString.value = list[index]?.linkUserJoinString
|
|
|
+
|
|
|
+ getFixedFlowDetail(val)
|
|
|
} else {
|
|
|
linkUserJoinString.value = ''
|
|
|
diyProcessUser.value = true
|