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

This commit is contained in:
super_liu
2021-08-04 18:04:24 +08:00
39 changed files with 276 additions and 121 deletions
@@ -18,6 +18,7 @@
:showRMenu="jurisdictionCheckForTree" :showRMenu="jurisdictionCheckForTree"
:isHideRNode="jurisdictionCheckForTree" :isHideRNode="jurisdictionCheckForTree"
:editable="jurisdictionCheckForTree" :editable="jurisdictionCheckForTree"
expandFirst
showCopyBtn showCopyBtn
deptSelect deptSelect
autoSelect autoSelect
@@ -530,7 +530,12 @@
this.form.itemsName1 = data.itemsName1 this.form.itemsName1 = data.itemsName1
this.sarType = data.standInData this.sarType = data.standInData
this.json = data this.json = data
const itemList = JSON.parse(data.itemList) let itemList
if (typeof (data.itemList) == 'string') {
itemList = JSON.parse(data.itemList)
} else {
itemList = data.itemList
}
itemList.forEach(item => { itemList.forEach(item => {
item.unitDeptName = this.$store.getters.userInfo.orgName item.unitDeptName = this.$store.getters.userInfo.orgName
item.onlineData = '' item.onlineData = ''
@@ -542,6 +547,7 @@
item.technicalRequir = '' item.technicalRequir = ''
item.itemsTitle = item.itermsConditions item.itemsTitle = item.itermsConditions
}) })
console.log(2);
this.itemList = itemList this.itemList = itemList
this.loading = false this.loading = false
}).catch(e => { }).catch(e => {
@@ -363,7 +363,7 @@
this.sarType = data.standInData this.sarType = data.standInData
this.json = data this.json = data
this.itemList = data.itemList this.itemList = data.itemList
this.loading = true this.loading = false
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -1057,6 +1057,7 @@ export default {
if (valid) { if (valid) {
this.$refs["Form"].validate((valid) => { this.$refs["Form"].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true
this.$http.get("lawss/activiti/startProcess", { type: "4" }, { this.$http.get("lawss/activiti/startProcess", { type: "4" }, {
_this: this _this: this
}, res => { }, res => {
@@ -1072,6 +1073,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}); });
} }
}); });
@@ -208,7 +208,7 @@
<!-- </el-card>--> <!-- </el-card>-->
<!-- </el-timeline-item>--> <!-- </el-timeline-item>-->
<el-timeline-item timestamp="根据会签意见修订" placement="top" <el-timeline-item timestamp="根据会签意见修订" placement="top"
:color="roleForm.ministerUser ? '#66b1ff' : ''"> :color="roleForm.ministerUser ? '#66b1ff' : ''" v-if="signFlag === '1'">
<el-card> <el-card>
<el-form-item prop="ministerUserName" style="margin-bottom: 0"> <el-form-item prop="ministerUserName" style="margin-bottom: 0">
<h4>标准/政策法规工程师</h4> <h4>标准/政策法规工程师</h4>
@@ -1024,11 +1024,11 @@ export default {
this.$message.warning("标准不能为空"); this.$message.warning("标准不能为空");
} else { } else {
var json = Object.assign(this.listForm, this.roleForm); var json = Object.assign(this.listForm, this.roleForm);
console.log(json)
this.$refs["qdfbForm"].validate((valid) => { this.$refs["qdfbForm"].validate((valid) => {
if (valid) { if (valid) {
this.$refs["Form"].validate((valid) => { this.$refs["Form"].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true
this.$http.get("lawss/activiti/startProcess", { type: "4" }, { this.$http.get("lawss/activiti/startProcess", { type: "4" }, {
_this: this _this: this
}, res => { }, res => {
@@ -1044,6 +1044,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}); });
} }
}); });
@@ -390,6 +390,7 @@ export default {
if (this.commentText === null || this.commentText === undefined || this.commentText === "") { if (this.commentText === null || this.commentText === undefined || this.commentText === "") {
this.$message.warning("请填写会签意见"); this.$message.warning("请填写会签意见");
}else{ }else{
this.isSubmit = true
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
this.listForm.approvalOpinion = ""; this.listForm.approvalOpinion = "";
this.listForm.signFlag = ""; this.listForm.signFlag = "";
@@ -405,6 +406,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}, e => { }, e => {
}); });
@@ -712,6 +712,7 @@ export default {
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -723,6 +724,7 @@ export default {
this.$message.success(res.message) this.$message.success(res.message)
this.$router.push('/processCenter') this.$router.push('/processCenter')
} }
this.isSubmit = false
}); });
}, },
//标准表格选择框改变 //标准表格选择框改变
@@ -404,6 +404,7 @@ export default {
if (this.commentText === null || this.commentText === undefined || this.commentText === "") { if (this.commentText === null || this.commentText === undefined || this.commentText === "") {
this.$message.warning("请填写审批意见"); this.$message.warning("请填写审批意见");
} else { } else {
this.isSubmit = true
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
@@ -417,6 +418,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}); });
} }
}, },
@@ -1528,10 +1528,16 @@
this.zrUserIds = nameList this.zrUserIds = nameList
}, },
checkedRole (data) { checkedRole (data) {
if (this.userType === 'jlUserId') { if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = data.id this.roleForm.jlUserId = data[0].id
this.roleForm.jlUserName = data.name this.roleForm.jlUserName = data[0].name
} }else if(this.userType === 'zrUserId'){
this.roleForm.zrUserId=data[0].id;
this.roleForm.zrUserName=data[0].name;
}
}, },
// z责任人会签姓名搜索 // z责任人会签姓名搜索
filterNode(value, data) { filterNode(value, data) {
@@ -1834,6 +1840,7 @@
}, },
getTree () { getTree () {
this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> {
this.treeData = res.data this.treeData = res.data
}) })
}, },
@@ -234,7 +234,7 @@ import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import { roleTreeData } from "@/api/unqualProcess.js" import { roleTreeData } from "@/api/unqualProcess.js"
import {completeTask, inboundLiaisonDetail, saveinboundTask} from "@/api/process.js" import {completeTask, inboundLiaisonDetail, saveinboundTask, saveTaskForPub} from "@/api/process.js"
export default { export default {
name: "wfhxzgStep2", name: "wfhxzgStep2",
@@ -373,10 +373,10 @@ export default {
_formData.append('taskIds', this.taskIds) _formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
// roleForm: this.roleForm, // roleForm: this.roleForm,
itemsList: this.dataList, standardInfoList: this.dataList,
commentText: this.commentText commentText: this.commentText
})) }))
saveinboundTask(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
this.$message.success('保存成功') this.$message.success('保存成功')
this.bpnId = res.result this.bpnId = res.result
@@ -388,7 +388,7 @@ export default {
handleSubmit() { handleSubmit() {
this.isSubmit = true this.isSubmit = true
let zqa = new Map(); let zqa = new Map();
for (let lastDataListElement of this.lastDataList) { for (let lastDataListElement of this.dataList) {
let a = zqa.get(lastDataListElement.dutyPeopleInfoId) let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
if( a == null){ if( a == null){
a = { a = {
@@ -241,7 +241,7 @@
import ProcessHeader from '../../components/ProcessHeader' import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {completeTask, inboundLiaisonDetail} from "@/api/process.js"; import {completeTask, inboundLiaisonDetail, saveTaskForPub} from "@/api/process.js";
export default { export default {
name: "wfhxzgStep3", name: "wfhxzgStep3",
@@ -405,7 +405,41 @@ export default {
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, '_blank')
}, },
// 保存按钮 // 保存按钮
handleSave() {}, handleSave() {
this.isSubmit = true
let zqa = new Map();
for (let lastDataListElement of this.dataList) {
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
if( a == null){
a = {
id: lastDataListElement.dutyPeopleInfoId,
name: lastDataListElement.dutyPeopleInfo,
standardInfoList: []
}
}
a.standardInfoList.push(lastDataListElement);
zqa.set(a.id, a);
}
let list = [];
for(let item of zqa) {
list.push(item[1])
}
this.saveLoading = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
// roleForm: this.roleForm,
dockUserList: list,
commentText: this.commentText
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
this.saveLoading = false
})
},
// 提交按钮 // 提交按钮
handleSubmit() { handleSubmit() {
this.isSubmit = true this.isSubmit = true
@@ -418,7 +452,7 @@ export default {
}) })
if(flag)return this.$message.warning('请选择负责人填入') if(flag)return this.$message.warning('请选择负责人填入')
let zqa = new Map(); let zqa = new Map();
for (let lastDataListElement of this.lastDataList) { for (let lastDataListElement of this.dataList) {
let a = zqa.get(lastDataListElement.dutyPeopleId) let a = zqa.get(lastDataListElement.dutyPeopleId)
if( a == null){ if( a == null){
a = { a = {
@@ -230,7 +230,7 @@ import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {uploadFile} from '@/api/unqualProcess.js'; import {uploadFile} from '@/api/unqualProcess.js';
import {inboundLiaisonDetail, completeTask} from "@/api/process" import {inboundLiaisonDetail, completeTask, saveTaskForPub} from "@/api/process"
export default { export default {
name: "wfhxzgStep4", name: "wfhxzgStep4",
@@ -306,11 +306,13 @@ export default {
}, },
getFormFieldList (item) { getFormFieldList (item) {
this.$nextTick(() => { this.$nextTick(() => {
let listJSON = JSON.parse(JSON.stringify(item.responUserInfo.info))
this.dataList = [JSON.parse(JSON.stringify(item.responUserInfo.info))] if (listJSON.length !== undefined) {
this.newDataList = [] this.dataList = listJSON
console.log(this.dataList) } else {
this.dataList.forEach(item => { this.dataList = [listJSON]
}
this.dataList.forEach(item => {
if (item.fileText.length !== 0) { if (item.fileText.length !== 0) {
item.fileText.forEach(item1 => { item.fileText.forEach(item1 => {
this.fileTextList.push({ this.fileTextList.push({
@@ -337,12 +339,7 @@ export default {
id: res.data.attId, id: res.data.attId,
name: res.data.standName name: res.data.standName
}) })
this.newDataList.forEach(item =>{ this.fileListData.fileText = this.newDataList
this.fileListData.fileText.push({
id: item.id,
name: item.name
})
})
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.message, message: res.message,
@@ -402,7 +399,40 @@ export default {
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, '_blank')
}, },
// 保存按钮 // 保存按钮
handleSave() {}, handleSave() {
let zqa = new Map();
for (let lastDataListElement of this.dataList) {
let a = zqa.get(lastDataListElement.dutyPeopleId)
if( a == null){
a = {
standardInfoList: []
}
}
a.standardInfoList.push(lastDataListElement);
zqa.set(a.id, a);
}
let list = []
for(let item of zqa) {
list.push(item[1].standardInfoList)
}
this.saveLoading = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
// roleForm: this.roleForm,
responUserInfo: {
info: this.dataList.splice(-1, 1)
},
commentText: this.commentText
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
this.saveLoading = false
})
},
// 提交按钮 // 提交按钮
handleSubmit() { handleSubmit() {
this.isSubmit = true this.isSubmit = true
@@ -107,15 +107,9 @@
</el-table-column> </el-table-column>
<el-table-column prop="responsibleUnit" label="责任部门" align="center"/> <el-table-column prop="responsibleUnit" label="责任部门" align="center"/>
<el-table-column prop="dutyPeople" label="负责人" align="center"/> <el-table-column prop="dutyPeople" label="负责人" align="center"/>
<el-table-column prop="fileText" label="佐证材料" align="center" show-overflow-tooltip> <el-table-column prop="fileText" label="佐证材料" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-upload <el-button type="primary" size="small" @click="queryFile(scope.row)">查看</el-button>
:action="''"
name="file"
:file-list="fileTextList"
:on-preview="handleOnPreview"
>
</el-upload>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -212,6 +206,15 @@
submitBTNText="同意" submitBTNText="同意"
> >
</ProcessFooter> </ProcessFooter>
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
<el-upload
:action="''"
name="file"
:file-list="fileTextList"
:on-preview="handleOnPreview"
>
</el-upload>
</el-dialog>
</div> </div>
</template> </template>
@@ -226,6 +229,7 @@ export default {
name: "wfhxzgStep5", name: "wfhxzgStep5",
data() { data() {
return { return {
fileMadel: false,
detailData: [], detailData: [],
loading: false, loading: false,
commentText: '', commentText: '',
@@ -271,6 +275,10 @@ export default {
} }
}, },
methods: { methods: {
queryFile(row) {
this.fileTextList = row.fileText
this.fileMadel = true
},
processTable() { processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", { this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum, prcNum: this.$route.query.prcNum,
@@ -297,14 +305,14 @@ export default {
getFormFieldList (item) { getFormFieldList (item) {
this.$nextTick(() => { this.$nextTick(() => {
this.dataList = JSON.parse(JSON.stringify(item)).info.fileDataList this.dataList = JSON.parse(JSON.stringify(item)).info.fileDataList
this.dataList.forEach(item => { /*this.dataList.forEach(item => {
item.fileText.forEach(item1 => { item.fileText.forEach(item1 => {
this.fileTextList.push({ this.fileTextList.push({
id: item1.id, id: item1.id,
name: item1.name name: item1.name
}) })
}) })
}) })*/
}) })
}, },
@@ -351,6 +359,9 @@ export default {
handleSubmitNo() { handleSubmitNo() {
if (this.commentText) { if (this.commentText) {
var json = { var json = {
responUserInfo: {
info: this.dataList
},
actionFlag: 1, actionFlag: 1,
commentText: this.commentText commentText: this.commentText
} }
@@ -361,6 +372,7 @@ export default {
}, {}, res => { }, {}, res => {
if (res.success) { if (res.success) {
this.$message.success('驳回成功') this.$message.success('驳回成功')
this.fileTextList = []
this.$router.push('/processCenter') this.$router.push('/processCenter')
} }
}) })
@@ -452,6 +464,13 @@ export default {
/deep/.el-upload{ /deep/.el-upload{
display: block; display: block;
} }
// 上传信息回显多余隐藏
/deep/.el-upload-list__item .el-icon-close {
font-size: 0;
}
/deep/.el-upload-list__item .el-icon-close-tip {
font-size: 0;
}
.content-center { .content-center {
padding: 10px 0px 10px 10px; padding: 10px 0px 10px 10px;
} }
@@ -681,7 +681,7 @@ export default {
this.$message.warning("请选择分发责任人"); this.$message.warning("请选择分发责任人");
} else { } else {
var json = Object.assign(this.listForm, this.roleForm); var json = Object.assign(this.listForm, this.roleForm);
console.log(json); this.isSubmit = true
this.$refs["listForm"].validate((valid) => { this.$refs["listForm"].validate((valid) => {
if (valid) { if (valid) {
this.$refs["roleForm"].validate((valid) => { this.$refs["roleForm"].validate((valid) => {
@@ -701,6 +701,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}); });
} }
}); });
@@ -451,6 +451,8 @@ export default {
listForm: { listForm: {
standNumber: "", //标准编号 standNumber: "", //标准编号
standName: "",//标准名称 standName: "",//标准名称
XCXSSRQ: "", //新车型实施日期
ZCCSSRQ: "", //在产车实施日期
certifiedEngineer: "", //认证工程师 certifiedEngineer: "", //认证工程师
qualityEngineer: "", //质量工程师 qualityEngineer: "", //质量工程师
breakdownList: [{ breakdownList: [{
@@ -655,6 +657,7 @@ export default {
if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) { if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) {
this.$message.warning("请选择分发责任人"); this.$message.warning("请选择分发责任人");
} else { } else {
this.isSubmit = true
var json = Object.assign(this.listForm, this.roleForm); var json = Object.assign(this.listForm, this.roleForm);
this.$refs["listForm"].validate((valid) => { this.$refs["listForm"].validate((valid) => {
if (valid) { if (valid) {
@@ -675,6 +678,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}); });
} }
}); });
@@ -708,9 +712,11 @@ export default {
//选择拆分标准确定事件 //选择拆分标准确定事件
OkDrawer() { OkDrawer() {
if (this.selectedList.length == 1) { if (this.selectedList.length === 1) {
this.listForm.standNumber = this.selectedList[0].standSortShow + '-' + this.selectedList[0].standNumber + '-' + this.selectedList[0].standYear ; this.listForm.standNumber = this.selectedList[0].standSortShow + '-' + this.selectedList[0].standNumber + '-' + this.selectedList[0].standYear ;
this.listForm.standName = this.selectedList[0].standName; this.listForm.standName = this.selectedList[0].standName;
this.listForm.XCXSSRQ = this.selectedList[0].xcxssrqgj
this.listForm.ZCCSSRQ = this.selectedList[0].zccssrqgj
this.listForm.id = this.selectedList[0].id; this.listForm.id = this.selectedList[0].id;
this.$http.get("SarStandItems/sar-stand-items/findAllItems", { this.$http.get("SarStandItems/sar-stand-items/findAllItems", {
ids: this.listForm.id, ids: this.listForm.id,
@@ -341,6 +341,7 @@ export default {
}else{ }else{
this.listForm.commentText = this.commentText this.listForm.commentText = this.commentText
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -352,6 +353,7 @@ export default {
this.$message.success(res.message) this.$message.success(res.message)
this.$router.push('/processCenter') this.$router.push('/processCenter')
} }
this.isSubmit = false
}, e => { }, e => {
}); });
} }
@@ -57,7 +57,7 @@
</process-title> </process-title>
<div class="tableTitle"> <div class="tableTitle">
<div class="tableButton"> <div class="tableButton">
<el-button plain class="common-button-primary" size="mini" @click="batchOperation">批量分发落实人</el-button> <el-button plain class="common-button-primary" size="mini" @click="choiceZRRS('', 2, '')">批量分发落实人</el-button>
</div> </div>
</div> </div>
<el-table <el-table
@@ -116,14 +116,13 @@
<span>{{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="落实人" prop="implementer" align="center"> <el-table-column
label="责任人"
width="170"
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.implementer == undefined"> <el-input v-model="scope.row.implementerId" style="display: none;"/>
{{ "请选择落实人" }} <el-input v-model="scope.row.implementer" placeholder="请选择落实人" @click.native="choiceZRRS(scope.row.implementerId, 1, scope.$index)"/>
</div>
<div v-else class="fileClass">
{{ scope.row.implementer || "-" }}
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -260,6 +259,8 @@ export default {
tabValue: "listOfCountries", tabValue: "listOfCountries",
selectedList: [], //选择清单的选择框 selectedList: [], //选择清单的选择框
selectList: [], //选择标准的选择框 selectList: [], //选择标准的选择框
lsIndex: '',
lsType: '',
bringData: [], bringData: [],
commentText: "", //填写会签意见 commentText: "", //填写会签意见
page: 1, page: 1,
@@ -346,7 +347,7 @@ export default {
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
console.log(res); console.log(res.mesg)
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
@@ -355,11 +356,6 @@ export default {
}); });
}); });
}, },
createItemId() {
return Number(Math.random().toString().substr(3,18) + Date.now()).toString(36);
},
/** /**
* @description: 动态表单读取 * @description: 动态表单读取
*/ */
@@ -373,7 +369,6 @@ export default {
for (let i = 0; i < item.pepdtos.length; i++) { for (let i = 0; i < item.pepdtos.length; i++) {
for (let j = 0; j < item.pepdtos[i].breakdownList.length; j++) { for (let j = 0; j < item.pepdtos[i].breakdownList.length; j++) {
this.listForm.breakdownList.push({ this.listForm.breakdownList.push({
itemId: this.createItemId(),
itemsName: item.pepdtos[i].breakdownList[j].itemsName, itemsName: item.pepdtos[i].breakdownList[j].itemsName,
itemNum: item.pepdtos[i].breakdownList[j].itemsNum, itemNum: item.pepdtos[i].breakdownList[j].itemsNum,
responsibleEngineer: item.pepdtos[i].breakdownList[j].responsibleEngineer, responsibleEngineer: item.pepdtos[i].breakdownList[j].responsibleEngineer,
@@ -395,46 +390,47 @@ export default {
}); });
} }
} }
console.log(this.listForm.breakdownList);
}, },
//批量操作按钮 checkedRole (data) {
batchOperation(id) { if (this.type === 1) {
if (this.selectList.length === 0) { this.listForm.breakdownList[this.lsIndex].implementerId = data[0].id
this.$message.warning("请至少选择一条数据进行批量分发"); this.listForm.breakdownList[this.lsIndex].implementer = data[0].name
} else { } else if(this.type === 2) {
this.nodeList = []; this.listForm.breakdownList.forEach( item => {
this.nodeList.push(id); this.selectList.forEach( items => {
this.modalshowflag = true; if (item === items) {
item.implementerId = data[0].id
item.implementer = data[0].name
}
})
})
} }
}, this.modalshowflag = false
checkedRole(data) {
// 选取负责人时的操作
let mis = [];
let miss = [];
this.selectList.forEach(item => {
item.implementer = data[0].name;
item.implementerId = data[0].id;
mis.push(item.projectNumber);
miss.push(item.itemNum)
});
this.listForm.breakdownList.forEach(item => {
if (!mis.includes(item.projectNumber) && !miss.includes(item.itemsNum)) {
this.selectList.push(item);
}
});
this.listForm.breakdownList = this.selectList;
this.$refs.selection.clearSelection();
this.modalshowflag = false;
}, },
cancleUserInfo() { cancleUserInfo() {
this.modalshowflag = false; this.modalshowflag = false;
}, },
choiceZRRS(scope) { choiceZRRS (row, type, index) {
if (scope != null) this.dsadadadsada = scope.$index; this.type = type
this.nodeList = []; if (type === 1) {
if (this.roleForm.implementer.length > 0) { this.drawerTitle = '选择责任人'
this.nodeList = this.roleForm.implementer.split(","); this.nodeList = []
this.lsIndex = index
this.lsType = type
this.nodeList.push(row)
this.modalshowflag = true
} else if (type === 2) {
// 批量
if (this.selectList.length > 0) {
this.lsType = type
this.nodeList = []
this.modalshowflag = true
this.drawerTitle = '批量选择责任人'
} else {
this.$message.warning('请选择要分发的数据')
}
} }
this.modalshowflag2 = true;
}, },
getTree() { getTree() {
this.$http.get("SarInstitution/institution/institutionAndUser", {}, {}, res => { this.$http.get("SarInstitution/institution/institutionAndUser", {}, {}, res => {
@@ -463,6 +459,7 @@ export default {
this.listForm.approvalOpinion = ""; this.listForm.approvalOpinion = "";
this.listForm.signFlag = ""; this.listForm.signFlag = "";
const json = JSON.stringify(this.listForm.breakdownList); const json = JSON.stringify(this.listForm.breakdownList);
this.isSubmit = true
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -474,6 +471,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}, e => { }, e => {
}); });
} else { } else {
@@ -493,6 +493,7 @@ export default {
this.listForm.signFlag = ""; this.listForm.signFlag = "";
this.listForm.dataList = this.dataList; this.listForm.dataList = this.dataList;
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -504,6 +505,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}, e => { }, e => {
}); });
@@ -480,6 +480,7 @@ export default {
this.listForm.dataList = this.dataList this.listForm.dataList = this.dataList
this.listForm.fenFlag = '2' this.listForm.fenFlag = '2'
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -491,6 +492,7 @@ export default {
this.$message.success(res.message) this.$message.success(res.message)
this.$router.push('/processCenter') this.$router.push('/processCenter')
} }
this.isSubmit = false
}, e => { }, e => {
}); });
} }
@@ -455,6 +455,7 @@ export default {
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
this.$message.warning('请填写审批意见') this.$message.warning('请填写审批意见')
} else { } else {
this.isSubmit = true
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId; this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId;
this.listForm.prcCreateUserName = this.$store.getters.userInfo.account; this.listForm.prcCreateUserName = this.$store.getters.userInfo.account;
@@ -475,6 +476,7 @@ export default {
this.$message.success(res.message) this.$message.success(res.message)
this.$router.push('/processCenter') this.$router.push('/processCenter')
} }
this.isSubmit = false
}, e => { }, e => {
}); });
@@ -463,6 +463,7 @@ export default {
this.listForm.fenFlag = "1"; this.listForm.fenFlag = "1";
this.listForm.dataList = this.dataList this.listForm.dataList = this.dataList
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -474,6 +475,7 @@ export default {
this.$message.success(res.message) this.$message.success(res.message)
this.$router.push('/processCenter') this.$router.push('/processCenter')
} }
this.isSubmit = false
}, e => { }, e => {
}); });
@@ -30,6 +30,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -37,6 +38,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -232,12 +234,14 @@
<el-input <el-input
v-model="projectSearch.projectNumber" v-model="projectSearch.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称" class="search-item search-item-last"> <el-form-item label="项目名称" class="search-item search-item-last">
<el-input <el-input
v-model="projectSearch.projectName" v-model="projectSearch.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
@@ -30,6 +30,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -37,6 +38,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,12 +24,14 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled"> <el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
disabled
placeholder="请输入项目名称" placeholder="请输入项目名称"
clearable clearable
></el-input> ></el-input>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -24,6 +24,7 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -31,6 +32,7 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -178,6 +178,7 @@ export default {
let row = {...this.detailData[index]} let row = {...this.detailData[index]}
row.taskIds = row.id row.taskIds = row.id
row.taskInfo = row.name row.taskInfo = row.name
console.log(row.name)
row.tabsName = this.$route.query.tabsName row.tabsName = this.$route.query.tabsName
let prcType = this.detailData[index].prcType // 流程类型 let prcType = this.detailData[index].prcType // 流程类型
// 判断当前流程是否已全部办理完成 // 判断当前流程是否已全部办理完成
@@ -205,7 +206,7 @@ export default {
this.toProcessDetail('bzqdfbStep4',row) this.toProcessDetail('bzqdfbStep4',row)
}else if (prcType === '5'){ }else if (prcType === '5'){
//标准项目合规评估 标准维度 //标准项目合规评估 标准维度
if(row.taskInfo === '标准法规部部长审批'){ if(row.taskInfo === '标准法规部领导审核'){
this.toProcessDetail('xmpgStep7',row) this.toProcessDetail('xmpgStep7',row)
}else{ }else{
this.toProcessDetail('xmpgStep2',row) this.toProcessDetail('xmpgStep2',row)
@@ -4,22 +4,22 @@
<div class="search-area"> <div class="search-area">
<el-form :inline="true" :model="searchForm" ref="processSearch" class="label-input-form"> <el-form :inline="true" :model="searchForm" ref="processSearch" class="label-input-form">
<div class="search-area-item"> <div class="search-area-item">
<el-form-item label="流程名称" class="search-item" @keyup.enter.native="selectProcessBtn"> <!-- <el-form-item label="流程名称" class="search-item" @keyup.enter.native="selectProcessBtn">-->
<el-input <!-- <el-input-->
v-model.trim="searchForm.prcName" <!-- v-model.trim="searchForm.prcName"-->
placeholder="按流程名称查找" <!-- placeholder="按流程名称查找"-->
:maxlength="100" <!-- :maxlength="100"-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="流程编号" class="search-item" @keyup.enter.native="selectProcessBtn"> <!-- <el-form-item label="流程编号" class="search-item" @keyup.enter.native="selectProcessBtn">-->
<el-input <!-- <el-input-->
v-model.trim="searchForm.prcNum" <!-- v-model.trim="searchForm.prcNum"-->
placeholder="按流程编号查找" <!-- placeholder="按流程编号查找"-->
:maxlength="100" <!-- :maxlength="100"-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="流程类型" class="search-item" @keyup.enter.native="selectProcessBtn"> <el-form-item label="流程类型" class="search-item" @keyup.enter.native="selectProcessBtn">
<el-select <el-select
v-model="searchForm.prcType" v-model="searchForm.prcType"
@@ -201,7 +201,7 @@
style="width: 100%;" style="width: 100%;"
:model="historySeeForm" :model="historySeeForm"
> >
<el-form-item class="add-form-item" label="标准号:"> <el-form-item class="add-form-item" label="标准号:">
<div class="seeItem">{{historySeeForm.standSerialNumber}}</div> <div class="seeItem">{{historySeeForm.standSerialNumber}}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="标准名称:"> <el-form-item class="add-form-item" label="标准名称:">
@@ -232,7 +232,7 @@
<div class="seeItem">{{historySeeForm.qaEngineer}}</div> <div class="seeItem">{{historySeeForm.qaEngineer}}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="要求关闭时间:"> <el-form-item class="add-form-item" label="要求关闭时间:">
<div class="seeItem">{{historySeeForm.actualCloseTime}}</div> <div class="seeItem">{{historySeeForm.actualCloseTime ? historySeeForm.actualCloseTime.substring(0, 11) : '-'}}</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -566,6 +566,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
const arr = [] const arr = []
let questionType = [] let questionType = []
if (this.historySeeForm.quesType){
questionType = this.historySeeForm.quesType.split(',') questionType = this.historySeeForm.quesType.split(',')
questionType.map((item) => { questionType.map((item) => {
this.optionList.map((opr) => { this.optionList.map((opr) => {
@@ -576,6 +577,7 @@ export default {
}) })
}) })
this.historySeeForm.quesType = arr.toString() this.historySeeForm.quesType = arr.toString()
}
}) })
}, },
// 分页事件 // 分页事件
@@ -5,7 +5,7 @@
<div class="content-top"> <div class="content-top">
<el-form :modal="nonConformitySearch" inline class="label-input-form"> <el-form :modal="nonConformitySearch" inline class="label-input-form">
<el-form-item label="标准号/标准名称" class="search-item"> <el-form-item label="标准号/标准名称" class="search-item">
<el-input v-model="nonConformitySearch.standId" <el-input v-model="nonConformitySearch.standSerialNumber"
placeholder="请输入" placeholder="请输入"
clearable clearable
:maxlength="100"></el-input> :maxlength="100"></el-input>
@@ -269,7 +269,7 @@
<div class="seeItem">{{historySeeForm.qaEngineer}}</div> <div class="seeItem">{{historySeeForm.qaEngineer}}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="计划关闭时间:"> <el-form-item class="add-form-item" label="计划关闭时间:">
<div class="seeItem">{{historySeeForm.planCloseTime}}</div> <div class="seeItem">{{historySeeForm.planCloseTime ? historySeeForm.planCloseTime.substring(0, 11) : '-'}}</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -384,7 +384,7 @@
</div> </div>
<div class="typeitems"> <div class="typeitems">
<div class="itemsLeft">验证时间:</div> <div class="itemsLeft">验证时间:</div>
<div class="itemsRight">{{(item.validTime ? item.validTime.substring(0, 11): '')}}</div> <div class="itemsRight">{{(item.validTime ? item.validTime.substring(0, 11) : '')}}</div>
</div> </div>
<div class="typeitems"> <div class="typeitems">
<div class="itemsLeft">验证结果:</div> <div class="itemsLeft">验证结果:</div>
@@ -430,6 +430,7 @@ export default {
pageNo: 1, pageNo: 1,
nonConformitySearch: { nonConformitySearch: {
standId: '', // 标准号/名称 standId: '', // 标准号/名称
standSerialNumber:'',
productName: '', // 项目名称 productName: '', // 项目名称
responsibleUnit: '' // 责任部门 responsibleUnit: '' // 责任部门
}, },
@@ -591,16 +592,18 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
const arr = [] const arr = []
let questionType = [] let questionType = []
questionType = this.historySeeForm.quesType.split(',') if (this.historySeeForm.quesType) {
questionType.map((item) => { questionType = this.historySeeForm.quesType.split(',')
this.optionList.map((opr) => { questionType.map((item) => {
if (item === opr.value) { this.optionList.map((opr) => {
item = opr.label if (item === opr.value) {
arr.push(item) item = opr.label
} arr.push(item)
}
})
}) })
}) this.historySeeForm.quesType = arr.toString()
this.historySeeForm.quesType = arr.toString() }
}) })
}, },
//点击编辑按钮事件 //点击编辑按钮事件
+2 -2
View File
@@ -6,7 +6,7 @@
// 服务器地址 // 服务器地址
// const devIp = '10.96.10.171' // const devIp = '10.96.10.171'
// const devInterfacePORT = '9999' // const devInterfacePORT = '9999'
const devIp = '10.96.170.156' const devIp = '127.0.0.1'
const devInterfacePORT = '9999' const devInterfacePORT = '9999'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
@@ -31,7 +31,7 @@ const processPort = '17210'
*****************************************************************/ *****************************************************************/
// 生产环境配置 // 生产环境配置
const prodIp = '62.234.136.153' const prodIp = '62.234.136.153'
const prodInterfacePORT = '8033' const prodInterfacePORT = '8038'
// 判断环境 // 判断环境