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

This commit is contained in:
super_liu
2022-01-24 13:40:14 +08:00
15 changed files with 5295 additions and 2538 deletions
@@ -87,7 +87,7 @@ export default {
}, },
labelWidth: { labelWidth: {
type: String, type: String,
default: '150px' default: '210px'
} }
}, },
components: {}, components: {},
@@ -0,0 +1,308 @@
<template>
<el-drawer
class="org-tree"
:title="drawerTitle"
:visible.sync="modalShowFlag"
:size="width"
:append-to-body=true
:before-close="cancelUserInfo"
:show-checkbox="showCheckBox"
>
<el-input
style="border-bottom: 1px #e5e5e5 solid"
placeholder="输入关键字进行过滤"
v-model="filterText">
</el-input>
<el-tree class="common-tree" :style="style" ref="tree" :data="data" :props="defaultProps"
:load="loadNode"
:lazy="lazy"
:show-checkbox="multiple"
:node-key="nodeKey"
:check-strictly="checkStrictly"
:expand-on-click-node="false"
:filter-node-method="filterNode"
:default-checked-keys="defaultCheckedKeys"
:highlight-current="true"
@node-click="handleNodeClick"
@check-change="handleCheckChange">
</el-tree>
<div id="roleFormButton" class="demo-drawer-footer">
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="saveUserInfo">确定</el-button>
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancelUserInfo">取消</el-button>
</div>
</el-drawer>
</template>
<script>
export default {
name: "treeSelectStand",
props: {
// 树结构数据
data: {
type: Array,
default () {
return [];
}
},
url: {
type: String,
default () {
return "";
}
},
type: {
type: String,
default () {
return "";
}
},
urlChild: {
type: String,
default () {
return "";
}
},
params: {
type: Object,
default () {
return {};
}
},
defaultProps: {
type: Object,
default () {
return {};
}
},
// 配置是否可多选
multiple: {
type: Boolean,
default () {
return false;
}
},
lazy: {
type: Boolean,
default () {
return false;
}
},
nodeKey: {
type: String,
default () {
return 'id';
}
},
// 显示复选框情况下,是否严格遵循父子不互相关联
checkStrictly: {
type: Boolean,
default () {
return false;
}
},
disabled: {
type: Boolean,
default () {
return false;
}
},
// 默认选中的节点key数组
checkedKeys: {
type: Array,
default () {
return [];
}
},
width: {
type: String,
default () {
return "";
}
},
drawerTitle:{
type: String,
default () {
return '';
}
},
showCheckBox:{
type: Boolean,
default () {
return true;
}
},
// 配置是否展开
modalShowFlag: {
type: Boolean,
default () {
return false;
}
},
},
data () {
return {
filterText: '',
nodeList: [],
defaultCheckedKeys: [],
isShowSelect: false, // 是否显示树状选择器
options: [],
selectedData: [], // 选中的节点
style: 'width:' + this.width + 'px;' + 'height: 100%;',
selectStyle: 'width:100%;',
};
},
created(){
},
mounted () {
if (this.checkedKeys.length > 0) {
if (this.multiple) {
this.defaultCheckedKeys = this.checkedKeys;
this.getChildByIDSList(this.defaultCheckedKeys);
} else {
const item = this.checkedKeys[0];
this.getChildByIDSList(item);
}
}
},
methods: {
filterNode(value, data) {
if (!value) return true;
return data.menuName.indexOf(value) !== -1;
},
loadNode(node, resolve) {
const that = this;
if (node.level === 0) {
that.loadTreeData(resolve);
}
if (node.level >= 1) {
setTimeout(() => {
this.getChildByList(node.data.level,node.data.id, resolve);
}, 500);
return resolve([]); // 加上这个,防止在该节点没有子节点时一直转圈的问题发生。
}
},
getChildByIDSList( _parentID) { // 获取子节点请求
let params = {ids : _parentID};
this.$http.get(this.urlChild, params, {
_this: this
}, res => {
if(res.data){
this.$emit('popoverHide', this.checkedIds, res.data,false);
}
})
},
getChildByList( level,id,resolve) { // 获取子节点请求
let params = {level : level,id :id,type : this.type};
this.$http.get(this.urlChild, params, {
_this: this
}, res => {
if(res.data){
resolve(res.data);
}else {
return false;
}
})
},
loadTreeData(resolve) {
// 获取loadtreeData 就是父节点数据,getChildByList就是异步获取子节点数据
this.$http.get(this.url, {type : this.type}, {
_this: this
}, res => {
if(res.data){
resolve(res.data)
}else {
return false;
}
})
},
popoverHide () {
},
// 节点被点击时的回调,返回被点击的节点数据
handleNodeClick (data, node) {
if (!this.multiple) {
let tmpMap = {};
tmpMap.value = node.key;
tmpMap.label = node.label;
this.options = [];
this.options.push(tmpMap);
this.selectedData = node.label;
this.isShowSelect = !this.isShowSelect;
}
},
// 递归
getTreeData(data) {
// 循环遍历json数据
for (let i = 0; i < data.length; i++) {
if (data[i].children.length < 1) {
// children若为空数组,则将children设为undefined
delete data[i].children
} else {
// children若不为空数组,则继续 递归调用 本方法
this.getTreeData(data[i].children)
}
}
return data
},
// 节点选中状态发生变化时的回调
handleCheckChange () {
var checkedKeys = this.$refs.tree.getCheckedKeys(); // 所有被选中的节点的 key 所组成的数组数据
this.options = checkedKeys.map((item) => {
var node = this.$refs.tree.getNode(item); // 所有被选中的节点对应的node
let tmpMap = {};
tmpMap.value = node.key;
tmpMap.label = node.label;
return tmpMap;
});
this.selectedData = this.options.map((item) => {
return item.label;
});
},
saveUserInfo () {
if (this.multiple) {
this.checkedIds = this.$refs.tree.getCheckedKeys(); // 所有被选中的节点的 key 所组成的数组数据
this.checkedData = this.$refs.tree.getCheckedNodes(); // 所有被选中的节点所组成的数组数据
} else {
this.checkedIds = this.$refs.tree.getCurrentKey();
this.checkedData = this.$refs.tree.getCurrentNode();
}
this.$emit('popoverHide', this.checkedIds, this.checkedData,false);
},
cancelUserInfo () {
this.$emit('popoverHideCancel', this.checkedIds, this.checkedData,false);
},
},
watch: {
filterText(val) {
this.$refs.tree.filter(val);
}
},
}
</script>
<style lang="less" scoped>
/deep/ .expanded{
background-image: none !important;
background-size:100% 100%;
}
.el-drawer__body{
/* & > div:first-child{
display: flex;
flex: auto;
flex-direction: column;
}*/
}
::v-deep .el-drawer__header{
&>span:first-child{
outline: none!important;
}
}
::v-deep .el-drawer{
outline: none!important;
}
</style>
@@ -450,7 +450,7 @@ export default {
this.page = 1 this.page = 1
} }
this.peopleType = 2; this.peopleType = 2;
this.$http.post('SarInstitution/institution/user', { this.$http.post('SarInstitution/institution/userUnderInstitution', {
current: this.page, current: this.page,
size: this.pageSize, size: this.pageSize,
uname: this.searchForm.uname, uname: this.searchForm.uname,
@@ -475,7 +475,7 @@ export default {
}, },
getData() { getData() {
this.peopleType = 1; this.peopleType = 1;
this.$http.post('SarInstitution/institution/user', { this.$http.post('SarInstitution/institution/userUnderInstitution', {
current: this.page, current: this.page,
size: this.pageSize, size: this.pageSize,
institutionId: this.id, institutionId: this.id,
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,500 @@
<!--标准合规评估 业务经理审批-->
<template>
<div class="bzpg-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" 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>
<el-table
:data="dataList"
border
ref="selection"
height="100%"
style="width: 100%;"
: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="projectGroup"
label="项目群"/>
<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="projectGroupPeople"
label="项目群责任人">
</el-table-column>
<el-table-column
align="center"
prop="distributePerson"
label="分发责任人">
</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="创建时间"
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>
<ProcessFooter
show-back
show-transfer
show-submit
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:approval="true"
@transfer="handleTransfer"
@back="beforeBack"
@submit="handleSubmit"
>
</ProcessFooter>
<!-- 福田全公司选人解决方案 -->
<Role-tree
check-box
:is-title="drawerTitle"
:is-visible.sync="drawerModal"
@checkedRole="checkedRole"
:nodeList="nodeList"
></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 } from "api/process";
export default {
name: "bzpgStep2",
components: {
ProcessHeader,
ProcessFooter,
ProcessTitle
},
data(){
return {
active: '1',
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
drawerModal: false,
loading: false,
isTransfer: false,
isSubmit: false,
saveLoading: false,
userId:this.$store.getters.userInfo.userId,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
commentText: '',
drawerTitle: '',
listForm: {},
dataList: [],
detailData: [],
nodeList: [],
}
},
mounted() {
this.getData()
this.processTable()
},
methods: {
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) {
this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item))
this.listForm.prcNum = this.prcNum
this.listForm.prcName = this.prcName
this.listForm['id'] = item.id
this.listForm.dataList = item.dataList
this.dataList = item.dataList
this.dataList.distributePerson = item.dataList[0].distributePerson
this.listForm.breakdownList = item.breakdownList
})
},
//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(){
this.listForm.commentText = this.commentText
this.listForm.stepFlag = '0'
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 => {
});
},
//驳回
beforeBack(){
if(!this.commentText){
this.$message.warning('请填写审批意见')
}else{
this.listForm.commentText = this.commentText
this.listForm.stepFlag = '1'
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 => {
});
}
},
//确认转办
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-step2 {
/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;
}
}
}
.demo-drawer-content {
margin-top: 10px;
}
}
</style>
@@ -0,0 +1,660 @@
<!--标准合规评估 业务经理审批-->
<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"
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"
prop="projectNumber"
label="项目编号"/>
<el-table-column
align="center"
prop="projectName"
label="项目名称"/>
<el-table-column
align="center"
prop="projectManager"
label="项目经理"/>
</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="创建时间"
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-drawer
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.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); overflow: auto">
<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"
prop="projectStatus"
label="项目状态"/>
<el-table-column
align="center"
prop="projectName"
label="当前节点"/>
<el-table-column
align="center"
prop="projectGroup"
label="项目群"/>
<el-table-column
align="center"
prop="projectManager"
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-back
show-transfer
show-submit
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:approval="true"
@transfer="handleTransfer"
@back="beforeBack"
@submit="handleSubmit"
>
</ProcessFooter>
<!-- 福田全公司选人解决方案 -->
<Role-tree
check-box
:is-title="drawerTitle"
:is-visible.sync="drawerModal"
@checkedRole="checkedRole"
:nodeList="nodeList"
></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 } 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,
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: [],
detailData: [],
nodeList: [],
selectProjectList: [],
selectProjectGroupList: [],
productData: [], //项目群下的项目
projectStatus: [], //项目状态下拉框
projectSearch: {
projectStatus: "", //项目状态
},
}
},
mounted() {
this.getData()
this.processTable()
this.getProductData()
},
methods: {
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) {
this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item))
this.listForm.prcNum = this.prcNum
this.listForm.prcName = this.prcName
this.listForm['id'] = item.id
this.listForm.dataList = item.dataList
this.dataList = item.dataList
this.projectGroup = item.dataList[0].projectGroup
this.dataList.distributePerson = item.dataList[0].distributePerson
this.listForm.breakdownList = item.breakdownList
})
},
//查询项目群下的项目
getProductData(){
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.count
})
},
//查询项目按钮
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(() => {
}).catch(() => {
});
}
},
cancelStand(){
this.projectModel = false
},
okProject(){
if(this.selectProjectList.length){
}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(){
},
//驳回
beforeBack(){
},
//确认转办
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;
}
}
}
.demo-drawer-content {
margin-top: 10px;
}
}
</style>
@@ -160,19 +160,31 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<!--<el-form-item label="归档位置"> <el-form-item v-if="verifySarStandard" label="归档位置" class="add-form-item form-item-disabled">
<el-input <el-input
style="display: none" style="display: none"
v-model="form.treeListId" v-model="form.treeListId"
placeholder="请"
readonly
></el-input> ></el-input>
<el-tooltip effect="dark" :content=form.treeListName placement="top-start">
<el-input <el-input
v-model="form.treeListName" v-model="form.treeListName"
placeholder="请输入标准英文名称" clearable
readonly placeholder="选择归档位置"
></el-input> @click.native="choiceTree('treeListName', '归档位置', form.treeListName)">
</el-form-item>--> </el-input>
</el-tooltip>
<tree-select-stand
:key="key"
:multiple=true
:lazy=false
:checkStrictly=true
:modalShowFlag="modalShowTree"
:drawerTitle="drawerTitle"
width="800"
:data="treeListOptions"
:defaultProps="defaultProps" :checkedKeys="treeCheckedKeys"
:nodeKey="nodeKey" @popoverHide="treeHide" @popoverHideCancel="treeHideCancel"></tree-select-stand>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -566,33 +578,6 @@
v-model="form['nylx']" v-model="form['nylx']"
></custom-select-array> ></custom-select-array>
</template> </template>
<!-- <el-form-item label="适用车型" prop="cllx" class="add-form-item form-item-disabled">-->
<!-- <custom-select-array-->
<!-- :key="applyArcticOptions.value"-->
<!-- :config="applyArcticOptions.label"-->
<!-- v-model="applyArcticOptions"-->
<!-- ></custom-select-array>-->
<!-- <el-select :popper-append-to-body="false" v-model="form.cllx" placeholder="请选择适用车型" multiple>-->
<!-- <el-option-->
<!-- v-for="item in applyArcticOptions"-->
<!-- placeholder="请选择"-->
<!-- :key="item.value"-->
<!-- :value="item.value"-->
<!-- :label="item.label"-->
<!-- ></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="能源类型" prop="nylx" class="add-form-item form-item-disabled">-->
<!-- <el-select :popper-append-to-body="false" v-model="form.nylx" placeholder="请选择能源类型" multiple>-->
<!-- <el-option-->
<!-- v-for="item in categoryOptions"-->
<!-- placeholder="请选择"-->
<!-- :key="item.value"-->
<!-- :value="item.value"-->
<!-- :label="item.label"-->
<!-- ></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item label="关联模块--乘用车VPPS编码" prop="cycvppsbm" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--乘用车VPPS编码" prop="cycvppsbm" class="add-form-item form-item-disabled">
<el-input v-model="form.cycvppsbm" placeholder="选择乘用车VPPS编码" clearable @click.native="choiceZRR2('cycvppsbm', '乘用车VPPS', form.cycvppsbm)"></el-input> <el-input v-model="form.cycvppsbm" placeholder="选择乘用车VPPS编码" clearable @click.native="choiceZRR2('cycvppsbm', '乘用车VPPS', form.cycvppsbm)"></el-input>
<tree-select-new <tree-select-new
@@ -920,27 +905,27 @@
>{{ '手动查找' }} >{{ '手动查找' }}
</el-button> </el-button>
</el-form-item> </el-form-item>
<!-- <el-form-item label="被引用标准" prop="byybj" class="add-form-item form-item-disabled">--> <!--<el-form-item label="被引用标准" prop="byybj" class="add-form-item form-item-disabled">
<!-- <el-input--> <el-input
<!-- v-model="form.byybj"--> v-model="form.byybj"
<!-- placeholder="请输入被引用标准"--> placeholder="请输入被引用标准"
<!-- clearable--> clearable
<!-- ></el-input>--> ></el-input>
<!-- <el-button--> <el-button
<!-- type="primary"--> type="primary"
<!-- class="common-button-primary"--> class="common-button-primary"
<!-- size="mini"--> size="mini"
<!-- style="position:absolute;top: 10px;right: 0;"--> style="position:absolute;top: 10px;right: 0;"
<!-- @click="selectLaws('byybj'),config.attrName = '被引用标准'"--> @click="selectLaws('byybj'),config.attrName = '被引用标准'"
<!-- >{{'手动查找'}}</el-button>--> >{{'手动查找'}}</el-button>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item v-if="form.standInData === '0'" label="参会记录" prop="chjl" class="add-form-item form-item-disabled">--> <el-form-item v-if="form.standInData === '0'" label="参会记录" prop="chjl" class="add-form-item form-item-disabled">
<!-- <el-input--> <el-input
<!-- v-model="form.chjl"--> v-model="form.chjl"
<!-- placeholder="请输入参会记录"--> placeholder="请输入参会记录"
<!-- clearable--> clearable
<!-- ></el-input>--> ></el-input>
<!-- </el-form-item>--> </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -1179,38 +1164,6 @@
@checkedRole="checkedRole" @checkedRole="checkedRole"
:nodeList="nodeList" :nodeList="nodeList"
></Role-tree> ></Role-tree>
<!-- <el-drawer
:title="drawerTitle"
:visible.sync="modalShowFlag"
:wrapperClosable="false"
size="800px">
<el-input
style="width:70%;padding: 10px"
placeholder="请输入姓名"
v-model="filterText">
</el-input>
<el-tree
:filter-node-method="filterNode"
v-if="modalShowFlag"
node-key="id"
style="height: 100%; overflow: auto;"
class="filter-tree"
:data="treeData"
:props="defaultUserProps"
:default-checked-keys="nodeList"
highlight-current
check-strictly
@check="drawerCheck"
default-expand-all
:expand-on-click-node="false"
show-checkbox
ref="tree">
</el-tree>
<div id="roleFormButton" class="demo-drawer-footer">
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="saveUserInfo">确定</el-button>
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancelUserInfo">取消</el-button>
</div>
</el-drawer>-->
<!-- 选择标准的弹框 --> <!-- 选择标准的弹框 -->
<el-drawer <el-drawer
ref="standard" ref="standard"
@@ -1380,17 +1333,19 @@ 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 CustomSelectArray from '@/components/CustomFormComponents/SelectArray' import CustomSelectArray from '@/components/CustomFormComponents/SelectArray'
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId, taskDel, processBack} from "api/process"; import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId, taskDel} from "api/process";
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
import TreeSelectModule from "@/components/treeSelect/treeSelectModule.vue"; import TreeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
import CustomDatePickGroup from '@/components/CustomFormComponents/DatePickerGroup' import CustomDatePickGroup from '@/components/CustomFormComponents/DatePickerGroup'
import CusTomDataPickerGroup import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup"; from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
import TreeSelectStand from "@/components/treeSelect/treeSelectStand";
export default { export default {
name: "bzrkStep1", name: "bzrkStep1",
components: { components: {
TreeSelectStand,
CusTomDataPickerGroup, CusTomDataPickerGroup,
CustomDatePickGroup, CustomDatePickGroup,
TreeSelectModule, TreeSelectModule,
@@ -1529,6 +1484,7 @@ export default {
modalShowFlag3: false, // drawer开关 modalShowFlag3: false, // drawer开关
modalShowFlag4: false, // drawer开关 modalShowFlag4: false, // drawer开关
modalShowRoleFlag5: false, modalShowRoleFlag5: false,
modalShowTree: false, // 归档位置drawer开关
url: '', url: '',
urlChild: '', urlChild: '',
drawerTitle: '', //drawer标题 drawerTitle: '', //drawer标题
@@ -1540,11 +1496,16 @@ export default {
defaultCheckedKeys1: [], defaultCheckedKeys1: [],
defaultCheckedKeys2: [], defaultCheckedKeys2: [],
defaultCheckedKeys3: [], defaultCheckedKeys3: [],
// 归档位置所选
treeCheckedKeys: [],
fileUrl: 'api/att/attFile/upload', fileUrl: 'api/att/attFile/upload',
fileMadel: false, fileMadel: false,
fileType: '', fileType: '',
countryArr: '', countryArr: '',
form: { form: {
standId: '',
// 基础信息 // 基础信息
country: '', country: '',
textStatus: '', // 文本状态 textStatus: '', // 文本状态
@@ -1560,6 +1521,9 @@ export default {
isRelateAccess: '', // 是否纳入认证清单 isRelateAccess: '', // 是否纳入认证清单
standSystem: '',// 标准体系 standSystem: '',// 标准体系
standSystemName: '',// 标准体系名称 standSystemName: '',// 标准体系名称
treeListId: '', // 归档位置Id
treeListName: '', // 归档位置名称
gxhbq: '', // 标签 gxhbq: '', // 标签
// 实施日期 // 实施日期
ssrq: '', // 实施日期(标准文本) ssrq: '', // 实施日期(标准文本)
@@ -1682,6 +1646,8 @@ export default {
busVppsChildOptions: [], // 车系体系架构子集合 busVppsChildOptions: [], // 车系体系架构子集合
modelOptions: [], // 模块体系架构 modelOptions: [], // 模块体系架构
modelChildOptions: [], // 模块体系架构子集合 modelChildOptions: [], // 模块体系架构子集合
treeListOptions: [],//归档位置数据储存
applyArcticOptions: { applyArcticOptions: {
attrName: '适用车型', attrName: '适用车型',
options: [] options: []
@@ -1738,7 +1704,6 @@ export default {
}, },
'form' : { 'form' : {
handler: function () { handler: function () {
console.log(this.form.standInData)
if(this.form.standInData === '1') { if(this.form.standInData === '1') {
this.rules.standYear[0].required = false; this.rules.standYear[0].required = false;
this.rules.standName[0].required = false this.rules.standName[0].required = false
@@ -1897,7 +1862,6 @@ export default {
// 标准来源改变事件 // 标准来源改变事件
standInChange(val) { standInChange(val) {
this.verifySarStandard = false this.verifySarStandard = false
/** val === '1' (国外) val === '0'( 国内 )*/ /** val === '1' (国外) val === '0'( 国内 )*/
// 国内英文名称不必填 国外必填 ,标准性质国内不体现 // 国内英文名称不必填 国外必填 ,标准性质国内不体现
if (val === '1') { if (val === '1') {
@@ -2071,6 +2035,7 @@ export default {
this.defaultCheckedKeys1 = [this.form.cycvppsbm] this.defaultCheckedKeys1 = [this.form.cycvppsbm]
this.defaultCheckedKeys2 = [this.form.kccvppsbm] this.defaultCheckedKeys2 = [this.form.kccvppsbm]
this.defaultCheckedKeys3 = [this.form.dybxh] this.defaultCheckedKeys3 = [this.form.dybxh]
this.treeCheckedKeys = this.form.treeListId.split(',')
this.form.standType = this.form.standInData === "0" ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === "0" ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : ''
if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') { if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') {
@@ -2189,10 +2154,10 @@ export default {
const bringData = res.data const bringData = res.data
bringData.signFlag = this.form.signFlag && this.form.signFlag != '' ? this.form.signFlag : '0' bringData.signFlag = this.form.signFlag && this.form.signFlag != '' ? this.form.signFlag : '0'
bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0' bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0'
const json = Object.assign(bringData, bringData.attrInfoCaseMap); const json = Object.assign(bringData, bringData.attrInfoCaseMap);
this.form = JSON.parse(JSON.stringify(json)) this.form = JSON.parse(JSON.stringify(json))
console.log(this.form) this.getListTree(bringData)
this.form.standId = bringData.id
this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw : '' this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw : ''
this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr && JSON.parse(JSON.stringify(json)).wssmr !== '[]' ? JSON.parse(JSON.stringify(json)).wssmr : '' this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr && JSON.parse(JSON.stringify(json)).wssmr !== '[]' ? JSON.parse(JSON.stringify(json)).wssmr : ''
this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs && JSON.parse(JSON.stringify(json)).zrgcs !== '[]' ? JSON.parse(JSON.stringify(json)).zrgcs : '' this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs && JSON.parse(JSON.stringify(json)).zrgcs !== '[]' ? JSON.parse(JSON.stringify(json)).zrgcs : ''
@@ -2211,9 +2176,6 @@ export default {
this.key3++ this.key3++
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = bringData.standYear ? parseInt(bringData.standYear) : '' this.form.standYear = bringData.standYear ? parseInt(bringData.standYear) : ''
// this.form.ssrq = this.form.ssrq ? this.$moment(this.form.ssrq).format("YYYY-MM-DD") : null
// this.form.zccssrq = this.form.zccssrq ? this.$moment(this.form.zccssrq).format("YYYY-MM-DD") : null
// this.form.xcxssrq = this.form.xcxssrq ? this.$moment(this.form.xcxssrq).format("YYYY-MM-DD") : null
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = bringData.id this.form['id'] = bringData.id
@@ -2229,7 +2191,6 @@ export default {
this.initializeFileList(p, this.form[p]); this.initializeFileList(p, this.form[p]);
} }
} }
console.log("res", res);
}) })
} else if (this.standardCheckedList.length > 1) { } else if (this.standardCheckedList.length > 1) {
@@ -2307,6 +2268,37 @@ export default {
}, e => { }, e => {
}) })
}, },
/** 归档位置树结构查询 */
getListTree(bringData) {
this.$http.get('sarResource/ts-resource/getListStand', {
sorDivide: bringData.standInData === '0' ? 'INLAND_STAND' : 'FOREIGN_STAND',
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.ok) {
this.treeListOptions = res.data
this.$http.get('sarStandardsInfo/sar-standards-info/getStandMenuId', {
standId: bringData.id,
}, {}, reson => {
if (reson.ok) {
let treeList = ''
let treeListId = ''
reson.data.forEach(item=>{
this.treeCheckedKeys.push(item.menuId)
if (treeList.length > 0) {
treeList += ','
treeListId += ','
}
treeList += item.menuName
treeListId += item.menuId
})
this.form.treeListName = treeList
this.form.treeListId = treeListId
}
})
}
})
},
handleStandardPageChange(page) { handleStandardPageChange(page) {
this.standardSearchForm.page = page this.standardSearchForm.page = page
this.handleSearchStandard() this.handleSearchStandard()
@@ -2464,6 +2456,13 @@ export default {
this.urlChild = "sarModelTree/childByList" this.urlChild = "sarModelTree/childByList"
this.key3++ this.key3++
}, },
choiceTree(type, title, id) {
this.drawerTitle = title
this.getListTree(this.form)
this.modalShowTree = true
this.key++
},
getTree() { getTree() {
this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res => { this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res => {
@@ -2925,6 +2924,23 @@ export default {
popoverHideCancel() { popoverHideCancel() {
this.modalShowFlag1 = false this.modalShowFlag1 = false
}, },
treeHide(checkedIds, checkedData) {
if (checkedData) {
if (checkedData.length > 0 && checkedData.length != 0) {
this.form.treeListName = checkedData.map(item => item.menuName).join(",")
this.form.treeListId = checkedData.map(item => item.id).join(",")
} else {
this.form.treeListName = checkedData.menuName
this.form.treeListId = checkedData.id
}
this.modalShowTree = false
}
},
treeHideCancel() {
this.modalShowTree = false
},
popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData && checkedData.length != 0) { if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0 && checkedData.length != 0) { if (checkedData.length > 0 && checkedData.length != 0) {
@@ -143,6 +143,20 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="归档位置" class="add-form-item form-item-disabled">
<el-input
style="display: none"
v-model="form.treeListId"
></el-input>
<el-tooltip effect="dark" :content=form.treeListName placement="top-start">
<el-input
v-model="form.treeListName"
clearable
placeholder="选择归档位置"
readonly>
</el-input>
</el-tooltip>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -164,24 +178,6 @@
v-model="form.zccssrq" v-model="form.zccssrq"
:disabled="true" :disabled="true"
></cus-tom-data-picker-group> ></cus-tom-data-picker-group>
<!-- <el-form-item label="实施日期(标准文本)" prop="ssrq" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.ssrq"-->
<!-- type="dates"-->
<!-- placeholder="请选择标准实施日期(标准文本)"-->
<!-- value-format="yyyy-MM-dd hh:mm:ss">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.zccssrq"-->
<!-- type="dates"-->
<!-- placeholder="请选择在产车实施日期(标准文本)"-->
<!-- value-format="yyyy-MM-dd hh:mm:ss">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<cus-tom-data-picker-group <cus-tom-data-picker-group
@@ -190,42 +186,6 @@
v-model="form.xcxssrq" v-model="form.xcxssrq"
:disabled="true" :disabled="true"
></cus-tom-data-picker-group> ></cus-tom-data-picker-group>
<!-- <el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.xcxssrq"-->
<!-- type="dates"-->
<!-- placeholder="请选择新车型实施日期(标准文本"-->
<!-- value-format="yyyy-MM-dd hh:mm:ss">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.ssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择实施日期(国际)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.xcxssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择新车型实施日期(国家)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.zccssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择在产车实施日期(国家)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -233,91 +193,91 @@
<template slot="title">文本信息</template> <template slot="title">文本信息</template>
</ProcessTitle> </ProcessTitle>
<div class="prc-content-border"> <div class="prc-content-border">
<!-- <el-row :gutter="24">--> <!-- <el-row :gutter="24">-->
<!-- <el-col :span="12">--> <!-- <el-col :span="12">-->
<!-- <el-form-item v-if="form.standInData === '0'" label="修改单" prop="xgdName" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-if="form.standInData === '0'" label="修改单" prop="xgdName" class="add-form-item form-item-disabled">-->
<!-- <div style="cursor: pointer;color: #00b7ee" v-if="form.xgdName" @click="downloadFile('xgd')">--> <!-- <div style="cursor: pointer;color: #00b7ee" v-if="form.xgdName" @click="downloadFile('xgd')">-->
<!-- {{ form.xgdName }}--> <!-- {{ form.xgdName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item label="发布稿" prop="fbgbjbdName" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="发布稿" prop="fbgbjbdName" class="add-form-item form-item-disabled">-->
<!-- <div style="cursor: pointer;color: #00b7ee" v-if="form.fbgbjbdName" @click="downloadFile('fbgbjbd')">--> <!-- <div style="cursor: pointer;color: #00b7ee" v-if="form.fbgbjbdName" @click="downloadFile('fbgbjbd')">-->
<!-- {{ form.fbgbjbdName }}--> <!-- {{ form.fbgbjbdName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-if="form.standInData === '1'" label="增补件" prop="zbjbdName" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-if="form.standInData === '1'" label="增补件" prop="zbjbdName" class="add-form-item form-item-disabled">-->
<!-- <div v-if="form.zbjbdName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('zbjbd')">--> <!-- <div v-if="form.zbjbdName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('zbjbd')">-->
<!-- {{ form.zbjbdName }}--> <!-- {{ form.zbjbdName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-if="form.standInData === '0'" label="送审稿" prop="ssgName" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-if="form.standInData === '0'" label="送审稿" prop="ssgName" class="add-form-item form-item-disabled">-->
<!-- <div v-if="form.ssgName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ssg')">--> <!-- <div v-if="form.ssgName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ssg')">-->
<!-- {{ form.ssgName }}--> <!-- {{ form.ssgName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item label="草案" prop="caName" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="草案" prop="caName" class="add-form-item form-item-disabled">-->
<!-- <div v-if="form.caName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ca')">--> <!-- <div v-if="form.caName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ca')">-->
<!-- {{ form.caName }}--> <!-- {{ form.caName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- <el-col :span="12">--> <!-- <el-col :span="12">-->
<!-- <el-form-item v-if="form.standInData === '1'" label="勘误件" prop="kwjName" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-if="form.standInData === '1'" label="勘误件" prop="kwjName" class="add-form-item form-item-disabled">-->
<!-- <div v-if="form.kwjName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('kwj')">--> <!-- <div v-if="form.kwjName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('kwj')">-->
<!-- {{ form.kwjName }}--> <!-- {{ form.kwjName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-if="form.standInData === '0'" label="解读文件" prop="jdwjName" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-if="form.standInData === '0'" label="解读文件" prop="jdwjName" class="add-form-item form-item-disabled">-->
<!-- <div v-if="form.jdwjName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj')">--> <!-- <div v-if="form.jdwjName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj')">-->
<!-- {{ form.jdwjName }}--> <!-- {{ form.jdwjName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-if="form.standInData === '0'" label="报批稿" prop="bpgName" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-if="form.standInData === '0'" label="报批稿" prop="bpgName" class="add-form-item form-item-disabled">-->
<!-- <div v-if="form.bpgName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('bpg')">--> <!-- <div v-if="form.bpgName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('bpg')">-->
<!-- {{ form.bpgName }}--> <!-- {{ form.bpgName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-if="form.standInData === '0'" label="征求意见稿" prop="zqyjgName" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-if="form.standInData === '0'" label="征求意见稿" prop="zqyjgName" class="add-form-item form-item-disabled">-->
<!-- <div v-if="form.zqyjgName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('zqyjg')">--> <!-- <div v-if="form.zqyjgName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('zqyjg')">-->
<!-- {{ form.zqyjgName }}--> <!-- {{ form.zqyjgName }}-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-else>--> <!-- <div v-else>-->
<!-- - - --> <!-- - - -->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- </el-row>--> <!-- </el-row>-->
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item v-if="form.standInData === '0'" label="修改单" prop="xgdName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="修改单" prop="xgdName" class="add-form-item form-item-disabled">
<div v-if="xgdFileMap.length>0" v-for="(value,index) in this.xgdFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('xgd',value.id)"> <div v-if="xgdFileMap.length>0" v-for="(value,index) in this.xgdFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('xgd',value.id)">
<!-- {{ value.name }} --> <!-- {{ value.name }} -->
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -325,7 +285,7 @@
</el-form-item> </el-form-item>
<el-form-item label="发布稿" prop="fbgbjbdName" class="add-form-item form-item-disabled"> <el-form-item label="发布稿" prop="fbgbjbdName" class="add-form-item form-item-disabled">
<div v-if="fbgbjbdFileMap.length>0" v-for="(value,index) in this.fbgbjbdFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('fbgbjbd',value.id)"> <div v-if="fbgbjbdFileMap.length>0" v-for="(value,index) in this.fbgbjbdFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('fbgbjbd',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -333,7 +293,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '1'" label="增补件" prop="zbjbdName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '1'" label="增补件" prop="zbjbdName" class="add-form-item form-item-disabled">
<div v-if="zbjbdFileMap.length>0" v-for="(value,index) in this.zbjbdFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('zbjbd',value.id)"> <div v-if="zbjbdFileMap.length>0" v-for="(value,index) in this.zbjbdFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('zbjbd',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -341,7 +301,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="送审稿" prop="ssgName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="送审稿" prop="ssgName" class="add-form-item form-item-disabled">
<div v-if="ssgFileMap.length>0" v-for="(value,index) in this.ssgFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ssg',value.id)"> <div v-if="ssgFileMap.length>0" v-for="(value,index) in this.ssgFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ssg',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -349,7 +309,7 @@
</el-form-item> </el-form-item>
<el-form-item label="草案" prop="caName" class="add-form-item form-item-disabled"> <el-form-item label="草案" prop="caName" class="add-form-item form-item-disabled">
<div v-if="caFileMap.length>0" v-for="(value,index) in this.caFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ca',value.id)"> <div v-if="caFileMap.length>0" v-for="(value,index) in this.caFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ca',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -359,7 +319,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item v-if="form.standInData === '1'" label="勘误件" prop="kwjName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '1'" label="勘误件" prop="kwjName" class="add-form-item form-item-disabled">
<div v-if="kwjFileMap.length>0" v-for="(value,index) in this.kwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('kwj',value.id)"> <div v-if="kwjFileMap.length>0" v-for="(value,index) in this.kwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('kwj',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -367,7 +327,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '1'" label="修订本" prop="xdbName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '1'" label="修订本" prop="xdbName" class="add-form-item form-item-disabled">
<div v-if="xdbFileMap.length>0" v-for="(value,index) in this.xdbFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('xdb',value.id)"> <div v-if="xdbFileMap.length>0" v-for="(value,index) in this.xdbFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('xdb',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -377,7 +337,7 @@
<el-form-item v-if="form.standInData === '0'" label="相关文件" prop="jdwjName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="相关文件" prop="jdwjName" class="add-form-item form-item-disabled">
<!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************--> <!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<div v-if="jdwjFileMap.length>0" v-for="(value,index) in this.jdwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj',value.id)"> <div v-if="jdwjFileMap.length>0" v-for="(value,index) in this.jdwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -385,7 +345,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="报批稿" prop="bpgName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="报批稿" prop="bpgName" class="add-form-item form-item-disabled">
<div v-if="bpgFileMap.length>0" v-for="(value,index) in this.bpgFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('bpg',value.id)"> <div v-if="bpgFileMap.length>0" v-for="(value,index) in this.bpgFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('bpg',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -393,7 +353,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="征求意见稿" prop="zqyjgName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="征求意见稿" prop="zqyjgName" class="add-form-item form-item-disabled">
<div v-if="zqyjgFileMap.length>0" v-for="(value,index) in this.zqyjgFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('zqyjg',value.id)"> <div v-if="zqyjgFileMap.length>0" v-for="(value,index) in this.zqyjgFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('zqyjg',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -408,7 +368,7 @@
<div class="prc-content-border"> <div class="prc-content-border">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<!-- <el-form-item label="责任部门" prop="zrbm" class="add-form-item form-item-disabled"> <!-- <el-form-item label="责任部门" prop="zrbm" class="add-form-item form-item-disabled">
<el-select v-model="form.zrbm" placeholder="请选择责任部门" multiple disabled> <el-select v-model="form.zrbm" placeholder="请选择责任部门" multiple disabled>
<el-option <el-option
v-for="item in zrbmOptions" v-for="item in zrbmOptions"
@@ -501,7 +461,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="责任工程师" prop="zrgcs" class="add-form-item form-item-disabled"> <!-- <el-form-item label="责任工程师" prop="zrgcs" class="add-form-item form-item-disabled">
<el-select v-model="form.zrgcs" placeholder="请选择责任工程师" multiple disabled> <el-select v-model="form.zrgcs" placeholder="请选择责任工程师" multiple disabled>
<el-option <el-option
v-for="item in zrgcsOptions" v-for="item in zrgcsOptions"
@@ -534,16 +494,16 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled">
<span>{{form.wssmr}}</span> <span>{{ form.wssmr }}</span>
<!-- <el-select v-model="form.wssmr" placeholder="请选择我司署名人" multiple disabled>--> <!-- <el-select v-model="form.wssmr" placeholder="请选择我司署名人" multiple disabled>-->
<!-- <el-option--> <!-- <el-option-->
<!-- v-for="item in wssmrOptions"--> <!-- v-for="item in wssmrOptions"-->
<!-- placeholder="请选择"--> <!-- placeholder="请选择"-->
<!-- :key="item.value"--> <!-- :key="item.value"-->
<!-- :value="item.value"--> <!-- :value="item.value"-->
<!-- :label="item.label"--> <!-- :label="item.label"-->
<!-- ></el-option>--> <!-- ></el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled">
<el-select v-model="form.cysd" placeholder="请选择我司参与深度" disabled> <el-select v-model="form.cysd" placeholder="请选择我司参与深度" disabled>
@@ -591,7 +551,7 @@
</el-form-item> </el-form-item>
<el-form-item label="关联文件" prop="glwjName" class="add-form-item form-item-disabled"> <el-form-item label="关联文件" prop="glwjName" class="add-form-item form-item-disabled">
<div v-if="glwjFileMap.length>0" v-for="(value,index) in this.glwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('glwj',value.id)"> <div v-if="glwjFileMap.length>0" v-for="(value,index) in this.glwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('glwj',value.id)">
{{value.name}} {{ value.name }}
</div> </div>
<div v-else> <div v-else>
- - - -
@@ -630,7 +590,7 @@
</div> </div>
<div> <div>
<el-collapse accordion v-model="activeName"> <el-collapse accordion v-model="activeName">
<el-collapse-item title="审批意见" name = "1"> <el-collapse-item title="审批意见" name="1">
<div style="margin: 10px 0;"> <div style="margin: 10px 0;">
<el-form <el-form
ref="formTongGuo" ref="formTongGuo"
@@ -677,7 +637,8 @@
<h4>责任人</h4> <h4>责任人</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="user2" placeholder="选择责任人"> <el-input v-model="user2" placeholder="选择责任人">
</el-input></div> </el-input>
</div>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
<el-timeline-item timestamp="填写意见" placement="top" :color="user3 ? '#66b1ff' : ''"> <el-timeline-item timestamp="填写意见" placement="top" :color="user3 ? '#66b1ff' : ''">
@@ -756,7 +717,7 @@
label="流程信息" label="流程信息"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.commentText}}</span> <span>{{ scope.row.commentText }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -764,7 +725,7 @@
label="状态" label="状态"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span> <span>{{ scope.row.endTime ? '已完成' : '未完成' }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -797,17 +758,17 @@
</template> </template>
<script> <script>
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 {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process' import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup"; from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
export default { export default {
name: "bzrkStep2", name: "bzrkStep2",
data () { data() {
return { return {
xgdFileMap: [], xgdFileMap: [],
fbgbjbdFileMap: [], fbgbjbdFileMap: [],
@@ -822,14 +783,11 @@
zbjbdFileMap: [], zbjbdFileMap: [],
// 调整处理人抽屉状态 // 调整处理人抽屉状态
drawerModal: false, drawerModal: false,
drawerTitle: '', drawerTitle: '',
nodeList: [], nodeList: [],
selectPeople:'', selectPeople: '',
xgdFileId: '', xgdFileId: '',
fbgbjbdFileId: '', fbgbjbdFileId: '',
bpgFileId: '', bpgFileId: '',
@@ -839,16 +797,16 @@
kwjFileId: '', kwjFileId: '',
glwjFileId: '', glwjFileId: '',
caFileId: '', caFileId: '',
zbjbdFileId:'', zbjbdFileId: '',
rules: { rules: {
commentText: [{ required: true, message: '请输入意见', trigger: 'blur' }], commentText: [{required: true, message: '请输入意见', trigger: 'blur'}],
approvalOpinion: [{ required: true, message: '请选择审批意见', trigger: 'change' }] approvalOpinion: [{required: true, message: '请选择审批意见', trigger: 'change'}]
}, },
activeName:'1', activeName: '1',
// 当前流程类型(1待办/2已办) // 当前流程类型(1待办/2已办)
processType: 1, processType: 1,
detailData: [], detailData: [],
userId:this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.userId,
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId, pId: this.$route.query.prcId,
formTongGuo: { formTongGuo: {
@@ -882,6 +840,8 @@
standSystem: '',// 标准体系 standSystem: '',// 标准体系
standSystemName: '',// 标准体系 standSystemName: '',// 标准体系
gxhbq: '', // 标签 gxhbq: '', // 标签
treeListId: '',
treeListName: '',
// 实施日期 // 实施日期
ssrq: '', // 实施日期(标准文本) ssrq: '', // 实施日期(标准文本)
xcxssrq: '', // 新车型实施日期(标准文本) xcxssrq: '', // 新车型实施日期(标准文本)
@@ -917,7 +877,7 @@
qcdw: '', // 起草单位 qcdw: '', // 起草单位
wssmr: '', // 我司署名人 wssmr: '', // 我司署名人
cysd: '', // 我司参与深度 cysd: '', // 我司参与深度
cyzbpm:[],// 我司参与制标排名 cyzbpm: [],// 我司参与制标排名
cllx: '', // 适用车型 cllx: '', // 适用车型
nylx: '',// 能源类型 nylx: '',// 能源类型
sycpx: '',// 适用产品线 sycpx: '',// 适用产品线
@@ -940,17 +900,17 @@
xglc: '', // 相关流程 xglc: '', // 相关流程
chjl: '', // 参会记录 chjl: '', // 参会记录
//流程信息 //流程信息
prcNum:'', prcNum: '',
commentText:'', commentText: '',
prcName:'', prcName: '',
standType: '', standType: '',
}, // 标准信息 }, // 标准信息
nodeKeyCode: 'code', nodeKeyCode: 'code',
nodeKeyModel: 'model', nodeKeyModel: 'model',
key:1, key: 1,
key1:2, key1: 2,
key2:3, key2: 3,
key3:4, key3: 4,
defaultCheckedKeys1: [], defaultCheckedKeys1: [],
defaultCheckedKeys2: [], defaultCheckedKeys2: [],
defaultCheckedKeys3: [], defaultCheckedKeys3: [],
@@ -962,7 +922,7 @@
children: 'children', children: 'children',
label: 'model' label: 'model'
}, },
countryOptions:[],//国家地区 countryOptions: [],//国家地区
busVppsOptions: [], // 车系体系架构 busVppsOptions: [], // 车系体系架构
modelOptions: [], // 模块体系架构 modelOptions: [], // 模块体系架构
standSortOptions: [], // 标准类别 standSortOptions: [], // 标准类别
@@ -975,7 +935,7 @@
categoryOptions: [], // 能源类型 categoryOptions: [], // 能源类型
applyAuthOptions: [], // 适用认证 applyAuthOptions: [], // 适用认证
cysdOptions: [], // 我司参与深度 cysdOptions: [], // 我司参与深度
cyzbpmOptions:[], // 我司参与制标排名 cyzbpmOptions: [], // 我司参与制标排名
wssmrOptions: [], // 我司署名人 wssmrOptions: [], // 我司署名人
qcdwOptions: [], // 起草单位 qcdwOptions: [], // 起草单位
sycpxOptions: [], // 适用产品线 sycpxOptions: [], // 适用产品线
@@ -990,8 +950,8 @@
user4: '', user4: '',
user5: '', user5: '',
// 流程路由信息 // 流程路由信息
prcNum : this.$route.query.prcNum, prcNum: this.$route.query.prcNum,
prcName : this.$route.query.prcName, prcName: this.$route.query.prcName,
} }
}, },
components: { components: {
@@ -1002,16 +962,16 @@
TreeSelect TreeSelect
}, },
computed: { computed: {
listNoDataText () { listNoDataText() {
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程' return this.processType === 1 ? '暂无待办流程' : '暂无已办流程'
}, },
}, },
methods: { methods: {
checkedRole (data) { checkedRole(data) {
this.assigneeNewLoading = true this.assigneeNewLoading = true
changeAssigneeNew({ changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人 userId: this.$store.getters.userInfo.userId, // 委托人
assignee: data[0].id, // 被委托人 assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例 pId: this.$route.query.prcId, // 流程实例
}).then(res => { }).then(res => {
@@ -1021,72 +981,72 @@
this.$message.success('调整成功') this.$message.success('调整成功')
this.processNum() this.processNum()
this.queryProcess() this.queryProcess()
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
} else { } else {
this.$message.warning(res.message) this.$message.warning(res.message)
} }
}) })
}, },
downloadFile (fileType) { downloadFile(fileType) {
//文件id中出现了','字符,去除掉 //文件id中出现了','字符,去除掉
if(fileType === 'fbgbjbd'){ if (fileType === 'fbgbjbd') {
if(this.fbgbjbdFileId.search(',')){ if (this.fbgbjbdFileId.search(',')) {
this.fbgbjbdFileId=this.fbgbjbdFileId.replace(",",""); this.fbgbjbdFileId = this.fbgbjbdFileId.replace(",", "");
} }
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.fbgbjbdFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.fbgbjbdFileId
}else if(fileType === 'xgd'){ } else if (fileType === 'xgd') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.xgdFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.xgdFileId
}else if(fileType === 'bpg'){ } else if (fileType === 'bpg') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.bpgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.bpgFileId
}else if(fileType === 'ssg'){ } else if (fileType === 'ssg') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.ssgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.ssgFileId
}else if(fileType === 'zqyjg'){ } else if (fileType === 'zqyjg') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zqyjgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zqyjgFileId
}else if(fileType === 'jdwj'){ } else if (fileType === 'jdwj') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.jdwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.jdwjFileId
}else if(fileType === 'kwj'){ } else if (fileType === 'kwj') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.kwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.kwjFileId
}else if(fileType === 'glwj'){ } else if (fileType === 'glwj') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.glwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.glwjFileId
}else if(fileType === 'ca'){ } else if (fileType === 'ca') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.caFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.caFileId
}else if(fileType === 'zbjbd'){ } else if (fileType === 'zbjbd') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zbjbdFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zbjbdFileId
} }
}, },
getRule(){ getRule() {
if (this.formTongGuo.approvalOpinion === 0) { if (this.formTongGuo.approvalOpinion === 0) {
this.rules.commentText[0].required = false; this.rules.commentText[0].required = false;
this.$refs.formTongGuo.clearValidate('commentText') this.$refs.formTongGuo.clearValidate('commentText')
}else { } else {
this.rules.commentText[0].required = true; this.rules.commentText[0].required = true;
} }
}, },
popoverHide (checkedIds, checkedData) { popoverHide(checkedIds, checkedData) {
if(checkedData) { if (checkedData) {
this.form.standSystem = checkedData.id this.form.standSystem = checkedData.id
this.form.standSystemName = checkedData.menuName this.form.standSystemName = checkedData.menuName
} }
}, },
popoverHideBusVs (checkedIds, checkedData) { popoverHideBusVs(checkedIds, checkedData) {
if(checkedData){ if (checkedData) {
this.form.cycvppsbm = checkedData.code this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName this.form.cycvppscn = checkedData.chineseName
} }
}, },
popoverHideCarVs (checkedIds, checkedData) { popoverHideCarVs(checkedIds, checkedData) {
if(checkedData){ if (checkedData) {
this.form.kccvppsbm = checkedData.code this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName this.form.kccvppscn = checkedData.chineseName
} }
}, },
popoverHideModel (checkedIds, checkedData) { popoverHideModel(checkedIds, checkedData) {
if(checkedData){ if (checkedData) {
this.form.dybxh = checkedData.model this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name this.form.dymc = checkedData.name
} }
}, },
busVsFunc(){ busVsFunc() {
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {
_this: this _this: this
}, res => { }, res => {
@@ -1095,7 +1055,7 @@
this.key2++ this.key2++
}) })
}, },
modelFunc(){ modelFunc() {
this.$http.get('sarModelTree/list', '', { this.$http.get('sarModelTree/list', '', {
_this: this _this: this
}, res => { }, res => {
@@ -1103,7 +1063,7 @@
this.key3++ this.key3++
}) })
}, },
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,
sortWord: this.shunxu ? this.paixu : '', sortWord: this.shunxu ? this.paixu : '',
@@ -1113,14 +1073,15 @@
_this: this _this: this
}, res => { }, res => {
this.detailData = res this.detailData = res
}, e => {}) }, e => {
})
}, },
assemble(ids,names){ assemble(ids, names) {
let list= new Array(); let list = new Array();
let idArray=ids.split(','); let idArray = ids.split(',');
let nameArray=names.split(','); let nameArray = names.split(',');
for(var i=0;i<idArray.length;i++){ for (var i = 0; i < idArray.length; i++) {
list.push({id:idArray[i],name:nameArray[i]}); list.push({id: idArray[i], name: nameArray[i]});
} }
return list; return list;
@@ -1146,27 +1107,27 @@
this.zbjbdFileId = processForm.zbjbd this.zbjbdFileId = processForm.zbjbd
this.getFormFieldList(processForm) this.getFormFieldList(processForm)
this.xgdFileMap=this.assemble(processForm.xgd,processForm.xgdName); this.xgdFileMap = this.assemble(processForm.xgd, processForm.xgdName);
this.fbgbjbdFileMap=this.assemble(processForm.fbgbjbd,processForm.fbgbjbdName); this.fbgbjbdFileMap = this.assemble(processForm.fbgbjbd, processForm.fbgbjbdName);
// fbgbjbdFileMap: {}, // fbgbjbdFileMap: {},
this.bpgFileMap=this.assemble(processForm.bpg,processForm.bpgName); this.bpgFileMap = this.assemble(processForm.bpg, processForm.bpgName);
// bpgFileMap: {}, // bpgFileMap: {},
this.ssgFileMap=this.assemble(processForm.ssg,processForm.ssgName); this.ssgFileMap = this.assemble(processForm.ssg, processForm.ssgName);
// ssgFileMap: {}, // ssgFileMap: {},
this.zqyjgFileMap=this.assemble(processForm.zqyjg,processForm.zqyjgName); this.zqyjgFileMap = this.assemble(processForm.zqyjg, processForm.zqyjgName);
// zqyjgFileMap: {}, // zqyjgFileMap: {},
this.jdwjFileMap=this.assemble(processForm.jdwj,processForm.jdwjName); this.jdwjFileMap = this.assemble(processForm.jdwj, processForm.jdwjName);
// jdwjFileMap: {}, // jdwjFileMap: {},
this.kwjFileMap=this.assemble(processForm.kwj,processForm.kwjName); this.kwjFileMap = this.assemble(processForm.kwj, processForm.kwjName);
// kwjFileMap: {}, // kwjFileMap: {},
this.xdbFileMap=this.assemble(processForm.xdb,processForm.xdbName); this.xdbFileMap = this.assemble(processForm.xdb, processForm.xdbName);
// xdbFileMap: {}, // xdbFileMap: {},
this.glwjFileMap=this.assemble(processForm.glwj,processForm.glwjName); this.glwjFileMap = this.assemble(processForm.glwj, processForm.glwjName);
// glwjFileMap: {}, // glwjFileMap: {},
this.caFileMap=this.assemble(processForm.ca,processForm.caName); this.caFileMap = this.assemble(processForm.ca, processForm.caName);
// caFileMap: {}, // caFileMap: {},
this.zbjbdFileMap=this.assemble(processForm.zbjbd,processForm.zbjbdName); this.zbjbdFileMap = this.assemble(processForm.zbjbd, processForm.zbjbdName);
// zbjbdFileMap: {}, // zbjbdFileMap: {},
} }
@@ -1177,7 +1138,7 @@
/** /**
* @description: 动态表单读取 * @description: 动态表单读取
*/ */
getFormFieldList (item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.form = JSON.parse(JSON.stringify(item)) this.form = JSON.parse(JSON.stringify(item))
this.defaultCheckedKeys = [this.form.standSystem] this.defaultCheckedKeys = [this.form.standSystem]
@@ -1186,8 +1147,8 @@
this.defaultCheckedKeys3 = [this.form.dybxh] this.defaultCheckedKeys3 = [this.form.dybxh]
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : ''
if( this.form.country !== undefined && this.form.country !== null && this.form.country !== ''){ if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') {
this.form.country=this.form.country.split(","); this.form.country = this.form.country.split(",");
} }
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
@@ -1215,18 +1176,19 @@
this.drawerModal = true this.drawerModal = true
this.drawerTitle = '转办处理人' this.drawerTitle = '转办处理人'
}, },
handleSave() {}, handleSave() {
handle1(){ },
handle1() {
this.formTongGuo.approvalOpinion = 1 this.formTongGuo.approvalOpinion = 1
this.handleSubmit() this.handleSubmit()
}, },
handle2(){ handle2() {
this.formTongGuo.approvalOpinion = 0 this.formTongGuo.approvalOpinion = 0
this.handleSubmit() this.handleSubmit()
}, },
handleSubmit() { handleSubmit() {
this.getRule() this.getRule()
const val= this.form.country; const val = this.form.country;
if (val !== '' && val !== null && typeof (val) !== 'undefined') { if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) { if (val instanceof Array) {
this.form.country = val.join(","); this.form.country = val.join(",");
@@ -1266,24 +1228,25 @@
const json = JSON.stringify(this.form); const json = JSON.stringify(this.form);
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId: this.userId,
json: json json: json
}, { }, {
_this: this _this: this
}, res => { }, res => {
if (res.success) { if (res.success) {
if(this.formTongGuo.approvalOpinion == '1'){ if (this.formTongGuo.approvalOpinion == '1') {
this.$message.warning("驳回成功") this.$message.warning("驳回成功")
this.isSubmit = false this.isSubmit = false
this.formTongGuo.commentText = '' this.formTongGuo.commentText = ''
// 流程提交之后,应该流转至待办任务页面 // 流程提交之后,应该流转至待办任务页面
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
}else{ } else {
this.processCreateStand(json) this.processCreateStand(json)
} }
} }
}) })
}}) }
})
}, },
/** /**
@@ -1292,12 +1255,22 @@
* @auth: chenxiaoxi * @auth: chenxiaoxi
*/ */
processCreateStand(json) { processCreateStand(json) {
console.log(json)
const _formData = new FormData() const _formData = new FormData()
_formData.append('infoJson', json) _formData.append('infoJson', json)
processCreateStand(_formData).then(res => { processCreateStand(_formData).then(res => {
if (res.result === '操作成功' || res.data === '入库成功') { if (res.result === '操作成功' || res.data === '入库成功') {
this.$message.success(res.data) this.$message.success(res.data)
let menuList = {
idlist: [this.form.standId],
menuIds: this.form.treeListId
}
this.$http.postData('sarStandardsInfo/sar-standards-info/saveStandardsMenuForFlow', menuList, {
_this: this,
}, resMenu => {
if (resMenu.ok) {
console.log(resMenu)
}
})
setTimeout(() => { setTimeout(() => {
this.$router.push({ this.$router.push({
name: 'ProcessCenter' name: 'ProcessCenter'
@@ -1311,15 +1284,15 @@
}) })
}, },
}, },
created(){ created() {
}, },
mounted () { mounted() {
this.getData() this.getData()
this.processTable() this.processTable()
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
}, res => { }, res => {
this.countryOptions=res.data.COUNTRY//国家地区 this.countryOptions = res.data.COUNTRY//国家地区
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
this.standNatureOptions = res.data.SARPROPERTY // 标准性质 this.standNatureOptions = res.data.SARPROPERTY // 标准性质
this.standStateOptions = res.data.WBZTCLASS // 文本状态 this.standStateOptions = res.data.WBZTCLASS // 文本状态
@@ -1342,20 +1315,23 @@
this.busVsFunc() this.busVsFunc()
this.modelFunc() this.modelFunc()
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/styles/style'; @import '~@/assets/styles/style';
.bzrkStep2 {
/deep/.el-drawer__container { .bzrkStep2 {
/deep/ .el-drawer__container {
.prc-content-border { .prc-content-border {
border: none; border: none;
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
position: relative; position: relative;
height: 100%; height: 100%;
.headerTabs { .headerTabs {
height: 52px; height: 52px;
display: flex; display: flex;
@@ -1363,6 +1339,7 @@
position: absolute; position: absolute;
top: 0; top: 0;
right: 10px; right: 10px;
.headerTabsItem { .headerTabsItem {
border: 1px solid #c1c1c1; border: 1px solid #c1c1c1;
padding: 0 5px; padding: 0 5px;
@@ -1370,18 +1347,21 @@
line-height: 30px; line-height: 30px;
cursor: pointer; cursor: pointer;
} }
.active { .active {
border: 1px solid #E6A23C; border: 1px solid #E6A23C;
color: #fff; color: #fff;
background: #E6A23C; background: #E6A23C;
} }
} }
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px'); height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
height: 30px; height: 30px;
@@ -1389,6 +1369,7 @@
position: relative; position: relative;
font-size: 13px; font-size: 13px;
font-weight: bold; font-weight: bold;
.tableButton { .tableButton {
position: absolute; position: absolute;
right: 0; right: 0;
@@ -1396,5 +1377,5 @@
} }
} }
} }
} }
</style> </style>
@@ -142,6 +142,20 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="归档位置" class="add-form-item form-item-disabled">
<el-input
style="display: none"
v-model="form.treeListId"
></el-input>
<el-tooltip effect="dark" :content=form.treeListName placement="top-start">
<el-input
v-model="form.treeListName"
clearable
placeholder="选择归档位置"
readonly>
</el-input>
</el-tooltip>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -158,7 +172,6 @@
:disabled="true" :disabled="true"
></custom-date-pick-group> ></custom-date-pick-group>
<custom-date-pick-group <custom-date-pick-group
:labelWidth="210"
:key="'zccssrq'" :key="'zccssrq'"
:config="{attrName:'在产车实施日期(标准文本)',attrField:'zccssrq'}" :config="{attrName:'在产车实施日期(标准文本)',attrField:'zccssrq'}"
v-model="form.zccssrq" v-model="form.zccssrq"
@@ -185,7 +198,6 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<custom-date-pick-group <custom-date-pick-group
:labelWidth="210"
:key="'zccssrq'" :key="'zccssrq'"
:config="{attrName:'新车型实施日期(标准文本)',attrField:'zccssrq'}" :config="{attrName:'新车型实施日期(标准文本)',attrField:'zccssrq'}"
v-model="form.xcxssrq" v-model="form.xcxssrq"
@@ -147,6 +147,31 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="归档位置" class="add-form-item form-item-disabled">
<el-input
style="display: none"
v-model="form.treeListId"
></el-input>
<el-tooltip effect="dark" :content=form.treeListName placement="top-start">
<el-input
v-model="form.treeListName"
clearable
placeholder="选择归档位置"
@click.native="choiceTree('treeListName', '归档位置', form.treeListName)">
</el-input>
</el-tooltip>
<tree-select-stand
:key="key"
:multiple=true
:lazy=false
:checkStrictly=true
:modalShowFlag="modalShowTree"
:drawerTitle="drawerTitle"
width="800"
:data="treeListOptions"
:defaultProps="defaultProps" :checkedKeys="treeCheckedKeys"
:nodeKey="nodeKey" @popoverHide="treeHide" @popoverHideCancel="treeHideCancel"></tree-select-stand>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -1452,10 +1477,11 @@ import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
import TreeSelectModule from "@/components/treeSelect/treeSelectModule.vue"; import TreeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
import CusTomDataPickerGroup import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup"; from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
import TreeSelectStand from "@/components/treeSelect/treeSelectStand";
export default { export default {
name: "bzrkStep4", name: "bzrkStep4",
components: { components: {
TreeSelectStand,
CusTomDataPickerGroup, CusTomDataPickerGroup,
TreeSelectModule, TreeSelectModule,
ProcessHeader, ProcessHeader,
@@ -1520,10 +1546,13 @@ export default {
defaultCheckedKeys1: [], defaultCheckedKeys1: [],
defaultCheckedKeys2: [], defaultCheckedKeys2: [],
defaultCheckedKeys3: [], defaultCheckedKeys3: [],
treeCheckedKeys: [],
treeListOptions: [],
modalShowFlag1: false, // drawer开关 modalShowFlag1: false, // drawer开关
modalShowFlag2: false, // drawer开关 modalShowFlag2: false, // drawer开关
modalShowFlag3: false, // drawer开关 modalShowFlag3: false, // drawer开关
modalShowFlag4: false, // drawer开关 modalShowFlag4: false, // drawer开关
modalShowTree: false, // 归档位置drawer开关
url: '', url: '',
urlChild: '', urlChild: '',
drawerTitle: '', //drawer标题 drawerTitle: '', //drawer标题
@@ -1610,6 +1639,8 @@ export default {
standSystem: '',// 标准体系 standSystem: '',// 标准体系
standSystemName: '',// 标准体系 standSystemName: '',// 标准体系
gxhbq: '', // 标签 gxhbq: '', // 标签
treeListName: '',
treeListId: '',
// 实施日期 // 实施日期
ssrq: '', // 实施日期(标准文本) ssrq: '', // 实施日期(标准文本)
xcxssrq: '', // 新车型实施日期(标准文本) xcxssrq: '', // 新车型实施日期(标准文本)
@@ -1884,6 +1915,12 @@ export default {
this.key3++ this.key3++
}, },
choiceTree(type, title, id) {
this.drawerTitle = title
this.getListTree(this.form)
this.modalShowTree = true
this.key++
},
busVsFunc() { busVsFunc() {
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {
_this: this _this: this
@@ -2370,6 +2407,22 @@ export default {
popoverHideCancel() { popoverHideCancel() {
this.modalShowFlag1 = false this.modalShowFlag1 = false
}, },
treeHide(checkedIds, checkedData) {
if (checkedData) {
if (checkedData.length > 0 && checkedData.length != 0) {
this.form.treeListName = checkedData.map(item => item.menuName).join(",")
this.form.treeListId = checkedData.map(item => item.id).join(",")
} else {
this.form.treeListName = checkedData.menuName
this.form.treeListId = checkedData.id
}
this.modalShowTree = false
}
},
treeHideCancel() {
this.modalShowTree = false
},
popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData && checkedData.length != 0) { if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0 && checkedData.length != 0) { if (checkedData.length > 0 && checkedData.length != 0) {
@@ -2462,6 +2515,7 @@ export default {
this.defaultCheckedKeys1 = [this.form.cycvppsbm]; this.defaultCheckedKeys1 = [this.form.cycvppsbm];
this.defaultCheckedKeys2 = [this.form.kccvppsbm]; this.defaultCheckedKeys2 = [this.form.kccvppsbm];
this.defaultCheckedKeys3 = [this.form.dybxh]; this.defaultCheckedKeys3 = [this.form.dybxh];
this.treeCheckedKeys = this.form.treeListId.split(',')
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : ''
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
@@ -2538,6 +2592,17 @@ export default {
}, e => { }, e => {
}) })
}, },
/** 归档位置树结构查询 */
getListTree(bringData) {
this.$http.get('sarResource/ts-resource/getListStand', {
sorDivide: bringData.standInData === '0' ? 'INLAND_STAND' : 'FOREIGN_STAND',
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.ok) {
this.treeListOptions = res.data
}
})
},
closeDrawer() { closeDrawer() {
this.ListModel = false this.ListModel = false
}, },
@@ -8,7 +8,7 @@
<div class="headerTabs"> <div class="headerTabs">
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div> <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div> <div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
<!-- <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">流程信息</div>--> <!-- <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">流程信息</div>-->
</div> </div>
<div class="content" v-if="active === '1'"> <div class="content" v-if="active === '1'">
<div style="flex: auto; overflow: auto;"> <div style="flex: auto; overflow: auto;">
@@ -123,10 +123,10 @@
placeholder="请选择标准体系" placeholder="请选择标准体系"
clearable clearable
></el-input> ></el-input>
<!-- <tree-select--> <!-- <tree-select-->
<!-- :data="standSystemOptions"--> <!-- :data="standSystemOptions"-->
<!-- :defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"--> <!-- :defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"-->
<!-- :nodeKey="nodeKey" @popoverHide="popoverHide"></tree-select>--> <!-- :nodeKey="nodeKey" @popoverHide="popoverHide"></tree-select>-->
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled">
<el-input <el-input
@@ -136,6 +136,20 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="归档位置" class="add-form-item form-item-disabled">
<el-input
style="display: none"
v-model="form.treeListId"
></el-input>
<el-tooltip effect="dark" :content=form.treeListName placement="top-start">
<el-input
v-model="form.treeListName"
clearable
placeholder="选择归档位置"
readonly>
</el-input>
</el-tooltip>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -145,57 +159,27 @@
<div class="prc-content-border"> <div class="prc-content-border">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实施日期(标准文本)" prop="ssrq" class="add-form-item form-item-disabled"> <cus-tom-data-picker-group
<el-date-picker :key="'ssrq'"
disabled :config="{attrName:'实施日期(标准文本)',attrField:'ssrq'}"
v-model="form.ssrq" v-model="form.ssrq"
type="date" :disabled="true"
placeholder="请选择标准实施日期(标准文本)"> ></cus-tom-data-picker-group>
</el-date-picker> <cus-tom-data-picker-group
</el-form-item> :key="'zccssrq'"
<el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled"> :config="{attrName:'在产车实施日期(标准文本)',attrField:'zccssrq'}"
<el-date-picker
disabled
v-model="form.xcxssrq"
type="date"
placeholder="请选择新车型实施日期(标准文本">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled">
<el-date-picker
disabled
v-model="form.zccssrq" v-model="form.zccssrq"
type="date" :disabled="true"
placeholder="请选择在产车实施日期(标准文本)"> ></cus-tom-data-picker-group>
</el-date-picker> </el-col>
</el-form-item> <el-col :span="12">
<cus-tom-data-picker-group
:key="'zccssrq'"
:config="{attrName:'新车型实施日期(标准文本)',attrField:'xcxssrq'}"
v-model="form.xcxssrq"
:disabled="true"
></cus-tom-data-picker-group>
</el-col> </el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.ssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择实施日期(国际)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.xcxssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择新车型实施日期(国家)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.zccssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择在产车实施日期(国家)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row> </el-row>
</div> </div>
<ProcessTitle> <ProcessTitle>
@@ -289,7 +273,7 @@
<div class="prc-content-border"> <div class="prc-content-border">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<!-- <el-form-item label="责任部门" prop="zrbm" class="add-form-item form-item-disabled"> <!-- <el-form-item label="责任部门" prop="zrbm" class="add-form-item form-item-disabled">
<el-select v-model="form.zrbm" placeholder="请选择责任部门" multiple disabled> <el-select v-model="form.zrbm" placeholder="请选择责任部门" multiple disabled>
<el-option <el-option
v-for="item in zrbmOptions" v-for="item in zrbmOptions"
@@ -397,7 +381,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="责任工程师" prop="zrgcs" class="add-form-item form-item-disabled"> <!-- <el-form-item label="责任工程师" prop="zrgcs" class="add-form-item form-item-disabled">
<el-select v-model="form.zrgcs" placeholder="请选择责任工程师" multiple disabled> <el-select v-model="form.zrgcs" placeholder="请选择责任工程师" multiple disabled>
<el-option <el-option
v-for="item in zrgcsOptions" v-for="item in zrgcsOptions"
@@ -432,10 +416,10 @@
<el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled">
<el-input v-model="form.wssmr"> <el-input v-model="form.wssmr">
</el-input> </el-input>
<!-- <el-select v-model="form.wssmr" placeholder="请选择我司署名人" multiple disabled>--> <!-- <el-select v-model="form.wssmr" placeholder="请选择我司署名人" multiple disabled>-->
<!-- <el-option label="署名人1" value="1"></el-option>--> <!-- <el-option label="署名人1" value="1"></el-option>-->
<!-- <el-option label="署名人2" value="2"></el-option>--> <!-- <el-option label="署名人2" value="2"></el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled">
<el-select v-model="form.cysd" placeholder="请选择我司参与深度" disabled> <el-select v-model="form.cysd" placeholder="请选择我司参与深度" disabled>
@@ -470,14 +454,14 @@
<el-option v-for="item in cbcdOptions" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in cbcdOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="相关流程" prop="xglc" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="相关流程" prop="xglc" class="add-form-item form-item-disabled">-->
<!-- <el-input--> <!-- <el-input-->
<!-- disabled--> <!-- disabled-->
<!-- v-model="form.xglc"--> <!-- v-model="form.xglc"-->
<!-- placeholder="请输入相关流程"--> <!-- placeholder="请输入相关流程"-->
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="关联文件" prop="glwjName" class="add-form-item form-item-disabled"> <el-form-item label="关联文件" prop="glwjName" class="add-form-item form-item-disabled">
<div v-if="form.glwjName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('glwj')"> <div v-if="form.glwjName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('glwj')">
{{ form.glwjName }} {{ form.glwjName }}
@@ -515,45 +499,45 @@
</el-form-item> </el-form-item>
<!-- <el-form-item label="被引用标准" prop="byybj" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="被引用标准" prop="byybj" class="add-form-item form-item-disabled">-->
<!-- <el-input--> <!-- <el-input-->
<!-- disabled--> <!-- disabled-->
<!-- v-model="form.byybj"--> <!-- v-model="form.byybj"-->
<!-- placeholder="请输入被引用标准"--> <!-- placeholder="请输入被引用标准"-->
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-if="form.standInData === '0'" label="参会记录" prop="chjl" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-if="form.standInData === '0'" label="参会记录" prop="chjl" class="add-form-item form-item-disabled">-->
<!-- <el-input--> <!-- <el-input-->
<!-- disabled--> <!-- disabled-->
<!-- v-model="form.chjl"--> <!-- v-model="form.chjl"-->
<!-- placeholder="请输入参会记录"--> <!-- placeholder="请输入参会记录"-->
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</el-form> </el-form>
</div> </div>
<div> <div>
<!-- <el-collapse accordion>--> <!-- <el-collapse accordion>-->
<!-- <el-collapse-item title="意见填写">--> <!-- <el-collapse-item title="意见填写">-->
<!-- <div style="margin: 10px 0;">--> <!-- <div style="margin: 10px 0;">-->
<!-- <el-select v-model="approvalOpinion" placeholder="请审批" style="margin-bottom: 20px;">--> <!-- <el-select v-model="approvalOpinion" placeholder="请审批" style="margin-bottom: 20px;">-->
<!-- <el-option label="驳回" value="1"></el-option>--> <!-- <el-option label="驳回" value="1"></el-option>-->
<!-- <el-option label="通过" value="0"></el-option>--> <!-- <el-option label="通过" value="0"></el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- <el-input--> <!-- <el-input-->
<!-- type="textarea"--> <!-- type="textarea"-->
<!-- :rows="3"--> <!-- :rows="3"-->
<!-- resize="none"--> <!-- resize="none"-->
<!-- placeholder="请输入意见"--> <!-- placeholder="请输入意见"-->
<!-- v-model="commentText">--> <!-- v-model="commentText">-->
<!-- </el-input>--> <!-- </el-input>-->
<!-- </div>--> <!-- </div>-->
<!-- </el-collapse-item>--> <!-- </el-collapse-item>-->
<!-- </el-collapse>--> <!-- </el-collapse>-->
</div> </div>
</div> </div>
<div class="content" v-if="active === '2'"> <div class="content" v-if="active === '2'">
@@ -572,7 +556,8 @@
<h4>责任人</h4> <h4>责任人</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="user2" placeholder="选择责任人"> <el-input v-model="user2" placeholder="选择责任人">
</el-input></div> </el-input>
</div>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
<el-timeline-item timestamp="填写意见" placement="top" :color="user3 ? '#66b1ff' : ''"> <el-timeline-item timestamp="填写意见" placement="top" :color="user3 ? '#66b1ff' : ''">
@@ -651,7 +636,7 @@
label="审批意见" label="审批意见"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.commentText}}</span> <span>{{ scope.row.commentText }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -659,35 +644,36 @@
label="状态" label="状态"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span> <span>{{ scope.row.endTime ? '已完成' : '未完成' }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<loading :loading="loading">流程列表加载中</loading> <loading :loading="loading">流程列表加载中</loading>
</div> </div>
</div> </div>
<!-- <ProcessFooter--> <!-- <ProcessFooter-->
<!-- show-save--> <!-- show-save-->
<!-- show-submit--> <!-- show-submit-->
<!-- :submitLoading="isSubmit"--> <!-- :submitLoading="isSubmit"-->
<!-- :saveLoading="saveLoading"--> <!-- :saveLoading="saveLoading"-->
<!-- @save="handleSave"--> <!-- @save="handleSave"-->
<!-- @submit="handleSubmit"--> <!-- @submit="handleSubmit"-->
<!-- >--> <!-- >-->
<!-- </ProcessFooter>--> <!-- </ProcessFooter>-->
</div> </div>
</template> </template>
<script> <script>
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 {inboundLiaisonDetail,processCreateStand} from 'api/process' import {inboundLiaisonDetail, processCreateStand} from 'api/process'
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
export default { from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
export default {
name: "bzrkStep5", name: "bzrkStep5",
data () { data() {
return { return {
xgdFileId: '', xgdFileId: '',
fbgbjbdFileId: '', fbgbjbdFileId: '',
@@ -698,11 +684,11 @@
kwjFileId: '', kwjFileId: '',
glwjFileId: '', glwjFileId: '',
caFileId: '', caFileId: '',
zbjbdFileId:'', zbjbdFileId: '',
// 当前流程类型(1待办/2已办) // 当前流程类型(1待办/2已办)
processType: 1, processType: 1,
detailData: [], detailData: [],
userId:this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.userId,
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId, pId: this.$route.query.prcId,
approvalOpinion: '', // 通过/驳回 approvalOpinion: '', // 通过/驳回
@@ -778,9 +764,9 @@
xglc: '', // 相关流程 xglc: '', // 相关流程
chjl: '', // 参会记录 chjl: '', // 参会记录
//流程信息 //流程信息
prcNum:'', prcNum: '',
commentText:'', commentText: '',
prcName:'', prcName: '',
standType: '', standType: '',
}, // 标准信息 }, // 标准信息
standSortOptions: [], // 标准类别 standSortOptions: [], // 标准类别
@@ -806,56 +792,57 @@
user4: '', user4: '',
user5: '', user5: '',
// 流程路由信息 // 流程路由信息
prcNum : this.$route.query.prcNum, prcNum: this.$route.query.prcNum,
prcName : this.$route.query.prcName, prcName: this.$route.query.prcName,
} }
}, },
components: { components: {
CusTomDataPickerGroup,
ProcessHeader, ProcessHeader,
ProcessFooter, ProcessFooter,
ProcessTitle, ProcessTitle,
TreeSelect TreeSelect
}, },
computed: { computed: {
listNoDataText () { listNoDataText() {
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程' return this.processType === 1 ? '暂无待办流程' : '暂无已办流程'
}, },
}, },
methods: { methods: {
downloadFile (fileType) { downloadFile(fileType) {
if(fileType === 'fbgbjbd'){ if (fileType === 'fbgbjbd') {
if(this.fbgbjbdFileId.search(',')){ if (this.fbgbjbdFileId.search(',')) {
this.fbgbjbdFileId=this.fbgbjbdFileId.replace(",",""); this.fbgbjbdFileId = this.fbgbjbdFileId.replace(",", "");
console.log(this.fbgbjbdFileId); console.log(this.fbgbjbdFileId);
} }
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.fbgbjbdFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.fbgbjbdFileId
}else if(fileType === 'xgd'){ } else if (fileType === 'xgd') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.xgdFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.xgdFileId
}else if(fileType === 'bpg'){ } else if (fileType === 'bpg') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.bpgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.bpgFileId
}else if(fileType === 'ssg'){ } else if (fileType === 'ssg') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.ssgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.ssgFileId
}else if(fileType === 'zqyjg'){ } else if (fileType === 'zqyjg') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zqyjgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zqyjgFileId
}else if(fileType === 'jdwj'){ } else if (fileType === 'jdwj') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.jdwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.jdwjFileId
}else if(fileType === 'kwj'){ } else if (fileType === 'kwj') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.kwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.kwjFileId
}else if(fileType === 'glwj'){ } else if (fileType === 'glwj') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.glwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.glwjFileId
}else if(fileType === 'ca'){ } else if (fileType === 'ca') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.caFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.caFileId
}else if(fileType === 'zbjbd'){ } else if (fileType === 'zbjbd') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zbjbdFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zbjbdFileId
} }
}, },
popoverHide (checkedIds, checkedData) { popoverHide(checkedIds, checkedData) {
console.log(checkedIds); console.log(checkedIds);
console.log(checkedData); console.log(checkedData);
this.form.standSystem = checkedData.id this.form.standSystem = checkedData.id
console.log(this.sarStandardsInfoEO.standSystem); console.log(this.sarStandardsInfoEO.standSystem);
}, },
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,
sortWord: this.shunxu ? this.paixu : '', sortWord: this.shunxu ? this.paixu : '',
@@ -865,7 +852,8 @@
_this: this _this: this
}, res => { }, res => {
this.detailData = res this.detailData = res
}, e => {}) }, e => {
})
}, },
getData() { getData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
@@ -899,7 +887,7 @@
/** /**
* @description: 动态表单读取 * @description: 动态表单读取
*/ */
getFormFieldList (item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.form = JSON.parse(JSON.stringify(item)) this.form = JSON.parse(JSON.stringify(item))
this.defaultCheckedKeys = [this.form.standSystem]; this.defaultCheckedKeys = [this.form.standSystem];
@@ -926,7 +914,8 @@
handleTabs(name) { handleTabs(name) {
this.active = name this.active = name
}, },
handleSave() {}, handleSave() {
},
handleSubmit() { handleSubmit() {
this.form.commentText = this.commentText this.form.commentText = this.commentText
this.form.approvalOpinion = this.approvalOpinion this.form.approvalOpinion = this.approvalOpinion
@@ -934,7 +923,7 @@
console.log(json) console.log(json)
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId: this.userId,
json: json json: json
}, { }, {
_this: this _this: this
@@ -943,7 +932,7 @@
if (res.success) { if (res.success) {
this.processCreateStand(json) this.processCreateStand(json)
// 流程提交之后,应该流转至待办任务页面 // 流程提交之后,应该流转至待办任务页面
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
} }
}) })
}, },
@@ -970,7 +959,7 @@
}) })
}, },
}, },
mounted () { mounted() {
this.getData() this.getData()
this.processTable() this.processTable()
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
@@ -993,20 +982,23 @@
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度 this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
}) })
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/styles/style'; @import '~@/assets/styles/style';
.bzrkStep2 {
/deep/.el-drawer__container { .bzrkStep2 {
/deep/ .el-drawer__container {
.prc-content-border { .prc-content-border {
border: none; border: none;
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
position: relative; position: relative;
height: 100%; height: 100%;
.headerTabs { .headerTabs {
height: 52px; height: 52px;
display: flex; display: flex;
@@ -1014,6 +1006,7 @@
position: absolute; position: absolute;
top: 0; top: 0;
right: 10px; right: 10px;
.headerTabsItem { .headerTabsItem {
border: 1px solid #c1c1c1; border: 1px solid #c1c1c1;
padding: 0 5px; padding: 0 5px;
@@ -1021,18 +1014,21 @@
line-height: 30px; line-height: 30px;
cursor: pointer; cursor: pointer;
} }
.active { .active {
border: 1px solid #E6A23C; border: 1px solid #E6A23C;
color: #fff; color: #fff;
background: #E6A23C; background: #E6A23C;
} }
} }
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px'); height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
height: 30px; height: 30px;
@@ -1040,6 +1036,7 @@
position: relative; position: relative;
font-size: 13px; font-size: 13px;
font-weight: bold; font-weight: bold;
.tableButton { .tableButton {
position: absolute; position: absolute;
right: 0; right: 0;
@@ -1047,5 +1044,5 @@
} }
} }
} }
} }
</style> </style>
@@ -467,9 +467,9 @@
}) })
break break
case '7': case '7':
//项目评估流程 - 标准 //标准合规评估流程
this.$router.push({ this.$router.push({
name: 'xmpgStep1' name: 'bzpgStep1'
}) })
break break
case '8': case '8':
@@ -467,9 +467,9 @@ export default {
}) })
break break
case '7': case '7':
//项目评估流程 - 标准 //标准合规评估
this.$router.push({ this.$router.push({
name: 'xmpgStep1' name: 'bzpgStep1'
}) })
break break
case '8': case '8':
@@ -876,11 +876,11 @@ export default {
}) })
} }
break break
//项目合规评估流程 //标准合规评估
case '5' : case '5' :
if(row.taskInfo === '标准法规部业务经理审批'){ if(row.taskInfo === '审核(标准法规业务经理)'){
this.$router.push({ this.$router.push({
name: 'xmpgStep2', name: 'bzpgStep2',
query: { query: {
taskIds: row.taskIds, taskIds: row.taskIds,
prcId: row.prcId, prcId: row.prcId,
@@ -889,9 +889,9 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
}else if(row.taskInfo === '标准评估任务下发'){ }else if(row.taskInfo === '项目分发(项目群负责人/标准法规工程师)'){
this.$router.push({ this.$router.push({
name: 'xmpgStep3', name: 'bzpgStep3',
query: { query: {
taskIds: row.taskIds, taskIds: row.taskIds,
prcId: row.prcId, prcId: row.prcId,
+27
View File
@@ -520,6 +520,33 @@ const routes = [
title: '重点认证标准/政策合规性项目审查流程' title: '重点认证标准/政策合规性项目审查流程'
} }
}, },
{
path: '/bzpgStep1',
name: 'bzpgStep1',
component: () => import('@/pages/processCenter/pages/creatProcess/bzpg/step1.vue'),
meta: {
requireAuth: true,
title: '标准合规评估流程'
}
},
{
path: '/bzpgStep2',
name: 'bzpgStep2',
component: () => import('@/pages/processCenter/pages/creatProcess/bzpg/step2.vue'),
meta: {
requireAuth: true,
title: '标准合规评估流程'
}
},
{
path: '/bzpgStep3',
name: 'bzpgStep3',
component: () => import('@/pages/processCenter/pages/creatProcess/bzpg/step3.vue'),
meta: {
requireAuth: true,
title: '标准合规评估流程'
}
},
{ {
path: '/xmpgStep1', path: '/xmpgStep1',
name: 'xmpgStep1', name: 'xmpgStep1',