Merge remote-tracking branch 'origin/fix_foton_20240408' into test_20240409_for39

This commit is contained in:
wxyclub
2024-04-29 10:09:29 +08:00
10 changed files with 1901 additions and 1724 deletions
@@ -345,7 +345,7 @@
<h4>费用管理部门</h4> <h4>费用管理部门</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input :disabled="disabledXX" v-model="roleForm.feeUserId" style="display: none;"></el-input> <el-input :disabled="disabledXX" v-model="roleForm.feeUserId" style="display: none;"></el-input>
<el-input :disabled="disabledXX" v-model="roleForm.feeUser" readonly placeholder="选择费用管理部门" @click.native="choiceZRR('feeUser', '选择费用管理部门', roleForm.feeUser)"> <el-input :disabled="disabledXX" v-model="roleForm.feeUser" readonly placeholder="选择费用管理部门" @click.native="choiceFEE('feeUser', '选择费用管理部门', roleForm.feeUserId)">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -425,6 +425,12 @@
:nodeList="nodeList" :nodeList="nodeList"
@checkedRole="drawerCheck" @checkedRole="drawerCheck"
/> />
<Role-tree v-if="!disabledXX"
is-title="选择人员信息"
:is-visible.sync="roleShowflagFEE"
:nodeList="nodeList"
@checkedRole="drawerCheckFEE"
/>
<Role-tree v-if="!disabledXX" <Role-tree v-if="!disabledXX"
check-box check-box
is-title="选择联络人" is-title="选择联络人"
@@ -541,6 +547,7 @@ export default {
roleShowflag: false, roleShowflag: false,
roleShowflagOne: false, roleShowflagOne: false,
telShowflag: false, telShowflag: false,
roleShowflagFEE: false,
nodeList: [], nodeList: [],
nodeListOne: [], nodeListOne: [],
nodeListTel: [], nodeListTel: [],
@@ -759,11 +766,19 @@ export default {
// 流程阶段负责人选择 // 流程阶段负责人选择
choiceZRR(type, title, id) { choiceZRR(type, title, id) {
this.nodeList = [] this.nodeList = []
this.nodeList.push(id) if (id && id.length > 0) {
this.nodeList = id.split(',')
}
this.type = type this.type = type
this.drawerTitle = title this.drawerTitle = title
this.roleShowflag = true this.roleShowflag = true
}, },
choiceFEE(type, title, id) {
this.nodeList = []
this.nodeList = JSON.parse(JSON.stringify(id.split(',')))
this.drawerTitle = title
this.roleShowflagFEE = true
},
drawerCheck(data) { drawerCheck(data) {
var idList = '' var idList = ''
var nameList = '' var nameList = ''
@@ -786,6 +801,21 @@ export default {
} }
this.roleShowflag = false this.roleShowflag = false
}, },
drawerCheckFEE(data) {
var idList = ''
var nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id;
nameList += item.name;
});
this.roleForm.feeUser = nameList
this.roleForm.feeUserId = idList
this.roleShowflag = false
},
// 流程阶段人选择 // 流程阶段人选择
choiceZRROne(type, title, id) { choiceZRROne(type, title, id) {
@@ -393,6 +393,7 @@ export default {
let json = { let json = {
passFlag: '0', passFlag: '0',
rh_pageData: this.rh_pageData, rh_pageData: this.rh_pageData,
commentText: this.textarea,
roleList: this.roleForm roleList: this.roleForm
} }
if (this.taskInfo === '标准法规部主管领导审核') { if (this.taskInfo === '标准法规部主管领导审核') {
@@ -273,7 +273,7 @@
<h4>管理推进部</h4> <h4>管理推进部</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input :disabled="disabledXX" v-model="roleForm.feeUserId" style="display: none;"></el-input> <el-input :disabled="disabledXX" v-model="roleForm.feeUserId" style="display: none;"></el-input>
<el-input :disabled="disabledXX" v-model="roleForm.feeUser" readonly placeholder="选择费用管理部门" @click.native="choiceZRR('feeUser', '选择费用管理部门', roleForm.feeUser)"> <el-input :disabled="disabledXX" v-model="roleForm.feeUser" readonly placeholder="选择管理推进部" @click.native="choiceZRRFEE('feeUser', '选择费用管理部门', roleForm.feeUserId)">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -346,6 +346,12 @@
:nodeList="nodeListOne" :nodeList="nodeListOne"
@checkedRole="drawerCheckOne" @checkedRole="drawerCheckOne"
/> />
<Role-tree v-if="!disabledXX"
is-title="选择人员信息"
:is-visible.sync="roleShowflagFEE"
:nodeList="nodeListOne"
@checkedRole="drawerCheckFEE"
/>
<Role-tree v-if="!disabledXX" <Role-tree v-if="!disabledXX"
is-title="选择人员信息" is-title="选择人员信息"
:is-visible.sync="roleShowflag" :is-visible.sync="roleShowflag"
@@ -461,6 +467,7 @@ export default {
roleShowflagOne: false, roleShowflagOne: false,
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
roleShowflagFEE: false,
commentInfo: '', commentInfo: '',
bpnId: '', bpnId: '',
// 设置当前日期之前不可选择 // 设置当前日期之前不可选择
@@ -666,7 +673,7 @@ export default {
// 流程阶段负责人选择 // 流程阶段负责人选择
choiceZRR(type, title, id) { choiceZRR(type, title, id) {
this.nodeList = [] this.nodeList = []
this.nodeList.push(id) this.nodeList = JSON.parse(JSON.stringify(id.split(',')))
this.type = type this.type = type
this.drawerTitle = title this.drawerTitle = title
this.roleShowflag = true this.roleShowflag = true
@@ -700,6 +707,29 @@ export default {
this.drawerTitleOne = title this.drawerTitleOne = title
this.roleShowflagOne = true this.roleShowflagOne = true
}, },
choiceZRRFEE(type, title, id) {
this.nodeListOne = []
if (id && id.length > 0) {
this.nodeListOne = id.split(',')
}
this.drawerTitleOne = title
this.roleShowflagFEE = true
},
drawerCheckFEE(data) {
var idList = ''
var nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id;
nameList += item.name;
});
this.roleForm.feeUser = nameList
this.roleForm.feeUserId = idList
this.roleShowflag = false
},
drawerCheckOne(data) { drawerCheckOne(data) {
this.unqualidiedData.forEach(item => { this.unqualidiedData.forEach(item => {
item.engineer = data[0].name item.engineer = data[0].name
@@ -50,7 +50,7 @@
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input :disabled="disabledXX" v-model="roleForm.directorUser" style="display: none;"></el-input> <el-input :disabled="disabledXX" v-model="roleForm.directorUser" style="display: none;"></el-input>
<el-input :disabled="disabledXX" v-model="roleForm.directorUserName" readonly placeholder="选择标准法规部部长" <el-input :disabled="disabledXX" v-model="roleForm.directorUserName" readonly placeholder="选择标准法规部部长"
@click.native="choiceZRR('directorUser', '选择标准法规部部长', roleForm.directorUser)"></el-input> @click.native="choiceDirector('directorUser', '选择标准法规部部长', roleForm.directorUser)"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-card> </el-card>
@@ -73,6 +73,13 @@
@checkedRole="checkedRole" @checkedRole="checkedRole"
:nodeList="nodeList" :nodeList="nodeList"
></Role-tree> ></Role-tree>
<Role-tree v-if="!disabledXX"
check-box
:is-title="drawerTitle"
:is-visible.sync="modalshowflagDirector"
@checkedRole="checkedRole"
:nodeList="nodeList"
></Role-tree>
<ProcessFooter v-show="!disabledXX" <ProcessFooter v-show="!disabledXX"
show-save show-save
show-submit show-submit
@@ -106,6 +113,7 @@ export default {
saveLoading: false, saveLoading: false,
modalshowflag: false, // drawer开关 modalshowflag: false, // drawer开关
modalshowflag2: false, modalshowflag2: false,
modalshowflagDirector:false,
nodeList2: [], nodeList2: [],
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
nodeList: [], nodeList: [],
@@ -151,6 +159,13 @@ export default {
this.drawerTitle = title; this.drawerTitle = title;
this.modalshowflag = true; this.modalshowflag = true;
}, },
choiceDirector(type, title, id) {
this.nodeList = [];
this.nodeList.push(id);
this.type = type;
this.drawerTitle = title;
this.modalshowflagDirector = true;
},
// choiceZRRS() { // choiceZRRS() {
// this.nodeList2 = []; // this.nodeList2 = [];
// if (this.roleForm.dockUser.length > 0) { // if (this.roleForm.dockUser.length > 0) {
@@ -165,6 +180,7 @@ export default {
} else if (this.type === "directorUser") { } else if (this.type === "directorUser") {
this.roleForm.directorUser = data[0].id; this.roleForm.directorUser = data[0].id;
this.roleForm.directorUserName = data[0].name; this.roleForm.directorUserName = data[0].name;
this.modalshowflagDirector = false
} }
this.modalshowflag = false; this.modalshowflag = false;
}, },
@@ -50,7 +50,7 @@
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.workPeople" style="display: none;"></el-input> <el-input v-model="roleForm.workPeople" style="display: none;"></el-input>
<el-input v-model="roleForm.workPeopleName" placeholder="选择责任工程师" <el-input v-model="roleForm.workPeopleName" placeholder="选择责任工程师"
@click.native="choiceZRR('workPeople', '选择责任工程师', roleForm.workPeople)"> @click.native="choiceZRRS('workPeople', '选择责任工程师', roleForm.workPeople)">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -88,7 +88,6 @@
:nodeList="nodeList" :nodeList="nodeList"
></Role-tree> ></Role-tree>
<ProcessFooter <ProcessFooter
show-save
show-submit show-submit
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="isSubmit" :saveLoading="isSubmit"
@@ -179,7 +178,7 @@ export default {
}, },
choiceZRRS() { choiceZRRS() {
this.nodeList2 = []; this.nodeList2 = [];
if (this.roleForm.workPeople.length > 0) { if (this.roleForm.workPeople && this.roleForm.workPeople.length > 0) {
this.nodeList2 = this.roleForm.workPeople.split(","); this.nodeList2 = this.roleForm.workPeople.split(",");
} }
this.modalshowflag2 = true; this.modalshowflag2 = true;
@@ -692,14 +692,19 @@ export default {
}); });
}, },
handleSubmit() { handleSubmit() {
let isValid = true
if (this.participantsData.length < 1) { if (this.participantsData.length < 1) {
this.$message.warning("项目信息不能为空"); this.$message.warning("项目信息不能为空");
} else { } else {
this.participantsData.forEach(item => { this.participantsData.forEach(item => {
if (item.projectNumber === undefined) { if (item.projectNumber === undefined || item.projectNumber === '') {
this.$message.warning("请完善项目信息"); this.$message.warning("请完善项目信息");
isValid = false
} }
}); });
if (!isValid){
return
}
this.wbbzform.commentText = this.commentStep; this.wbbzform.commentText = this.commentStep;
let json = { let json = {
participantsData: this.participantsData, participantsData: this.participantsData,
@@ -723,6 +728,7 @@ export default {
this.isSubmit = false this.isSubmit = false
}); });
} else { } else {
this.isSubmit = false
return this.$message.warning("请完善基础信息"); return this.$message.warning("请完善基础信息");
} }
}); });
@@ -548,18 +548,16 @@ export default {
parList.forEach(items => { parList.forEach(items => {
if(items.name === item.workPeople){ if(items.name === item.workPeople){
this.$message.warning('请勿重复添加参与人') this.$message.warning('请勿重复添加参与人')
return throw new Error('请勿重复添加参与人')
}else{
} }
}) })
}) })
}else{ }
this.participantsData = data this.participantsData[this.selectedId] = data[0]
this.participantsData.forEach(item => { this.participantsData.forEach(item => {
this.$set(item, "workPeople", item.name) this.$set(item, "workPeople", item.name)
}); });
this.participantsData = JSON.parse(JSON.stringify(this.participantsData)); this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
}
}, },
handleTabs(type) { handleTabs(type) {
@@ -618,6 +616,33 @@ export default {
//流程提交 //流程提交
handleSubmit() { handleSubmit() {
this.isSubmit = true this.isSubmit = true
let isValid1 = true
let isValid2 = true
this.participantsData.forEach(item => {
if (Array.isArray(item) && item.length === 0) {
this.isSubmit = false
isValid1 = false
}else if (typeof item === 'object') {
if (!item.accounts || !item.duties || !item.email || !item.passwords) {
this.isSubmit = false
isValid1 = false
}
}
})
this.associationData.forEach(item => {
if (!item.contactPerson || !item.mailbox || !item.telephone) {
this.isSubmit = false
isValid2 = false
}
})
if (!isValid1) {
this.$message.warning('请完善参与人信息')
return
}
if (!isValid2) {
this.$message.warning('请完善协会信息')
return
}
this.wbbzform.dlFlag = '1' this.wbbzform.dlFlag = '1'
this.wbbzform.comityOptionsOne = this.comityOptionsOne this.wbbzform.comityOptionsOne = this.comityOptionsOne
this.wbbzform.comityOptionsTwo = this.comityOptionsTwo this.wbbzform.comityOptionsTwo = this.comityOptionsTwo
@@ -698,7 +723,30 @@ export default {
}, },
//批量删除协会信息 //批量删除协会信息
deleteSociety(){ deleteSociety(){
if(this.selectList2.length < 1){
this.$message.warning('请选择一条数据进行删除')
}else{
this.$confirm('您确认删除这些数据?', '提示', {
confirmButtonText: "确认",
confirmButtonClass: "common-button-primary",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
let exits = [];
this.selectList2.map(item => {
let index;
index = this.associationData.findIndex(items => {
return items.account === item;
});
if (index > -1) {
this.associationData.splice(index, 1);
}
exits.push(item);
});
this.selectList2 = [];
}).catch(() => {
});
}
}, },
// 删除上传的文件 // 删除上传的文件
delFileInfo(file, fileList) { delFileInfo(file, fileList) {
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -136,7 +136,7 @@
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input :disabled="disabledXX" v-model="roleForm.dockUser" style="display: none;"></el-input> <el-input :disabled="disabledXX" v-model="roleForm.dockUser" style="display: none;"></el-input>
<el-input :disabled="disabledXX" v-model="roleForm.dockUserName" readonly placeholder="选择署名人领导" <el-input :disabled="disabledXX" v-model="roleForm.dockUserName" readonly placeholder="选择署名人领导"
@click.native="choiceZRR('dockUser', '选择署名人领导', roleForm.dockUser)"> @click.native="choiceDOCK('dockUser', '选择署名人领导', roleForm.dockUser)">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -163,7 +163,7 @@
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input :disabled="disabledXX" v-model="roleForm.directorUser" style="display: none;"></el-input> <el-input :disabled="disabledXX" v-model="roleForm.directorUser" style="display: none;"></el-input>
<el-input :disabled="disabledXX" v-model="roleForm.directorUserName" readonly placeholder="选择技术管理中心主任" <el-input :disabled="disabledXX" v-model="roleForm.directorUserName" readonly placeholder="选择技术管理中心主任"
@click.native="choiceZRR('directorUser', '选择技术管理中心主任', roleForm.directorUser)"></el-input> @click.native="choiceDirector('directorUser', '选择技术管理中心主任', roleForm.directorUser)"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-card> </el-card>
@@ -349,6 +349,19 @@
@checkedRole="checkedRole" @checkedRole="checkedRole"
:nodeList="nodeList" :nodeList="nodeList"
></Role-tree> ></Role-tree>
<Role-tree v-if="!disabledXX"
check-box
:is-title="drawerTitle"
:is-visible.sync="modalshowflagDirector"
@checkedRole="checkedRole"
:nodeList="nodeList"
></Role-tree>
<Role-tree v-if="!disabledXX"
:is-title="drawerTitle"
:is-visible.sync="modalshowflagDOCK"
@checkedRole="checkedRoleDOCK"
:nodeList="nodeList"
></Role-tree>
<!-- 多选责任人--> <!-- 多选责任人-->
<Role-tree v-if="!disabledXX" <Role-tree v-if="!disabledXX"
is-title="选择署名人" is-title="选择署名人"
@@ -382,6 +395,8 @@ export default {
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
modalshowflag: false, // 选择人员drawer开关 modalshowflag: false, // 选择人员drawer开关
modalshowflag2: false, modalshowflag2: false,
modalshowflagDOCK: false,
modalshowflagDirector: false,
standModel: false, //添加标准抽屉 standModel: false, //添加标准抽屉
zrIndex: "", zrIndex: "",
nodeList: [], //存放人员信息数组 nodeList: [], //存放人员信息数组
@@ -690,6 +705,7 @@ export default {
this.dataList.forEach(item => { this.dataList.forEach(item => {
if( item.workPeople === ''){ if( item.workPeople === ''){
this.$message.warning('请选择推荐署名人及单位') this.$message.warning('请选择推荐署名人及单位')
throw new Error('请选择推荐署名人及单位')
} }
}) })
let json = { let json = {
@@ -753,6 +769,7 @@ export default {
this.dataList.forEach(item => { this.dataList.forEach(item => {
if( item.workPeople === ''){ if( item.workPeople === ''){
this.$message.warning('请选择推荐署名人及单位') this.$message.warning('请选择推荐署名人及单位')
throw new Error('请选择推荐署名人及单位')
} }
}) })
let json = { let json = {
@@ -794,6 +811,35 @@ export default {
this.drawerTitle = title; this.drawerTitle = title;
this.modalshowflag = true; this.modalshowflag = true;
}, },
choiceDirector(type, title, id) {
this.nodeList = [];
this.nodeList.push(id);
this.drawerTitle = title;
this.type = type;
this.modalshowflagDirector = true;
},
choiceDOCK(type, title, id) {
this.nodeList = [];
if (id && id.length > 0) {
this.nodeList = id.split(',')
}
this.drawerTitle = title;
this.modalshowflagDOCK = true;
},
checkedRoleDOCK (data) {
let idList = "";
let nameList = "";
data.forEach(item => {
if (nameList.length) {
nameList += ",";
idList += ",";
}
idList += item.id;
nameList += item.name;
});
this.roleForm.dockUser = idList
this.roleForm.dockUserName = nameList
},
checkedRole (data) { checkedRole (data) {
if (this.type === "dockUser") { if (this.type === "dockUser") {
this.roleForm.dockUser = data[0].id; this.roleForm.dockUser = data[0].id;
@@ -801,6 +847,7 @@ export default {
} else if (this.type === "directorUser") { } else if (this.type === "directorUser") {
this.roleForm.directorUser = data[0].id; this.roleForm.directorUser = data[0].id;
this.roleForm.directorUserName = data[0].name; this.roleForm.directorUserName = data[0].name;
this.modalshowflagDirector = false
}else if(this.type === 'ministerUser'){ }else if(this.type === 'ministerUser'){
this.roleForm.ministerUser = data[0].id; this.roleForm.ministerUser = data[0].id;
this.roleForm.ministerUserName = data[0].name; this.roleForm.ministerUserName = data[0].name;