926 lines
30 KiB
Vue
926 lines
30 KiB
Vue
<!--标准合规评估 分发人分发项目-->
|
|
<template>
|
|
<div class="bzpg-step3">
|
|
<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" v-show="active === '1'">
|
|
<div style="overflow: auto">
|
|
<process-title>
|
|
<template slot="title">基础信息</template>
|
|
</process-title>
|
|
<el-collapse-transition>
|
|
<el-form
|
|
v-if="!foldFormFlag"
|
|
:model="listForm"
|
|
class="label-input-form prc-content-border"
|
|
label-width="150px"
|
|
>
|
|
<el-row :gutter="24">
|
|
<el-col :span="24">
|
|
<el-form-item label="标准编号" prop="standNumber" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
class="input-jump"
|
|
v-model="listForm.standNumber"
|
|
placeholder="请输入标准编号"
|
|
readonly
|
|
@click.native="handlePreview(listForm)"
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="标准名称" prop="standName" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
class="input-jump"
|
|
v-model="listForm.standName"
|
|
placeholder="请输入标准名称"
|
|
readonly
|
|
@click.native="handlePreview(listForm)"
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="认证工程师" v-if="listForm.certifiedEngineerName !== ''" prop="certifiedEngineerName" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
readonly
|
|
v-model="listForm.certifiedEngineerName"
|
|
placeholder="请选择认证工程师"
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="认证工程师" v-else prop="certifiedEngineerName" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
readonly
|
|
v-model="listForm.certifiedEngineerName"
|
|
placeholder="--"
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item v-if="listForm.qualityEngineerName !== '' " label="质量工程师" prop="qualityEngineerName" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
readonly
|
|
v-model="listForm.qualityEngineerName"
|
|
placeholder="请选择质量工程师"
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item v-else label="质量工程师" prop="qualityEngineerName" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
readonly
|
|
v-model="listForm.qualityEngineerName"
|
|
placeholder="--"
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</el-form>
|
|
</el-collapse-transition>
|
|
<el-button v-if="foldFormFlag === false" style="width: 100%" icon="el-icon-caret-top" @click="foldForm">隐藏基础信息</el-button>
|
|
<el-button v-if="foldFormFlag === true" style="width: 100%" icon="el-icon-caret-bottom" @click="foldForm">展开基础信息</el-button>
|
|
</div>
|
|
<process-title>
|
|
<template slot="title">填写信息</template>
|
|
</process-title>
|
|
<div class="tableTitle">
|
|
<div class="tableButton">
|
|
<el-button class="common-button-primary" plain size="mini" @click="addProject">添加
|
|
</el-button>
|
|
<el-button plain class="common-button-primary" type="primary" size="mini" @click="deleteList">批量删除
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
<el-table
|
|
:data="dataList"
|
|
border
|
|
ref="selection"
|
|
tooltip-effect="dark"
|
|
height="100%"
|
|
style="width: 100%;"
|
|
@selection-change="selectProjectGroup"
|
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '48px'}">
|
|
<el-table-column
|
|
type="selection"
|
|
width="55"
|
|
align="center"/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="managementHostName"
|
|
label="管理主体"/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="developmentHostName"
|
|
label="开发主体"/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="categoryName"
|
|
label="项目细分类"/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="projectStatus"
|
|
label="项目状态"/>
|
|
<el-table-column
|
|
align="center"
|
|
:show-overflow-tooltip="true"
|
|
prop="projectNumber"
|
|
label="项目编号"/>
|
|
<el-table-column
|
|
align="center"
|
|
:show-overflow-tooltip="true"
|
|
prop="projectName"
|
|
label="项目名称"/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="uname"
|
|
label="项目经理">
|
|
<template slot-scope="scope">
|
|
<el-input v-model="scope.row.unameId" style="display: none;" />
|
|
<el-input v-model="scope.row.uname" placeholder="请选择项目经理"
|
|
@click.native="choiceZRRS(scope.row, 1, scope.$index)" />
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<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 class="content" v-show="active === '3'">
|
|
<div class="flow-list" style="height: 100%">
|
|
<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="创建时间"
|
|
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-drawer
|
|
class="drawer-table"
|
|
title="添加项目"
|
|
:visible.sync="projectModel"
|
|
size="900px"
|
|
custom-class="demo-drawer"
|
|
>
|
|
<div class="demo-drawer-content">
|
|
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
|
|
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
|
<div class="left">
|
|
<el-form :modal="projectSearch" :inline="true" class="label-input-form" style="margin-left:10px">
|
|
<el-form-item label="管理主体" class="search-item search-item-last">
|
|
<el-select v-model="projectSearch.managementHostName"
|
|
@change="optionsChange(projectSearch)"
|
|
placeholder="请选择管理主体" filterable clearable>
|
|
<el-option
|
|
v-for="(item, index) in managementHostName"
|
|
:key="index"
|
|
:value="item"
|
|
:label="item"
|
|
>
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="开发主体" class="search-item search-item-last">
|
|
<el-select v-model="projectSearch.developmentHostName" @change="optionsChange(projectSearch)" placeholder="请选择开发主体" filterable clearable>
|
|
<el-option
|
|
v-for="(item, index) in developmentHostName"
|
|
:key="index"
|
|
:value="item"
|
|
:label="item"
|
|
>
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="项目细分类" class="search-item search-item-last">
|
|
<el-select v-model="projectSearch.categoryName" @change="optionsChange(projectSearch)" placeholder="请选择项目细分类" filterable clearable>
|
|
<el-option
|
|
v-for="(item, index) in categoryName"
|
|
:key="index"
|
|
:value="item"
|
|
:label="item"
|
|
>
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="项目状态" class="search-item search-item-last">
|
|
<el-select v-model="projectSearch.projectStatus" placeholder="请选择项目状态" filterable clearable>
|
|
<el-option
|
|
v-for="(item, index) in projectStatus"
|
|
:key="index"
|
|
:value="item"
|
|
:label="item"
|
|
>
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item class="search-item btn-box">
|
|
<el-button
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="small"
|
|
v-btn-permission=""
|
|
@click="getProductDataBtn">
|
|
查询
|
|
</el-button>
|
|
</el-form-item>
|
|
<el-form-item class="search-item btn-box">
|
|
<el-button
|
|
class="common-button-default"
|
|
size="small"
|
|
v-btn-permission=""
|
|
@click="clearProject">清空
|
|
</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
<div style="height: calc(100% - 65px); ">
|
|
<div style="font-size: 16px; color: #FF7F50; padding-bottom: 10px; margin-left: 10px">
|
|
<p>如果各项目符合法规情况相同,可同时勾选,第一个勾选项目合规排查结果,将代表所有勾选项目合规排查结果。</p>
|
|
</div>
|
|
<el-table
|
|
:data="productData"
|
|
tooltip-effect="dark"
|
|
style="width: 100%"
|
|
border
|
|
ref="projectTable"
|
|
height="100%"
|
|
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '48px'}"
|
|
@selection-change="selectProject"
|
|
>
|
|
<el-table-column
|
|
type="selection"
|
|
width="55"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
type="index"
|
|
width="55"
|
|
label="序号"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
align="center"
|
|
prop="projectName"
|
|
label="项目名称"/>
|
|
<el-table-column
|
|
align="center"
|
|
width="120"
|
|
prop="projectStatus"
|
|
label="项目状态"/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="currentNode"
|
|
label="当前节点"/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="projectGroup"
|
|
label="项目群"/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="uname"
|
|
label="项目经理"/>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<pagination
|
|
:page="pageNo"
|
|
:pageSize="pageSizeNo"
|
|
:total="totalNo"
|
|
@pageChange="pageChangeNo"
|
|
@pageSizeChange="pageSizeChangeNo"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="demo-drawer-footer">
|
|
<el-button size="mini" @click="cancelStand">取消</el-button>
|
|
<el-button type="primary" size="mini" @click="okProject">添加</el-button>
|
|
</div>
|
|
</el-drawer>
|
|
<ProcessFooter
|
|
show-save
|
|
show-transfer
|
|
show-submit
|
|
:transfer-loading="isTransfer"
|
|
:submitLoading="isSubmit"
|
|
:saveLoading="saveLoading"
|
|
:approval="true"
|
|
@transfer="handleTransfer"
|
|
@save="handleSave"
|
|
@submit="handleSubmit"
|
|
>
|
|
</ProcessFooter>
|
|
<!-- 福田全公司选人解决方案 -->
|
|
<Role-tree
|
|
check-box
|
|
:is-title="drawerTitle"
|
|
:is-visible.sync="drawerModal"
|
|
@checkedRole="checkedRole"
|
|
:nodeList="nodeList"
|
|
></Role-tree>
|
|
<!-- 选择责任人-->
|
|
<Role-tree
|
|
check-box
|
|
is-title="选择项目经理"
|
|
:is-visible.sync="modalshowflag"
|
|
@checkedRole="checkedRole2"
|
|
:nodeList="nodeList2"
|
|
></Role-tree>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ProcessHeader from "process/components/ProcessHeader";
|
|
import ProcessFooter from "process/components/ProcessFooter";
|
|
import ProcessTitle from "process/components/ProcessTitle";
|
|
import { changeAssigneeNew, inboundLiaisonDetail, saveTaskForPub } from "api/process";
|
|
|
|
export default {
|
|
name: "bzpgStep3",
|
|
components: {
|
|
ProcessHeader,
|
|
ProcessFooter,
|
|
ProcessTitle
|
|
},
|
|
data(){
|
|
return {
|
|
active: "1",
|
|
//折叠的标志,true为折叠,false为不折叠
|
|
foldFormFlag: false,
|
|
drawerModal: false,
|
|
loading: false,
|
|
isTransfer: false,
|
|
isSubmit: false,
|
|
saveLoading: false,
|
|
projectModel: false,
|
|
modalshowflag: false,
|
|
pageNo: 1,
|
|
totalNo: 0,
|
|
pageSizeNo: this.$store.getters.userInfo.configContent,
|
|
userId: this.$store.getters.userInfo.userId,
|
|
taskIds: this.$route.query.taskIds,
|
|
pId: this.$route.query.prcId,
|
|
commentText: "",
|
|
drawerTitle: "",
|
|
projectGroup: "", //用来查询项目
|
|
listForm: {},
|
|
dataList: [],
|
|
projectDataList: [],
|
|
breakdownList: [], //标准下的分解单数据
|
|
detailData: [],
|
|
nodeList: [],
|
|
nodeList2: [],
|
|
selectProjectList: [],
|
|
selectProjectGroupList: [],
|
|
productData: [], //项目群下的项目
|
|
projectStatus: [], //项目状态下拉框
|
|
managementHostName: [], //管理主体名称下拉框
|
|
developmentHostName: [], //开发主体名称下拉框
|
|
categoryName: [], //项目细分类下拉框
|
|
projectSearch: {
|
|
projectStatus: "" //项目状态
|
|
}
|
|
}
|
|
},
|
|
mounted() {
|
|
this.optionsChange()
|
|
this.getData();
|
|
this.processTable();
|
|
/**
|
|
* 获取项目群筛选项的值
|
|
*/
|
|
this.$http.post("sarStandProjectLibrary/querySelect", {}, {
|
|
_this: this
|
|
}, res => {
|
|
res.data.statusList.forEach(item => {
|
|
if (item) {
|
|
this.projectStatus.push(item); //项目状态
|
|
}
|
|
});
|
|
});
|
|
},
|
|
methods: {
|
|
optionsChange(){
|
|
this.managementHostName = [] //管理主体名称下拉框
|
|
this.developmentHostName = [] //开发主体名称下拉框
|
|
this.categoryName = [] //项目细分类下拉框
|
|
/**
|
|
* 获取项目群筛选项的值
|
|
*/
|
|
this.$http.post("sarStandProjectLibrary/querySelect", {
|
|
...this.projectSearch
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
res.data.managementHostList.forEach(item => {
|
|
if (item) {
|
|
this.managementHostName.push(item); //管理主体
|
|
}
|
|
});
|
|
res.data.developmentHostList.forEach(item => {
|
|
if (item) {
|
|
this.developmentHostName.push(item); //开发主体
|
|
}
|
|
});
|
|
res.data.categoryList.forEach(item => {
|
|
if (item) {
|
|
this.categoryName.push(item); //项目细分类
|
|
}
|
|
});
|
|
});
|
|
},
|
|
getData() {
|
|
return new Promise((resolve, reject) => {
|
|
inboundLiaisonDetail({
|
|
taskIds: this.taskIds,
|
|
pId: this.pId
|
|
}).then(res => {
|
|
if (res) {
|
|
const processForm = JSON.parse(res.mesg)
|
|
this.getFormFieldList(processForm)
|
|
}
|
|
}).catch(e => {
|
|
})
|
|
})
|
|
},
|
|
/**
|
|
* @description: 动态表单读取
|
|
*/
|
|
getFormFieldList(item) {
|
|
console.log(item);
|
|
this.$nextTick(() => {
|
|
if(!item.form){
|
|
this.listForm = JSON.parse(JSON.stringify(item));
|
|
this.listForm.prcNum = this.prcNum;
|
|
this.listForm.prcName = this.prcName;
|
|
this.listForm["id"] = item.id;
|
|
this.projectGroup = item.dataList[0].projectGroup;
|
|
this.$http.get('SarStandItems/sar-stand-items/findAllItems', {
|
|
ids: item.standId,
|
|
type: item.fileType
|
|
},{
|
|
_this: this
|
|
}, res => {
|
|
this.breakdownList = res.data
|
|
this.breakdownList.map(item => {
|
|
delete item.termsConditions
|
|
})
|
|
})
|
|
this.getProductData();
|
|
}else{
|
|
this.listForm = JSON.parse(JSON.stringify(item.form));
|
|
this.commentText = item.commentText
|
|
this.dataList = item.dataList
|
|
this.projectGroup = item.dataList[0].projectGroup;
|
|
this.$http.get('SarStandItems/sar-stand-items/findAllItems', {
|
|
ids: item.form.standId,
|
|
type: item.form.fileType
|
|
},{
|
|
_this: this
|
|
}, res => {
|
|
this.breakdownList = res.data
|
|
this.breakdownList.map(item => {
|
|
delete item.termsConditions
|
|
})
|
|
})
|
|
this.getProductData();
|
|
}
|
|
|
|
});
|
|
},
|
|
choiceZRRS(row, type, index) {
|
|
this.nodeList2 = [];
|
|
this.lsIndex = index;
|
|
this.lsType = type;
|
|
if (row.unameId) {
|
|
this.nodeList2 = row.unameId.split(",");
|
|
} else {
|
|
this.nodeList2.push(row);
|
|
}
|
|
this.modalshowflag = true;
|
|
},
|
|
//查询项目群下的项目
|
|
getProductData() {
|
|
// 已维护 状态 1 , 为维护 状态 0
|
|
this.projectSearch.flag = '1'
|
|
this.$http.get("sarStandProjectLibrary/queryProjects", {
|
|
projectGroup: this.projectGroup,
|
|
current: this.pageNo,
|
|
PageSize: this.pageSizeNo,
|
|
...this.projectSearch
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
this.productData = res.data.records;
|
|
this.totalNo = res.data.total;
|
|
});
|
|
},
|
|
//查询项目按钮
|
|
getProductDataBtn(){
|
|
this.pageNo = 1
|
|
this.getProductData()
|
|
},
|
|
//清空按钮
|
|
clearProject(){
|
|
this.projectSearch = {
|
|
projectStatus: "",
|
|
}
|
|
this.getProductData()
|
|
},
|
|
selectProjectGroup(data){
|
|
this.selectProjectGroupList = data
|
|
},
|
|
//添加项目
|
|
addProject(){
|
|
this.projectModel= true
|
|
},
|
|
//批量删除
|
|
deleteList(){
|
|
if(!this.selectProjectGroupList.length){
|
|
this.$message.warning('请至少选择一条数据进行删除')
|
|
}else{
|
|
this.$confirm("您确认删除这些数据?", "提示", {
|
|
confirmButtonText: "确认",
|
|
confirmButtonClass: "common-button-primary",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
}).then(() => {
|
|
this.selectProjectGroupList.map(item => {
|
|
let index;
|
|
index = this.dataList.findIndex(items => {
|
|
return items.projectNumber === item.projectNumber;
|
|
});
|
|
if (index > -1) {
|
|
this.dataList.splice(index, 1);
|
|
}
|
|
});
|
|
this.selectProjectGroupList = [];
|
|
this.$refs.selection.clearSelection();
|
|
}).catch(() => {
|
|
});
|
|
}
|
|
},
|
|
cancelStand() {
|
|
this.projectModel = false;
|
|
},
|
|
okProject() {
|
|
console.log(this.selectProjectList);
|
|
if (this.selectProjectList.length) {
|
|
let addFlag = true;
|
|
let projectNumbers = "";
|
|
this.selectProjectList.forEach(item => {
|
|
projectNumbers += item.projectNumber;
|
|
projectNumbers += ",";
|
|
});
|
|
if(this.dataList.length){
|
|
this.dataList.forEach(item => {
|
|
if (item.projectNumber === projectNumbers) {
|
|
addFlag = false;
|
|
}
|
|
});
|
|
}
|
|
if (addFlag) {
|
|
let projectNames = "", projectNumbers = "", projectIds = "";
|
|
this.selectProjectList.forEach(items => {
|
|
projectIds += items.id;
|
|
projectIds += ',';
|
|
projectNames += items.projectName;
|
|
projectNames += ",";
|
|
projectNumbers += items.projectNumber;
|
|
projectNumbers += ",";
|
|
});
|
|
//去掉字符串的最后一个逗号
|
|
let dex = projectNumbers.lastIndexOf(",")
|
|
let name = projectNames.lastIndexOf(",")
|
|
this.dataList.push({
|
|
projectName: projectNames.substring(0, name),
|
|
projectNumber: projectNumbers.substring(0, dex),
|
|
projectIds: projectIds,
|
|
managementHostName: this.selectProjectList[0].managementHostName,
|
|
developmentHostName: this.selectProjectList[0].developmentHostName,
|
|
categoryName: this.selectProjectList[0].categoryName,
|
|
projectStatus: this.selectProjectList[0].projectStatus,
|
|
projectGroup: this.selectProjectList[0].projectGroup,
|
|
uname: this.selectProjectList[0].uname,
|
|
unameId: this.selectProjectList[0].projectManager,
|
|
})
|
|
} else {
|
|
this.$message.warning("请勿重复添加数据");
|
|
}
|
|
this.projectModel = false;
|
|
this.$refs.projectTable.clearSelection();
|
|
} else {
|
|
this.$message.warning("请至少选择一条数据进行添加");
|
|
}
|
|
},
|
|
selectProject(data) {
|
|
this.selectProjectList = data;
|
|
},
|
|
pageChangeNo(page) {
|
|
this.pageNo = page;
|
|
this.getProductData();
|
|
},
|
|
pageSizeChangeNo(pageSize) {
|
|
this.pageSizeNo = pageSize;
|
|
this.getProductData();
|
|
},
|
|
//tab发生变化
|
|
handleTabs(name) {
|
|
this.active = name;
|
|
},
|
|
//折叠/展开基础信息方法
|
|
foldForm() {
|
|
this.foldFormFlag = !this.foldFormFlag;
|
|
},
|
|
// 点击查看
|
|
handlePreview(item) {
|
|
let routeUrl = this.$router.resolve({
|
|
name: "OtherStandardDetails",
|
|
params: {
|
|
id: item.id,
|
|
pageType: "INLAND_STAND"
|
|
}
|
|
});
|
|
window.open(routeUrl.href, "_blank");
|
|
},
|
|
//提交
|
|
handleSubmit() {
|
|
if (!this.dataList.length) {
|
|
this.$message.warning("请添加项目数据");
|
|
} else if(this.dataList.length > 5) {
|
|
this.$message.warning('您最多只能选择五条数据')
|
|
}else{
|
|
let subFlag = true
|
|
this.dataList.forEach(item => {
|
|
if(!item.unameId){
|
|
subFlag = false
|
|
return
|
|
}
|
|
})
|
|
if(subFlag){
|
|
this.listForm.dataList = this.dataList;
|
|
this.listForm.breakdownList = this.breakdownList
|
|
this.listForm.commentText = this.commentText;
|
|
const json = JSON.stringify(this.listForm);
|
|
this.isSubmit = true;
|
|
this.$http.post("lawss/activiti/completeTask", {
|
|
taskIds: this.taskIds,
|
|
userId: this.userId,
|
|
json: json
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
if (res.success) {
|
|
this.$message.success(res.message);
|
|
this.$router.push("/processCenter");
|
|
}
|
|
this.isSubmit = false;
|
|
}, e => {
|
|
});
|
|
}else{
|
|
this.$message.warning('请选择项目经理')
|
|
}
|
|
}
|
|
|
|
},
|
|
//保存
|
|
handleSave() {
|
|
this.saveLoading = true;
|
|
// this.listForm.dataList = this.dataList;
|
|
let _formData = new FormData();
|
|
_formData.append("id", this.bpnId || "");
|
|
_formData.append("prcType", "5");
|
|
_formData.append("taskIds", this.taskIds);
|
|
_formData.append("json", JSON.stringify({
|
|
form: this.listForm,
|
|
dataList: this.dataList,
|
|
commentText: this.commentText
|
|
}));
|
|
saveTaskForPub(_formData).then(res => {
|
|
this.saveLoading = false;
|
|
this.$message.success("保存成功");
|
|
this.bpnId = res.result;
|
|
}).catch(e => {
|
|
this.saveLoading = false;
|
|
});
|
|
},
|
|
checkedRole2(data) {
|
|
console.log(data);
|
|
this.dataList[this.lsIndex].unameId = data[0].id;
|
|
this.dataList[this.lsIndex].uname = data[0].name;
|
|
this.modalshowflag = false;
|
|
},
|
|
//确认转办
|
|
checkedRole(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)
|
|
})
|
|
},
|
|
//转办事件
|
|
handleTransfer(){
|
|
this.drawerModal = true
|
|
this.drawerTitle = '转办处理人'
|
|
this.selectPeople = row
|
|
},
|
|
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 => {})
|
|
},
|
|
},
|
|
computed: {
|
|
listNoDataText () {
|
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程'
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import '~@/assets/styles/style';
|
|
|
|
.bzpg-step3 {
|
|
/deep/ .el-drawer__container {
|
|
.prc-content-border {
|
|
border: none;
|
|
padding: 0 20px 0;
|
|
}
|
|
}
|
|
|
|
.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%;
|
|
}
|
|
}
|
|
.input-jump {
|
|
/deep/.el-input__inner{
|
|
color: #409EFF;
|
|
}
|
|
}
|
|
}
|
|
.drawer-table{
|
|
/deep/.el-drawer__body{
|
|
overflow-y: hidden;
|
|
}
|
|
/deep/.demo-drawer-content{
|
|
overflow-y: hidden;
|
|
}
|
|
}
|
|
.demo-drawer-content {
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
</style>
|