629 lines
28 KiB
Vue
629 lines
28 KiB
Vue
<template>
|
|
<div class="bzjdStep3">
|
|
<!-- 标准调研流程-->
|
|
<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="overflow: auto;">
|
|
<el-form
|
|
ref="bzzqyjForm"
|
|
:model="form"
|
|
class="label-input-form"
|
|
label-width="210px"
|
|
>
|
|
<ProcessTitle>
|
|
<template slot="title">基础信息</template>
|
|
</ProcessTitle>
|
|
<div class="prc-content-border">
|
|
<el-row :gutter="24">
|
|
<el-col :span="24">
|
|
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
disabled
|
|
v-model="form.itemsNum"
|
|
placeholder="请输入标准编号"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
disabled
|
|
v-model="form.itemsName"
|
|
placeholder="请输入标准名称"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="上一版本标准号/政策号" class="add-form-item form-item-disabled" v-if="sarType === 'INLAND'">
|
|
<el-input
|
|
disabled
|
|
v-model="form.itemsNum1"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="相对标准号/政策号" class="add-form-item form-item-disabled" v-if="sarType === 'FOREIGN'">
|
|
<el-input
|
|
disabled
|
|
v-model="form.itemsNum1"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="上一版本标准名称/政策名称" class="add-form-item form-item-disabled" v-if="sarType === 'INLAND'">
|
|
<el-input
|
|
disabled
|
|
v-model="form.itemsName1"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="相对标准名称/政策名称" class="add-form-item form-item-disabled" v-if="sarType === 'FOREIGN'">
|
|
<el-input
|
|
disabled
|
|
v-model="form.itemsName1"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
</el-form>
|
|
</div>
|
|
<ProcessTitle>
|
|
<template slot="title">拆分信息</template>
|
|
</ProcessTitle>
|
|
<div class="action-bar">
|
|
<el-button type="primary" class="common-button-primary add-button" size="mini" @click="choiceZRR">批量编辑</el-button>
|
|
</div>
|
|
<el-table border
|
|
ref="selection"
|
|
:data="itemList"
|
|
tooltip-effect="dark"
|
|
style="width: 100%;"
|
|
height="100%"
|
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '48px'}"
|
|
@selection-change="handleSelectionChange"
|
|
row-key="id"
|
|
>
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
<el-table-column
|
|
prop="itemsNum"
|
|
label="条款号"
|
|
width="70"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="itemsName"
|
|
label="条款名称"
|
|
width="100"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="itemsTitle"
|
|
label="条款内容"
|
|
show-overflow-tooltip
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="technicalRequir"
|
|
width="150"
|
|
label="核心技术要求"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<el-input v-model="scope.row.technicalRequir" placeholder="请输入核心技术要求" />
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="sarType === 'INLAND'"
|
|
prop="changePoint"
|
|
width="150"
|
|
label="基于上一版本差异"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<el-input v-model="scope.row.changePoint" placeholder="请输入基于上一版本差异" />
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="sarType === 'FOREIGN'"
|
|
prop="changePoint"
|
|
width="150"
|
|
label="相对于国行标差异点"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<el-input v-model="scope.row.changePoint" placeholder="请输入相对于国行标差异点" />
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="complianceRequir"
|
|
width="150"
|
|
label="符合项状态"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<el-select v-model="scope.row.complianceRequir">
|
|
<el-option value="1" label="符合" key="1"></el-option>
|
|
<el-option value="2" label="不符合" key="2"></el-option>
|
|
</el-select>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="complianceState"
|
|
width="150"
|
|
label="合规性分析"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<el-input v-model="scope.row.complianceState" placeholder="请输入合规性分析" />
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="newData"
|
|
width="250"
|
|
label="新车型实施日期"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<el-date-picker
|
|
v-model="scope.row.newData"
|
|
type="date"
|
|
placeholder="选择新车型实施日期">
|
|
</el-date-picker>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="onlineData"
|
|
width="250"
|
|
label="在产车型实施日期"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<el-date-picker
|
|
v-model="scope.row.onlineData"
|
|
type="date"
|
|
placeholder="选择新车型实施日期">
|
|
</el-date-picker>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="applyArctic"
|
|
width="150"
|
|
label="适用车型"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<el-select v-model="scope.row.applyArctic">
|
|
<el-option v-for="(item,index) in cxList" :value="item.label" :label="item.label" :key="index"></el-option>
|
|
</el-select>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="unitDeptName"
|
|
label="责任部门"
|
|
width="170"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
label="责任人"
|
|
width="170"
|
|
prop="zrUserIdName"
|
|
align="center">
|
|
</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 === '2'">
|
|
<el-table
|
|
height="100%"
|
|
ref="selection"
|
|
:data="histortData"
|
|
tooltip-effect="dark"
|
|
style="width: 100%"
|
|
border
|
|
row-key="id"
|
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
|
<el-table-column
|
|
prop="name"
|
|
label="任务步骤"
|
|
align="center"
|
|
sortable="custom"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="assignee"
|
|
label="任务受理人"
|
|
align="center"
|
|
sortable="custom"
|
|
>
|
|
</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') : '' }}</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') : '' }}</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>
|
|
</div>
|
|
<ProcessFooter
|
|
show-submit
|
|
:submitLoading="isSubmit"
|
|
:saveLoading="saveLoading"
|
|
@save="handleSave"
|
|
@submit="handleSubmit"
|
|
>
|
|
</ProcessFooter>
|
|
<el-drawer
|
|
title="批量填写"
|
|
:visible.sync="modalshowflag"
|
|
:wrapperClosable="false"
|
|
size="800px">
|
|
<div class="demo-drawer-content">
|
|
<el-form :model="plForm" class="label-input-form" ref="plForm" label-width="150">
|
|
<el-formItem label="核心技术要求" prop="technicalRequir" class="add-form-item" >
|
|
<el-input
|
|
v-model="plForm.technicalRequir"
|
|
placeholder="请输入核心技术要求"
|
|
></el-input>
|
|
</el-formItem>
|
|
<el-form-item label="国内标准的差异点" prop="changePoint" class="add-form-item" v-if="sarType !== 'INLAND'">
|
|
<el-input
|
|
v-model="plForm.changePoint"
|
|
placeholder="请输入国内标准的差异点"
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="上一版本差异点" prop="changePoint" class="add-form-item" v-if="sarType === 'INLAND'">
|
|
<el-input
|
|
v-model="plForm.changePoint"
|
|
placeholder="请输入上一版本差异点"
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="符合性要求" prop="complianceRequir" class="add-form-item" >
|
|
<el-select
|
|
v-model="plForm.complianceRequir"
|
|
placeholder="请选择符合性要求">
|
|
<el-option value="1" label="符合"></el-option>
|
|
<el-option value="2" label="不符合"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="合规性分析" prop="complianceState" class="add-form-item" >
|
|
<el-input
|
|
v-model="plForm.complianceState"
|
|
placeholder="请输入合规性分析"
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="新车型实施日期" prop="newData" class="add-form-item" >
|
|
<el-date-picker
|
|
v-model="plForm.newData"
|
|
type="date"
|
|
placeholder="选择新车型实施日期">
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
<el-form-item label="在产车实施日期" prop="onlineData" class="add-form-item" >
|
|
<el-date-picker
|
|
v-model="plForm.onlineData"
|
|
type="date"
|
|
placeholder="选择在产车实施日期">
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
<el-form-item label="适用车型" prop="applyArctic" class="add-form-item" >
|
|
<el-select v-model="plForm.applyArctic">
|
|
<el-option v-for="(item,index) in cxList" :value="item.label" :label="item.label" :key="index"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
<div id="roleFormButton2" 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="cancleUserInfo">取消</el-button>
|
|
</div>
|
|
</el-drawer>
|
|
<loading :loading="loading">加载中...</loading>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ProcessHeader from '../../components/ProcessHeader'
|
|
import ProcessFooter from '../../components/ProcessFooter'
|
|
import ProcessTitle from '../../components/ProcessTitle'
|
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
|
|
|
export default {
|
|
name: "bzjdStep3",
|
|
data() {
|
|
return {
|
|
cxList: [],
|
|
histortData: [],
|
|
plForm: {
|
|
technicalRequir: '', // 核心技术要求
|
|
changePoint: '', // 国内标准的差异点
|
|
complianceRequir: '1', // 符合性要求
|
|
complianceState: '', // 合规性分析
|
|
newData: '', // 新车型实施日期
|
|
onlineData: '', // 在产车实施日期
|
|
applyArctic: '', // 适用车型
|
|
},
|
|
modalshowflag: false,
|
|
sarType: '',
|
|
itemList: [],
|
|
loading: true,
|
|
commentText: '',
|
|
taskIds: this.$route.query.taskIds,
|
|
pId: this.$route.query.prcId,
|
|
textarea: '', // 意见
|
|
active: '1', // 默认显示
|
|
isSubmit: false,
|
|
saveLoading: false,
|
|
form: {
|
|
itemsNum: '',
|
|
itemsName: '',
|
|
itemsNum1: '',
|
|
itemsName1: '',
|
|
},
|
|
json: {},
|
|
idList: []
|
|
}
|
|
},
|
|
components: {
|
|
ProcessHeader,
|
|
ProcessFooter,
|
|
ProcessTitle
|
|
},
|
|
methods: {
|
|
getHistoryData () {
|
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
|
prcNum: this.$route.query.prcNum,
|
|
}, {}, res => {
|
|
this.histortData = res
|
|
}, e => {})
|
|
},
|
|
saveUserInfo () {
|
|
for( let a = 0; a < this.itemList.length; a++) {
|
|
for ( let b = 0; b < this.idList.length; b++) {
|
|
if (this.itemList[a].id === this.idList[b]) {
|
|
this.itemList[a].technicalRequir = this.plForm.technicalRequir
|
|
this.itemList[a].changePoint = this.plForm.changePoint
|
|
this.itemList[a].complianceRequir = this.plForm.complianceRequir
|
|
this.itemList[a].complianceState = this.plForm.complianceState
|
|
this.itemList[a].newData = this.plForm.newData
|
|
this.itemList[a].onlineData = this.plForm.onlineData
|
|
this.itemList[a].applyArctic = this.plForm.applyArctic
|
|
}
|
|
}
|
|
}
|
|
this.modalshowflag = false
|
|
},
|
|
cancleUserInfo () {
|
|
this.modalshowflag = false
|
|
},
|
|
choiceZRR () {
|
|
if (this.idList.length > 0) {
|
|
this.plForm.technicalRequir = ''
|
|
this.plForm.changePoint = ''
|
|
this.plForm.complianceRequir = '1'
|
|
this.plForm.complianceState = ''
|
|
this.plForm.newData = ''
|
|
this.plForm.onlineData = ''
|
|
this.modalshowflag = true
|
|
} else {
|
|
this.$message.warning('请选择要编辑的数据')
|
|
}
|
|
},
|
|
handleSelectionChange (val) {
|
|
this.idList = []
|
|
val.forEach( item => {
|
|
this.idList.push(item.id)
|
|
})
|
|
},
|
|
handleTabs(name) {
|
|
this.active = name
|
|
},
|
|
handleSave() {},
|
|
handleSubmit() {
|
|
this.$refs['bzzqyjForm'].validate((valid) => {
|
|
if (valid) {
|
|
let num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0, num6 = 0
|
|
for (let a = 0; a < this.itemList.length; a++) {
|
|
if (!this.itemList[a].technicalRequir) {
|
|
num1++
|
|
}
|
|
if (!this.itemList[a].changePoint) {
|
|
num2++
|
|
}
|
|
if (!this.itemList[a].complianceRequir) {
|
|
num3++
|
|
}
|
|
if (!this.itemList[a].newData) {
|
|
num4++
|
|
}
|
|
if (!this.itemList[a].onlineData) {
|
|
num5++
|
|
}
|
|
if (!this.itemList[a].applyArctic) {
|
|
num6++
|
|
}
|
|
}
|
|
if (num1 > 0) {
|
|
this.$message.warning('请输入核心技术要求')
|
|
} else if (num2 > 0) {
|
|
if (this.sarType === 'INLAND') {
|
|
this.$message.warning('请输入国内标准的差异点')
|
|
} else {
|
|
this.$message.warning('请输入基于上一版本差异')
|
|
}
|
|
} else if (num3 > 0) {
|
|
this.$message.warning('请输入符合性要求')
|
|
} else if (num4 > 0) {
|
|
this.$message.warning('请输入新车型实施日期')
|
|
} else if (num5 > 0) {
|
|
this.$message.warning('请输入在产车实施日期')
|
|
} else if (num6 > 0) {
|
|
this.$message.warning('请选择适用车型')
|
|
} else {
|
|
this.isSubmit = true
|
|
var json = this.json
|
|
json.commentText = this.commentText
|
|
json.itemList = this.itemList
|
|
this.$http.post('lawss/activiti/completeTask', {
|
|
json: JSON.stringify(json),
|
|
taskId: this.taskIds,
|
|
userId: this.$store.getters.userInfo.userId
|
|
}, {}, res => {
|
|
if (res.success) {
|
|
this.$message.success('提交成功')
|
|
this.$router.push('/processCenter')
|
|
}
|
|
this.isSubmit = false
|
|
})
|
|
}
|
|
} else {
|
|
return this.$message.warning('请完善基础信息')
|
|
}
|
|
})
|
|
},
|
|
getData() {
|
|
return new Promise((resolve, reject) => {
|
|
inboundLiaisonDetail({
|
|
taskIds: this.taskIds,
|
|
pId: this.pId
|
|
}).then(res => {
|
|
let data = JSON.parse(res.mesg)
|
|
this.form.itemsNum = data.itemsNum
|
|
this.form.itemsName = data.itemsName
|
|
this.form.itemsNum1 = data.itemsNum1
|
|
this.form.itemsName1 = data.itemsName1
|
|
this.sarType = data.standInData
|
|
this.json = data
|
|
let itemList
|
|
if (typeof (data.itemList) == 'string') {
|
|
itemList = JSON.parse(data.itemList)
|
|
} else {
|
|
itemList = data.itemList
|
|
}
|
|
itemList.forEach(item => {
|
|
item.unitDeptName = this.$store.getters.userInfo.orgName
|
|
item.onlineData = ''
|
|
item.newData = ''
|
|
item.complianceState = ''
|
|
item.oldNumber = ''
|
|
item.complianceRequir = '1'
|
|
item.changePoint = ''
|
|
item.technicalRequir = ''
|
|
item.itemsTitle = item.itermsConditions
|
|
})
|
|
console.log(2);
|
|
this.itemList = itemList
|
|
this.loading = false
|
|
}).catch(e => {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
mounted () {
|
|
this.getHistoryData()
|
|
this.getData()
|
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
_this: this
|
|
}, res => {
|
|
this.cxList = res.data.ENERGYTYPES // 适用车型
|
|
})
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import '~@/assets/styles/style';
|
|
.bzjdStep3 {
|
|
/deep/.el-drawer__container {
|
|
.prc-content-border {
|
|
border: none;
|
|
padding: 0 20px 0;
|
|
}
|
|
}
|
|
.fileClass {
|
|
cursor: pointer;
|
|
}
|
|
.fileClass:hover{
|
|
color: #0c91e5;
|
|
}
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|