Merge pull request 'master' (#470) from master into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/470
This commit is contained in:
2024-07-03 14:58:32 +00:00
3 changed files with 9 additions and 3 deletions

View File

@@ -153,8 +153,6 @@ import {
import {useProcessStore} from '@/stores/processStore.js'; import {useProcessStore} from '@/stores/processStore.js';
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue'; import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
import OperationRender from '@/views/workflow/common/OperationRender.vue' import OperationRender from '@/views/workflow/common/OperationRender.vue'
import {ref} from "vue";
import UserPicker from "@/views/workflow/process/common/UserPicker.vue"; import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
const userList = ref([]) const userList = ref([])
@@ -213,6 +211,7 @@ const showPersonnelPicker = (row, index) => {
id: row.researchPersonnelId, id: row.researchPersonnelId,
name: row.researchPersonnel, name: row.researchPersonnel,
companyName: row.companyName, companyName: row.companyName,
accountType: row.accountType,
} }
userList.value=[userObj] userList.value=[userObj]
} }
@@ -229,6 +228,8 @@ const selected = (select) => {
if (index === currentIndex.value) { if (index === currentIndex.value) {
item.researchPersonnelId = select[0].id item.researchPersonnelId = select[0].id
item.researchPersonnel = select[0].name item.researchPersonnel = select[0].name
item.companyName = select[0].companyName
item.accountType = select[0].accountType
} }
}) })
// userList.value=select // userList.value=select
@@ -382,6 +383,7 @@ const handleResubmit = (instance) => {
}) })
return; return;
} }
console.log('formData.value.apportionmentMonth',new Date(formData.value.apportionmentMonth))
let params = { let params = {
allocationId: formData.value.allocationId, allocationId: formData.value.allocationId,
shareName: formData.value.shareName, shareName: formData.value.shareName,

View File

@@ -163,7 +163,8 @@ const selected = (select) => {
let userInfo = { let userInfo = {
id: val.id, id: val.id,
name: val.name, name: val.name,
avatar: val.avatar, companyName: val.companyName,
accountType: val.accountType,
} }
userInfoList.push(userInfo) userInfoList.push(userInfo)
} }

View File

@@ -114,6 +114,8 @@ const selected = (select) => {
for (const selectElement of select) { for (const selectElement of select) {
tableForm.value.projectChargePerson = selectElement.id tableForm.value.projectChargePerson = selectElement.id
tableForm.value.projectChargePersonName = selectElement.name tableForm.value.projectChargePersonName = selectElement.name
tableForm.value.companyName = selectElement.companyName
tableForm.value.accountType = selectElement.accountType
} }
userList.value = select userList.value = select
} }
@@ -159,6 +161,7 @@ const init = async () => {
id: data.projectChargePerson, id: data.projectChargePerson,
name: data.projectChargePersonName, name: data.projectChargePersonName,
companyName: data.companyName, companyName: data.companyName,
accountType: data.accountType,
} }
userList.value.push(userObj) userList.value.push(userObj)
} }