902 lines
27 KiB
Vue
902 lines
27 KiB
Vue
<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"
|
|
@emitDataLoading="emitDataLoading"
|
|
@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="false"-->
|
|
<!-- show-over2-->
|
|
<!-- show-submit2-->
|
|
<!-- show-transfer-->
|
|
<!-- :submitLoading="isSubmit"-->
|
|
<!-- :saveLoading="saveLoading"-->
|
|
<!-- @transfer="handleTransfer"-->
|
|
<!-- @submit2="handle2"-->
|
|
<!-- @over2="handle1"-->
|
|
<!-- >-->
|
|
<!-- </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,processCreateFsBuss } from "api/process";
|
|
import formList from './common/formListStep5.vue'
|
|
|
|
export default {
|
|
name: "bussFsDetail",
|
|
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: '',
|
|
approvalOpinion: '',
|
|
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:'',
|
|
},
|
|
formBuss: {
|
|
selListRep2:[],
|
|
id:'',
|
|
standNum:'',
|
|
standStatus:'', // 标准状态
|
|
planId:'',
|
|
planStatus:'',
|
|
reviseStatus:'',
|
|
standSn:'',
|
|
modelData:[],
|
|
modelDataNameVerify:[],
|
|
modelDataZrUserVerify:[],
|
|
BARQ: '',
|
|
XGD: '',
|
|
XGDName: '',
|
|
// 基础信息
|
|
country:[],
|
|
// 基础信息
|
|
standSort: '',
|
|
standCode: '',
|
|
standYear: '',
|
|
standName: '',
|
|
standEnName: '',
|
|
textStatusBuss: '',
|
|
issueTime: '',
|
|
expirationDate: '',
|
|
putTime: '',
|
|
FZRQBUSS: '',
|
|
FSRQBUSS: '',
|
|
// 过程稿件
|
|
FBGBUSS: '',
|
|
FBGBUSSName: '',
|
|
BZSMBUSS: '',
|
|
BZSMBUSSName: '',
|
|
LSBBBUSS: '',
|
|
LSBBBUSSName: '',
|
|
QTWJBUSS: '',
|
|
QTWJBUSSName: '',
|
|
// 适用范围
|
|
QCDW: '',
|
|
QCDWID: '',
|
|
QCRBUSS: '',
|
|
QCRBUSSID: '',
|
|
WJSCRYBUSS: this.$store.getters.userInfo.userId,
|
|
WJSCRYBUSSName: this.$store.getters.userInfo.userName,
|
|
SYCXCLASS: '',
|
|
NYLXCLASS: '',
|
|
SYCPXCLASS: '',
|
|
TXLBBUSS: '',
|
|
VPPSBMBUSS: '',
|
|
VPPSCNBUSS: '',
|
|
KCVPPSBMBUSS: '',
|
|
KCVPPSCNBUSS: '',
|
|
CYCVPPSBMBUSS: '',
|
|
CYCVPPSCNBUSS: '',
|
|
DYBXHBUSS: '',
|
|
DYMCBUSS: '',
|
|
// 关联信息
|
|
DTQBBHBUSS: '',
|
|
BDTQBBHBUSS: '',
|
|
XGJLBUSS: '',
|
|
XGLC: '',
|
|
GLWJBUSS: '',
|
|
GLWJBUSSName: '',
|
|
XCSJBUSS: '',
|
|
}, // 标准信息
|
|
roleForm:{
|
|
bussUser3: '',
|
|
bussUser3Name: '',
|
|
bussUser6: '',
|
|
bussUser6Name: '',
|
|
bussUser2: '', // 多实例
|
|
bussUser2Name:'', // 多实例
|
|
bussUser5:'', // 多实例
|
|
bussUser5Name:'', // 多实例
|
|
bussUser4:'',
|
|
bussUser4Name:'',
|
|
bussUser7:'',
|
|
bussUser7Name:'',
|
|
bussUser8:'',
|
|
bussUser8Name:'',
|
|
bussUser9:'',
|
|
bussUser9Name:'',
|
|
bussUser10:'',
|
|
bussUser10Name:'',
|
|
bussUser11:'',
|
|
bussUser11Name:'',
|
|
bussUser12:'',
|
|
bussUser12Name:'',
|
|
bussUser13:'',
|
|
bussUser13Name:'',
|
|
bussUser14:'',
|
|
bussUser14Name:'',
|
|
applyUpdUserId: '',
|
|
applyUpdUserName: '',
|
|
prcCreateUser: '',
|
|
prcCreateUserName: '',
|
|
},
|
|
formRules: {
|
|
commentText: [{ required: true, message: '请输入意见', trigger: 'blur' }],
|
|
approvalOpinion: [{ required: true, message: '请选择审批意见', trigger: 'change' }],
|
|
},
|
|
}
|
|
},
|
|
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)
|
|
},
|
|
emitDataLoading(boo){
|
|
this.dataLoading = boo
|
|
},
|
|
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)
|
|
this.$nextTick(() => {
|
|
const bringData = standObj.data
|
|
const json = Object.assign(bringData, bringData.attrInfoMap,item);
|
|
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);
|
|
this.FSDList=this.assemble(this.qbfsForm.FSD,this.qbfsForm.FSDName);
|
|
this.LXDList=this.assemble(this.qbfsForm.LXD,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)
|
|
})
|
|
})
|
|
},
|
|
/**
|
|
* @description: 流程入库
|
|
* @date
|
|
*/
|
|
processCreateFsBuss(json) {
|
|
const _formData = new FormData()
|
|
_formData.append('infoJson', json)
|
|
processCreateFsBuss(_formData).then(res => {
|
|
if (res.result === '操作成功' || res.data === '入库成功') {
|
|
if(this.qbfsForm.standSort && this.qbfsForm.standSort.indexOf("Q/QCBFC") !== -1){
|
|
this.routerBussProStand()
|
|
}
|
|
if (this.$route.query.bpnId && this.$route.query.bpnId !== '') {
|
|
let taskId = {
|
|
id: this.$route.query.bpnId
|
|
}
|
|
taskDel(taskId).then(res=>{
|
|
return res
|
|
})
|
|
}
|
|
this.submitLoading = false
|
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
|
} else {
|
|
this.isSubmit = false
|
|
}
|
|
})
|
|
},
|
|
async routerBussProStand(){
|
|
this.roleForm.bussUser3 = this.qbfsForm.QCRBUSSID
|
|
this.roleForm.bussUser3Name = this.qbfsForm.QCRBUSS
|
|
this.roleForm.bussUser6 = this.qbfsForm.QCRBUSSID
|
|
this.roleForm.bussUser6Name = this.qbfsForm.QCRBUSS
|
|
this.roleForm.applyUpdUserId = this.qbfsForm.QCRBUSSID
|
|
this.roleForm.applyUpdUserName = this.qbfsForm.QCRBUSS
|
|
this.roleForm.prcCreateUser = this.qbfsForm.QCRBUSSID
|
|
this.roleForm.prcCreateUserName = this.qbfsForm.QCRBUSS
|
|
this.formBuss.expirationDate = this.qbfsForm.expirationDate
|
|
this.formBuss.QCRBUSS = this.qbfsForm.QCRBUSS
|
|
this.formBuss.QCRBUSSID = this.qbfsForm.QCRBUSSID
|
|
this.formBuss.QCDW = this.qbfsForm.QCDW
|
|
this.formBuss.QCDWID = this.qbfsForm.QCDWID
|
|
let _formData = new FormData()
|
|
_formData.append('id', this.bpnId || '')
|
|
_formData.append('createUser', this.qbfsForm.QCRBUSSID)
|
|
_formData.append('createUserName', this.qbfsForm.QCRBUSS)
|
|
_formData.append('prcType', 'buss2')
|
|
_formData.append('prcName', '企标制修订-产品标准')
|
|
_formData.append('json', JSON.stringify({
|
|
taskInfo: '发起企标制修订流程',
|
|
form: this.formBuss,
|
|
roleForm: this.roleForm,
|
|
commentText: this.commentText
|
|
}))
|
|
saveTaskFirst(_formData).then(res => {
|
|
this.saveLoading = false
|
|
this.$message.success('自动创建企标制修订-产品标准流程,跳转至主起草人流程中心草稿')
|
|
this.bpnId = res.result
|
|
}).catch(e => {
|
|
})
|
|
},
|
|
//流程提交
|
|
handleSubmit(){
|
|
this.getRule()
|
|
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.isSubmit = false
|
|
this.processCreateFsBuss(json)
|
|
}
|
|
}, e => {
|
|
});
|
|
}else {
|
|
this.$message.warning('请检查基础信息表单是否填写完整')
|
|
}
|
|
})
|
|
},
|
|
handleTransfer() {
|
|
this.drawerModal = true
|
|
this.drawerTitle = '转办处理人'
|
|
},
|
|
handle1(){
|
|
this.qbfsForm.approvalOpinion = 1
|
|
this.handleSubmit()
|
|
},
|
|
handle2(){
|
|
this.qbfsForm.approvalOpinion = 0
|
|
this.handleSubmit()
|
|
},
|
|
getRule(){
|
|
if (this.qbfsForm.approvalOpinion === 0) {
|
|
this.formRules.commentText[0].required = false;
|
|
this.$refs.qbfsForm.clearValidate('commentText')
|
|
}else {
|
|
this.formRules.commentText[0].required = true;
|
|
}
|
|
},
|
|
//确认转办
|
|
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>
|