评估流程2
This commit is contained in:
@@ -413,36 +413,6 @@ export default {
|
||||
zcCompletionTime: "" //在产的完成时间
|
||||
}]
|
||||
},
|
||||
// listForm: {
|
||||
// standNumber: "", //标准编号
|
||||
// standName: "",//标准名称
|
||||
// certifiedEngineer: "", //认证工程师
|
||||
// qualityEngineer: "", //质量工程师
|
||||
// dataList: [{
|
||||
// certifiedEngineer: '',
|
||||
// projectManager: '',
|
||||
// standNumber: '',
|
||||
// itemsName: '',
|
||||
// uname: '',
|
||||
// projectNumber: '',
|
||||
// implementer: '',
|
||||
// implementerId: '',
|
||||
// productLine: '',
|
||||
// itemNum:'',
|
||||
// qualityEngineer: '',
|
||||
// distributePerson:'',
|
||||
// projectName:'',
|
||||
// standName:'',
|
||||
// distributePersonId:'',
|
||||
// complianceReasons:'', //在研合规原因
|
||||
// noCompliance:'', //在研不合规项目
|
||||
// countermeasures:'', //在研应对措施
|
||||
// completionTime:'', //在研完成时间
|
||||
// zcComplianceReasons: '', //在产的合规原因
|
||||
// zcCountermeasures:'', //在产的应对措施
|
||||
// zcCompletionTime:'', //在产的完成时间
|
||||
// }]
|
||||
// },
|
||||
choiceForm: {}, //选择标准清单列表
|
||||
countryOptions: [], //适用区域下拉框数据
|
||||
user1: "",
|
||||
@@ -477,7 +447,6 @@ export default {
|
||||
taskIds: this.taskIds,
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
console.log(res.mesg);
|
||||
if (res) {
|
||||
const processForm = JSON.parse(res.mesg);
|
||||
this.getFormFieldList(processForm);
|
||||
@@ -492,11 +461,18 @@ export default {
|
||||
getFormFieldList(item) {
|
||||
this.$nextTick(() => {
|
||||
this.listForm = JSON.parse(JSON.stringify(item));
|
||||
console.log(item.fenFlag);
|
||||
if (item.fenFlag === undefined ) {
|
||||
item.step3DTOS.forEach(item => {
|
||||
item.implementerId = this.$store.getters.userInfo.userId
|
||||
item.implementer = this.$store.getters.userInfo.userName
|
||||
})
|
||||
this.dataList = item.step3DTOS;
|
||||
} else {
|
||||
this.dataList = item.dataList;
|
||||
this.dataList.forEach(item => {
|
||||
item.implementerId = this.$store.getters.userInfo.userId
|
||||
item.implementer = this.$store.getters.userInfo.userName
|
||||
})
|
||||
}
|
||||
this.listForm.prcNum = this.prcNum;
|
||||
this.listForm.prcName = this.prcName;
|
||||
@@ -524,6 +500,7 @@ export default {
|
||||
this.listForm.signFlag = "";
|
||||
this.listForm.dataList = this.dataList;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
console.log(json);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
|
||||
@@ -0,0 +1,368 @@
|
||||
<!--项目合规评估流程-项目维度-->
|
||||
<template>
|
||||
<div class="xmpg2-step1">
|
||||
<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 === '2' ? 'active' : ''" @click="handleTabs('2')">人员信息</div>
|
||||
</div>
|
||||
<div class="content" v-show="active === '1'">
|
||||
<div style="flex: auto; overflow: auto">
|
||||
<process-title>
|
||||
<template slot="title">基础信息</template>
|
||||
</process-title>
|
||||
<el-form
|
||||
:model="listForm"
|
||||
:rules="formRules"
|
||||
ref="listForm"
|
||||
class="label-input-form prc-content-border"
|
||||
label-width="150px"
|
||||
>
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="选择项目" prop="orgName" class="add-form-item form-item-disabled">
|
||||
<el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择项目</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目编号" prop="standNumber" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="listForm.projectNumber"
|
||||
placeholder="请输入项目编号"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目名称" prop="standName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="listForm.projectName"
|
||||
placeholder="请输入项目名称"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<process-title style="margin-top:5px; margin-bottom: 5px">
|
||||
<template slot="title">填写信息</template>
|
||||
</process-title>
|
||||
<el-table
|
||||
:data="dataList"
|
||||
border
|
||||
ref="selection"
|
||||
height="70%"
|
||||
style="width: 100%; border:1px solid #ccc"
|
||||
@selection-change="selectStandChange"
|
||||
: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>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
align="center"
|
||||
label="中文名称"
|
||||
width="180px"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standEnName"
|
||||
label="英文名称"
|
||||
align="center"
|
||||
width="180px"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="SSRQ"
|
||||
width="190px"
|
||||
align="center"
|
||||
sortable
|
||||
label="标准实施日期">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="XCXSSRQGJ"
|
||||
width="190px"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="ZCCSSRQGJ"
|
||||
align="center"
|
||||
sortable
|
||||
width="190px"
|
||||
label="在产车实施日期">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="ZRBM"
|
||||
label="责任部门"
|
||||
align="center"
|
||||
width="180px"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="KCCVPPSBM"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="卡车VPPS编码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="KCCVPPSCN"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="卡车vpps中文名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="CYCVPPSBM"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="乘车VPPS编码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="CYCVPPSBM"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="乘车vpps中文名称">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content" v-show="active === '2'">
|
||||
<div class="block" style="padding-top: 20px;">
|
||||
<el-timeline>
|
||||
<el-form
|
||||
ref="Form"
|
||||
:model="roleForm"
|
||||
:rules="roleFormRules"
|
||||
class="label-input-form">
|
||||
<el-timeline-item timestamp="发起流程" placement="top" :color="roleForm.startUser ? '#66b1ff' : ''">
|
||||
<el-card>
|
||||
<el-form-item prop="startUserName" style="margin-bottom: 0">
|
||||
<h4>流程发起人</h4>
|
||||
<div style="margin-top: 10px;width: 300px;">
|
||||
<el-input v-model="roleForm.startUser" style="display: none;"></el-input>
|
||||
<el-input v-model="roleForm.startUserName" placeholder="流程发起人" disabled></el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-card>
|
||||
</el-timeline-item>
|
||||
<el-timeline-item timestamp="选择标准法规业务经理" placement="top" :color="roleForm.serviceManager ? '#66b1ff' : ''">
|
||||
<el-card>
|
||||
<el-form-item prop="serviceManagerName" style="margin-bottom: 0">
|
||||
<h4>审批责任人</h4>
|
||||
<div style="margin-top: 10px;width: 300px;">
|
||||
<el-input v-model="roleForm.serviceManager" style="display: none;"></el-input>
|
||||
<el-input v-model="roleForm.serviceManagerName" placeholder="标准法规业务经理"@click.native="choiceZRR('serviceManager', '选择业务经理', roleForm.serviceManager)">
|
||||
</el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-card>
|
||||
</el-timeline-item>
|
||||
<el-timeline-item timestamp="选择工程经理进行转办" placement="top" :color="roleForm.engineeringManager ? '#66b1ff' : ''">
|
||||
<el-card>
|
||||
<el-form-item prop="engineeringManagerName" style="margin-bottom: 0">
|
||||
<h4>工程经理</h4>
|
||||
<div style="margin-top: 10px;width: 300px;">
|
||||
<el-input v-model="roleForm.engineeringManager" style="display: none;"></el-input>
|
||||
<el-input v-model="roleForm.engineeringManagerName" placeholder="选择工程经理" @click.native="choiceZRR('engineeringManager', '选择工程经理', roleForm.engineeringManager)"></el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-card>
|
||||
</el-timeline-item>
|
||||
<el-timeline-item timestamp="标准法规部部长审批" placement="top" :color="roleForm.statuteMinister ? '#66b1ff' : ''">
|
||||
<el-card>
|
||||
<el-form-item prop="statuteMinisterName" style="margin-bottom: 0">
|
||||
<h4>标准法规部部长</h4>
|
||||
<div style="margin-top: 10px;width: 300px;">
|
||||
<el-input v-model="roleForm.statuteMinister" style="display: none;"></el-input>
|
||||
<el-input v-model="roleForm.statuteMinisterName" placeholder="选择标准法规部部长" @click.native="choiceZRR('statuteMinister', '选择技术管理中心主任', roleForm.statuteMinister)"></el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-card>
|
||||
</el-timeline-item>
|
||||
</el-form>
|
||||
</el-timeline>
|
||||
</div>
|
||||
<Role-tree
|
||||
check-box
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="modalshowflag"
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { saveTaskFirst } from "api/process";
|
||||
export default {
|
||||
name: "xmpg2Step1",
|
||||
components: {
|
||||
ProcessFooter,
|
||||
ProcessHeader,
|
||||
ProcessTitle,
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
active: '1', //当前选中的type
|
||||
//表单的数据
|
||||
listForm: {
|
||||
projectNumber:'', //项目编号
|
||||
projectName:'', //项目名称
|
||||
},
|
||||
dataList:[], //下面标准的数据
|
||||
//表单的验证
|
||||
formRules: {
|
||||
projectNumber: [
|
||||
{ required: true, message: "请填写项目编号", trigger: "change" }
|
||||
],
|
||||
projectName: [
|
||||
{ required: true, message: "请填写项目名称", trigger: "change" }
|
||||
],
|
||||
},
|
||||
//选人的验证
|
||||
roleFormRules:{
|
||||
serviceManagerName:[
|
||||
{required: true, message:"请选择业务经理", trigger:"change"}
|
||||
],
|
||||
engineeringManagerName: [
|
||||
{required: true, message:"请选择工程经理", trigger:"change"}
|
||||
],
|
||||
statuteMinisterName: [
|
||||
{required: true, message:"请选择法规部部长", trigger:"cahnge"}
|
||||
],
|
||||
},
|
||||
//选择人的数据
|
||||
roleForm: {
|
||||
startUserName: this.$store.getters.userInfo.userName,
|
||||
startUser: this.$store.getters.userInfo.userId,
|
||||
serviceManager:'', //业务经理
|
||||
serviceManagerName:'',
|
||||
engineeringManager:'', //工程经理
|
||||
engineeringManagerName:'',
|
||||
statuteMinister:'', //标准法规部部长
|
||||
statuteMinisterName:'',
|
||||
},
|
||||
modalshowflag: false, // drawer开关
|
||||
drawerTitle: '', //drawer标题
|
||||
nodeList: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//tab发生变化
|
||||
handleTabs(type){
|
||||
this.active = type
|
||||
},
|
||||
//点击选择项目事件
|
||||
choiceShow(){
|
||||
|
||||
},
|
||||
//标准的多选框改变
|
||||
selectStandChange(){
|
||||
|
||||
},
|
||||
choiceZRR (type, title, id) {
|
||||
this.nodeList = []
|
||||
this.nodeList.push(id)
|
||||
this.type = type
|
||||
this.drawerTitle = title
|
||||
this.modalshowflag = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
if (this.type === 'serviceManager') {
|
||||
this.roleForm.serviceManager = data[0].id
|
||||
this.roleForm.serviceManagerName = data[0].name
|
||||
} else if (this.type === 'engineeringManager') {
|
||||
this.roleForm.engineeringManager = data[0].id
|
||||
this.roleForm.engineeringManagerName = data[0].name
|
||||
} else if (this.type === 'statuteMinister') {
|
||||
this.roleForm.statuteMinister = data[0].id
|
||||
this.roleForm.statuteMinisterName = data[0].name
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/style';
|
||||
|
||||
.xmpg2-step1 {
|
||||
/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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.demo-drawer-content {
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "xmpg2Step2"
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -10,7 +10,8 @@
|
||||
<!-- <div class="process-name" @click="handleCreateProcess('4')">标准需求(翻译)申请流程</div>-->
|
||||
<!-- <div class="process-name" @click="handleCreateProcess('5')">标准发放申请流程</div>-->
|
||||
<div class="process-name" @click="handleCreateProcess('6')">标准清单发布/更新流程</div>
|
||||
<div class="process-name" @click="handleCreateProcess('7')">项目合规评估流程</div>
|
||||
<div class="process-name" @click="handleCreateProcess('7')">项目合规评估流程-标准</div>
|
||||
<div class="process-name" @click="handleCreateProcess('10')">项目合规评估流程-项目</div>
|
||||
<div class="process-name" @click="handleCreateProcess('8')">未符合项整改流程</div>
|
||||
<div class="process-name" @click="handleCreateProcess('9')">标准解读流程</div>
|
||||
</div>
|
||||
@@ -87,11 +88,17 @@ export default {
|
||||
})
|
||||
break
|
||||
case '7':
|
||||
//项目评估流程
|
||||
//项目评估流程 - 标准
|
||||
this.$router.push({
|
||||
name: 'xmpgStep1'
|
||||
})
|
||||
break
|
||||
case '10':
|
||||
//项目评估流程- 项目
|
||||
this.$router.push({
|
||||
name: 'xmpg2Step1'
|
||||
})
|
||||
break
|
||||
case '8':
|
||||
//未符合项整改流程
|
||||
this.$router.push({
|
||||
|
||||
@@ -339,6 +339,24 @@ const routes = [
|
||||
title: '项目合规评估流程'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/xmpg2Step1',
|
||||
name: 'xmpg2Step1',
|
||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmpg2/step1.vue'),
|
||||
meta: {
|
||||
requireAuth: true,
|
||||
title: '项目合规评估流程-项目'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/xmpg2Step2',
|
||||
name: 'xmpg2Step2',
|
||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmpg2/step2.vue'),
|
||||
meta: {
|
||||
requireAuth: true,
|
||||
title: '项目合规评估流程-项目'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/wfhxzgStep1',
|
||||
name: 'wfhxzgStep1',
|
||||
|
||||
Reference in New Issue
Block a user