Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
zhutianqi
2021-12-22 19:22:10 +08:00
8 changed files with 124 additions and 69 deletions
@@ -263,7 +263,12 @@ export default {
if (item.passInfo !== 0) { if (item.passInfo !== 0) {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
let fileData = JSON.parse(JSON.stringify(item)).dockUserList let fileData = JSON.parse(JSON.stringify(item)).dockUserList
this.dataList = fileData[0].standardInfoList for (let i = 0; i<fileData.length; i++) {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[0].standardInfoList
this.standardInfoList = this.dataList
}
}
} else { } else {
let fileData = JSON.parse(JSON.stringify(item)).dockUserList let fileData = JSON.parse(JSON.stringify(item)).dockUserList
for (let i = 0; i<fileData.length; i++) { for (let i = 0; i<fileData.length; i++) {
@@ -273,7 +273,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (item.responUserList !== undefined) { if (item.responUserList !== undefined) {
let listJSON = JSON.parse(JSON.stringify(item.responUserList)) let listJSON = JSON.parse(JSON.stringify(item.responUserList))
this.dataList = [listJSON][0].standardInfoList this.dataList = [listJSON][0]
} else { } else {
if (item.dockUserList !== undefined) { if (item.dockUserList !== undefined) {
let listJSON = JSON.parse(JSON.stringify(item.dockUserList)) let listJSON = JSON.parse(JSON.stringify(item.dockUserList))
@@ -339,9 +339,7 @@ export default {
this.backLoading = true this.backLoading = true
if (this.commentText) { if (this.commentText) {
var json = { var json = {
responUserList: { responUserList: this.dataList,
standardInfoList: this.dataList
},
actionFlag: 1, actionFlag: 1,
commentText: this.commentText commentText: this.commentText
} }
@@ -92,10 +92,11 @@
<template slot="title">选择人员</template> <template slot="title">选择人员</template>
</ProcessTitle> </ProcessTitle>
<el-form-item class="add-form-item" label="入会人员:"> <el-form-item class="add-form-item" label="入会人员:">
<el-input v-model="ch_pageData.meetingInRoleId" style="display: none;"></el-input>
<el-input <el-input
:disabled="true" placeholder="请选择参会人员"
style="width: 30%" style="width: 50%"
placeholder="请选择入会人员" @click.native="choiceRole"
v-model="ch_pageData.meetingInRole" v-model="ch_pageData.meetingInRole"
/> />
</el-form-item> </el-form-item>
@@ -131,6 +132,13 @@
@submit="handleSubmit" @submit="handleSubmit"
> >
</ProcessFooter> </ProcessFooter>
<phone-role
check-more
role-title="请选择入会成员"
:result-list="nodeList"
:is-show-phone.sync="modalshowflag"
@checkedRole="checkedRole"
/>
</div> </div>
</template> </template>
@@ -164,6 +172,7 @@ export default {
}, },
ch_rules: {}, ch_rules: {},
nodeList: [], nodeList: [],
modalshowflag: false,
commentText: '', commentText: '',
isBack: false, isBack: false,
@@ -201,7 +210,6 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.ch_pageData = JSON.parse(JSON.stringify(item)).ch_pageData this.ch_pageData = JSON.parse(JSON.stringify(item)).ch_pageData
this.uploadFileLength = this.ch_pageData.fileTextList.length this.uploadFileLength = this.ch_pageData.fileTextList.length
this.ch_pageData.meetingInRole = this.$store.getters.userInfo.userName
this.roleForm = JSON.parse(JSON.stringify(item)).roleList this.roleForm = JSON.parse(JSON.stringify(item)).roleList
}) })
}, },
@@ -270,6 +278,28 @@ export default {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId; window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
} }
}, },
choiceRole () {
this.nodeList = []
if ( this.ch_pageData.meetingInRoleId.length > 0) {
this.nodeList = this.ch_pageData.meetingInRoleId.split(',')
}
this.modalshowflag = true
},
checkedRole (data) {
var idList = ''
var nameList = ''
data.forEach( item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.ch_pageData.meetingInRoleId = idList
this.ch_pageData.meetingInRole = nameList
},
} }
} }
</script> </script>
@@ -96,9 +96,11 @@
<template slot="title">选择人员</template> <template slot="title">选择人员</template>
</ProcessTitle> </ProcessTitle>
<el-form-item class="add-form-item" label="入会人员:"> <el-form-item class="add-form-item" label="入会人员:">
<el-input v-model="rh_pageData.comityOpRoleId" style="display: none;"></el-input>
<el-input <el-input
:disabled="true" placeholder="请选择入会成员"
style="width: 30%" style="width: 50%"
@click.native="choiceRole"
v-model="rh_pageData.comityOpRole" v-model="rh_pageData.comityOpRole"
/> />
</el-form-item> </el-form-item>
@@ -134,6 +136,13 @@
@submit="handleSubmit" @submit="handleSubmit"
> >
</ProcessFooter> </ProcessFooter>
<phone-role
check-more
role-title="请选择入会成员"
:result-list="nodeList"
:is-show-phone.sync="modalshowflag"
@checkedRole="checkedRole"
/>
</div> </div>
</template> </template>
@@ -177,6 +186,7 @@ export default {
commentText: '', commentText: '',
roleShowflag: false, roleShowflag: false,
nodeList: [], nodeList: [],
modalshowflag: false,
detailData: [], detailData: [],
loading: false, loading: false,
@@ -210,7 +220,6 @@ export default {
getFormFieldList(item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.rh_pageData = JSON.parse(JSON.stringify(item)).rh_pageData this.rh_pageData = JSON.parse(JSON.stringify(item)).rh_pageData
this.rh_pageData.comityOpRole = this.$store.getters.userInfo.userName
this.roleForm = JSON.parse(JSON.stringify(item)).roleList this.roleForm = JSON.parse(JSON.stringify(item)).roleList
this.infoSourcesLength = this.rh_pageData.infoSources.length this.infoSourcesLength = this.rh_pageData.infoSources.length
// this.rh_pageData.comityFileNum = this.fileTextList // this.rh_pageData.comityFileNum = this.fileTextList
@@ -283,7 +292,28 @@ export default {
}); });
} }
}) })
} },
choiceRole () {
this.nodeList = []
if ( this.rh_pageData.comityOpRoleId.length > 0) {
this.nodeList = this.rh_pageData.comityOpRoleId.split(',')
}
this.modalshowflag = true
},
checkedRole (data) {
var idList = ''
var nameList = ''
data.forEach( item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.rh_pageData.comityOpRoleId = idList
this.rh_pageData.comityOpRole = nameList
},
} }
} }
</script> </script>
@@ -55,6 +55,10 @@
<el-table-column prop="dutyEngineer" width="150" label="责任工程师" align="center"/> <el-table-column prop="dutyEngineer" width="150" label="责任工程师" align="center"/>
<el-table-column label="选择分发责任人" prop="dutyPeopleInfo" align="center"> <el-table-column label="选择分发责任人" prop="dutyPeopleInfo" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input
v-model="scope.row.dutyPeopleInfoId"
style="display: none"
/>
<el-input <el-input
@click.native="clickOpen(scope.row)" @click.native="clickOpen(scope.row)"
v-model="scope.row.dutyPeopleInfo" v-model="scope.row.dutyPeopleInfo"
@@ -212,16 +216,21 @@ export default {
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
this.$message.warning("请选择至少一条数据进行分发责任人"); this.$message.warning("请选择至少一条数据进行分发责任人");
} else { } else {
this.nodeList = [] this.phoneRoleList = []
this.nodeList.push(id) if (this.multipleSelection[0].dutyPeopleInfoId.length > 0) {
this.phoneRoleList = this.multipleSelection[0].dutyPeopleInfoId.split(',')
}
this.modalshowflag = true this.modalshowflag = true
} }
}, },
// 每行选择负责人点击操作 // 每行选择负责人点击操作
clickOpen(val, id) { clickOpen(val, id) {
console.log()
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.rowDutyPeople = val this.rowDutyPeople = val
this.phoneRoleList = this.rowDutyPeople if (this.rowDutyPeople.dutyPeopleId.length > 0) {
this.phoneRoleList = this.rowDutyPeople.dutyPeopleId.split(',')
}
this.drawerTitle = '选择分发责任人' this.drawerTitle = '选择分发责任人'
this.modalshowflag = true this.modalshowflag = true
}, },
@@ -235,8 +244,8 @@ export default {
// 转办按钮 // 转办按钮
handleTurnTo() { handleTurnTo() {
this.phoneRoleList = []
this.modalshowflag = true this.modalshowflag = true
this.phoneRoleList = this.roleTransfer
this.drawerTitle = '转办处理人' this.drawerTitle = '转办处理人'
}, },
// 保存按钮 // 保存按钮
@@ -306,8 +315,6 @@ export default {
drawerCheck (data) { drawerCheck (data) {
if (this.drawerTitle === '转办处理人') { if (this.drawerTitle === '转办处理人') {
this.roleTransfer = data
this.phoneRoleList = this.roleTransfer
this.turnLoading = true this.turnLoading = true
changeAssigneeNew({ changeAssigneeNew({
taskId: this.taskIds, // 任务id taskId: this.taskIds, // 任务id
@@ -324,9 +331,11 @@ export default {
} }
}) })
} else { } else {
this.roleDutyPeople = data if (data.length > 0) {
this.phoneRoleList = this.roleDutyPeople this.roleDutyPeople = data[0].id
this.roleRow = data[0] this.phoneRoleList = this.roleDutyPeople.split(',')
this.roleRow = data[0]
}
// 选取负责人时的操作 // 选取负责人时的操作
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
this.rowDutyPeople.dutyPeopleInfo = this.roleRow.name this.rowDutyPeople.dutyPeopleInfo = this.roleRow.name
@@ -344,30 +353,6 @@ export default {
} }
this.modalshowflag = false this.modalshowflag = false
}, },
//查询按钮
/*getTableByPage({ standId, productName, responsibleUnit }) {//多条件和模糊查询
this.realList = this.dataList.filter(item => {
let matchId = true; // 标准号 筛选
let matchName = true; // 项目名称 筛选
let matchUnit = true; // 部门 筛选
if (standId) {
const keysId = standId
.toUpperCase() // 转大写
.replace(' ', '') // 删掉空格
.split('') // 切割成 单个字
matchId = keysId.every(key => item.standId.toUpperCase().includes(key));
}
if (productName) {
matchName = item.productName === productName;
}
if (responsibleUnit) {
matchUnit = item.responsibleUnit === responsibleUnit;
}
return matchId && matchName && matchUnit;
})
this.dataList = this.realList
},*/
// 点击查看 // 点击查看
handlePreview (item) { handlePreview (item) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
@@ -56,6 +56,10 @@
<el-table-column label="选择责任人" prop="dutyPeople" width="200" align="center"> <el-table-column label="选择责任人" prop="dutyPeople" width="200" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: inline;"> <div style="display: inline;">
<el-input
v-model="scope.row.dutyPeopleInfoId"
style="display: none"
/>
<el-input <el-input
class="input-button" class="input-button"
style="width: 60%" style="width: 60%"
@@ -186,6 +190,13 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (item.passInfo !== 0) { if (item.passInfo !== 0) {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
let fileData = JSON.parse(JSON.stringify(item)).dockUserList
for (let i = 0; i<fileData.length; i++) {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[0].standardInfoList
this.standardInfoList = this.dataList
}
}
} else { } else {
let fileData = JSON.parse(JSON.stringify(item)).dockUserList let fileData = JSON.parse(JSON.stringify(item)).dockUserList
for (let i = 0; i<fileData.length; i++) { for (let i = 0; i<fileData.length; i++) {
@@ -201,8 +212,9 @@ export default {
selectPeople(val) { selectPeople(val) {
this.$refs.multipleTable.clearSelection(); this.$refs.multipleTable.clearSelection();
this.newDataList = val this.newDataList = val
this.nodeList = [] if (this.newDataList.dutyPeopleId.length > 0) {
this.phoneRoleList = this.roleDutyPeople this.phoneRoleList = this.newDataList.dutyPeopleId.split(',')
}
this.showPage = true this.showPage = true
this.roleTitle = '选择人员信息' this.roleTitle = '选择人员信息'
}, },
@@ -211,8 +223,11 @@ export default {
if (this.selectTableMore.length === 0) { if (this.selectTableMore.length === 0) {
this.$message.warning("请选择至少一条数据进行分发责任人"); this.$message.warning("请选择至少一条数据进行分发责任人");
} else { } else {
this.nodeList = [] this.phoneRoleList = []
this.nodeList.push(id) if (this.multipleSelection[0].dutyPeopleId.length > 0) {
this.phoneRoleList = this.multipleSelection[0].dutyPeopleId.split(',')
}
this.modalshowflag = true
this.modalshowflag = true this.modalshowflag = true
} }
}, },
@@ -225,7 +240,7 @@ export default {
}, },
// 转办按钮 // 转办按钮
handleTurnTo() { handleTurnTo() {
this.phoneRoleList = this.roleTransfer this.phoneRoleList = []
this.showPage = true this.showPage = true
this.roleTitle = '转办处理人' this.roleTitle = '转办处理人'
}, },
@@ -351,12 +366,10 @@ export default {
phoneSumit (data) { phoneSumit (data) {
if (this.roleTitle === '转办处理人') { if (this.roleTitle === '转办处理人') {
this.roleTransfer = data
this.phoneRoleList = this.roleTransfer
this.turnLoading = true this.turnLoading = true
changeAssigneeNew({ changeAssigneeNew({
taskId: this.taskIds, // 任务id taskId: this.taskIds, // 任务id
assignee: this.phoneRoleList[0].id, // 被委托人 assignee: data[0].id, // 被委托人
userId: this.userId, // 委托人 userId: this.userId, // 委托人
pId: this.pId // 流程实例 pId: this.pId // 流程实例
}).then(res =>{ }).then(res =>{
@@ -371,17 +384,19 @@ export default {
} }
}) })
} else { } else {
this.roleDutyPeople = data if (data.length > 0) {
this.phoneRoleList = this.roleDutyPeople this.roleDutyPeople = data[0].id
this.roleForm = data[0] this.phoneRoleList = this.roleDutyPeople.split(',')
this.roleForm = data[0]
}
// 选择责任人时input框内值 // 选择责任人时input框内值
if (this.selectTableMore.length ===0) { if (this.selectTableMore.length ===0) {
this.newDataList.dutyPeople = this.roleForm.userName this.newDataList.dutyPeople = this.roleForm.name
this.newDataList.dutyPeopleId = this.roleForm.usId this.newDataList.dutyPeopleId = this.roleForm.id
}else { }else {
this.selectTableMore.forEach(item => { this.selectTableMore.forEach(item => {
item.dutyPeople = this.roleForm.userName item.dutyPeople = this.roleForm.name
item.dutyPeopleId = this.roleForm.usId item.dutyPeopleId = this.roleForm.id
}) })
} }
this.lastDataList = this.dataList this.lastDataList = this.dataList
@@ -90,13 +90,6 @@
> >
</el-upload> </el-upload>
</el-dialog> </el-dialog>
<!-- <Role-tree
check-box
:is-title="drawerTitle"
:is-visible.sync="modalshowflag"
:nodeList="nodeList"
@checkedRole="drawerCheck"
/>-->
<!-- 写有 check-more 是多人没有就是单人 --> <!-- 写有 check-more 是多人没有就是单人 -->
<phone-role <phone-role
:role-title="roleTitle" :role-title="roleTitle"
@@ -247,7 +240,6 @@ export default {
}, },
// 转办选人框 // 转办选人框
phoneSumit (data) { phoneSumit (data) {
this.phoneRoleList = data
changeAssigneeNew({ changeAssigneeNew({
taskId: this.taskIds, // 任务id taskId: this.taskIds, // 任务id
assignee: data[0].id, // 被委托人 assignee: data[0].id, // 被委托人