feat: There is no way the, 企标 新复审 、技术、产品标准 节点名称修改
This commit is contained in:
@@ -420,7 +420,7 @@ export default {
|
||||
}
|
||||
break;
|
||||
case 'buss3':
|
||||
if (row.taskInfo === '对接人选择复审人') {
|
||||
if (row.taskInfo === '选择复审人') {
|
||||
this.$router.push({
|
||||
name: 'qbfsStepSub1',
|
||||
query: {
|
||||
@@ -431,7 +431,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}else if (row.taskInfo === '复审人选择复审结果'){
|
||||
}else if (row.taskInfo === '复审'){
|
||||
this.$router.push({
|
||||
name: 'qbfsStepSub2',
|
||||
query: {
|
||||
@@ -442,7 +442,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}else if (row.taskInfo === '发起人汇总结果'){
|
||||
}else if (row.taskInfo === '汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussFs2',
|
||||
query: {
|
||||
@@ -453,7 +453,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}else if (row.taskInfo === '重新发起人汇总结果'){
|
||||
}else if (row.taskInfo === '重新汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussFsC2',
|
||||
query: {
|
||||
@@ -464,7 +464,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}else if (row.taskInfo === '标准法规部高级经理批准'){
|
||||
}else if (row.taskInfo === '批准'){
|
||||
this.$router.push({
|
||||
name: 'bussFs3',
|
||||
query: {
|
||||
|
||||
@@ -126,7 +126,7 @@ export default {
|
||||
methods: {
|
||||
getPrcNameFilter(row){
|
||||
if(row && row.prcType === 'buss3'){
|
||||
return row.prcName + '-' + row.taskInfo
|
||||
return row.prcName
|
||||
}else {
|
||||
return row.prcName
|
||||
}
|
||||
|
||||
@@ -0,0 +1,791 @@
|
||||
<template>
|
||||
<div class="qbfs-step2">
|
||||
<ProcessHeader toggle>
|
||||
<template slot="proName">企标复审流程</template>
|
||||
<template slot="proNode">重新汇总</template>
|
||||
</ProcessHeader>
|
||||
<div class="headerTabs">
|
||||
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<el-form
|
||||
ref="qbfsForm"
|
||||
:model="qbfsForm"
|
||||
:rules="formRules"
|
||||
style="border: none"
|
||||
class="label-input-form"
|
||||
label-width="150px"
|
||||
>
|
||||
<div style="flex: auto; overflow: auto" v-show="active === '1'">
|
||||
<formList
|
||||
:key = "formKey"
|
||||
:formSub = "qbfsForm"
|
||||
:FBGBUSSFileList = "FBGBUSSFileList"
|
||||
:LSBBBUSSFileList = "LSBBBUSSFileList"
|
||||
:BZSMBUSSFileList = "BZSMBUSSFileList"
|
||||
:QTWJBUSSFileList = "QTWJBUSSFileList"
|
||||
:GLWJBUSSFileList = "GLWJBUSSFileList"
|
||||
:LXDListSub = "LXDList === undefined ? [] : LXDList"
|
||||
:FSDListSub = "FSDList === undefined ? [] : FSDList"
|
||||
:disabledState = "disabledState"
|
||||
:opinionsShow2 = "true"
|
||||
:verifySarStandard = "verifySarStandard"
|
||||
@formCancel="formCancel"
|
||||
@formChoiceZRRListCancel = "formChoiceZRRListCancel"
|
||||
></formList>
|
||||
<div>
|
||||
<el-collapse accordion>
|
||||
<el-collapse-item title="回执说明">
|
||||
<div style="margin: 10px 0;">
|
||||
<el-input
|
||||
type="textarea"
|
||||
:rows="3"
|
||||
resize="none"
|
||||
placeholder="请输入意见"
|
||||
v-model="commentText">
|
||||
</el-input>
|
||||
</div>
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding-top: 20px;" v-show="active === '3'">
|
||||
<div class="flow-list">
|
||||
<el-table
|
||||
height="100%"
|
||||
ref="selection"
|
||||
:data="detailData"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%"
|
||||
border
|
||||
row-key="id"
|
||||
:no-data-text="listNoDataText"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="任务步骤"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="assignee"
|
||||
label="任务受理人"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="创建时间"
|
||||
sortable="custom"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
label="完成时间"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="comment"
|
||||
label="流程信息"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.commentText }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completeFlag"
|
||||
label="状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<loading :loading="loading">流程列表加载中</loading>
|
||||
</div>
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
<ProcessFooter
|
||||
v-show="verifySarStandard"
|
||||
show-save
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
</ProcessFooter>
|
||||
<!-- 福田全公司选人解决方案 -->
|
||||
<Role-tree
|
||||
check-box
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="drawerModal"
|
||||
@checkedRole="checkedRoles"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<!-- 选择责任人-->
|
||||
<Role-tree
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="modalshowflag"
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList2"
|
||||
></Role-tree>
|
||||
<Role-tree
|
||||
is-title="选择责任部门对接人"
|
||||
:is-visible.sync="modalShowRoleFlag"
|
||||
@checkedRole="checkedRole2"
|
||||
:nodeList="nodeList2"
|
||||
></Role-tree>
|
||||
<loading :loading="dataLoading">正在加载数据</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { changeAssigneeNew, inboundLiaisonDetail, saveTaskFirst,taskDel,queryTaskFirst,processEditFile } from "api/process";
|
||||
import formList from './common/formList.vue'
|
||||
|
||||
export default {
|
||||
name: "bussFsC2",
|
||||
components:{
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
ProcessTitle,
|
||||
formList
|
||||
},
|
||||
data() {
|
||||
const validateLxOnlineFile = async (rule, value, callback) => {
|
||||
if(this.qbfsForm.LXD){
|
||||
let fileObj = await this.processEditFile(this.qbfsForm.LXD)
|
||||
if (fileObj) {
|
||||
const editFileInfo = fileObj
|
||||
if (editFileInfo && editFileInfo.editStatus === '1') {
|
||||
callback()
|
||||
} else {
|
||||
callback(new Error('请先在线编辑,再提交流程!'))
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
const validateFsOnlineFile = async (rule, value, callback) => {
|
||||
if(this.qbfsForm.FSD){
|
||||
let fileObj = await this.processEditFile(this.qbfsForm.FSD)
|
||||
if (fileObj) {
|
||||
const editFileInfo = fileObj
|
||||
console.log(editFileInfo)
|
||||
if (editFileInfo && editFileInfo.editStatus === '1') {
|
||||
callback()
|
||||
} else {
|
||||
callback(new Error('请先在线编辑,再提交流程!'))
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
return {
|
||||
dataLoading:true,
|
||||
bpnId: '',
|
||||
formKey:1,
|
||||
active: '1',
|
||||
modalShowRoleFlag:false,
|
||||
disabledState:true,
|
||||
verifySarStandard:true,
|
||||
FBGBUSSFileList: [],
|
||||
BZSMBUSSFileList: [],
|
||||
LSBBBUSSFileList: [],
|
||||
QTWJBUSSFileList: [],
|
||||
GLWJBUSSFileList: [],
|
||||
LXDList: [],
|
||||
FSDList: [],
|
||||
fileList: [],
|
||||
commentText: '',
|
||||
detailData: [],
|
||||
nodeList: [],
|
||||
nodeList2: [],
|
||||
isSubmit: false,
|
||||
saveLoading: false,
|
||||
isTransfer: false,
|
||||
// 调整处理人抽屉状态
|
||||
drawerModal: false,
|
||||
drawerTitle: "", //drawer标题
|
||||
modalshowflag: false, // drawer开关
|
||||
loading: false,
|
||||
qbfsForm:{
|
||||
entNumber: '',
|
||||
cnName: '',
|
||||
enName: '',
|
||||
entCategory: '',
|
||||
replaceNumber: '',
|
||||
replacedNumber: '',
|
||||
releaseDate: '',
|
||||
implementDate: '',
|
||||
reviewDate: '',
|
||||
jgUser: '',
|
||||
jgUserId: '',
|
||||
bussFsSubUser2:'',
|
||||
bussFsSubUser2Name:'',
|
||||
},
|
||||
roleForm: {
|
||||
jgUser: ""
|
||||
},
|
||||
formRules: {
|
||||
jgUser: [
|
||||
{required: true, message: "请选择工作组成员", trigger: "change"}
|
||||
],
|
||||
bussFsSubUser2Name: [
|
||||
{required: true, message: "请选择企标复审人", trigger: "change"}
|
||||
],
|
||||
QCRBUSS: [
|
||||
{required: true, message: "请选择主起草人", trigger: "change"}
|
||||
],
|
||||
reviewResults: [
|
||||
{required: true, message: "请选择复审结果", trigger: "change"}
|
||||
],
|
||||
draftTime: [
|
||||
{required: true, message: "请选择初稿完成日期", trigger: "change"}
|
||||
],
|
||||
releaseTime: [
|
||||
{required: true, message: "请选择计划标准发布日期", trigger: "change"}
|
||||
],
|
||||
expirationDate: [
|
||||
{required: true, message: "请选择截止日期", trigger: "change"}
|
||||
],
|
||||
FSDName: [
|
||||
{ required: true, validator: validateFsOnlineFile, trigger: 'blur' }
|
||||
],
|
||||
LXDName: [
|
||||
{ required: true, validator: validateLxOnlineFile, trigger: 'blur' }
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.bpnId = this.$route.query.bpnId
|
||||
if (this.bpnId !== undefined) {
|
||||
this.getDataS()
|
||||
}
|
||||
this.processTable()
|
||||
this.getData()
|
||||
},
|
||||
watch:{
|
||||
'qbfsForm.reviewResults': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
if(val === '1'){
|
||||
if (this.bpnId === undefined) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
methods:{
|
||||
async getFile(){
|
||||
|
||||
},
|
||||
getSaveFile(model) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http.get('/lawss/activiti/saveEditFile', {
|
||||
model: model
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const history = res;
|
||||
resolve(history)
|
||||
})
|
||||
})
|
||||
},
|
||||
checkedRole2 (data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach( item => {
|
||||
if (nameList.length > 0) {
|
||||
nameList += ','
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
})
|
||||
if(this.userType === 'QCRBUSS'){
|
||||
this.qbfsForm.QCRBUSSID=idList;
|
||||
this.qbfsForm.QCRBUSS=nameList;
|
||||
this.formKey++
|
||||
}
|
||||
if(data !== undefined && data && data.length > 0){
|
||||
const institutionIdList = this.unique(data.map(item => item.institutionId)).join(",")
|
||||
const institutionNameList = this.unique(data.map(item => item.institutionName)).join(",")
|
||||
this.qbfsForm.QCDWID = institutionIdList
|
||||
this.qbfsForm.QCDW = institutionNameList
|
||||
}
|
||||
|
||||
this.modalShowRoleFlag = false
|
||||
},
|
||||
unique(newArr) {
|
||||
const res = new Map();
|
||||
return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1));
|
||||
},
|
||||
choiceZRRList (type, title, id) {
|
||||
this.nodeList2 = []
|
||||
if(type === 'QCRBUSS'){
|
||||
if ( this.qbfsForm.QCRBUSSID !== undefined && this.qbfsForm.QCRBUSSID.length > 0) {
|
||||
this.nodeList2 = this.qbfsForm.QCRBUSSID.split(',')
|
||||
}
|
||||
}
|
||||
this.userType = type
|
||||
this.drawerTitle = title
|
||||
this.modalShowRoleFlag = true
|
||||
},
|
||||
formChoiceZRRListCancel(type, title, id){
|
||||
this.choiceZRRList(type, title, id)
|
||||
},
|
||||
formCancel (form, list1,list2,list3,list4,list5,list6,list7) {
|
||||
this.qbfsForm = form
|
||||
this.FBGBUSSFileList = list1
|
||||
this.LSBBBUSSFileList = list2
|
||||
this.BZSMBUSSFileList = list3
|
||||
this.QTWJBUSSFileList = list4
|
||||
this.GLWJBUSSFileList = list5
|
||||
this.LXDList = list6
|
||||
this.FSDList = list7
|
||||
},
|
||||
processTable() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
sortWord: this.shunxu ? this.paixu : "",
|
||||
shunxu: this.shunxu
|
||||
}, {
|
||||
loading: "loading",
|
||||
_this: this
|
||||
}, res => {
|
||||
this.detailData = res
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
assemble(ids,names){
|
||||
let list= new Array();
|
||||
if(ids && ids !== '' && names && names !== ''){
|
||||
let idArray=ids.split(',');
|
||||
let nameArray=names.split(',');
|
||||
for(let i=0; i<idArray.length; i++){
|
||||
list.push({id:idArray[i],name:nameArray[i]});
|
||||
}
|
||||
}
|
||||
return list;
|
||||
},
|
||||
getStandInfoUpdateById(standId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoUpdateById', {id: standId}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if(res && res.data){
|
||||
const history = res;
|
||||
resolve(history)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
getDataS(){
|
||||
queryTaskFirst({
|
||||
bpnId: this.$route.query.bpnId
|
||||
}).then(res => {
|
||||
let mes = JSON.parse(res.mes)
|
||||
this.qbfsForm = mes.qbfsForm
|
||||
this.qbfsForm.WJSCRYBUSS= this.$store.getters.userInfo.userId
|
||||
this.qbfsForm.WJSCRYBUSSName= this.$store.getters.userInfo.userName
|
||||
this.qbfsForm['id'] = bringData.id
|
||||
this.FBGBUSSFileList=this.assemble(this.qbfsForm.FBGBUSS,this.qbfsForm.FBGBUSSName);
|
||||
this.BZSMBUSSFileList=this.assemble(this.qbfsForm.BZSMBUSS,this.qbfsForm.BZSMBUSSName);
|
||||
this.LSBBBUSSFileList=this.assemble(this.qbfsForm.LSBBBUSS,this.qbfsForm.LSBBBUSSName);
|
||||
this.QTWJBUSSFileList=this.assemble(this.qbfsForm.QTWJBUSS,this.qbfsForm.QTWJBUSSName);
|
||||
this.GLWJBUSSFileList=this.assemble(this.qbfsForm.GLWJBUSS,this.qbfsForm.GLWJBUSSName);
|
||||
this.LXDList=this.assemble(this.qbfsForm.LXD,this.qbfsForm.LXDName);
|
||||
this.FSDList=this.assemble(this.qbfsForm.FSD,this.qbfsForm.FSDName);
|
||||
this.standardDrawer = false
|
||||
this.verifySarStandard = true
|
||||
this.commentText = mes.commentText
|
||||
this.formKey++
|
||||
this.$forceUpdate()
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
return new Promise((resolve, reject) => {
|
||||
inboundLiaisonDetail({
|
||||
taskIds: this.$route.query.taskIds,
|
||||
pId: this.$route.query.prcId,
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
const processForm = JSON.parse(res.mesg)
|
||||
this.getFormFieldList(processForm)
|
||||
}
|
||||
}).catch(e => {
|
||||
})
|
||||
})
|
||||
},
|
||||
/**
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
async getFormFieldList (item) {
|
||||
|
||||
let standObj = await this.getStandInfoUpdateById(item.standId)
|
||||
let fileObjFx = await this.getSaveFile("model_fs")
|
||||
let fileObjLx = await this.getSaveFile("model_lx")
|
||||
|
||||
this.$nextTick(() => {
|
||||
const bringData = standObj.data
|
||||
const obj = {
|
||||
reviewResults: "",
|
||||
reviewResultsContent:"",
|
||||
reviewUserId:this.$store.getters.userInfo.userId,
|
||||
reviewUserName:this.$store.getters.userInfo.userName,
|
||||
draftTime:"",
|
||||
releaseTime:"",
|
||||
expirationDate:"",
|
||||
LXDName:"",
|
||||
LXD:"",
|
||||
FSDName:"",
|
||||
FSD:"",
|
||||
QCRBUSSID:"",
|
||||
QCRBUSS:"",
|
||||
}
|
||||
const json = Object.assign(bringData, bringData.attrInfoMap,item,obj);
|
||||
this.qbfsForm = JSON.parse(JSON.stringify(json))
|
||||
this.qbfsForm.WJSCRYBUSS= this.$store.getters.userInfo.userId
|
||||
this.qbfsForm.WJSCRYBUSSName= this.$store.getters.userInfo.userName
|
||||
this.qbfsForm['id'] = bringData.id
|
||||
this.FBGBUSSFileList=this.assemble(this.qbfsForm.FBGBUSS,this.qbfsForm.FBGBUSSName);
|
||||
this.BZSMBUSSFileList=this.assemble(this.qbfsForm.BZSMBUSS,this.qbfsForm.BZSMBUSSName);
|
||||
this.LSBBBUSSFileList=this.assemble(this.qbfsForm.LSBBBUSS,this.qbfsForm.LSBBBUSSName);
|
||||
this.QTWJBUSSFileList=this.assemble(this.qbfsForm.QTWJBUSS,this.qbfsForm.QTWJBUSSName);
|
||||
this.GLWJBUSSFileList=this.assemble(this.qbfsForm.GLWJBUSS,this.qbfsForm.GLWJBUSSName);
|
||||
if(fileObjFx){
|
||||
this.qbfsForm.FSD = fileObjFx.id
|
||||
if(this.qbfsForm.standName){
|
||||
this.qbfsForm.FSDName = this.qbfsForm.standName + '-复审单'
|
||||
}else {
|
||||
this.qbfsForm.FSDName = '复审单'
|
||||
}
|
||||
this.FSDList=this.assemble(fileObjFx.id,this.qbfsForm.FSDName);
|
||||
}
|
||||
if(fileObjLx){
|
||||
this.qbfsForm.LXD = fileObjLx.id
|
||||
if(this.qbfsForm.standName){
|
||||
this.qbfsForm.LXDName = this.qbfsForm.standName + '-立项单'
|
||||
}else {
|
||||
this.qbfsForm.LXDName = '立项单'
|
||||
}
|
||||
this.LXDList=this.assemble(fileObjLx.id,this.qbfsForm.LXDName);
|
||||
}
|
||||
this.standardDrawer = false
|
||||
this.verifySarStandard = true
|
||||
this.formKey++
|
||||
this.$forceUpdate()
|
||||
this.dataLoading = false
|
||||
})
|
||||
},
|
||||
handleTabs(name) {
|
||||
this.active = name;
|
||||
},
|
||||
//流程保存
|
||||
handleSave(){
|
||||
this.saveLoading = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
_formData.append('createUserName', this.$store.getters.userInfo.userName)
|
||||
_formData.append('prcType', 'buss3')
|
||||
_formData.append('json', JSON.stringify({
|
||||
qbfsForm: this.qbfsForm,
|
||||
commentText: this.commentText
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
processEditFile(id) {
|
||||
return new Promise((resolve, reject) => {
|
||||
processEditFile({
|
||||
id
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
const history = res;
|
||||
resolve(history)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
//流程提交
|
||||
handleSubmit(){
|
||||
this.$refs['qbfsForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.qbfsForm.commentText = this.commentText
|
||||
let json = JSON.stringify(this.qbfsForm);
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
json: json,
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.$router.push('/processCenter')
|
||||
if (this.bpnId !== undefined && this.bpnId !== '') {
|
||||
let taskId = {
|
||||
id: this.bpnId
|
||||
}
|
||||
taskDel(taskId).then(res=>{
|
||||
})
|
||||
}
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}, e => {
|
||||
});
|
||||
}else {
|
||||
this.$message.warning('请检查基础信息表单是否填写完整')
|
||||
}
|
||||
})
|
||||
},
|
||||
//转办事件
|
||||
handleTransfer(){
|
||||
this.drawerModal = true
|
||||
this.drawerTitle = '转办处理人'
|
||||
this.selectPeople = row
|
||||
},
|
||||
//确认转办
|
||||
checkedRoles (data) {
|
||||
this.assigneeNewLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
this.$router.push("/processCenter");
|
||||
this.processNum()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
processNum (row) {
|
||||
axios.request({
|
||||
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||
responseType: 'blob',
|
||||
method: 'get',
|
||||
params: {
|
||||
prcNum: this.$route.query.prcNum
|
||||
}
|
||||
}).then(res => {
|
||||
// let blob = new Blob([res.data], {type: 'image/jpg'})
|
||||
// let url = window.URL.createObjectURL(res.data)
|
||||
this.processStep = window.URL.createObjectURL(res.data)
|
||||
})
|
||||
},
|
||||
choiceZRRS() {
|
||||
this.drawerTitle = '请选择企标复审人'
|
||||
this.nodeList2 = [];
|
||||
if (this.qbfsForm.bussFsSubUser2) {
|
||||
this.nodeList2 = this.qbfsForm.bussFsSubUser2.split(",");
|
||||
}
|
||||
this.modalshowflag = true;
|
||||
},
|
||||
checkedRole(data) {
|
||||
let idList = "";
|
||||
let nameList = "";
|
||||
data.forEach(item => {
|
||||
if (nameList.length) {
|
||||
nameList += ",";
|
||||
idList += ",";
|
||||
}
|
||||
idList += item.id;
|
||||
nameList += item.name;
|
||||
});
|
||||
this.$set(this.qbfsForm, 'jgUser', nameList)
|
||||
this.$set(this.qbfsForm, 'jgUserId', idList)
|
||||
if(this.qbfsForm.jgUser){
|
||||
this.$refs.qbfsForm.validateField('jgUser')
|
||||
}
|
||||
|
||||
this.$set(this.qbfsForm, 'bussFsSubUser2Name', nameList)
|
||||
this.$set(this.qbfsForm, 'bussFsSubUser2', idList)
|
||||
if(this.qbfsForm.bussFsSubUser2Name){
|
||||
this.$refs.qbfsForm.validateField('bussFsSubUser2Name')
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @Description: 点击下载
|
||||
*/
|
||||
downloadFile(attId) {
|
||||
if (attId != null && attId !== "") {
|
||||
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
||||
} else {
|
||||
this.$message.error("请选择要下载的文件");
|
||||
}
|
||||
},
|
||||
downloadFileByWater(attId, fileSuffix) {
|
||||
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
|
||||
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
|
||||
this.$message.error("水印下载仅支持PDF,pdf格式文件");
|
||||
} else {
|
||||
if (attId != null && attId !== "") {
|
||||
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
|
||||
} else {
|
||||
this.$message.error("请选择要下载的文件");
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/style';
|
||||
|
||||
.qbfs-step2 {
|
||||
/deep/ .el-drawer__container {
|
||||
.prc-content-border {
|
||||
border: none;
|
||||
padding: 0 20px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.fileClass {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fileClass:hover {
|
||||
color: #0c91e5;
|
||||
}
|
||||
|
||||
p {
|
||||
& > a {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
& > i {
|
||||
display: inline-block;
|
||||
margin-left: 3px;
|
||||
width: 18px;
|
||||
height: 16px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
background-position: center center;
|
||||
vertical-align: sub;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.icon-download {
|
||||
background-image: url("~assets/images/shangqi/img/download.png");
|
||||
}
|
||||
|
||||
.icon-download2 {
|
||||
background-image: url("~assets/images/shangqi/img/download2.png");
|
||||
}
|
||||
}
|
||||
|
||||
.choiceBtn {
|
||||
.el-button--primary {
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
|
||||
position: relative;
|
||||
height: 100%;
|
||||
|
||||
.headerTabs {
|
||||
height: 52px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 10px;
|
||||
|
||||
.headerTabsItem {
|
||||
border: 1px solid #c1c1c1;
|
||||
padding: 0 5px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.active {
|
||||
border: 1px solid #E6A23C;
|
||||
color: #fff;
|
||||
background: #E6A23C;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
height: calc(~'100% - 103px');
|
||||
overflow: auto;
|
||||
|
||||
.tableTitle {
|
||||
margin-bottom: 10px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
position: relative;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
|
||||
.tableButton {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.accessStandardsAndRegulations {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.add-form-el-select {
|
||||
/deep/ .el-select {
|
||||
width: 210px;
|
||||
}
|
||||
}
|
||||
|
||||
.demo-drawer-content {
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -220,7 +220,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover" v-btn-permission="'5af5073695c2e1d12ca3d5a6afae67b5'">
|
||||
<el-card shadow="hover" v-btn-permission="''">
|
||||
<div class="card-box" @click="handleCreateProcess('23')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -250,7 +250,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover" v-btn-permission="'afa3d1aee5fd8027b18675621afdeff6'">
|
||||
<el-card shadow="hover" v-btn-permission="''">
|
||||
<div class="card-box" @click="handleCreateProcess('25')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
|
||||
@@ -659,7 +659,7 @@ export default {
|
||||
}
|
||||
break;
|
||||
case 'buss3':
|
||||
if (row.taskInfo === '对接人选择复审人') {
|
||||
if (row.taskInfo === '选择复审人') {
|
||||
this.$router.push({
|
||||
name: 'qbfsStepSub1',
|
||||
query: {
|
||||
@@ -670,7 +670,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}else if (row.taskInfo === '复审人选择复审结果'){
|
||||
}else if (row.taskInfo === '复审'){
|
||||
this.$router.push({
|
||||
name: 'qbfsStepSub2',
|
||||
query: {
|
||||
@@ -681,7 +681,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}else if (row.taskInfo === '发起人汇总结果'){
|
||||
}else if (row.taskInfo === '汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussFs2',
|
||||
query: {
|
||||
@@ -692,7 +692,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}else if (row.taskInfo === '重新发起人汇总结果'){
|
||||
}else if (row.taskInfo === '重新汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussFsC2',
|
||||
query: {
|
||||
@@ -703,7 +703,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}else if (row.taskInfo === '标准法规部高级经理批准'){
|
||||
}else if (row.taskInfo === '批准'){
|
||||
this.$router.push({
|
||||
name: 'bussFs3',
|
||||
query: {
|
||||
|
||||
@@ -292,7 +292,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '发起企标制修订流程'){
|
||||
}else if (mes.taskInfo === '起草'){
|
||||
this.$router.push({
|
||||
name: 'bussLibrary1',
|
||||
query: {
|
||||
@@ -302,7 +302,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '重新发起企标制修订-技术标准流程'){
|
||||
}else if (mes.taskInfo === '重新起草'){
|
||||
this.$router.push({
|
||||
name: 'bussLibraryC1',
|
||||
query: {
|
||||
@@ -312,7 +312,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '企标编写汇总修订'){
|
||||
}else if (mes.taskInfo === '企标编写汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussLibrary3',
|
||||
query: {
|
||||
@@ -323,7 +323,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '标准化员初审'){
|
||||
}else if (mes.taskInfo === '标准化初审'){
|
||||
this.$router.push({
|
||||
name: 'bussLibrary4',
|
||||
query: {
|
||||
@@ -333,7 +333,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '重新企标编写汇总修订'){
|
||||
}else if (mes.taskInfo === '重新企标编写汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussLibraryC3',
|
||||
query: {
|
||||
@@ -344,7 +344,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '会签征求意见'){
|
||||
}else if (mes.taskInfo === '征求意见'){
|
||||
this.$router.push({
|
||||
name: 'bussLibrary5',
|
||||
query: {
|
||||
@@ -355,7 +355,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '技术委员会评审/评审意见修改评审'){
|
||||
}else if (mes.taskInfo === '技术委员会评审、评审意见修改'){
|
||||
this.$router.push({
|
||||
name: 'bussLibrary6',
|
||||
query: {
|
||||
@@ -366,7 +366,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '复审'){
|
||||
}else if (mes.taskInfo === '标准化复审'){
|
||||
this.$router.push({
|
||||
name: 'bussLibrary7',
|
||||
query: {
|
||||
@@ -377,7 +377,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '重新技术委员会评审/评审意见修改评审'){
|
||||
}else if (mes.taskInfo === '重新技术委员会评审、评审意见修改'){
|
||||
this.$router.push({
|
||||
name: 'bussLibraryC6',
|
||||
query: {
|
||||
@@ -430,7 +430,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '培训'){
|
||||
}else if (mes.taskInfo === '主起草人培训'){
|
||||
this.$router.push({
|
||||
name: 'bussLibrary12',
|
||||
query: {
|
||||
@@ -458,7 +458,7 @@ export default {
|
||||
name: 'bussLibrary1',
|
||||
query: {
|
||||
type: 'buss1',
|
||||
processName: '发起企标制修订流程',
|
||||
processName: '起草',
|
||||
bpnId: id,
|
||||
verifySarStandard: true,
|
||||
}
|
||||
@@ -477,7 +477,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '发起企标制修订流程'){
|
||||
}else if (mes.taskInfo === '起草'){
|
||||
this.$router.push({
|
||||
name: 'bussLibraryProduct1',
|
||||
query: {
|
||||
@@ -487,7 +487,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '企标编写汇总修订'){
|
||||
}else if (mes.taskInfo === '企标编写汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussLibraryProduct3',
|
||||
query: {
|
||||
@@ -497,7 +497,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '重新企标编写汇总修订'){
|
||||
}else if (mes.taskInfo === '重新企标编写汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussLibraryProductC3',
|
||||
query: {
|
||||
@@ -507,7 +507,7 @@ export default {
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '会签征求意见'){
|
||||
}else if (mes.taskInfo === '征求意见'){
|
||||
this.$router.push({
|
||||
name: 'bussLibraryProduct5',
|
||||
query: {
|
||||
@@ -553,13 +553,68 @@ export default {
|
||||
name: 'bussLibraryProduct1',
|
||||
query: {
|
||||
type: 'buss2',
|
||||
processName: '发起企标制修订流程',
|
||||
processName: '起草',
|
||||
bpnId: id,
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}
|
||||
break
|
||||
case 'buss3':
|
||||
if(mes !== null && mes.taskInfo !== null) {
|
||||
if (mes.taskInfo === '起草'){
|
||||
this.$router.push({
|
||||
name: 'bussLibraryProduct1',
|
||||
query: {
|
||||
type: 'buss3',
|
||||
processName: mes.taskInfo,
|
||||
bpnId: id,
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussFs2',
|
||||
query: {
|
||||
type: 'buss3',
|
||||
processName: mes.taskInfo,
|
||||
bpnId: id,
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '重新汇总'){
|
||||
this.$router.push({
|
||||
name: 'bussFsC2',
|
||||
query: {
|
||||
type: 'buss3',
|
||||
processName: mes.taskInfo,
|
||||
bpnId: id,
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}else if (mes.taskInfo === '复审'){
|
||||
this.$router.push({
|
||||
name: 'qbfsStepSub2',
|
||||
query: {
|
||||
type: 'buss3',
|
||||
processName: mes.taskInfo,
|
||||
bpnId: id,
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}
|
||||
}else {
|
||||
this.$router.push({
|
||||
name: 'qbfsStep1',
|
||||
query: {
|
||||
type: 'buss3',
|
||||
processName: '起草',
|
||||
bpnId: id,
|
||||
verifySarStandard: true,
|
||||
}
|
||||
})
|
||||
}
|
||||
break
|
||||
// 法规入库及评估流程
|
||||
case '2':
|
||||
this.$router.push({
|
||||
|
||||
@@ -1991,6 +1991,15 @@ const routes = [
|
||||
title: '企标复审流程'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bussFsC2',
|
||||
name: 'bussFsC2',
|
||||
component: () => import('@/pages/processCenter/pages/creatProcess/qbfs/stepC4.vue'),
|
||||
meta: {
|
||||
requireAuth: true,
|
||||
title: '企标复审流程'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bussFs3',
|
||||
name: 'bussFs3',
|
||||
|
||||
Reference in New Issue
Block a user