@@ -365,14 +368,16 @@ const submitParam = (item) => {
}
}
const handleSubmit = async (instance) => {
+ console.log('submitParam(formData.value)', submitParam(formData.value))
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
const {msg, code} = await addRequirement(submitParam(formData.value))
ElNotification({
@@ -427,7 +432,7 @@ const getDetailInfo = async () => {
if (res.code === 1000) {
selectedCompanyList.value = getCompanyOptionItem(res.data.companyIds)
formData.value = res.data
- if(res.data.fileList.length!==0){
+ if (res.data.fileList.length !== 0) {
showTable.value = false
nextTick(() => {
showTable.value = true
diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue
index 6d19535..a76ba5c 100644
--- a/src/views/project-demand/summary/add.vue
+++ b/src/views/project-demand/summary/add.vue
@@ -214,7 +214,7 @@
-
+
@@ -294,7 +294,7 @@ const formData = ref({
const rules = reactive({
projectName: [{required: true, message: '请输入项目名称', trigger: 'blur'}],
- // specialFundId: [{required: true, message: '请选择专项资金', trigger: 'blur'}],
+ specialFundId: [{required: true, message: '请选择专项资金', trigger: 'blur'}],
startTime: [{required: true, message: '请选择开始时间', trigger: ['blur', 'change']}],
endTime: [{required: true, message: '请选择结束时间', trigger: ['blur', 'change']}],
rdSubject: [{required: true, message: '请选择研发主体', trigger: ['blur', 'change']}],
@@ -401,11 +401,12 @@ const handleSubmit = debounce(async (instance) => {
if (!instance) return
instance.validate(async (valid, fields) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
let otherFiles = []
otherFileList.value.forEach(item => {
diff --git a/src/views/project-management/implementation/check.vue b/src/views/project-management/implementation/check.vue
index 1d10b04..588f6d6 100644
--- a/src/views/project-management/implementation/check.vue
+++ b/src/views/project-management/implementation/check.vue
@@ -89,11 +89,12 @@ const handleSubmit = (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
let files = []
otherFileList.value.forEach(item => {
@@ -139,11 +140,12 @@ const handleResubmit = (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
let otherFiles = []
if (name.value === 'Implementation/edit') {
diff --git a/src/views/project-management/implementation/upload.vue b/src/views/project-management/implementation/upload.vue
index 6a2a087..262e2d1 100644
--- a/src/views/project-management/implementation/upload.vue
+++ b/src/views/project-management/implementation/upload.vue
@@ -183,11 +183,12 @@ const handleSubmit = async (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
let params = {
fileList: fileList.value,
diff --git a/src/views/project-management/implementation/uploadFee.vue b/src/views/project-management/implementation/uploadFee.vue
index 4ab7af2..dff4c25 100644
--- a/src/views/project-management/implementation/uploadFee.vue
+++ b/src/views/project-management/implementation/uploadFee.vue
@@ -173,11 +173,12 @@ const handleSubmit = (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
instance.clearValidate()
tableForm.tableData.forEach(item => {
diff --git a/src/views/project-management/initiation/apply.vue b/src/views/project-management/initiation/apply.vue
index 600263c..c39704d 100644
--- a/src/views/project-management/initiation/apply.vue
+++ b/src/views/project-management/initiation/apply.vue
@@ -138,11 +138,12 @@ const handleSubmit = (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
let files = []
otherFileList.value.forEach(item => {
diff --git a/src/views/special-fund/add.vue b/src/views/special-fund/add.vue
index d287762..b37cd65 100644
--- a/src/views/special-fund/add.vue
+++ b/src/views/special-fund/add.vue
@@ -189,11 +189,12 @@ const handleSubmit = async (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
const {msg, code} = await addFund(submitParam(formData.value))
ElNotification({
From d2ddf378bfb76e0862982bd96d952023649de9d2 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Wed, 3 Jul 2024 01:44:28 +0800
Subject: [PATCH 50/60] =?UTF-8?q?feat=20:=20=E4=BC=98=E5=8C=96=E6=8C=87?=
=?UTF-8?q?=E5=AE=9A=E7=94=A8=E6=88=B7=E6=97=B6=E8=AF=A5=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E7=9A=84=E7=9F=A9=E9=98=B5=E7=8A=B6=E6=80=81=E6=A3=80=E6=9F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/user/user.js | 15 ++-
src/views/project-demand/summary/add.vue | 18 +--
.../workflow/process/common/UserPicker.vue | 30 ++++-
.../process/config/ApprovalNodeConfig.vue | 110 +++++++++---------
4 files changed, 102 insertions(+), 71 deletions(-)
diff --git a/src/api/user/user.js b/src/api/user/user.js
index 96d078f..e0a84c1 100644
--- a/src/api/user/user.js
+++ b/src/api/user/user.js
@@ -56,8 +56,8 @@ export const getUserDetail = (userId) => {
// 操作
export const operate = (data, type) => {
// console.log(type ,'type');
- if(data.userId && type !== '0') return editUser(data)
- else if(type == '0') return editUserOA(data)
+ if (data.userId && type !== '0') return editUser(data)
+ else if (type == '0') return editUserOA(data)
return addUser(data)
}
@@ -186,16 +186,23 @@ export const unbindAllUserByPost = (postId) => {
})
}
-export const bindAccount=(data)=>{
+export const bindAccount = (data) => {
return request({
url: '/admin/mosr/user/bind/account',
method: 'post',
data
})
}
-export const getBindAccount=(userId)=>{
+export const getBindAccount = (userId) => {
return request({
url: `/admin/mosr/user/bind/account/info/${userId}`,
method: 'get'
})
}
+
+export const checkMatrix = (userId) => {
+ return request({
+ url: `/admin/mosr/user/matrix?userId=` + userId,
+ method: 'get'
+ })
+}
diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue
index a76ba5c..f80fd8b 100644
--- a/src/views/project-demand/summary/add.vue
+++ b/src/views/project-demand/summary/add.vue
@@ -415,14 +415,6 @@ const handleSubmit = debounce(async (instance) => {
if (formData.value.singleFile !== undefined) {
formData.value.singleFile = getFileParam(formData.value.singleFile)
}
- formData.value.resultForm=JSON.stringify(formData.value.resultForm)
- let params = {
- ...formData.value,
- deploymentId: deploymentId.value,
- fileList: otherFiles,
- requirementId: route.query.id ? route.query.id : '-1'
- }
- console.log('params', params)
if (!attachment.value.isSingleFile) {
attachment.value.validate()
ElNotification({
@@ -433,7 +425,15 @@ const handleSubmit = debounce(async (instance) => {
return;
} else {
attachment.value.clearValidate()
+ formData.value.resultForm=JSON.stringify(formData.value.resultForm)
}
+ let params = {
+ ...formData.value,
+ deploymentId: deploymentId.value,
+ fileList: otherFiles,
+ requirementId: route.query.id ? route.query.id : '-1'
+ }
+ console.log('params', params)
let res = await requirementReported(params)
ElNotification({
title: '提示',
@@ -465,11 +465,11 @@ const handleResubmit = debounce(() => {
return;
} else {
attachment.value.clearValidate()
+ formData.value.resultForm=JSON.stringify(formData.value.resultForm)
}
if (formData.value.isSpecialFund && formData.value.specialFund === null) {
formData.value.specialFund = getFundName(formData.value.specialFundId)
}
- formData.value.resultForm=JSON.stringify(formData.value.resultForm)
let params = {
...formData.value,
deploymentId: deploymentId.value,
diff --git a/src/views/workflow/process/common/UserPicker.vue b/src/views/workflow/process/common/UserPicker.vue
index 459236c..d168e91 100644
--- a/src/views/workflow/process/common/UserPicker.vue
+++ b/src/views/workflow/process/common/UserPicker.vue
@@ -70,8 +70,9 @@
-
-
diff --git a/src/views/project-management/implementation/check.vue b/src/views/project-management/implementation/check.vue
deleted file mode 100644
index 588f6d6..0000000
--- a/src/views/project-management/implementation/check.vue
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 提交
- 重新提交
- 返回
-
-
-
-
-
-
-
diff --git a/src/views/project-management/implementation/phase.vue b/src/views/project-management/implementation/phase.vue
index f71e6d6..4d8e78d 100644
--- a/src/views/project-management/implementation/phase.vue
+++ b/src/views/project-management/implementation/phase.vue
@@ -10,7 +10,7 @@
diff --git a/src/views/project-management/initiation/apply.vue b/src/views/project-management/initiation/apply.vue
deleted file mode 100644
index c39704d..0000000
--- a/src/views/project-management/initiation/apply.vue
+++ /dev/null
@@ -1,277 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 提交
- 重新提交
- 返回
-
-
-
-
-
-
-
diff --git a/src/views/project-management/mobledetail/ProjectApplyMoblie.vue b/src/views/project-management/mobledetail/ProjectApplyMoblie.vue
index 5ce838e..993eb5e 100644
--- a/src/views/project-management/mobledetail/ProjectApplyMoblie.vue
+++ b/src/views/project-management/mobledetail/ProjectApplyMoblie.vue
@@ -16,7 +16,7 @@
From 9a789db8a71c973b36c04af988b0d0965c53aa15 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Wed, 3 Jul 2024 21:31:05 +0800
Subject: [PATCH 57/60] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E5=88=86?=
=?UTF-8?q?=E6=91=8A=E7=BC=96=E8=BE=91=E4=BC=A0=E5=8F=82=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/AttachmentUpload.vue | 25 ++++++++++------------
src/views/expense-management/share/add.vue | 19 +++++++++++-----
2 files changed, 25 insertions(+), 19 deletions(-)
diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue
index 3a317b4..70bb806 100644
--- a/src/components/AttachmentUpload.vue
+++ b/src/components/AttachmentUpload.vue
@@ -223,21 +223,20 @@ const isSingleFile = ref(false)
const allFileList = ref([])
const deleteFileVal = ref({})
const singleFileList = ref([])
-if (props.formData.fileList !== null && props.formData.fileList?.length > 0) {
- allFileList.value = props.formData.fileList
-}
-
+// if (props.formData.fileList !== null && props.formData.fileList?.length > 0) {
+// allFileList.value = props.formData.fileList
+// }
watch(() => props.showSingleTable, (newVal) => {
props.showSingleTable = newVal
}, {deep: true})
-// watch(() => props.formData.fileList, (newVal) => {
-// console.log('newVal-fileList', newVal)
-// if (props.preview) {
-// // newVal?.forEach(item => {
-// // allFileList.value.push(item)
-// // })
-// }
-// }, {deep: true})
+watch(() => props.formData.fileList, (newVal) => {
+ console.log('newVal-fileList', newVal)
+ if (props.preview) {
+ newVal?.forEach(item => {
+ allFileList.value.push(item)
+ })
+ }
+}, {immediate: true})
// watch(() => props.otherFileList, (newVal) => {
// props.otherFileList=newVal
// if (props.preview) {
@@ -280,8 +279,6 @@ const handleDelete = (row, type) => {
singleFileList.value.splice(singleFileList.value.findIndex((item) => item.fileId === row.fileId), 1);
isSingleFile.value = false
} else {
- console.log('allFileList.value',allFileList.value,row)
- console.log('allFileList.value.findIndex((item) => item.id === row.fileId)',allFileList.value.findIndex((item) => item.id === row.fileId))
allFileList.value.splice(allFileList.value.findIndex((item) => item.fileId === row.fileId), 1);
}
}
diff --git a/src/views/expense-management/share/add.vue b/src/views/expense-management/share/add.vue
index 1e868fe..d74d6b5 100644
--- a/src/views/expense-management/share/add.vue
+++ b/src/views/expense-management/share/add.vue
@@ -115,7 +115,7 @@
-
流程图
+
流程图
{
name: row.researchPersonnel,
companyName: row.companyName,
}
- userList.value.push(userObj)
+ userList.value=[userObj]
}
- userPicker.value.showUserPicker()
+ nextTick(() => {
+ userPicker.value.showUserPicker()
+ })
}
const selected = (select) => {
+ console.log('select',select)
if (!select || select.length === 0) {
return
}
@@ -228,7 +231,7 @@ const selected = (select) => {
item.researchPersonnel = select[0].name
}
})
- userList.value=select
+ // userList.value=select
}
const getResearchOptions = async () => {
const res = await getResearchUser()
@@ -353,13 +356,18 @@ const handleResubmit = (instance) => {
item.performance = null
}
newUsrAllocationsObj = {
+ allocationId: formData.value.allocationId,
+ id: item.id,
projectId: item.projectId,
projectName: item.projectName,
+ researchPersonnel: item.researchPersonnel,
researchPersonnelId: item.researchPersonnelId,
wagesPayable: item.wagesPayable,
performance: item.performance,
reserveFund: item.reserveFund,
socialSecurity: item.socialSecurity,
+ time: item.time,
+ subtotal: item.subtotal,
annuity: item.annuity,
workday: item.workday,
researchDuration: item.researchDuration,
@@ -378,9 +386,10 @@ const handleResubmit = (instance) => {
allocationId: formData.value.allocationId,
shareName: formData.value.shareName,
apportionmentMonth: formData.value.apportionmentMonth,
- usrAllocations: newUsrAllocationsObjArray,
+ usrAllocations:newUsrAllocationsObjArray,
deploymentId: processInstanceData.value.deploymentId,
}
+ console.log('params', params, formData.value.tableData)
const {code, msg} = await editAllocation(params)
ElNotification({
title: '提示',
From 361510242cabf5f24b80da53c67dc97e86510da2 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Wed, 3 Jul 2024 21:38:51 +0800
Subject: [PATCH 58/60] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E5=8F=B0?=
=?UTF-8?q?=E8=B4=A6=E8=A1=A8=E6=A0=BC=E6=9C=80=E5=B0=8F=E9=AB=98=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../implementation/account.vue | 23 +++++++++++--------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/src/views/project-management/implementation/account.vue b/src/views/project-management/implementation/account.vue
index 5c24d7e..3a92081 100644
--- a/src/views/project-management/implementation/account.vue
+++ b/src/views/project-management/implementation/account.vue
@@ -1,12 +1,15 @@
-
- baseForm = e">
-
-
-
-
-
-
+
+
+ baseForm = e">
+
+
+
+
+
+
+
+
From bbc883a116a8237d61bfc89f5cd6e09834136d94 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Wed, 3 Jul 2024 21:52:33 +0800
Subject: [PATCH 59/60] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E6=9B=B4?=
=?UTF-8?q?=E6=96=B0=E8=A1=A8=E6=A0=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../implementation/updateTable.vue | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/project-management/implementation/updateTable.vue b/src/views/project-management/implementation/updateTable.vue
index f0155eb..950611d 100644
--- a/src/views/project-management/implementation/updateTable.vue
+++ b/src/views/project-management/implementation/updateTable.vue
@@ -10,7 +10,7 @@
{{ tableForm.projectChargePersonName }}
-
+
{{ tableForm.projectChargePersonName ? '更改' : '请选择项目负责人' }}
@@ -154,12 +154,14 @@ getBaseInfo()
const init = async () => {
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
tableForm.value = data
- let userObj = {
- id: data.projectChargePerson,
- name: data.projectChargePersonName,
- companyName: data.companyName,
+ if(data.projectChargePersonName){
+ let userObj = {
+ id: data.projectChargePerson,
+ name: data.projectChargePersonName,
+ companyName: data.companyName,
+ }
+ userList.value.push(userObj)
}
- userList.value.push(userObj)
if (code !== 1000) {
ElNotification({
title: '提示',
From 842fa7b782ea260d365c7ca4a01f39845d4c2fd8 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Wed, 3 Jul 2024 22:58:01 +0800
Subject: [PATCH 60/60] =?UTF-8?q?fix=20:=20=E4=BA=BA=E5=91=98=E9=80=89?=
=?UTF-8?q?=E6=8B=A9=E6=A1=86,=E4=B8=BB=E6=AC=A1=E8=B4=A6=E5=8F=B7?=
=?UTF-8?q?=E5=9B=9E=E6=98=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/expense-management/share/add.vue | 6 ++++--
src/views/project-management/implementation/phase.vue | 3 ++-
src/views/project-management/implementation/updateTable.vue | 3 +++
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/views/expense-management/share/add.vue b/src/views/expense-management/share/add.vue
index d74d6b5..f0917d6 100644
--- a/src/views/expense-management/share/add.vue
+++ b/src/views/expense-management/share/add.vue
@@ -153,8 +153,6 @@ import {
import {useProcessStore} from '@/stores/processStore.js';
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
import OperationRender from '@/views/workflow/common/OperationRender.vue'
-import {ref} from "vue";
-
import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
const userList = ref([])
@@ -213,6 +211,7 @@ const showPersonnelPicker = (row, index) => {
id: row.researchPersonnelId,
name: row.researchPersonnel,
companyName: row.companyName,
+ accountType: row.accountType,
}
userList.value=[userObj]
}
@@ -229,6 +228,8 @@ const selected = (select) => {
if (index === currentIndex.value) {
item.researchPersonnelId = select[0].id
item.researchPersonnel = select[0].name
+ item.companyName = select[0].companyName
+ item.accountType = select[0].accountType
}
})
// userList.value=select
@@ -382,6 +383,7 @@ const handleResubmit = (instance) => {
})
return;
}
+ console.log('formData.value.apportionmentMonth',new Date(formData.value.apportionmentMonth))
let params = {
allocationId: formData.value.allocationId,
shareName: formData.value.shareName,
diff --git a/src/views/project-management/implementation/phase.vue b/src/views/project-management/implementation/phase.vue
index 4d8e78d..54ab532 100644
--- a/src/views/project-management/implementation/phase.vue
+++ b/src/views/project-management/implementation/phase.vue
@@ -163,7 +163,8 @@ const selected = (select) => {
let userInfo = {
id: val.id,
name: val.name,
- avatar: val.avatar,
+ companyName: val.companyName,
+ accountType: val.accountType,
}
userInfoList.push(userInfo)
}
diff --git a/src/views/project-management/implementation/updateTable.vue b/src/views/project-management/implementation/updateTable.vue
index 950611d..8cfdbd6 100644
--- a/src/views/project-management/implementation/updateTable.vue
+++ b/src/views/project-management/implementation/updateTable.vue
@@ -114,6 +114,8 @@ const selected = (select) => {
for (const selectElement of select) {
tableForm.value.projectChargePerson = selectElement.id
tableForm.value.projectChargePersonName = selectElement.name
+ tableForm.value.companyName = selectElement.companyName
+ tableForm.value.accountType = selectElement.accountType
}
userList.value = select
}
@@ -159,6 +161,7 @@ const init = async () => {
id: data.projectChargePerson,
name: data.projectChargePersonName,
companyName: data.companyName,
+ accountType: data.accountType,
}
userList.value.push(userObj)
}