Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -22,6 +22,56 @@
|
|||||||
style="border-top:none;position: absolute;right: 36px;">
|
style="border-top:none;position: absolute;right: 36px;">
|
||||||
<div class="modular-header" style="height: 50px;">
|
<div class="modular-header" style="height: 50px;">
|
||||||
<div class="modular-header-btn">
|
<div class="modular-header-btn">
|
||||||
|
<el-button type="warning" icon="el-icon-edit" @click="businessCommentDialog = true">企标评价</el-button>
|
||||||
|
<el-dialog title="企业标准动态评价表" :visible.sync="businessCommentDialog" width="80%">
|
||||||
|
<el-table ref="businessCommentTable" :data="businessCommentTable" border style="width: 100%; flex: auto;margin-bottom: 2%"
|
||||||
|
class="drag-table"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center"
|
||||||
|
/>
|
||||||
|
<el-table-column property="commentTarget" label="评价指标" width="300">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="targetScore" label="指标分值" width="160">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-rate
|
||||||
|
v-model="scope.row.targetScore"
|
||||||
|
@change="targetScoreChange"
|
||||||
|
allow-half>
|
||||||
|
</el-rate>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column property="averageScore" label="动态评价分值">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-rate
|
||||||
|
v-model="value"
|
||||||
|
disabled
|
||||||
|
show-score
|
||||||
|
text-color="#ff9900"
|
||||||
|
score-template="{value}">
|
||||||
|
</el-rate>
|
||||||
|
<el-input v-model="scope.row.averageScore" style="margin: 10px 0;" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column property="address" label="简述理由"></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-form :model="businessCommentForm">
|
||||||
|
<el-form-item label="对标准的意见和建议,是否需要修订">
|
||||||
|
<template>
|
||||||
|
<el-radio v-model="revise" label="1">是</el-radio>
|
||||||
|
<el-radio v-model="revise" label="0">否</el-radio>
|
||||||
|
<el-input v-show="revise === '1'"
|
||||||
|
placeholder="请填写修订理由"
|
||||||
|
type="textarea"
|
||||||
|
:rows="2"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</el-dialog>
|
||||||
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="el-icon-star-on" :loading="isSubmit"></el-button>
|
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="el-icon-star-on" :loading="isSubmit"></el-button>
|
||||||
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off" :loading="isSubmit"></el-button>
|
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off" :loading="isSubmit"></el-button>
|
||||||
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button>
|
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button>
|
||||||
@@ -987,6 +1037,19 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
targetScore: '',
|
||||||
|
businessCommentDialog: false,
|
||||||
|
businessCommentForm: {},
|
||||||
|
revise: '',
|
||||||
|
businessCommentTable: [{
|
||||||
|
commentTarget: '企业标准内容完整、要求合理(指标、流程等。)',
|
||||||
|
}, {
|
||||||
|
commentTarget: '企业标准便于实施应用',
|
||||||
|
}, {
|
||||||
|
commentTarget: '标准编写规范,内容清晰易理解',
|
||||||
|
}, {
|
||||||
|
commentTarget: '标准对我的实际工作很有帮助',
|
||||||
|
}],
|
||||||
activeNames: ['基础信息','过程稿件','实施日期'],
|
activeNames: ['基础信息','过程稿件','实施日期'],
|
||||||
activeState: true,
|
activeState: true,
|
||||||
visiblePlanCheck: false,
|
visiblePlanCheck: false,
|
||||||
@@ -1194,6 +1257,9 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
targetScoreChange(row){
|
||||||
|
console.log('1234',row)
|
||||||
|
},
|
||||||
child1Func(child1){
|
child1Func(child1){
|
||||||
const list = []
|
const list = []
|
||||||
if(child1 && child1.length > 1){
|
if(child1 && child1.length > 1){
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div v-if="label" class="icon-style">
|
<div v-if="label" class="icon-style">
|
||||||
<span v-for="item in icons" v-if="item.label === label" :class="item.icon" style="font-size: 20px;">
|
<span v-for="item in icons" v-if="item.label === label" :class="item.icon" style="font-size: 20px;">
|
||||||
<span style="padding-left: 10px; font-size: 16px">
|
<span style="font-size: 15px;">
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.wx-card {
|
.wx-card {
|
||||||
line-height: 70px;
|
line-height: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
& > div {
|
& > div {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 70px;
|
height: 50px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #4788c0;
|
background-color: #4788c0;
|
||||||
}
|
}
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.wx-card1 {
|
.wx-card1 {
|
||||||
line-height: 70px;
|
line-height: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
& > div {
|
& > div {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 70px;
|
height: 50px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 2px dashed #E4E4E4;
|
border: 2px dashed #E4E4E4;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.el-icon-circle-plus-outline {
|
.el-icon-circle-plus-outline {
|
||||||
font-size: 50px;
|
font-size: 40px;
|
||||||
color: #E4E4E4;
|
color: #E4E4E4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
font-size: 15px;
|
||||||
padding-right: 40px;
|
padding-right: 40px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-left: 40px;
|
padding-left: 40px;
|
||||||
@@ -200,6 +201,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.myLi1 {
|
.myLi1 {
|
||||||
|
font-size: 15px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #0068B7;
|
color: #0068B7;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
font-size: 14px;
|
font-size: 15px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
.menu-wrap {
|
.menu-wrap {
|
||||||
@@ -92,11 +92,11 @@
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.wx-card {
|
.wx-card {
|
||||||
height: 70px;
|
height: 50px;
|
||||||
width: 33.333333%;
|
width: 33.333333%;
|
||||||
}
|
}
|
||||||
.wx-card1 {
|
.wx-card1 {
|
||||||
height: 70px;
|
height: 50px;
|
||||||
width: 33.333333%;
|
width: 33.333333%;
|
||||||
}
|
}
|
||||||
.menu-item {
|
.menu-item {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
label="序号"
|
label="序号"
|
||||||
type="index"
|
type="index"
|
||||||
align="center"
|
align="center"
|
||||||
width="50">
|
width="55">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standName"
|
prop="standName"
|
||||||
@@ -98,6 +98,12 @@ export default {
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.release {
|
.release {
|
||||||
|
/deep/.el-table th > .cell {
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
/deep/.el-table td > .cell{
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
width: 100%;
|
width: 100%;
|
||||||
.time-title {
|
.time-title {
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
placeholder="请输入关键词"
|
placeholder="请输入关键词"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<el-button style="box-shadow:1px 1px 10px rgba(0,0,0,0.2);margin-left: 5px;" type="primary" @click="search">一般检索</el-button>
|
<el-button style="box-shadow:1px 1px 10px rgba(0,0,0,0.2);margin-left: 5px;font-size: 15px;" type="primary" @click="search">一般检索</el-button>
|
||||||
<el-button style="box-shadow:1px 1px 10px rgba(0,0,0,0.2);margin-left: 5px;" type="primary" @click="seniorSearch">高级检索</el-button>
|
<el-button style="box-shadow:1px 1px 10px rgba(0,0,0,0.2);margin-left: 5px;font-size: 15px;" type="primary" @click="seniorSearch">高级检索</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -106,7 +106,7 @@ export default {
|
|||||||
width: 18vm;
|
width: 18vm;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 15px;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
label="序号"
|
label="序号"
|
||||||
type="index"
|
type="index"
|
||||||
align="center"
|
align="center"
|
||||||
width="50">
|
width="55">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="cid"
|
prop="cid"
|
||||||
@@ -91,6 +91,12 @@ export default {
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.solicitopinions {
|
.solicitopinions {
|
||||||
|
/deep/.el-table th > .cell {
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
/deep/.el-table td > .cell{
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
.time-title {
|
.time-title {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li v-for="item in toDoTaskList" :key="item.id" class="time-title">
|
<li v-for="item in toDoTaskList" :key="item.id" class="time-title">
|
||||||
<div style="height: 30px">
|
<div style="height: 30px">
|
||||||
<span @click="dealWith(item)" style="line-height: 30px; font-size: 12px;">{{ item.prcName }}</span>
|
<span @click="dealWith(item)" style="line-height: 30px; font-size: 13px;">{{ item.prcName }}</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -614,7 +614,7 @@ export default {
|
|||||||
break
|
break
|
||||||
//项目清单确认流程
|
//项目清单确认流程
|
||||||
case '10' :
|
case '10' :
|
||||||
if(row.taskInfo === '确认人确认'){
|
if(row.taskInfo === '产品工程经理分发清单'){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep2',
|
name: 'xmqdqrStep2',
|
||||||
query: {
|
query: {
|
||||||
@@ -1284,9 +1284,10 @@ export default {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
.more {
|
.more {
|
||||||
|
font-size: 15px;
|
||||||
float: right;
|
float: right;
|
||||||
color: #4788c0;
|
color: #4788c0;
|
||||||
margin: 15px 15px;
|
margin: 15px 15px;
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ export default {
|
|||||||
.right_wrapper {
|
.right_wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 37vw;
|
width: 30vw;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.search-condition {
|
.search-condition {
|
||||||
|
|||||||
@@ -96,15 +96,15 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
<el-timeline-item timestamp="选择确认人" placement="top"
|
<el-timeline-item timestamp="选择产品经理" placement="top"
|
||||||
:color="roleForm.confirmId ? '#66b1ff' : ''">
|
:color="roleForm.confirmId ? '#66b1ff' : ''">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-form-item prop="confirmName" style="margin-bottom: 0">
|
<el-form-item prop="confirmName" style="margin-bottom: 0">
|
||||||
<h4>确认人</h4>
|
<h4>产品经理</h4>
|
||||||
<div style="margin-top: 10px;width: 300px;">
|
<div style="margin-top: 10px;width: 300px;">
|
||||||
<el-input v-model="roleForm.confirmId" style="display: none;"></el-input>
|
<el-input v-model="roleForm.confirmId" style="display: none;"></el-input>
|
||||||
<el-input v-model="roleForm.confirmName" placeholder="选择确认人"
|
<el-input v-model="roleForm.confirmName" placeholder="选择产品经理"
|
||||||
@click.native="choiceZRR('confirmId', '选择确认人', roleForm.confirmId)"></el-input>
|
@click.native="choiceZRR('confirmId', '选择产品经理', roleForm.confirmId)"></el-input>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -449,7 +449,7 @@ export default {
|
|||||||
// 角色验证
|
// 角色验证
|
||||||
roleFormRules: {
|
roleFormRules: {
|
||||||
confirmName: [
|
confirmName: [
|
||||||
{ required: true, message: "请选择确认人", trigger: "change" }
|
{ required: true, message: "请选择产品经理", trigger: "change" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -691,7 +691,7 @@ export default {
|
|||||||
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
||||||
_formData.append("prcType", "10");
|
_formData.append("prcType", "10");
|
||||||
_formData.append("json", JSON.stringify({
|
_formData.append("json", JSON.stringify({
|
||||||
taskInfo: "确认人确认",
|
taskInfo: "产品经理分发",
|
||||||
form: this.qdform,
|
form: this.qdform,
|
||||||
roleForm: this.roleForm,
|
roleForm: this.roleForm,
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
|
|||||||
@@ -103,15 +103,15 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
<el-timeline-item timestamp="选择确认人" placement="top"
|
<el-timeline-item timestamp="选择产品经理" placement="top"
|
||||||
:color="roleForm.confirmId ? '#66b1ff' : ''">
|
:color="roleForm.confirmId ? '#66b1ff' : ''">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-form-item prop="confirmName" style="margin-bottom: 0">
|
<el-form-item prop="confirmName" style="margin-bottom: 0">
|
||||||
<h4>确认人</h4>
|
<h4>产品经理</h4>
|
||||||
<div style="margin-top: 10px;width: 300px;">
|
<div style="margin-top: 10px;width: 300px;">
|
||||||
<el-input v-model="roleForm.confirmId" style="display: none;"></el-input>
|
<el-input v-model="roleForm.confirmId" style="display: none;"></el-input>
|
||||||
<el-input v-model="roleForm.confirmName" placeholder="选择确认人"
|
<el-input v-model="roleForm.confirmName" placeholder="选择产品经理"
|
||||||
@click.native="choiceZRR('confirmId', '选择确认人', roleForm.confirmId)"></el-input>
|
@click.native="choiceZRR('confirmId', '选择产品经理', roleForm.confirmId)"></el-input>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -461,7 +461,7 @@ export default {
|
|||||||
// 角色验证
|
// 角色验证
|
||||||
roleFormRules: {
|
roleFormRules: {
|
||||||
confirmName: [
|
confirmName: [
|
||||||
{ required: true, message: "请选择确认人", trigger: "change" }
|
{ required: true, message: "请选择产品经理", trigger: "change" }
|
||||||
],
|
],
|
||||||
approveName: [
|
approveName: [
|
||||||
{ required: true, message: "请选择审批人", trigger: "change" }
|
{ required: true, message: "请选择审批人", trigger: "change" }
|
||||||
@@ -695,7 +695,7 @@ export default {
|
|||||||
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
||||||
_formData.append("prcType", "10");
|
_formData.append("prcType", "10");
|
||||||
_formData.append("json", JSON.stringify({
|
_formData.append("json", JSON.stringify({
|
||||||
taskInfo: "确认人确认",
|
taskInfo: "产品经理分发",
|
||||||
form: this.qdform,
|
form: this.qdform,
|
||||||
roleForm: this.roleForm,
|
roleForm: this.roleForm,
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="xmqdqr-step2">
|
<div class="xmqdqr-step2">
|
||||||
<ProcessHeader toggle>
|
<ProcessHeader toggle>
|
||||||
<template slot="proName">项目清单确认流程</template>
|
<template slot="proName">项目清单确认流程</template>
|
||||||
<template slot="proNode">确认人确认</template>
|
<template slot="proNode">产品经理分发任务</template>
|
||||||
</ProcessHeader>
|
</ProcessHeader>
|
||||||
<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>
|
||||||
@@ -44,6 +44,14 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="确认人" prop="detailPeopleName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="qdform.detailPeopleName"
|
||||||
|
placeholder="请选择确认人"
|
||||||
|
clearable
|
||||||
|
@click.native="choiceZRRS"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -252,163 +260,439 @@
|
|||||||
<!-- 添加标准抽屉-->
|
<!-- 添加标准抽屉-->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
title="添加标准"
|
title="添加标准"
|
||||||
|
:wrapperClosable="false"
|
||||||
:visible.sync="standModel"
|
:visible.sync="standModel"
|
||||||
size="900px"
|
size="900px"
|
||||||
custom-class="demo-drawer"
|
custom-class="demo-drawer"
|
||||||
>
|
>
|
||||||
<div class="demo-drawer-content">
|
<div class="demo-drawer-content">
|
||||||
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
|
<el-form
|
||||||
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
class="label-input-form"
|
||||||
<div class="left">
|
style="margin-top: 15px;"
|
||||||
<el-form :model="standCommonlySearch" inline class="label-input-form">
|
label-width="130px"
|
||||||
<el-formItem label="标准号/名称" prop="standNumber" class="search-item">
|
:modal="handleSelectForm"
|
||||||
<el-input v-model="standCommonlySearch.standNumber" placeholder="根据标准号/名称查找" clearable />
|
:inline="true"
|
||||||
</el-formItem>
|
>
|
||||||
<!-- <el-formItem label="标准类别" prop="standSort" class="search-item">-->
|
<el-form-item label="标准/政策来源" class="search-item">
|
||||||
<!-- <el-select v-model="standCommonlySearch.standSort" placeholder="根据标准类别查找" clearable>-->
|
<el-select
|
||||||
<!-- <el-option v-for="opt in standSortOptions" :value="opt.value === undefined ? '' :opt.value"-->
|
v-model="handleSelectForm.dataSource"
|
||||||
<!-- :key="opt.value" :label="opt.label">{{ opt.label }}-->
|
@change="dataSourceChange"
|
||||||
<!-- </el-option>-->
|
:popper-append-to-body="false"
|
||||||
<!-- </el-select>-->
|
placeholder="请选择标准来源">
|
||||||
<!-- </el-formItem>-->
|
<el-option value="INLAND" label="国内标准库"></el-option>
|
||||||
<el-formItem label="标准来源" prop="standType" class="search-item">
|
<el-option value="FOREIGN" label="海外标准库"></el-option>
|
||||||
<el-select v-model="standCommonlySearch.standType" placeholder="根据标准来源查找" clearable>
|
<!-- <el-option value="FOREIGN_LAWS" label="国内外政策库"></el-option>-->
|
||||||
<el-option value="INLAND" key="1" label="国内标准"></el-option>
|
<el-option value="BUSINESS_STAND" label="企业标准库"></el-option>
|
||||||
<el-option value="FOREIGN" key="2" label="海外标准"></el-option>
|
</el-select>
|
||||||
</el-select>
|
</el-form-item>
|
||||||
</el-formItem>
|
<el-form-item label="标准编号" class="search-item">
|
||||||
<el-formItem class="search-item btn-box">
|
<el-input
|
||||||
<el-button
|
v-model="handleSelectForm.lawNumber"
|
||||||
type="primary"
|
@change="lawNumberSearch"
|
||||||
size="mini"
|
placeholder="根据标准编号查找"
|
||||||
class="common-button-primary"
|
clearable
|
||||||
@click="search">查询
|
:maxlength="100"></el-input>
|
||||||
</el-button>
|
</el-form-item>
|
||||||
<el-button
|
<!-- <el-form-item label="标准名称/政策名称" class="search-item">-->
|
||||||
class="common-button-default"
|
<!-- <el-input-->
|
||||||
size="mini"
|
<!-- v-model="handleSelectForm.lawName"-->
|
||||||
@click="clearSearch">清空
|
<!-- @change="lawNameSearch"-->
|
||||||
</el-button>
|
<!-- placeholder="根据标准名称/政策名称查找"-->
|
||||||
</el-formItem>
|
<!-- clearable-->
|
||||||
</el-form>
|
<!-- :maxlength="100"></el-input>-->
|
||||||
</div>
|
<!-- </el-form-item>-->
|
||||||
<el-table
|
<el-form-item class="search-item btn-box">
|
||||||
:data="standardData"
|
<el-button
|
||||||
tooltip-effect="dark"
|
size="small"
|
||||||
style="width: 100%"
|
type="primary"
|
||||||
border
|
class="common-button-primary"
|
||||||
ref="table"
|
@click="searchLawBtn">
|
||||||
height="100%"
|
查询
|
||||||
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
</el-button>
|
||||||
fontWeight: 'bold', height: '48px'}"
|
</el-form-item>
|
||||||
@selection-change="selectStand"
|
<el-form-item class="search-item btn-box">
|
||||||
|
<el-button
|
||||||
|
class="common-button-default"
|
||||||
|
size="small"
|
||||||
|
type="default"
|
||||||
|
@click="clearLawBtn">
|
||||||
|
清空
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<loading :loading="lawInfoTableLoading">数据获取中</loading>
|
||||||
|
<el-table
|
||||||
|
ref="selections"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%;overflow-y: auto;overflow-x: hidden;"
|
||||||
|
border
|
||||||
|
:loading="lawInfoTableLoading"
|
||||||
|
:data="lawInfoTable"
|
||||||
|
:height="300"
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
@selection-change="handleSelectTableChange"
|
||||||
|
>
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
|
fixed="left"
|
||||||
|
type="selection"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
|
<div v-if="handleSelectForm.dataSource === 'INLAND'">
|
||||||
|
<el-table-column
|
||||||
|
label="标准号"
|
||||||
|
width="150"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<template slot-scope="scope">
|
||||||
type="selection"
|
<a v-if="scope.row.standYear && textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" class="table-jump" style="color: #F56C6C"
|
||||||
width="55"
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
align="center">
|
scope.row.standNumber
|
||||||
</el-table-column>
|
}}-{{ scope.row.standYear }}</a>
|
||||||
<el-table-column
|
<a v-else-if="scope.row.standYear" class="table-jump" style="color: #333333"
|
||||||
prop="code"
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
align="center"
|
scope.row.standNumber
|
||||||
label="标准号">
|
}}-{{ scope.row.standYear }}</a>
|
||||||
<template slot-scope="scope">
|
<a v-else @click="handlePreview(scope.row)" class="table-jump" style="color: #333333">
|
||||||
<a v-if="scope.row.standYear" class="table-jump"
|
{{ scope.row.standSortShow }}
|
||||||
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
{{ scope.row.standNumber }}</a>
|
||||||
scope.row.standNumber
|
</template>
|
||||||
}}-{{ scope.row.standYear }}</a>
|
</el-table-column>
|
||||||
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{
|
<el-table-column
|
||||||
scope.row.standSortShow }}
|
show-overflow-tooltip
|
||||||
{{ scope.row.standNumber }}</a>
|
prop="standName"
|
||||||
</template>
|
label="标准名称"
|
||||||
</el-table-column>
|
min-width="300"
|
||||||
<el-table-column
|
>
|
||||||
prop="standName"
|
<template slot-scope="scope">
|
||||||
align="center"
|
<a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" @click="handlePreview(scope.row)" class="table-jump" style="color: #F56C6C">{{ scope.row.standName }}</a>
|
||||||
label="标准名称"
|
<a v-else @click="handlePreview(scope.row)" style="color: #333333" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
>
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
<el-table-column
|
||||||
</template>
|
prop="issueTime"
|
||||||
</el-table-column>
|
sortable="custom"
|
||||||
<el-table-column
|
width="120"
|
||||||
prop="issueTime"
|
label="发布日期">
|
||||||
align="center"
|
<template slot-scope="scope">
|
||||||
label="发布日期">
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ formatIssueDate(scope.row.issueTime) }}</span>
|
||||||
<template slot-scope="scope">
|
<span v-else>{{ formatIssueDate(scope.row.issueTime) }}</span>
|
||||||
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span>
|
</template>
|
||||||
</template>
|
</el-table-column>
|
||||||
</el-table-column>
|
<el-table-column
|
||||||
<el-table-column
|
prop="SSRQ"
|
||||||
prop="xcxssrqgj"
|
sortable="custom"
|
||||||
align="center"
|
width="120"
|
||||||
label="新车型实施日期">
|
label="实施日期">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
<!-- {{ formatIssueDate(scope.row.putTime) }}-->
|
||||||
</template>
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}</span>
|
||||||
</el-table-column>
|
<span v-else>{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}</span>
|
||||||
<el-table-column
|
|
||||||
show-overflow-tooltip
|
</template>
|
||||||
prop="zccssrqgj"
|
</el-table-column>
|
||||||
align="center"
|
|
||||||
label="在产车实施日期">
|
<el-table-column
|
||||||
<template slot-scope="scope">
|
prop="XCXSSRQ"
|
||||||
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
sortable="custom"
|
||||||
</template>
|
width="150"
|
||||||
</el-table-column>
|
label="新车型实施日期">
|
||||||
<el-table-column
|
<template slot-scope="scope">
|
||||||
show-overflow-tooltip
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}</span>
|
||||||
prop="textStatus"
|
<span v-else>{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}</span>
|
||||||
align="center"
|
</template>
|
||||||
label="文本状态">
|
</el-table-column>
|
||||||
<template slot-scope="scope">
|
<el-table-column
|
||||||
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
|
prop="ZCCSSRQ"
|
||||||
</template>
|
sortable="custom"
|
||||||
</el-table-column>
|
width="150"
|
||||||
</el-table>
|
label="在产车实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}</span>
|
||||||
|
<span v-else>{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="textStatus"
|
||||||
|
sortable="custom"
|
||||||
|
width="110"
|
||||||
|
label="文本状态">
|
||||||
|
<!-- <template slot="header" slot-scope="scope">-->
|
||||||
|
<!-- <el-tooltip class="item" effect="dark" content="计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。" placement="bottom">-->
|
||||||
|
<!-- <span>文本状态<i class="el-icon-warning-outline"></i></span>-->
|
||||||
|
<!-- </el-tooltip>-->
|
||||||
|
<!-- </template>-->
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
|
||||||
|
textStatusMap[scope.row.textStatus]
|
||||||
|
}}</span>
|
||||||
|
<span v-else>{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</div>
|
</div>
|
||||||
<pagination
|
<div v-if="handleSelectForm.dataSource === 'FOREIGN'">
|
||||||
:page="page"
|
<el-table-column
|
||||||
:pageSize="pageSize"
|
label="标准号"
|
||||||
:total="total"
|
width="150"
|
||||||
@pageChange="pageChange"
|
>
|
||||||
@pageSizeChange="pageSizeChange"
|
<template slot-scope="scope">
|
||||||
/>
|
<a v-if="scope.row.standYear && textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C" class="table-jump" @click="handlePreview(scope.row)">{{
|
||||||
|
scope.row.standSortShow
|
||||||
|
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else-if="scope.row.standYear && textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF" class="table-jump" @click="handlePreview(scope.row)">{{
|
||||||
|
scope.row.standSortShow
|
||||||
|
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else-if="scope.row.standYear" style="color: #333333" class="table-jump" @click="handlePreview(scope.row)">{{
|
||||||
|
scope.row.standSortShow
|
||||||
|
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{
|
||||||
|
scope.row.standSortShow
|
||||||
|
}}
|
||||||
|
{{ scope.row.standNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="standName"
|
||||||
|
label="标准名称"
|
||||||
|
min-width="300"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{
|
||||||
|
scope.row.standName
|
||||||
|
}}</a>
|
||||||
|
<a v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF" @click="handlePreview(scope.row)" class="table-jump">{{
|
||||||
|
scope.row.standName
|
||||||
|
}}</a>
|
||||||
|
<a v-else style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{
|
||||||
|
scope.row.standName
|
||||||
|
}}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="issueTime"
|
||||||
|
sortable="custom"
|
||||||
|
width="120"
|
||||||
|
label="发布日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">
|
||||||
|
{{ formatIssueDate(scope.row.issueTime) }}
|
||||||
|
</div>
|
||||||
|
<div v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">
|
||||||
|
{{ formatIssueDate(scope.row.issueTime) }}
|
||||||
|
</div>
|
||||||
|
<div v-else style="color: #333333">
|
||||||
|
{{ formatIssueDate(scope.row.issueTime) }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="SSRQ"
|
||||||
|
sortable="custom"
|
||||||
|
width="120"
|
||||||
|
label="实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<!-- {{ formatIssueDate(scope.row.putTime) }}-->
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
|
||||||
|
scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-'
|
||||||
|
}}</span>
|
||||||
|
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
|
||||||
|
scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-'
|
||||||
|
}}</span>
|
||||||
|
<span v-else style="color: #333333">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}</span>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="XCXSSRQ"
|
||||||
|
sortable="custom"
|
||||||
|
width="150"
|
||||||
|
label="新车型实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
|
||||||
|
scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-'
|
||||||
|
}}</span>
|
||||||
|
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
|
||||||
|
scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-'
|
||||||
|
}}</span>
|
||||||
|
<span v-else style="color: #333333">{{
|
||||||
|
scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-'
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="ZCCSSRQ"
|
||||||
|
sortable="custom"
|
||||||
|
width="150"
|
||||||
|
label="在产车实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
|
||||||
|
scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-'
|
||||||
|
}}</span>
|
||||||
|
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
|
||||||
|
scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-'
|
||||||
|
}}</span>
|
||||||
|
<span v-else style="color: #333333">{{
|
||||||
|
scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-'
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="textStatus"
|
||||||
|
sortable="custom"
|
||||||
|
width="110"
|
||||||
|
label="文本状态">
|
||||||
|
<!-- <template slot="header" slot-scope="scope">-->
|
||||||
|
<!-- <el-tooltip class="item" effect="dark" content="计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。" placement="bottom">-->
|
||||||
|
<!-- <span>文本状态 <i class="el-icon-warning-outline"></i></span>-->
|
||||||
|
<!-- </el-tooltip>-->
|
||||||
|
<!-- </template>-->
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
|
||||||
|
textStatusMap[scope.row.textStatus]
|
||||||
|
}}</span>
|
||||||
|
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
|
||||||
|
textStatusMap[scope.row.textStatus]
|
||||||
|
}}</span>
|
||||||
|
<span v-else style="color: #333333">{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</div>
|
||||||
|
<div v-if="handleSelectForm.dataSource === 'BUSINESS_STAND'">
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
label="企标编号"
|
||||||
|
width="150"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<!-- <a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>-->
|
||||||
|
<a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standCode }}</a>
|
||||||
|
<a v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standCode }}</a>
|
||||||
|
<a v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'" style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standCode }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="standName"
|
||||||
|
label="中文名称"
|
||||||
|
min-width="300"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
<a v-if="scope.row.standStatusShow === '参考' " style="color: #E6A23C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
<a v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'" style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="standEnName"
|
||||||
|
label="英文名称"
|
||||||
|
min-width="300"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
|
||||||
|
<a v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
|
||||||
|
<a v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'" style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="issueTime"
|
||||||
|
label="发布日期"
|
||||||
|
sortable
|
||||||
|
width="120"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span>
|
||||||
|
<span v-if="scope.row.standStatusShow === '参考' " style="color: #E6A23C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span>
|
||||||
|
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="putTime"
|
||||||
|
label="实施日期"
|
||||||
|
sortable
|
||||||
|
width="120"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span>
|
||||||
|
<span v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span>
|
||||||
|
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
sortable
|
||||||
|
prop="standStatusShow"
|
||||||
|
label="文本状态"
|
||||||
|
width="110"
|
||||||
|
>
|
||||||
|
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">
|
||||||
|
{{scope.row.standStatusShow}}
|
||||||
|
</span>
|
||||||
|
<span v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C">
|
||||||
|
{{scope.row.standStatusShow}}
|
||||||
|
</span>
|
||||||
|
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">
|
||||||
|
{{scope.row.standStatusShow}}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</el-table>
|
||||||
|
<!--分页-->
|
||||||
|
<pagination
|
||||||
|
v-show="this.lawInfoTableLoading === false"
|
||||||
|
style="position: relative;"
|
||||||
|
:page="handleSelectForm.page"
|
||||||
|
:total="handleSelectForm.total"
|
||||||
|
@pageChange="handleSelectPageChange"
|
||||||
|
@pageSizeChange="handleSelectPageSizeChange"></pagination>
|
||||||
|
<div slot="footer" class="demo-drawer-footer">
|
||||||
|
<el-button class="common-button-default" round icon="el-icon-close" @click="standModel = false">取消</el-button>
|
||||||
|
<el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="handleSelectConfirm" v-show="lawInfoTableLoading === false">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
|
||||||
<el-button size="mini" @click="cancelStand">取消</el-button>
|
|
||||||
<el-button type="primary" size="mini" @click="okStand">添加</el-button>
|
|
||||||
</div>
|
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-transfer
|
||||||
|
show-affirm
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@save="handleSave"
|
||||||
|
:approval="true"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
<!-- <ProcessFooter-->
|
<!-- <ProcessFooter-->
|
||||||
<!-- show-save-->
|
<!-- :show-save="submitShow"-->
|
||||||
<!-- show-transfer-->
|
<!-- :show-transfer="submitShow"-->
|
||||||
<!-- show-affirm-->
|
<!-- :show-affirm="submitShow"-->
|
||||||
|
<!-- show-confirm-->
|
||||||
<!-- :submitLoading="isSubmit"-->
|
<!-- :submitLoading="isSubmit"-->
|
||||||
<!-- :transfer-loading="isTransfer"-->
|
<!-- :transfer-loading="isTransfer"-->
|
||||||
<!-- :saveLoading="saveLoading"-->
|
<!-- :saveLoading="saveLoading"-->
|
||||||
<!-- @submit="handleSubmit"-->
|
<!-- @submit="handleSubmit"-->
|
||||||
<!-- @transfer="handleTransfer"-->
|
<!-- @transfer="handleTransfer"-->
|
||||||
<!-- @save="handleSave"-->
|
<!-- @save="handleSave"-->
|
||||||
|
<!-- @accept="handleAccept"-->
|
||||||
<!-- :approval="true"-->
|
<!-- :approval="true"-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
<!-- </ProcessFooter>-->
|
<!-- </ProcessFooter>-->
|
||||||
<ProcessFooter
|
<!-- 多选确认人-->
|
||||||
:show-save="submitShow"
|
<Role-tree
|
||||||
:show-transfer="submitShow"
|
is-title="选择责任部门对接人"
|
||||||
:show-affirm="submitShow"
|
:is-visible.sync="modalshowflag"
|
||||||
show-confirm
|
@checkedRole="checkedRole2"
|
||||||
:submitLoading="isSubmit"
|
:nodeList="nodeList2"
|
||||||
:transfer-loading="isTransfer"
|
></Role-tree>
|
||||||
:saveLoading="saveLoading"
|
|
||||||
@submit="handleSubmit"
|
|
||||||
@transfer="handleTransfer"
|
|
||||||
@save="handleSave"
|
|
||||||
@accept="handleAccept"
|
|
||||||
:approval="true"
|
|
||||||
>
|
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<Role-tree
|
<Role-tree
|
||||||
check-box
|
check-box
|
||||||
@@ -435,13 +719,34 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
lawInfoTableLoading: true,
|
||||||
|
lawInfoTable:[],
|
||||||
|
handleSelectForm: {
|
||||||
|
standName: '', //标准名称
|
||||||
|
numberName: '', //政策名称
|
||||||
|
lawsNumber: '', //政策编号
|
||||||
|
standNumber: '', //标准编号
|
||||||
|
standCode: '', //企标编号
|
||||||
|
dataSource: 'INLAND',
|
||||||
|
lawNumber: '', // 标准编号/政策编号
|
||||||
|
lawName: '', // 标准名称/政策名称
|
||||||
|
page: 1,
|
||||||
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
|
total: 0,
|
||||||
|
standType: '',
|
||||||
|
quoteIdList: '',
|
||||||
|
validFlag: '0',
|
||||||
|
menuId: 'nomenu'
|
||||||
|
},
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
// 调整处理人抽屉状态
|
// 调整处理人抽屉状态
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle:'',
|
drawerTitle:'',
|
||||||
active: "1",
|
active: "1",
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
|
nodeList2: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
|
modalshowflag: false,
|
||||||
// 当前流程类型(1待办/2已办)
|
// 当前流程类型(1待办/2已办)
|
||||||
processType: 1,
|
processType: 1,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
@@ -456,6 +761,7 @@ export default {
|
|||||||
standList: [],
|
standList: [],
|
||||||
projectStand:[],
|
projectStand:[],
|
||||||
standardData: [],
|
standardData: [],
|
||||||
|
handleSelectTableList: [], //标准数据
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
@@ -469,6 +775,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//表单的数据
|
//表单的数据
|
||||||
qdform: {
|
qdform: {
|
||||||
|
detailPeople: "", //确认人
|
||||||
BZFlag: " ", //1审批通过 其他为驳回
|
BZFlag: " ", //1审批通过 其他为驳回
|
||||||
projectNumber: "", //项目编号
|
projectNumber: "", //项目编号
|
||||||
projectName: "", //项目名称
|
projectName: "", //项目名称
|
||||||
@@ -502,6 +809,14 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
formatIssueDate(str) {
|
||||||
|
const momentDate = this.$moment(str)
|
||||||
|
if (momentDate.isValid()) {
|
||||||
|
return this.$moment(str).format('YYYY-MM-DD')
|
||||||
|
} else {
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedTransferRole (data) {
|
checkedTransferRole (data) {
|
||||||
this.assigneeNewLoading = true
|
this.assigneeNewLoading = true
|
||||||
@@ -609,41 +924,44 @@ export default {
|
|||||||
this.qdform.prcNum = this.prcNum;
|
this.qdform.prcNum = this.prcNum;
|
||||||
this.qdform.prcName = this.prcName;
|
this.qdform.prcName = this.prcName;
|
||||||
this.qdform["id"] = item.id;
|
this.qdform["id"] = item.id;
|
||||||
// this.projectId = item.projectId;
|
this.projectId = item.projectId;
|
||||||
//获取清单id 查询对应清单下的标准
|
//获取清单id 查询对应清单下的标准
|
||||||
this.detailedId = item.detailedListId;
|
this.detailedId = item.detailedListId;
|
||||||
// this.getStandData();
|
this.getStandData();
|
||||||
this.getStand();
|
|
||||||
}else{
|
}else{
|
||||||
this.qdform = item.form
|
this.qdform = item.form
|
||||||
this.dataList =item.form.dataList
|
this.dataList =item.form.dataList
|
||||||
this.detailedId = item.form.detailedListId;
|
this.detailedId = item.form.detailedListId;
|
||||||
this.getStand();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//查询清单下的标准
|
//查询清单下的标准
|
||||||
// getStandData() {
|
getStandData() {
|
||||||
// this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId, cars: '1', }, {
|
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId, cars: '1', }, {
|
||||||
// _this: this
|
_this: this
|
||||||
// }, res => {
|
}, res => {
|
||||||
// this.dataList = res.data.records;
|
this.dataList = res.data.records;
|
||||||
// this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
// // 责任部门转换
|
// 责任部门转换
|
||||||
// if (item.zrbm !== null || item.zrbm !== "") {
|
if (item.zrbm !== null || item.zrbm !== "" ) {
|
||||||
// let k = (item.zrbm || "").split(",");
|
let k = (item.zrbm || "").split(",");
|
||||||
// for (let i in this.zrbmOptions) {
|
for (let i in this.zrbmOptions) {
|
||||||
// for (let m = 0; m < k.length; m++) {
|
for (let m = 0; m < k.length; m++) {
|
||||||
// if (this.zrbmOptions[i].value === k[m]) {
|
if (this.zrbmOptions[i].value === k[m]) {
|
||||||
// k[m] = this.zrbmOptions[i].label;
|
k[m] = this.zrbmOptions[i].label;
|
||||||
// }
|
}
|
||||||
// item.zrbm = k.join(",");
|
item.zrbm = k.join(",");
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// });
|
this.dataList.map(item => {
|
||||||
// },
|
if(item.zrbm === '[]'){
|
||||||
|
item.zrbm = ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
},
|
||||||
// 接受按钮
|
// 接受按钮
|
||||||
handleAccept(){
|
handleAccept(){
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
@@ -699,6 +1017,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
addList() {
|
addList() {
|
||||||
|
this.searchLawBtn()
|
||||||
this.standModel = true;
|
this.standModel = true;
|
||||||
},
|
},
|
||||||
//批量删除
|
//批量删除
|
||||||
@@ -726,12 +1045,34 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
//添加标准勾选框数据
|
//添加标准勾选框数据
|
||||||
selectStand(data) {
|
handleSelectTableChange (data) {
|
||||||
this.standList = data;
|
this.handleSelectTableList = data
|
||||||
|
console.log(this.handleSelectTableList);
|
||||||
},
|
},
|
||||||
selectStandChange(data){
|
selectStandChange(data){
|
||||||
this.projectStand = data
|
this.projectStand = data
|
||||||
},
|
},
|
||||||
|
choiceZRRS() {
|
||||||
|
this.nodeList2 = [];
|
||||||
|
if (this.qdform.detailPeople) {
|
||||||
|
this.nodeList2 = this.qdform.detailPeople.split(",");
|
||||||
|
}
|
||||||
|
this.modalshowflag = true;
|
||||||
|
},
|
||||||
|
checkedRole2(data) {
|
||||||
|
var idList = "";
|
||||||
|
var nameList = "";
|
||||||
|
data.forEach(item => {
|
||||||
|
if (nameList.length > 0) {
|
||||||
|
nameList += ",";
|
||||||
|
idList += ",";
|
||||||
|
}
|
||||||
|
idList += item.id;
|
||||||
|
nameList += item.name;
|
||||||
|
});
|
||||||
|
this.qdform.detailPeople = idList;
|
||||||
|
this.qdform.detailPeopleName = nameList;
|
||||||
|
},
|
||||||
cancelStand() {
|
cancelStand() {
|
||||||
this.standModel = false;
|
this.standModel = false;
|
||||||
},
|
},
|
||||||
@@ -764,52 +1105,137 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
//手动查找的清空按钮
|
||||||
|
clearLawBtn(){
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.lawNumber = ''
|
||||||
|
this.handleSelectForm.standNumber = ''
|
||||||
|
this.handleSelectForm.lawsNumber = ''
|
||||||
|
this.handleSelectForm.standCode = ''
|
||||||
|
//清空标准名称/政策名称的查询
|
||||||
|
this.handleSelectForm.lawName = ''
|
||||||
|
this.handleSelectForm.standName = ''
|
||||||
|
this.handleSelectForm.numberName = ''
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
//添加标准的查询按钮
|
//添加标准的查询按钮
|
||||||
search() {
|
searchLawBtn(){
|
||||||
this.page = 1;
|
this.lawInfoTableLoading = true
|
||||||
this.getStand();
|
if (this.handleSelectForm.dataSource === 'INLAND'){
|
||||||
},
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{
|
||||||
clearSearch() {
|
_this: this
|
||||||
this.standCommonlySearch = {
|
},res=>{
|
||||||
standSort: "",
|
console.log('国内标准库数据',res)
|
||||||
standNumber: "",
|
if (res.ok){
|
||||||
standType: ""
|
this.lawInfoTable = res.data.list
|
||||||
};
|
this.handleSelectForm.total = res.data.count
|
||||||
this.getStand();
|
if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) {
|
||||||
},
|
this.lawInfoTableLoading = true
|
||||||
pageChange(page) {
|
this.handleSelectPageChange(1)
|
||||||
this.page = page;
|
}else {
|
||||||
this.getStand();
|
this.lawInfoTableLoading = false
|
||||||
},
|
this.lawInfoTableLoading = false
|
||||||
pageSizeChange(pageSize) {
|
}
|
||||||
this.pageSize = pageSize;
|
}else {
|
||||||
this.getStand();
|
this.$message.error(res.message)
|
||||||
},
|
|
||||||
//查询清单下的标准
|
|
||||||
getStand() {
|
|
||||||
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
|
|
||||||
id: this.detailedId,
|
|
||||||
page: this.page,
|
|
||||||
Size: this.pageSize,
|
|
||||||
...this.standCommonlySearch
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.data === null) {
|
|
||||||
this.standardData = "";
|
|
||||||
this.totalDo = "";
|
|
||||||
}
|
|
||||||
this.standardData = res.data.records;
|
|
||||||
this.standardData.forEach(item => {
|
|
||||||
if (item.zccssrqgj === "-" || item.zccssrqgj === 'null' || item.zccssrqgj === 'undefined') {
|
|
||||||
item.zccssrqgj = "";
|
|
||||||
}
|
}
|
||||||
if (item.xcxssrqgj === "-" || item.xcxssrqgj === 'null' || item.xcxssrqgj === 'undefined' ) {
|
},e=>{
|
||||||
item.xcxssrqgj = "";
|
this.lawInfoTable = []
|
||||||
|
this.handleSelectForm.total = 0
|
||||||
|
})
|
||||||
|
}else if(this.handleSelectForm.dataSource === 'FOREIGN'){
|
||||||
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{
|
||||||
|
_this: this
|
||||||
|
},res=>{
|
||||||
|
if (res.ok){
|
||||||
|
this.lawInfoTable = res.data.list
|
||||||
|
this.handleSelectForm.total = res.data.count
|
||||||
|
if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) {
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectPageChange(1)
|
||||||
|
}else {
|
||||||
|
this.lawInfoTableLoading = false
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
this.lawInfoTableLoading = false
|
||||||
}
|
}
|
||||||
});
|
},e=>{
|
||||||
this.total = res.data.total;
|
this.lawInfoTable = []
|
||||||
});
|
this.handleSelectForm.total = 0
|
||||||
|
})
|
||||||
|
}else if(this.handleSelectForm.dataSource === 'BUSINESS_STAND'){
|
||||||
|
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage',this.handleSelectForm,{
|
||||||
|
_this: this
|
||||||
|
},res=>{
|
||||||
|
if (res.ok){
|
||||||
|
this.lawInfoTable = res.data.list
|
||||||
|
this.handleSelectForm.total = res.data.count
|
||||||
|
if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) {
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectPageChange(1)
|
||||||
|
}else {
|
||||||
|
this.lawInfoTableLoading = false
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
this.lawInfoTableLoading = false
|
||||||
|
}
|
||||||
|
},e=>{
|
||||||
|
this.lawInfoTable = []
|
||||||
|
this.handleSelectForm.total = 0
|
||||||
|
})
|
||||||
|
}else {
|
||||||
|
this.$message.warning('请先选择标准/政策来源')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSelectConfirm(){
|
||||||
|
if(this.handleSelectTableList.length < 1){
|
||||||
|
this.$message.warning('请至少选择一条数据进行添加')
|
||||||
|
}else{
|
||||||
|
this.standList.forEach(item =>{
|
||||||
|
if(item.ssrq === "-"){
|
||||||
|
item.ssrq = ''
|
||||||
|
}
|
||||||
|
if(item.zrbm === '[]'){
|
||||||
|
item.zrbm =''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.handleSelectTableList.map(item => {
|
||||||
|
let addIndex
|
||||||
|
addIndex = this.dataList.findIndex(items =>{
|
||||||
|
return items.id === item.id
|
||||||
|
})
|
||||||
|
if(addIndex > -1){
|
||||||
|
this.$message.warning('请勿重复添加数据')
|
||||||
|
}else{
|
||||||
|
this.dataList.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.standModel = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dataSourceChange() {
|
||||||
|
this.handleSelectForm.page = 1
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
|
//根据标准编号的查询
|
||||||
|
lawNumberSearch() {
|
||||||
|
this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
|
||||||
|
this.handleSelectForm.lawsNumber = this.handleSelectForm.lawNumber
|
||||||
|
this.handleSelectForm.standCode = this.handleSelectForm.lawNumber
|
||||||
|
},
|
||||||
|
handleSelectPageChange(page){
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.page = page
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
|
handleSelectPageSizeChange(pageSize){
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.pageSize = pageSize
|
||||||
|
this.searchLawBtn()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,899 @@
|
|||||||
|
<template>
|
||||||
|
<div class="xmqdqr-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="flex: auto; overflow: auto">
|
||||||
|
<process-title>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</process-title>
|
||||||
|
<el-form
|
||||||
|
:model="qdform"
|
||||||
|
class="label-input-form prc-content-border"
|
||||||
|
label-width="150px"
|
||||||
|
>
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="qdform.projectNumber"
|
||||||
|
placeholder="请输入项目编号"
|
||||||
|
disabled
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="qdform.projectName"
|
||||||
|
placeholder="请输入项目名称"
|
||||||
|
disabled
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="qdform.detailedListName"
|
||||||
|
placeholder="请输入清单名称"
|
||||||
|
disabled
|
||||||
|
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>
|
||||||
|
<div class="tableTitle">
|
||||||
|
<div class="tableButton">
|
||||||
|
<el-button :disabled="acceptShow" plain class="common-button-primary" size="mini" @click="addList">添加</el-button>
|
||||||
|
<el-button :disabled="acceptShow" plain class="common-button-primary" size="mini" @click="delectList">批量删除</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
ref="selection"
|
||||||
|
height="65%"
|
||||||
|
@selection-change="selectStandChange"
|
||||||
|
style="width: 100%; border:1px solid #ccc"
|
||||||
|
: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
|
||||||
|
align="center"
|
||||||
|
width="200px"
|
||||||
|
label="标准号"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort
|
||||||
|
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
|
||||||
|
{{ scope.row.standNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standName"
|
||||||
|
align="center"
|
||||||
|
label="中文名称"
|
||||||
|
width="180px"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standEnName"
|
||||||
|
label="英文名称"
|
||||||
|
align="center"
|
||||||
|
width="180px"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="ssrq"
|
||||||
|
width="190px"
|
||||||
|
align="center"
|
||||||
|
sortable
|
||||||
|
label="标准实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="xcxssrqgj"
|
||||||
|
width="190px"
|
||||||
|
align="center"
|
||||||
|
label="新车型实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zccssrqgj"
|
||||||
|
align="center"
|
||||||
|
sortable
|
||||||
|
width="190px"
|
||||||
|
label="在产车实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</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="cycvppscn"
|
||||||
|
width="180px"
|
||||||
|
align="center"
|
||||||
|
label="乘用车vpps中文名称">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="回执说明">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div 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") : "" }}</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>
|
||||||
|
<loading :loading="loading">流程列表加载中</loading>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 添加标准抽屉-->
|
||||||
|
<el-drawer
|
||||||
|
title="添加标准"
|
||||||
|
:visible.sync="standModel"
|
||||||
|
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 :model="standCommonlySearch" inline class="label-input-form">
|
||||||
|
<el-formItem label="标准号/名称" prop="standNumber" class="search-item">
|
||||||
|
<el-input v-model="standCommonlySearch.standNumber" placeholder="根据标准号/名称查找" clearable />
|
||||||
|
</el-formItem>
|
||||||
|
<!-- <el-formItem label="标准类别" prop="standSort" class="search-item">-->
|
||||||
|
<!-- <el-select v-model="standCommonlySearch.standSort" placeholder="根据标准类别查找" clearable>-->
|
||||||
|
<!-- <el-option v-for="opt in standSortOptions" :value="opt.value === undefined ? '' :opt.value"-->
|
||||||
|
<!-- :key="opt.value" :label="opt.label">{{ opt.label }}-->
|
||||||
|
<!-- </el-option>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
|
<!-- </el-formItem>-->
|
||||||
|
<el-formItem label="标准来源" prop="standType" class="search-item">
|
||||||
|
<el-select v-model="standCommonlySearch.standType" placeholder="根据标准来源查找" clearable>
|
||||||
|
<el-option value="INLAND" key="1" label="国内标准"></el-option>
|
||||||
|
<el-option value="FOREIGN" key="2" label="海外标准"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-formItem>
|
||||||
|
<el-formItem class="search-item btn-box">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
class="common-button-primary"
|
||||||
|
@click="search">查询
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
class="common-button-default"
|
||||||
|
size="mini"
|
||||||
|
@click="clearSearch">清空
|
||||||
|
</el-button>
|
||||||
|
</el-formItem>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="standardData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
ref="table"
|
||||||
|
height="100%"
|
||||||
|
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
@selection-change="selectStand"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="selection"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="code"
|
||||||
|
align="center"
|
||||||
|
label="标准号">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standYear" class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
|
scope.row.standNumber
|
||||||
|
}}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{
|
||||||
|
scope.row.standSortShow }}
|
||||||
|
{{ scope.row.standNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standName"
|
||||||
|
align="center"
|
||||||
|
label="标准名称"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="issueTime"
|
||||||
|
align="center"
|
||||||
|
label="发布日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="xcxssrqgj"
|
||||||
|
align="center"
|
||||||
|
label="新车型实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="zccssrqgj"
|
||||||
|
align="center"
|
||||||
|
label="在产车实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="textStatus"
|
||||||
|
align="center"
|
||||||
|
label="文本状态">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<pagination
|
||||||
|
:page="page"
|
||||||
|
:pageSize="pageSize"
|
||||||
|
:total="total"
|
||||||
|
@pageChange="pageChange"
|
||||||
|
@pageSizeChange="pageSizeChange"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="demo-drawer-footer">
|
||||||
|
<el-button size="mini" @click="cancelStand">取消</el-button>
|
||||||
|
<el-button type="primary" size="mini" @click="okStand">添加</el-button>
|
||||||
|
</div>
|
||||||
|
</el-drawer>
|
||||||
|
<!-- <ProcessFooter-->
|
||||||
|
<!-- show-save-->
|
||||||
|
<!-- show-transfer-->
|
||||||
|
<!-- show-affirm-->
|
||||||
|
<!-- :submitLoading="isSubmit"-->
|
||||||
|
<!-- :transfer-loading="isTransfer"-->
|
||||||
|
<!-- :saveLoading="saveLoading"-->
|
||||||
|
<!-- @submit="handleSubmit"-->
|
||||||
|
<!-- @transfer="handleTransfer"-->
|
||||||
|
<!-- @save="handleSave"-->
|
||||||
|
<!-- :approval="true"-->
|
||||||
|
<!-- >-->
|
||||||
|
<!-- </ProcessFooter>-->
|
||||||
|
<ProcessFooter
|
||||||
|
:show-save="submitShow"
|
||||||
|
:show-transfer="submitShow"
|
||||||
|
:show-affirm="submitShow"
|
||||||
|
show-confirm
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@save="handleSave"
|
||||||
|
@accept="handleAccept"
|
||||||
|
:approval="true"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessFooter from "../../components/ProcessFooter";
|
||||||
|
import ProcessTitle from "../../components/ProcessTitle";
|
||||||
|
import { inboundLiaisonDetail, queryDetail, saveTaskForPub ,changeAssigneeNew, execTask} from "api/process";
|
||||||
|
// name: "xmqdqrStep2",
|
||||||
|
export default {
|
||||||
|
name: "xmqdqrStep4",
|
||||||
|
components: {
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isTransfer: false,
|
||||||
|
// 调整处理人抽屉状态
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle:'',
|
||||||
|
active: "1",
|
||||||
|
nodeList: [],
|
||||||
|
loading: false,
|
||||||
|
// 当前流程类型(1待办/2已办)
|
||||||
|
processType: 1,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
submitShow: false,
|
||||||
|
acceptShow: false,
|
||||||
|
todoId: '',
|
||||||
|
projectId: "",
|
||||||
|
detailedId: "",
|
||||||
|
standModel: false,
|
||||||
|
standSortOptions: [],
|
||||||
|
standList: [],
|
||||||
|
projectStand:[],
|
||||||
|
standardData: [],
|
||||||
|
page: 1,
|
||||||
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
|
total: 0,
|
||||||
|
//查询清单下标准数据
|
||||||
|
standCommonlySearch: {
|
||||||
|
standSort: "",
|
||||||
|
standNumber: "",
|
||||||
|
standType: "",
|
||||||
|
page: 1,
|
||||||
|
Size: this.$store.getters.userInfo.configContent
|
||||||
|
},
|
||||||
|
//表单的数据
|
||||||
|
qdform: {
|
||||||
|
BZFlag: " ", //1审批通过 其他为驳回
|
||||||
|
projectNumber: "", //项目编号
|
||||||
|
projectName: "", //项目名称
|
||||||
|
dataList: [], //项目下的标准数据
|
||||||
|
breakdownList: [] //标准下的分解单数据
|
||||||
|
},
|
||||||
|
dataList: [], //展示的标准数据
|
||||||
|
commentText: "", //审批意见
|
||||||
|
detailData: [],//流程历史数据
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
standMap: new Map(),
|
||||||
|
textStatusMap: {},// 文本状态id与name对应
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
// 查询各下拉框数据
|
||||||
|
this.$http.get("sys/dictype/getDicTypeListCode", {}, {
|
||||||
|
_this: this,
|
||||||
|
loading: "loading"
|
||||||
|
}, res => {
|
||||||
|
this.energyKindOptions = res.data.ENERGYTYPES; //适用车型
|
||||||
|
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
||||||
|
this.setMap(res.data.WBZTCLASS);// 文本状态
|
||||||
|
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
||||||
|
this.showLocalProductData(this.getLocalPro);
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//确认转办
|
||||||
|
checkedTransferRole (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
|
||||||
|
},
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data) {
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//tab改变
|
||||||
|
handleTabs(type) {
|
||||||
|
this.active = type;
|
||||||
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview(item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: "OtherStandardDetails",
|
||||||
|
params: {
|
||||||
|
id: item.id,
|
||||||
|
pageType: "INLAND_STAND"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
window.open(routeUrl.href, "_blank");
|
||||||
|
},
|
||||||
|
//获取数据
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
let commitStatus = res.commitStatus
|
||||||
|
if(commitStatus && commitStatus > 0){
|
||||||
|
this.acceptShow = true
|
||||||
|
this.submitShow = false
|
||||||
|
}else {
|
||||||
|
this.acceptShow = false
|
||||||
|
this.submitShow = true
|
||||||
|
}
|
||||||
|
this.todoId = res.id
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//动态表单读取
|
||||||
|
getFormFieldList(item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if(item.form === undefined){
|
||||||
|
this.qdform = JSON.parse(JSON.stringify(item));
|
||||||
|
this.qdform.prcNum = this.prcNum;
|
||||||
|
this.qdform.prcName = this.prcName;
|
||||||
|
this.qdform["id"] = item.id;
|
||||||
|
// this.projectId = item.projectId;
|
||||||
|
//获取清单id 查询对应清单下的标准
|
||||||
|
this.detailedId = item.detailedListId;
|
||||||
|
// this.getStandData();
|
||||||
|
this.getStand();
|
||||||
|
}else{
|
||||||
|
this.qdform = item.form
|
||||||
|
this.dataList =item.form.dataList
|
||||||
|
this.detailedId = item.form.detailedListId;
|
||||||
|
this.getStand();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//查询清单下的标准
|
||||||
|
// getStandData() {
|
||||||
|
// this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId, cars: '1', }, {
|
||||||
|
// _this: this
|
||||||
|
// }, res => {
|
||||||
|
// this.dataList = res.data.records;
|
||||||
|
// this.dataList.forEach(item => {
|
||||||
|
// // 责任部门转换
|
||||||
|
// if (item.zrbm !== null || item.zrbm !== "") {
|
||||||
|
// let k = (item.zrbm || "").split(",");
|
||||||
|
// for (let i in this.zrbmOptions) {
|
||||||
|
// for (let m = 0; m < k.length; m++) {
|
||||||
|
// if (this.zrbmOptions[i].value === k[m]) {
|
||||||
|
// k[m] = this.zrbmOptions[i].label;
|
||||||
|
// }
|
||||||
|
// item.zrbm = k.join(",");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
// 接受按钮
|
||||||
|
handleAccept(){
|
||||||
|
this.isSubmit = true
|
||||||
|
execTask({
|
||||||
|
todoId: this.todoId // 当前节点ID
|
||||||
|
}).then(res => {
|
||||||
|
if (res.sign && res.sign === '0') {
|
||||||
|
this.$message.success('接收成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//保存事件
|
||||||
|
handleSave() {
|
||||||
|
this.saveLoading = true;
|
||||||
|
let _formData = new FormData();
|
||||||
|
this.qdform.dataList = this.dataList
|
||||||
|
_formData.append("id", this.bpnId || "");
|
||||||
|
_formData.append("prcType", "10");
|
||||||
|
_formData.append('taskIds', this.taskIds)
|
||||||
|
_formData.append("json", JSON.stringify({
|
||||||
|
form: this.qdform,
|
||||||
|
commentText: this.commentText
|
||||||
|
}));
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.saveLoading = false;
|
||||||
|
this.$message.success("保存成功");
|
||||||
|
this.bpnId = res.result;
|
||||||
|
}).catch(e => {
|
||||||
|
this.saveLoading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//提交事件
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qdform.commentText = this.commentText;
|
||||||
|
this.qdform.dataList = this.dataList
|
||||||
|
const json = JSON.stringify(this.qdform);
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
addList() {
|
||||||
|
this.standModel = true;
|
||||||
|
},
|
||||||
|
//批量删除
|
||||||
|
delectList(){
|
||||||
|
if (this.projectStand.length < 1) {
|
||||||
|
this.$message.warning("请选择一条数据进行删除");
|
||||||
|
} else {
|
||||||
|
this.$confirm("您确认删除这些数据?", "提示", {
|
||||||
|
confirmButtonText: "确认",
|
||||||
|
confirmButtonClass: "common-button-primary",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(() => {
|
||||||
|
this.projectStand.map(item => {
|
||||||
|
let index;
|
||||||
|
index = this.dataList.findIndex(items => {
|
||||||
|
return items.standId === item.standId;
|
||||||
|
});
|
||||||
|
if (index > -1) {
|
||||||
|
this.dataList.splice(index, 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//添加标准勾选框数据
|
||||||
|
selectStand(data) {
|
||||||
|
this.standList = data;
|
||||||
|
},
|
||||||
|
selectStandChange(data){
|
||||||
|
this.projectStand = data
|
||||||
|
},
|
||||||
|
cancelStand() {
|
||||||
|
this.standModel = false;
|
||||||
|
},
|
||||||
|
//添加标准带入事件
|
||||||
|
okStand() {
|
||||||
|
if(this.standList.length < 1){
|
||||||
|
this.$message.warning('请至少选择一条数据进行添加')
|
||||||
|
}else{
|
||||||
|
this.standList.forEach(item =>{
|
||||||
|
if(item.ssrq === "-"){
|
||||||
|
item.ssrq = ''
|
||||||
|
}
|
||||||
|
if(item.zrbm === '[]'){
|
||||||
|
item.zrbm =''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.standList.map(item => {
|
||||||
|
let addIndex
|
||||||
|
addIndex = this.dataList.findIndex(items =>{
|
||||||
|
return items.id === item.id
|
||||||
|
})
|
||||||
|
if(addIndex > -1){
|
||||||
|
this.$message.warning('请勿重复添加数据')
|
||||||
|
}else{
|
||||||
|
this.dataList.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
this.standModel = false
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
//添加标准的查询按钮
|
||||||
|
search() {
|
||||||
|
this.page = 1;
|
||||||
|
this.getStand();
|
||||||
|
},
|
||||||
|
clearSearch() {
|
||||||
|
this.standCommonlySearch = {
|
||||||
|
standSort: "",
|
||||||
|
standNumber: "",
|
||||||
|
standType: ""
|
||||||
|
};
|
||||||
|
this.getStand();
|
||||||
|
},
|
||||||
|
pageChange(page) {
|
||||||
|
this.page = page;
|
||||||
|
this.getStand();
|
||||||
|
},
|
||||||
|
pageSizeChange(pageSize) {
|
||||||
|
this.pageSize = pageSize;
|
||||||
|
this.getStand();
|
||||||
|
},
|
||||||
|
//查询清单下的标准
|
||||||
|
getStand() {
|
||||||
|
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
|
||||||
|
id: this.detailedId,
|
||||||
|
page: this.page,
|
||||||
|
Size: this.pageSize,
|
||||||
|
...this.standCommonlySearch
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.data === null) {
|
||||||
|
this.standardData = "";
|
||||||
|
this.totalDo = "";
|
||||||
|
}
|
||||||
|
this.standardData = res.data.records;
|
||||||
|
this.standardData.forEach(item => {
|
||||||
|
if (item.zccssrqgj === "-" || item.zccssrqgj === 'null' || item.zccssrqgj === 'undefined') {
|
||||||
|
item.zccssrqgj = "";
|
||||||
|
}
|
||||||
|
if (item.xcxssrqgj === "-" || item.xcxssrqgj === 'null' || item.xcxssrqgj === 'undefined' ) {
|
||||||
|
item.xcxssrqgj = "";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.total = res.data.total;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
|
||||||
|
.xmqdqr-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%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.demo-drawer-content {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
@@ -0,0 +1,671 @@
|
|||||||
|
<template>
|
||||||
|
<div class="xmqdqr-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="flex: auto; overflow: auto">
|
||||||
|
<process-title>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</process-title>
|
||||||
|
<el-form
|
||||||
|
:model="qdform"
|
||||||
|
class="label-input-form prc-content-border"
|
||||||
|
label-width="150px"
|
||||||
|
>
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="qdform.projectNumber"
|
||||||
|
placeholder="请输入项目编号"
|
||||||
|
disabled
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="qdform.projectName"
|
||||||
|
placeholder="请输入项目名称"
|
||||||
|
disabled
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="qdform.detailedListName"
|
||||||
|
placeholder="请输入清单名称"
|
||||||
|
disabled
|
||||||
|
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="65%"
|
||||||
|
@selection-change="selectStandChange"
|
||||||
|
style="width: 100%; border:1px solid #ccc"
|
||||||
|
: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
|
||||||
|
align="center"
|
||||||
|
width="200px"
|
||||||
|
label="标准号"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort
|
||||||
|
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
|
||||||
|
{{ scope.row.standNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standName"
|
||||||
|
align="center"
|
||||||
|
label="中文名称"
|
||||||
|
width="180px"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standEnName"
|
||||||
|
label="英文名称"
|
||||||
|
align="center"
|
||||||
|
width="180px"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="ssrq"
|
||||||
|
width="190px"
|
||||||
|
align="center"
|
||||||
|
sortable
|
||||||
|
label="标准实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="xcxssrq"
|
||||||
|
width="190px"
|
||||||
|
align="center"
|
||||||
|
label="新车型实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zccssrq"
|
||||||
|
align="center"
|
||||||
|
sortable
|
||||||
|
width="190px"
|
||||||
|
label="在产车实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</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="cycvppscn"
|
||||||
|
width="180px"
|
||||||
|
align="center"
|
||||||
|
label="乘用车vpps中文名称">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="审批意见">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div 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") : "" }}</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>
|
||||||
|
<loading :loading="loading">流程列表加载中</loading>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
show-transfer
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@back="beforeBack"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessFooter from "../../components/ProcessFooter";
|
||||||
|
import ProcessTitle from "../../components/ProcessTitle";
|
||||||
|
import { changeAssigneeNew, inboundLiaisonDetail, queryDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "xmqdqrStep5",
|
||||||
|
components: {
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
active: "1",
|
||||||
|
loading: false,
|
||||||
|
// 当前流程类型(1待办/2已办)
|
||||||
|
processType: 1,
|
||||||
|
nodeList: [],
|
||||||
|
drawerTitle: '',
|
||||||
|
// 调整处理人抽屉状态
|
||||||
|
drawerModal: false,
|
||||||
|
isSubmit: false,
|
||||||
|
isTransfer: false,
|
||||||
|
saveLoading: false,
|
||||||
|
projectId: "",
|
||||||
|
detailedId: "",
|
||||||
|
standSortOptions: [],
|
||||||
|
standList: [],
|
||||||
|
projectStand:[],
|
||||||
|
standardData: [],
|
||||||
|
page: 1,
|
||||||
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
|
total: 0,
|
||||||
|
//查询清单下标准数据
|
||||||
|
standCommonlySearch: {
|
||||||
|
standSort: "",
|
||||||
|
standNumber: "",
|
||||||
|
standType: "",
|
||||||
|
page: 1,
|
||||||
|
Size: this.$store.getters.userInfo.configContent
|
||||||
|
},
|
||||||
|
//表单的数据
|
||||||
|
qdform: {
|
||||||
|
BZFlag: " ", //1审批通过 其他为驳回
|
||||||
|
projectNumber: "", //项目编号
|
||||||
|
projectName: "", //项目名称
|
||||||
|
dataList: [], //项目下的标准数据
|
||||||
|
breakdownList: [] //标准下的分解单数据
|
||||||
|
},
|
||||||
|
dataList: [], //展示的标准数据
|
||||||
|
commentText: "", //审批意见
|
||||||
|
detailData: [],//流程历史数据
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
standMap: new Map(),
|
||||||
|
textStatusMap: {}// 文本状态id与name对应
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//确认转办
|
||||||
|
checkedTransferRole (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 () {
|
||||||
|
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)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//tab改变
|
||||||
|
handleTabs(type) {
|
||||||
|
this.active = type;
|
||||||
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview(item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: "OtherStandardDetails",
|
||||||
|
params: {
|
||||||
|
id: item.id,
|
||||||
|
pageType: "INLAND_STAND"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
window.open(routeUrl.href, "_blank");
|
||||||
|
},
|
||||||
|
//获取数据
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//动态表单读取
|
||||||
|
getFormFieldList(item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if(item.form === undefined){
|
||||||
|
this.qdform = JSON.parse(JSON.stringify(item));
|
||||||
|
this.qdform.prcNum = this.prcNum;
|
||||||
|
this.qdform.prcName = this.prcName;
|
||||||
|
this.dataList = item.dataList
|
||||||
|
this.qdform["id"] = item.id;
|
||||||
|
this.projectId = item.projectId
|
||||||
|
// this.getStandData();
|
||||||
|
}else{
|
||||||
|
this.qdform = item.form
|
||||||
|
this.dataList =item.form.dataList
|
||||||
|
this.projectId = item.form.projectId
|
||||||
|
// this.getStandData();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//提交事件
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qdform.passFlag = "0";
|
||||||
|
this.qdform.commentText = this.commentText;
|
||||||
|
this.qdform.dataList = this.dataList
|
||||||
|
const json = JSON.stringify(this.qdform);
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
//驳回事件
|
||||||
|
beforeBack() {
|
||||||
|
if (this.commentText === null || this.commentText === undefined || this.commentText === "") {
|
||||||
|
this.$message.warning("请填写审批意见");
|
||||||
|
} else {
|
||||||
|
this.qdform.passFlag = "1";
|
||||||
|
this.qdform.commentText = this.commentText;
|
||||||
|
const json = JSON.stringify(this.qdform);
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//添加标准勾选框数据
|
||||||
|
selectStand(data) {
|
||||||
|
this.standList = data;
|
||||||
|
},
|
||||||
|
selectStandChange(data){
|
||||||
|
this.projectStand = data
|
||||||
|
},
|
||||||
|
cancelStand() {
|
||||||
|
this.standModel = false;
|
||||||
|
},
|
||||||
|
//添加标准带入事件
|
||||||
|
okStand() {
|
||||||
|
if(this.standList.length < 1){
|
||||||
|
this.$message.warning('请至少选择一条数据进行添加')
|
||||||
|
}else{
|
||||||
|
this.standList.forEach(item =>{
|
||||||
|
if(item.ssrq === "-"){
|
||||||
|
item.ssrq = ''
|
||||||
|
}
|
||||||
|
if(item.zrbm === '[]'){
|
||||||
|
item.zrbm =''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.standList.map(item => {
|
||||||
|
let addIndex
|
||||||
|
addIndex = this.dataList.findIndex(items =>{
|
||||||
|
return items.standId === item.id
|
||||||
|
})
|
||||||
|
if(addIndex > -1){
|
||||||
|
this.$message.warning('请勿重复添加数据')
|
||||||
|
}else{
|
||||||
|
this.dataList.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
this.standModel = false
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
//添加标准的查询按钮
|
||||||
|
search() {
|
||||||
|
this.getStand();
|
||||||
|
},
|
||||||
|
clearSearch() {
|
||||||
|
this.standCommonlySearch = {
|
||||||
|
standSort: "",
|
||||||
|
standNumber: "",
|
||||||
|
standType: ""
|
||||||
|
};
|
||||||
|
this.getStand();
|
||||||
|
},
|
||||||
|
pageChange(page) {
|
||||||
|
this.page = page;
|
||||||
|
this.getStand();
|
||||||
|
},
|
||||||
|
pageSizeChange(pageSize) {
|
||||||
|
this.pageSize = pageSize;
|
||||||
|
this.getStand();
|
||||||
|
},
|
||||||
|
getStand(data) {
|
||||||
|
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
|
||||||
|
id: this.detailedId,
|
||||||
|
page: this.page,
|
||||||
|
Size: this.pageSize,
|
||||||
|
...this.standCommonlySearch
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.data === null) {
|
||||||
|
this.standardData = "";
|
||||||
|
this.totalDo = "";
|
||||||
|
}
|
||||||
|
this.standardData = res.data.records;
|
||||||
|
this.standardData.forEach(item => {
|
||||||
|
if (item.zccssrqgj === "-") {
|
||||||
|
item.zccssrqgj = "";
|
||||||
|
}
|
||||||
|
if (item.xcxssrqgj === "-") {
|
||||||
|
item.xcxssrq = "";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.total = res.data.total;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data) {
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.textStatusMap, item.value, item.label);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
// 查询各下拉框数据
|
||||||
|
this.$http.get("sys/dictype/getDicTypeListCode", "", {
|
||||||
|
_this: this,
|
||||||
|
loading: "loading"
|
||||||
|
}, res => {
|
||||||
|
this.energyKindOptions = res.data.ENERGYTYPES; //适用车型
|
||||||
|
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
||||||
|
this.standStateOptions = res.data.WBZTCLASS; // 文本状态
|
||||||
|
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
||||||
|
this.setMap(this.standStateOptions);
|
||||||
|
this.showLocalProductData(this.getLocalPro);
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
|
||||||
|
.xmqdqr-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%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.demo-drawer-content {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="size ? 6 : 8" v-btn-permission="'14f54ef4475d9210b1ee7872ab69eca8'">
|
<el-col :span="size ? 6 : 8" v-btn-permission="''">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<div class="card-box" @click="handleCreateProcess('11')">
|
<div class="card-box" @click="handleCreateProcess('11')">
|
||||||
<div class="card-top">
|
<div class="card-top">
|
||||||
|
|||||||
@@ -868,7 +868,7 @@ export default {
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
case '10':
|
case '10':
|
||||||
if (row.taskInfo === '确认人确认') {
|
if (row.taskInfo === '产品工程经理分发清单') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep2',
|
name: 'xmqdqrStep2',
|
||||||
query: {
|
query: {
|
||||||
|
|||||||
+27
-9
@@ -736,6 +736,33 @@ const routes = [
|
|||||||
title: '项目清单确认流程'
|
title: '项目清单确认流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/xmqdqrStep3',
|
||||||
|
name: 'xmqdqrStep3',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '项目清单确认流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/xmqdqrStep4',
|
||||||
|
name: 'xmqdqrStep4',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '项目清单确认流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/xmqdqrStep5',
|
||||||
|
name: 'xmqdqrStep5',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '项目清单确认流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/xmqdqrStep1-1',
|
path: '/xmqdqrStep1-1',
|
||||||
name: 'xmqdqrStep1-1',
|
name: 'xmqdqrStep1-1',
|
||||||
@@ -763,15 +790,6 @@ const routes = [
|
|||||||
title: '项目清单确认流程'
|
title: '项目清单确认流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/xmqdqrStep3',
|
|
||||||
name: 'xmqdqrStep3',
|
|
||||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue'),
|
|
||||||
meta: {
|
|
||||||
requireAuth: true,
|
|
||||||
title: '项目清单确认流程'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/wfhxzgStep1',
|
path: '/wfhxzgStep1',
|
||||||
name: 'wfhxzgStep1',
|
name: 'wfhxzgStep1',
|
||||||
|
|||||||
Reference in New Issue
Block a user