项目清单确认流程开发
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ router.beforeEach(function (to, from, next) {
|
|||||||
extracted("bzzqyjStep1-9");
|
extracted("bzzqyjStep1-9");
|
||||||
} else if (prcType === '10') {
|
} else if (prcType === '10') {
|
||||||
//项目清单确认
|
//项目清单确认
|
||||||
extracted("xmqdqrStep1-3");
|
extracted("xmqdqrStep1-4");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else { // 业务系统 当前节点未完成
|
} else { // 业务系统 当前节点未完成
|
||||||
|
|||||||
@@ -1055,7 +1055,7 @@ export default {
|
|||||||
break
|
break
|
||||||
//项目清单确认流程
|
//项目清单确认流程
|
||||||
case '10' :
|
case '10' :
|
||||||
if(row.taskInfo === '产品工程经理分发清单'){
|
if(row.taskInfo === '清单完善1'){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep2',
|
name: 'xmqdqrStep2',
|
||||||
query: {
|
query: {
|
||||||
@@ -1066,7 +1066,7 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if (row.taskInfo === '确认人确认') {
|
} else if (row.taskInfo === '清单完善2') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep3',
|
name: 'xmqdqrStep3',
|
||||||
query: {
|
query: {
|
||||||
@@ -1077,9 +1077,9 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else if(row.taskInfo === '标准法规部经理审批'){
|
}else if(row.taskInfo === '清单发布'){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep5',
|
name: 'xmqdqrStep4',
|
||||||
query: {
|
query: {
|
||||||
taskIds: row.taskIds,
|
taskIds: row.taskIds,
|
||||||
prcId: row.prcId,
|
prcId: row.prcId,
|
||||||
|
|||||||
@@ -1,855 +0,0 @@
|
|||||||
<!--项目清单确认流程--保存页面-->
|
|
||||||
<template>
|
|
||||||
<div class="xmqdqr-step1">
|
|
||||||
<ProcessHeader toggle>
|
|
||||||
<template slot="proName">项目清单确认流程</template>
|
|
||||||
<template slot="proNode">发起流程</template>
|
|
||||||
</ProcessHeader>
|
|
||||||
<div class="headerTabs">
|
|
||||||
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
|
||||||
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">人员信息</div>
|
|
||||||
</div>
|
|
||||||
<div class="content" v-show="active === '1'">
|
|
||||||
<div style="flex: auto; overflow: auto;">
|
|
||||||
<el-form
|
|
||||||
ref="qdqrForm"
|
|
||||||
:model="qdform"
|
|
||||||
:rules="formRules"
|
|
||||||
class="label-input-form"
|
|
||||||
label-width="210px"
|
|
||||||
>
|
|
||||||
<ProcessTitle>
|
|
||||||
<template slot="title">基础信息</template>
|
|
||||||
</ProcessTitle>
|
|
||||||
<div class="prc-content-border">
|
|
||||||
<el-row :gutter="24">
|
|
||||||
<el-col :span="24">
|
|
||||||
<!-- <el-form-item label="选择项目" prop="orgName" class="add-form-item form-item-disabled">-->
|
|
||||||
<!-- <el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceProject">选择项目-->
|
|
||||||
<!-- </el-button>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled" style="float: left">
|
|
||||||
<el-input
|
|
||||||
v-model="qdform.projectNumber"
|
|
||||||
placeholder="请输入项目编号"
|
|
||||||
disabled
|
|
||||||
clearable
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-button size="mini" type="primary" style="margin-top: 1%;" @click="choiceProject">选择项目
|
|
||||||
</el-button>
|
|
||||||
<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="orgName" class="add-form-item form-item-disabled">-->
|
|
||||||
<!-- <el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceList">选择清单</el-button>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled" style="float: left">
|
|
||||||
<el-input
|
|
||||||
v-model="qdform.detailedListName"
|
|
||||||
placeholder="请输入清单名称"
|
|
||||||
disabled
|
|
||||||
clearable
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-button size="mini" type="primary" style="margin-top: 1%;" @click="choiceList">选择清单</el-button>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</div>
|
|
||||||
</el-form>
|
|
||||||
</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 class="content" v-show="active === '2'">
|
|
||||||
<div class="block" style="padding-top: 20px;">
|
|
||||||
<el-timeline>
|
|
||||||
<el-form
|
|
||||||
ref="Form"
|
|
||||||
:model="roleForm"
|
|
||||||
:rules="roleFormRules"
|
|
||||||
class="label-input-form myForm">
|
|
||||||
<el-timeline-item timestamp="发起流程" placement="top" :color="roleForm.startUser ? '#66b1ff' : ''">
|
|
||||||
<el-card>
|
|
||||||
<el-form-item prop="startUserName" style="margin-bottom: 0">
|
|
||||||
<h4>流程发起人</h4>
|
|
||||||
<div style="margin-top: 10px;width: 300px;">
|
|
||||||
<el-input v-model="roleForm.startUser" style="display: none;"></el-input>
|
|
||||||
<el-input v-model="roleForm.startUserName" placeholder="流程发起人" disabled></el-input>
|
|
||||||
</div>
|
|
||||||
</el-form-item>
|
|
||||||
</el-card>
|
|
||||||
</el-timeline-item>
|
|
||||||
<el-timeline-item timestamp="选择产品工程经理" placement="top"
|
|
||||||
:color="roleForm.confirmId ? '#66b1ff' : ''">
|
|
||||||
<el-card>
|
|
||||||
<el-form-item prop="confirmName" style="margin-bottom: 0">
|
|
||||||
<h4>产品工程经理</h4>
|
|
||||||
<div style="margin-top: 10px;width: 300px;">
|
|
||||||
<el-input v-model="roleForm.confirmId" style="display: none;"></el-input>
|
|
||||||
<el-input v-model="roleForm.confirmName" placeholder="选择产品工程经理"
|
|
||||||
@click.native="choiceZRR('confirmId', '选择产品工程经理', roleForm.confirmId)"></el-input>
|
|
||||||
</div>
|
|
||||||
</el-form-item>
|
|
||||||
</el-card>
|
|
||||||
</el-timeline-item>
|
|
||||||
<el-timeline-item timestamp="选择审批人" placement="top"
|
|
||||||
:color="roleForm.approveId ? '#66b1ff' : ''">
|
|
||||||
<el-card>
|
|
||||||
<el-form-item prop="approveName" style="margin-bottom: 0">
|
|
||||||
<h4>审批人</h4>
|
|
||||||
<div style="margin-top: 10px;width: 300px;">
|
|
||||||
<el-input v-model="roleForm.approveId" style="display: none;"></el-input>
|
|
||||||
<el-input v-model="roleForm.approveName" placeholder="选择法规部经理"
|
|
||||||
@click.native="choiceZRR('approveId', '选择法规部经理', roleForm.approveId)"></el-input>
|
|
||||||
</div>
|
|
||||||
</el-form-item>
|
|
||||||
</el-card>
|
|
||||||
</el-timeline-item>
|
|
||||||
</el-form>
|
|
||||||
</el-timeline>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<Role-tree
|
|
||||||
check-box
|
|
||||||
:is-title="drawerTitle"
|
|
||||||
:is-visible.sync="modalshowflag"
|
|
||||||
@checkedRole="checkedRole"
|
|
||||||
:nodeList="nodeList"
|
|
||||||
></Role-tree>
|
|
||||||
<ProcessFooter
|
|
||||||
show-save
|
|
||||||
show-submit
|
|
||||||
:submitLoading="isSubmit"
|
|
||||||
:saveLoading="saveLoading"
|
|
||||||
@save="handleSave"
|
|
||||||
@submit="handleSubmit"
|
|
||||||
>
|
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 选择项目弹窗-->
|
|
||||||
<el-drawer
|
|
||||||
title="选择项目"
|
|
||||||
:visible.sync="projectModel"
|
|
||||||
size="900px"
|
|
||||||
custom-class="demo-drawer"
|
|
||||||
>
|
|
||||||
<div class="demo-drawer-content">
|
|
||||||
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
|
|
||||||
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
|
||||||
<div class="left">
|
|
||||||
<el-form :modal="projectSearch" :inline="true" class="label-input-form" style="margin-left:10px">
|
|
||||||
<el-form-item label="项目编号" class="search-item search-item-last">
|
|
||||||
<el-input
|
|
||||||
v-model="projectSearch.projectNumber"
|
|
||||||
placeholder="请输入项目编号"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="项目名称" class="search-item search-item-last">
|
|
||||||
<el-input
|
|
||||||
v-model="projectSearch.projectName"
|
|
||||||
placeholder="请输入项目名称"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
size="small"
|
|
||||||
v-btn-permission=""
|
|
||||||
@click="getProjectDataBtn">
|
|
||||||
查询
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
class="common-button-default"
|
|
||||||
size="small"
|
|
||||||
v-btn-permission=""
|
|
||||||
@click="clearSearch">清空
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</div>
|
|
||||||
<el-table
|
|
||||||
:data="ProjectDatas"
|
|
||||||
tooltip-effect="dark"
|
|
||||||
style="width: 100%"
|
|
||||||
border
|
|
||||||
class="table-height"
|
|
||||||
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
|
||||||
fontWeight: 'bold', height: '48px'}"
|
|
||||||
@selection-change="selectProjectChange"
|
|
||||||
@select="handleSelectionChange"
|
|
||||||
ref="projectSelection"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center" />
|
|
||||||
<el-table-column
|
|
||||||
prop="projectNumber"
|
|
||||||
align="center"
|
|
||||||
label="项目编号"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
prop="projectName"
|
|
||||||
align="center"
|
|
||||||
label="项目名称"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
prop="projectClassification"
|
|
||||||
align="center"
|
|
||||||
label="项目分类"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
prop="uname"
|
|
||||||
align="center"
|
|
||||||
label="项目经理"
|
|
||||||
/>
|
|
||||||
</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="cancelProject">取消</el-button>
|
|
||||||
<el-button type="primary" size="mini" @click="OkProject">带入</el-button>
|
|
||||||
</div>
|
|
||||||
</el-drawer>
|
|
||||||
<!-- 选择清单弹窗-->
|
|
||||||
<el-drawer
|
|
||||||
title="选择清单"
|
|
||||||
:visible.sync="detailedListModel"
|
|
||||||
size="900px"
|
|
||||||
custom-class="demo-drawer"
|
|
||||||
>
|
|
||||||
<div class="demo-drawer-content">
|
|
||||||
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
|
|
||||||
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
|
||||||
<div class="left">
|
|
||||||
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form">
|
|
||||||
<el-form-item label="车型类别" prop="carType" label-width="100px" class="search-item">
|
|
||||||
<el-select
|
|
||||||
v-model="sarSarAccessEOSearch.carType"
|
|
||||||
placeholder="请选择"
|
|
||||||
filterable
|
|
||||||
size="small"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in energyKindOptions"
|
|
||||||
:value="item.value"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
|
||||||
<el-input
|
|
||||||
v-model="sarSarAccessEOSearch.detailedListName"
|
|
||||||
placeholder="请输入清单名称"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
size="small"
|
|
||||||
@click="searchSarAccessBtn">
|
|
||||||
查询
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
class="common-button-default"
|
|
||||||
size="small"
|
|
||||||
@click="clearSearchAccess">清空
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</div>
|
|
||||||
<el-table
|
|
||||||
:data="sarAccessListDatas"
|
|
||||||
tooltip-effect="dark"
|
|
||||||
style="width: 100%; padding: 0 3px"
|
|
||||||
border
|
|
||||||
height="100%"
|
|
||||||
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
|
||||||
fontWeight: 'bold', height: '48px'}"
|
|
||||||
@selection-change="selectListChange"
|
|
||||||
@select="handleSelectionChanges"
|
|
||||||
ref="listSelection"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center" />
|
|
||||||
<el-table-column
|
|
||||||
prop="carTypeShow"
|
|
||||||
label="车型类别"
|
|
||||||
align="center">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="detailedListName"
|
|
||||||
label="清单名称"
|
|
||||||
align="center"
|
|
||||||
width="260px"
|
|
||||||
>
|
|
||||||
<!-- <template slot-scope="scope">-->
|
|
||||||
<!-- <a class="table-jump" @click.stop="showTable(scope.row)">{{ scope.row.detailedListName }}</a>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="detailedListState"
|
|
||||||
label="清单状态"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span v-if="scope.row.detailedListState === '0'">未发布</span>
|
|
||||||
<span v-if="scope.row.detailedListState === '1'">已发布</span>
|
|
||||||
<span v-if="scope.row.detailedListState === '3'">审核中</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="detailedListVision"
|
|
||||||
label="清单版本"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span
|
|
||||||
v-if="scope.row.detailedListVision != null && scope.row.detailedListVision !== ''">{{ scope.row.detailedListVision
|
|
||||||
}}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="updateTime"
|
|
||||||
label="更新时间"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<div>
|
|
||||||
{{ scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD") : scope.row.updateTime
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="updatePeople"
|
|
||||||
label="更新人"
|
|
||||||
align="center">
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
<pagination
|
|
||||||
:page="pageNo"
|
|
||||||
:pageSize="pageSizeNo"
|
|
||||||
:total="totalNo"
|
|
||||||
@pageChange="pageChangeNo"
|
|
||||||
@pageSizeChange="pageSizeChangeNo"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="demo-drawer-footer">
|
|
||||||
<el-button size="mini" @click="closeDrawer">取消</el-button>
|
|
||||||
<el-button type="primary" size="mini" @click="OkDrawer">带入</el-button>
|
|
||||||
</div>
|
|
||||||
</el-drawer>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
|
||||||
import { queryTaskFirst, saveTaskFirst,taskDel} from "api/process";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "xmqdqrStep1-1",
|
|
||||||
components: {
|
|
||||||
ProcessHeader,
|
|
||||||
ProcessFooter,
|
|
||||||
ProcessTitle
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
bpnId: '',
|
|
||||||
active: "1", //默认显示
|
|
||||||
commentText: "",
|
|
||||||
modalshowflag: false,
|
|
||||||
drawerTitle: "",
|
|
||||||
nodeList: [],
|
|
||||||
isSubmit: false,
|
|
||||||
saveLoading: false,
|
|
||||||
detailedListModel: false,
|
|
||||||
projectModel: false,
|
|
||||||
sarAccessListDatas: [],
|
|
||||||
ProjectDatas: [],
|
|
||||||
selectProject: [],
|
|
||||||
selectedList: [],
|
|
||||||
total: 0,
|
|
||||||
page: 1,
|
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
|
||||||
totalNo: 0,
|
|
||||||
pageNo: 1,
|
|
||||||
pageSizeNo: this.$store.getters.userInfo.configContent,
|
|
||||||
energyKindOptions: [], //存放适用车型数据
|
|
||||||
// 查询相关参数
|
|
||||||
sarSarAccessEOSearch: {
|
|
||||||
carType: "",
|
|
||||||
detailedListName: ""
|
|
||||||
},
|
|
||||||
projectSearch: {
|
|
||||||
projectNumber: "",
|
|
||||||
projectName: ""
|
|
||||||
|
|
||||||
},
|
|
||||||
qdform: {
|
|
||||||
projectNumber: "",
|
|
||||||
projectName: "",
|
|
||||||
detailedListName: ""
|
|
||||||
},
|
|
||||||
roleForm: {
|
|
||||||
startUserName: this.$store.getters.userInfo.userName,
|
|
||||||
startUser: this.$store.getters.userInfo.userId,
|
|
||||||
confirmId: "",
|
|
||||||
confirmName: "",
|
|
||||||
approveId: "",
|
|
||||||
approveName: "",
|
|
||||||
},
|
|
||||||
//表单验证
|
|
||||||
formRules: {
|
|
||||||
projectName: [
|
|
||||||
{ required: true, message: "请输入项目名称", trigger: "blur" }
|
|
||||||
],
|
|
||||||
projectNumber: [
|
|
||||||
{ type: "string", required: true, message: "请输入项目编号", trigger: "change" }
|
|
||||||
],
|
|
||||||
detailedListName: [
|
|
||||||
{ required: true, message: "请输入清单名称", trigger: "change" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
// 角色验证
|
|
||||||
roleFormRules: {
|
|
||||||
confirmName: [
|
|
||||||
{ required: true, message: "请选择产品工程经理", trigger: "change" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getData() {
|
|
||||||
queryTaskFirst({
|
|
||||||
bpnId: this.$route.query.bpnId
|
|
||||||
}).then(res => {
|
|
||||||
let mes = JSON.parse(res.mes);
|
|
||||||
this.qdform = mes.form;
|
|
||||||
this.roleForm = mes.roleForm;
|
|
||||||
this.commentText = mes.commentText;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 表格勾选
|
|
||||||
handleSelectionChange(selection, val) {
|
|
||||||
if (selection.length > 1) {
|
|
||||||
let del_row = selection.shift();
|
|
||||||
this.$refs.projectSelection.toggleRowSelection(del_row, false);
|
|
||||||
// this.$refs.listSelection.toggleRowSelection(del_row, false);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
handleSelectionChanges(selection, val) {
|
|
||||||
if (selection.length > 1) {
|
|
||||||
let del_row = selection.shift();
|
|
||||||
this.$refs.listSelection.toggleRowSelection(del_row, false);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
handleTabs(type) {
|
|
||||||
this.active = type;
|
|
||||||
},
|
|
||||||
//项目清单查询按钮
|
|
||||||
getProjectDataBtn(){
|
|
||||||
this.page = 1;
|
|
||||||
this.getProjectData();
|
|
||||||
},
|
|
||||||
//查询项目列表
|
|
||||||
getProjectData() {
|
|
||||||
this.$http.get("sarStandProjectLibrary/queryProjectConfirm", {
|
|
||||||
PageSize: this.pageSize,
|
|
||||||
Page: this.page,
|
|
||||||
...this.projectSearch
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.ProjectDatas = res.data.total.records;
|
|
||||||
this.total = res.data.total.total;
|
|
||||||
}, e => {
|
|
||||||
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//清空查询列表
|
|
||||||
clearSearch() {
|
|
||||||
this.projectSearch = {
|
|
||||||
projectName: "",
|
|
||||||
projectNumber: ""
|
|
||||||
};
|
|
||||||
this.getProjectData();
|
|
||||||
},
|
|
||||||
//项目带入取消事件
|
|
||||||
cancelProject() {
|
|
||||||
this.projectModel = false;
|
|
||||||
},
|
|
||||||
//项目带入确定事件
|
|
||||||
OkProject() {
|
|
||||||
if (this.selectProject.length < 1) {
|
|
||||||
this.$message.warning("请至少选择一条数据进行带入");
|
|
||||||
} else if (this.selectProject.length > 1) {
|
|
||||||
this.$message.warning("您只能选择一条数据进行带入");
|
|
||||||
} else {
|
|
||||||
this.qdform.projectNumber = this.selectProject[0].projectNumber;
|
|
||||||
this.qdform.projectName = this.selectProject[0].projectName;
|
|
||||||
this.qdform.projectId = this.selectProject[0].id;
|
|
||||||
this.projectModel = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
//清单查询按钮
|
|
||||||
searchSarAccessBtn(){
|
|
||||||
this.pageNo = 1;
|
|
||||||
this.searchSarAccess();
|
|
||||||
},
|
|
||||||
//查询清单列表
|
|
||||||
searchSarAccess() {
|
|
||||||
this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
|
|
||||||
page: this.pageNo,
|
|
||||||
pageSize: this.pageSizeNo,
|
|
||||||
...this.sarSarAccessEOSearch,
|
|
||||||
sortKey: 2
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
let arr = res.data.records;
|
|
||||||
arr.forEach(item => {
|
|
||||||
// 适用车型转换
|
|
||||||
if (item.carType !== null) {
|
|
||||||
let k = (item.carType || "").split(",");
|
|
||||||
for (let i in this.energyKindOptions) {
|
|
||||||
for (let m = 0; m < k.length; m++) {
|
|
||||||
if (this.energyKindOptions[i].value === k[m]) {
|
|
||||||
k[m] = this.energyKindOptions[i].label;
|
|
||||||
}
|
|
||||||
item.carTypeShow = k.join(",");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.sarAccessListDatas = arr;
|
|
||||||
this.tableLoading = false;
|
|
||||||
this.toatl = res.data.total;
|
|
||||||
}, e => {
|
|
||||||
});
|
|
||||||
|
|
||||||
},
|
|
||||||
//清空查询清单
|
|
||||||
clearSearchAccess() {
|
|
||||||
this.sarSarAccessEOSearch = {
|
|
||||||
carType: "",
|
|
||||||
detailedListName: ""
|
|
||||||
};
|
|
||||||
this.searchSarAccess();
|
|
||||||
},
|
|
||||||
//选择项目点击事件
|
|
||||||
choiceProject() {
|
|
||||||
this.projectModel = true;
|
|
||||||
},
|
|
||||||
//选择清单点击事件
|
|
||||||
choiceList() {
|
|
||||||
this.detailedListModel = true;
|
|
||||||
},
|
|
||||||
//清单带入取消事件
|
|
||||||
closeDrawer() {
|
|
||||||
this.detailedListModel = false;
|
|
||||||
},
|
|
||||||
//清单带入确定事件
|
|
||||||
OkDrawer() {
|
|
||||||
if (this.selectedList.length < 1) {
|
|
||||||
this.$message.warning("请至少选择一条数据进行带入");
|
|
||||||
} else if (this.selectedList.length > 1) {
|
|
||||||
this.$message.warning("您只能选择一条数据进行带入");
|
|
||||||
} else {
|
|
||||||
this.qdform.detailedListName = this.selectedList[0].detailedListName;
|
|
||||||
this.qdform.detailedListId = this.selectedList[0].id;
|
|
||||||
this.qdform.detailedListVision = this.selectedList[0].detailedListVision;
|
|
||||||
this.detailedListModel = false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
cancleUserInfo() {
|
|
||||||
this.modalshowflag = false;
|
|
||||||
},
|
|
||||||
choiceZRR(type, title, id) {
|
|
||||||
this.nodeList = [];
|
|
||||||
this.nodeList.push(id);
|
|
||||||
this.type = type;
|
|
||||||
this.drawerTitle = title;
|
|
||||||
this.modalshowflag = true;
|
|
||||||
},
|
|
||||||
checkedRole(data) {
|
|
||||||
if (this.type === "confirmId") {
|
|
||||||
this.roleForm.confirmId = data[0].id;
|
|
||||||
this.roleForm.confirmName = data[0].name;
|
|
||||||
}else if(this.type === "approveId"){
|
|
||||||
this.roleForm.approveId = data[0].id;
|
|
||||||
this.roleForm.approveName = data[0].name;
|
|
||||||
}
|
|
||||||
this.modalshowflag = false;
|
|
||||||
},
|
|
||||||
//项目分页器
|
|
||||||
pageChange(page) {
|
|
||||||
this.page = page;
|
|
||||||
this.getProjectData();
|
|
||||||
},
|
|
||||||
pageSizeChange(pageSize) {
|
|
||||||
this.pageSize = pageSize;
|
|
||||||
this.getProjectData();
|
|
||||||
},
|
|
||||||
//清单分页器
|
|
||||||
pageChangeNo(pageNo) {
|
|
||||||
this.pageNO = pageNo;
|
|
||||||
this.searchSarAccess();
|
|
||||||
},
|
|
||||||
pageSizeChangeNo(pageSizeNo) {
|
|
||||||
this.pageSizeNo = pageSizeNo;
|
|
||||||
this.searchSarAccess();
|
|
||||||
},
|
|
||||||
//清单勾选框数据
|
|
||||||
selectListChange(data) {
|
|
||||||
this.selectedList = data;
|
|
||||||
},
|
|
||||||
//项目勾选框数据
|
|
||||||
selectProjectChange(data) {
|
|
||||||
this.selectProject = data;
|
|
||||||
},
|
|
||||||
//提交事件
|
|
||||||
handleSubmit() {
|
|
||||||
this.qdform.commentText = this.commentText;
|
|
||||||
var json = Object.assign(this.qdform, this.roleForm);
|
|
||||||
this.$refs["qdqrForm"].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$refs["Form"].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.isSubmit = true;
|
|
||||||
this.$http.post("lawss/activiti/startProcessRollBack", {
|
|
||||||
createUser: this.$store.getters.userInfo.userId,
|
|
||||||
createUserName: this.$store.getters.userInfo.userName,
|
|
||||||
type: '10',
|
|
||||||
json: JSON.stringify({
|
|
||||||
taskInfo: "产品经理分发",
|
|
||||||
form: this.qdform,
|
|
||||||
roleForm: this.roleForm,
|
|
||||||
commentText: this.commentText
|
|
||||||
})
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
|
||||||
taskIds: res.data,
|
|
||||||
userId: this.$store.getters.userInfo.userId,
|
|
||||||
json: JSON.stringify(json)
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$message.success(res.message);
|
|
||||||
if (this.bpnId !== '') {
|
|
||||||
let taskId = {
|
|
||||||
id: this.bpnId
|
|
||||||
}
|
|
||||||
taskDel(taskId).then(res=>{
|
|
||||||
return res
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.$router.push("/processCenter");
|
|
||||||
}
|
|
||||||
this.isSubmit = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
return this.$message.warning("请完善人员信息");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
return this.$message.warning("请完善基础信息");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//保存事件
|
|
||||||
handleSave() {
|
|
||||||
this.saveLoading = true;
|
|
||||||
let _formData = new FormData();
|
|
||||||
_formData.append("id", this.bpnId || "");
|
|
||||||
_formData.append("createUser", this.$store.getters.userInfo.userId);
|
|
||||||
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
|
||||||
_formData.append("prcType", "10");
|
|
||||||
_formData.append("json", JSON.stringify({
|
|
||||||
taskInfo: "产品经理分发",
|
|
||||||
form: this.qdform,
|
|
||||||
roleForm: this.roleForm,
|
|
||||||
commentText: this.commentText
|
|
||||||
}));
|
|
||||||
saveTaskFirst(_formData).then(res => {
|
|
||||||
this.saveLoading = false;
|
|
||||||
this.$message.success("保存成功");
|
|
||||||
this.bpnId = res.result;
|
|
||||||
}).catch(e => {
|
|
||||||
this.saveLoading = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.bpnId = this.$route.query.bpnId
|
|
||||||
this.getData();
|
|
||||||
// 查询各下拉框数据
|
|
||||||
this.$http.get("sys/dictype/getDicTypeListCode", "", {
|
|
||||||
_this: this,
|
|
||||||
loading: "loading"
|
|
||||||
}, res => {
|
|
||||||
this.energyKindOptions = res.data.ENERGYTYPES; //适用车型
|
|
||||||
this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
|
|
||||||
page: 1,
|
|
||||||
pageSize: this.pageSize,
|
|
||||||
...this.sarSarAccessEOSearch,
|
|
||||||
sortKey: 2
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
let arr = res.data.records;
|
|
||||||
arr.forEach(item => {
|
|
||||||
// 适用车型转换
|
|
||||||
if (item.carType !== null) {
|
|
||||||
let k = (item.carType || "").split(",");
|
|
||||||
for (let i in this.energyKindOptions) {
|
|
||||||
for (let m = 0; m < k.length; m++) {
|
|
||||||
if (this.energyKindOptions[i].value === k[m]) {
|
|
||||||
k[m] = this.energyKindOptions[i].label;
|
|
||||||
}
|
|
||||||
item.carTypeShow = k.join(",");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.sarAccessListDatas = arr;
|
|
||||||
this.tableLoading = false;
|
|
||||||
this.sarSarAccessEOSearch.page = 1;
|
|
||||||
this.totalNo = res.data.total;
|
|
||||||
}, e => {
|
|
||||||
});
|
|
||||||
}, e => {
|
|
||||||
});
|
|
||||||
this.getProjectData();
|
|
||||||
this.searchSarAccess();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="less" scoped>
|
|
||||||
@import '~@/assets/styles/style';
|
|
||||||
|
|
||||||
.xmqdqr-step1 {
|
|
||||||
.myForm {
|
|
||||||
/deep/ .el-form-item__content {
|
|
||||||
line-height: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/deep/ .el-table__header-wrapper .el-checkbox {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/deep/ .el-drawer__container {
|
|
||||||
.prc-content-border {
|
|
||||||
border: none;
|
|
||||||
padding: 0 20px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
position: relative;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
.fileClass {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fileClass:hover {
|
|
||||||
color: #0c91e5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.table-height{
|
|
||||||
height: calc(~'100% - 65px');
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
@@ -1,564 +0,0 @@
|
|||||||
<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="中文名称"
|
|
||||||
min-width="300"
|
|
||||||
>
|
|
||||||
<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"
|
|
||||||
min-width="300"
|
|
||||||
>
|
|
||||||
<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="标准实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="xcxssrq"
|
|
||||||
width="190px"
|
|
||||||
align="center"
|
|
||||||
label="新车型实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zccssrq"
|
|
||||||
align="center"
|
|
||||||
sortable
|
|
||||||
width="190px"
|
|
||||||
label="在产车实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zrbm"
|
|
||||||
label="责任部门"
|
|
||||||
align="center"
|
|
||||||
width="180px"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="involve"
|
|
||||||
width="160px"
|
|
||||||
align="center"
|
|
||||||
label="标准是否涉及">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="remarks"
|
|
||||||
align="center"
|
|
||||||
width="180"
|
|
||||||
label="备注">
|
|
||||||
</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 HH:mm:ss") : "" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="endTime"
|
|
||||||
label="完成时间"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="comment"
|
|
||||||
label="流程信息"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ scope.row.commentText }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="completeFlag"
|
|
||||||
label="状态"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<loading :loading="loading">流程列表加载中</loading>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
|
||||||
import { inboundLiaisonDetail, queryDetail } from "api/process";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "xmqdqrStep1-3",
|
|
||||||
components: {
|
|
||||||
ProcessTitle,
|
|
||||||
ProcessHeader,
|
|
||||||
ProcessFooter
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
active: "1",
|
|
||||||
loading: false,
|
|
||||||
// 当前流程类型(1待办/2已办)
|
|
||||||
processType: 1,
|
|
||||||
isSubmit: 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: {
|
|
||||||
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) {
|
|
||||||
console.log(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.dataList = item.dataList
|
|
||||||
this.dataList.forEach(item => {
|
|
||||||
if(item.involve === 'involve'){
|
|
||||||
item.involve = '涉及'
|
|
||||||
}else if(item.involve === 'noInvolve'){
|
|
||||||
item.involve = '不涉及'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
this.qdform = item.form
|
|
||||||
this.dataList =item.form.dataList
|
|
||||||
this.projectId = item.form.projectId
|
|
||||||
// this.getStandData();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//查询清单下的标准
|
|
||||||
// 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(",");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
//添加标准勾选框数据
|
|
||||||
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>
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -9,24 +9,21 @@
|
|||||||
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">人员信息</div>
|
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">人员信息</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-show="active === '1'">
|
<div class="content" v-show="active === '1'">
|
||||||
<div style="flex: auto; overflow: auto;">
|
<div style=" overflow: auto;">
|
||||||
<el-form
|
<ProcessTitle>
|
||||||
ref="qdqrForm"
|
<template slot="title">基础信息</template>
|
||||||
:model="qdform"
|
</ProcessTitle>
|
||||||
:rules="formRules"
|
<el-collapse-transition>
|
||||||
class="label-input-form"
|
<el-form
|
||||||
label-width="210px"
|
ref="qdqrForm"
|
||||||
>
|
v-show="!foldFormFlag"
|
||||||
<ProcessTitle>
|
:model="qdform"
|
||||||
<template slot="title">基础信息</template>
|
:rules="formRules"
|
||||||
</ProcessTitle>
|
class="label-input-form prc-content-border"
|
||||||
<div class="prc-content-border">
|
label-width="150px"
|
||||||
|
>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<!-- <el-form-item label="选择项目" prop="orgName" class="add-form-item form-item-disabled">-->
|
|
||||||
<!-- <el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceProject">选择项目-->
|
|
||||||
<!-- </el-button>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled" style="float: left">
|
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled" style="float: left">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="qdform.projectNumber"
|
v-model="qdform.projectNumber"
|
||||||
@@ -45,9 +42,6 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="选择清单" prop="orgName" class="add-form-item form-item-disabled">-->
|
|
||||||
<!-- <el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceList">选择清单</el-button>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled" style="float: left">
|
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled" style="float: left">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="qdform.detailedListName"
|
v-model="qdform.detailedListName"
|
||||||
@@ -59,18 +53,104 @@
|
|||||||
<el-button size="mini" type="primary" style="margin-top: 1%;" @click="choiceList">选择清单</el-button>
|
<el-button size="mini" type="primary" style="margin-top: 1%;" @click="choiceList">选择清单</el-button>
|
||||||
<el-form-item label="截止日期" prop="endTime" class="add-form-item form-item-disabled">
|
<el-form-item label="截止日期" prop="endTime" class="add-form-item form-item-disabled">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
:picker-options="pickerOptions"
|
:picker-options="pickerOptions"
|
||||||
v-model="qdform.endTime"
|
v-model="qdform.endTime"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请选择截止日期"
|
placeholder="请选择截止日期"
|
||||||
value-format="yyyy-MM-dd">
|
value-format="yyyy-MM-dd">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</el-form>
|
||||||
</el-form>
|
</el-collapse-transition>
|
||||||
|
<el-button v-if="foldFormFlag === false" style="width: 100%" icon="el-icon-caret-top" @click="foldForm">隐藏基础信息
|
||||||
|
</el-button>
|
||||||
|
<el-button v-if="foldFormFlag === true" style="width: 100%" icon="el-icon-caret-bottom" @click="foldForm">
|
||||||
|
展开基础信息
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
<process-title style="margin-top:5px; margin-bottom: 5px">
|
||||||
|
<template slot="title">填写信息</template>
|
||||||
|
</process-title>
|
||||||
|
<div class="tableTitle">
|
||||||
|
<div class="tableButton">
|
||||||
|
<el-button plain class="common-button-primary" size="mini" @click="addList">添加</el-button>
|
||||||
|
<el-button plain class="common-button-primary" size="mini" @click="delectList">批量删除</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
ref="standSelection"
|
||||||
|
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"
|
||||||
|
min-width="300"
|
||||||
|
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="standEnName"
|
||||||
|
label="英文名称"
|
||||||
|
min-width="300"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<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"
|
||||||
|
label="标准实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="xcxssrq"
|
||||||
|
width="190px"
|
||||||
|
align="center"
|
||||||
|
label="新车型实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zccssrq"
|
||||||
|
align="center"
|
||||||
|
width="190px"
|
||||||
|
label="在产车实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zrbm"
|
||||||
|
label="责任部门"
|
||||||
|
align="center"
|
||||||
|
width="180px"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
<el-collapse accordion>
|
<el-collapse accordion>
|
||||||
<el-collapse-item title="回执说明">
|
<el-collapse-item title="回执说明">
|
||||||
<div style="margin: 10px 0;">
|
<div style="margin: 10px 0;">
|
||||||
@@ -104,6 +184,19 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
|
<el-timeline-item timestamp="选择认证工程师" placement="top"
|
||||||
|
:color="roleForm.approveId ? '#66b1ff' : ''">
|
||||||
|
<el-card>
|
||||||
|
<el-form-item prop="approveName" style="margin-bottom: 0">
|
||||||
|
<h4>认证工程师</h4>
|
||||||
|
<div style="margin-top: 10px;width: 300px;">
|
||||||
|
<el-input v-model="roleForm.approveId" style="display: none;"></el-input>
|
||||||
|
<el-input v-model="roleForm.approveName" placeholder="选择认证工程师"
|
||||||
|
@click.native="choiceZRR('approveId', '选择认证工程师', roleForm.approveId)"></el-input>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-card>
|
||||||
|
</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>
|
||||||
@@ -117,19 +210,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
<el-timeline-item timestamp="选择审批人" placement="top"
|
|
||||||
:color="roleForm.approveId ? '#66b1ff' : ''">
|
|
||||||
<el-card>
|
|
||||||
<el-form-item prop="approveName" style="margin-bottom: 0">
|
|
||||||
<h4>审批人</h4>
|
|
||||||
<div style="margin-top: 10px;width: 300px;">
|
|
||||||
<el-input v-model="roleForm.approveId" style="display: none;"></el-input>
|
|
||||||
<el-input v-model="roleForm.approveName" placeholder="选择法规部经理"
|
|
||||||
@click.native="choiceZRR('approveId', '选择法规部经理', roleForm.approveId)"></el-input>
|
|
||||||
</div>
|
|
||||||
</el-form-item>
|
|
||||||
</el-card>
|
|
||||||
</el-timeline-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-timeline>
|
</el-timeline>
|
||||||
</div>
|
</div>
|
||||||
@@ -381,6 +461,401 @@
|
|||||||
<el-button type="primary" size="mini" @click="OkDrawer">带入</el-button>
|
<el-button type="primary" size="mini" @click="OkDrawer">带入</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
<!-- 添加标准抽屉-->
|
||||||
|
<el-drawer
|
||||||
|
title="添加标准"
|
||||||
|
:wrapperClosable="false"
|
||||||
|
:visible.sync="standModel"
|
||||||
|
size="900px"
|
||||||
|
custom-class="demo-drawer"
|
||||||
|
>
|
||||||
|
<div class="demo-drawer-content">
|
||||||
|
<el-form
|
||||||
|
class="label-input-form"
|
||||||
|
style="margin-top: 15px;"
|
||||||
|
label-width="130px"
|
||||||
|
:modal="handleSelectForm"
|
||||||
|
:inline="true"
|
||||||
|
>
|
||||||
|
<el-form-item label="标准/政策来源" class="search-item">
|
||||||
|
<el-select
|
||||||
|
v-model="handleSelectForm.dataSource"
|
||||||
|
@change="dataSourceChange"
|
||||||
|
:popper-append-to-body="false"
|
||||||
|
placeholder="请选择标准来源">
|
||||||
|
<el-option value="INLAND" label="国内标准库"></el-option>
|
||||||
|
<el-option value="FOREIGN" label="海外标准库"></el-option>
|
||||||
|
<!-- <el-option value="FOREIGN_LAWS" label="国内外政策库"></el-option>-->
|
||||||
|
<el-option value="BUSINESS_STAND" label="企业标准库"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准号/标准名称" class="search-item">
|
||||||
|
<el-input
|
||||||
|
v-model="handleSelectForm.lawNumber"
|
||||||
|
@change="lawNumberSearch"
|
||||||
|
placeholder="根据标准号/标准名称查找"
|
||||||
|
clearable
|
||||||
|
:maxlength="100"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="是否纳入认证清单" class="search-item">
|
||||||
|
<el-select
|
||||||
|
v-model="handleSelectForm.isRelateAccess"
|
||||||
|
@change="isRelateAccessChange"
|
||||||
|
:popper-append-to-body="false"
|
||||||
|
placeholder="是否纳入认证清单">
|
||||||
|
<el-option value="0" label="否"></el-option>
|
||||||
|
<el-option value="1" label="是"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准状态" class="search-item">
|
||||||
|
<el-select
|
||||||
|
v-model="handleSelectForm.textStatus"
|
||||||
|
@change="isRelateAccessChange"
|
||||||
|
:popper-append-to-body="false"
|
||||||
|
placeholder="请选择标准状态">
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in textState"
|
||||||
|
:key="index"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="search-item btn-box">
|
||||||
|
<el-button
|
||||||
|
size="small"
|
||||||
|
type="primary"
|
||||||
|
class="common-button-primary"
|
||||||
|
@click="searchLawBtn">
|
||||||
|
查询
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<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"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standYear && textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" class="table-jump" style="color: #F56C6C"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
|
scope.row.standNumber
|
||||||
|
}}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else-if="scope.row.standYear" class="table-jump" style="color: #333333"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
|
scope.row.standNumber
|
||||||
|
}}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" class="table-jump" style="color: #333333">
|
||||||
|
{{ 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] === '被代替'" @click="handlePreview(scope.row)" class="table-jump" style="color: #F56C6C">{{ scope.row.standName }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" style="color: #333333" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="issueTime"
|
||||||
|
width="120"
|
||||||
|
label="发布日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ formatIssueDate(scope.row.issueTime) }}</span>
|
||||||
|
<span v-else>{{ formatIssueDate(scope.row.issueTime) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="ssrq"
|
||||||
|
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>{{ scope.row.ssrq }}</span>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
|
prop="xcxssrq"
|
||||||
|
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>{{ scope.row.xcxssrq }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zccssrq"
|
||||||
|
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>{{ scope.row.zccssrq }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="textStatus"
|
||||||
|
width="110"
|
||||||
|
label="文本状态">
|
||||||
|
<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 v-if="handleSelectForm.dataSource === 'FOREIGN'">
|
||||||
|
<el-table-column
|
||||||
|
label="标准号"
|
||||||
|
width="150"
|
||||||
|
>
|
||||||
|
<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"
|
||||||
|
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"
|
||||||
|
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
|
||||||
|
}}</span>
|
||||||
|
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
|
||||||
|
scope.row.ssrq
|
||||||
|
}}</span>
|
||||||
|
<span v-else style="color: #333333">{{ scope.row.ssrq }}</span>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="xcxssrq"
|
||||||
|
width="150"
|
||||||
|
label="新车型实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
|
||||||
|
scope.row.xcxssrq
|
||||||
|
}}</span>
|
||||||
|
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
|
||||||
|
scope.row.xcxssrq
|
||||||
|
}}</span>
|
||||||
|
<span v-else style="color: #333333">{{
|
||||||
|
scope.row.xcxssrq
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zccssrq"
|
||||||
|
width="150"
|
||||||
|
label="在产车实施日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
|
||||||
|
scope.row.zccssrq
|
||||||
|
}}</span>
|
||||||
|
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
|
||||||
|
scope.row.zccssrq
|
||||||
|
}}</span>
|
||||||
|
<span v-else style="color: #333333">{{
|
||||||
|
scope.row.zccssrq
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="textStatus"
|
||||||
|
width="110"
|
||||||
|
label="文本状态">
|
||||||
|
<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="发布日期"
|
||||||
|
width="120"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime}}</span>
|
||||||
|
<span v-if="scope.row.standStatusShow === '参考' " style="color: #E6A23C">{{scope.row.issueTime}}</span>
|
||||||
|
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.issueTime}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="putTime"
|
||||||
|
label="实施日期"
|
||||||
|
width="120"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime}}</span>
|
||||||
|
<span v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C">{{scope.row.putTime}}</span>
|
||||||
|
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.putTime}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
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" size="mini" @click="standModel = false">取消</el-button>
|
||||||
|
<el-button type="primary" size="mini" class="common-button-primary" @click="handleSelectConfirm" v-show="lawInfoTableLoading === false">确定</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -388,7 +863,7 @@
|
|||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from "../../components/ProcessFooter";
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from "../../components/ProcessTitle";
|
||||||
import { saveTaskFirst, taskDel } from "api/process";
|
import { queryTaskFirst, saveTaskFirst, taskDel } from "api/process";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "xmqdqrStep1",
|
name: "xmqdqrStep1",
|
||||||
@@ -399,6 +874,35 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
//折叠的标志,true为折叠,false为不折叠
|
||||||
|
foldFormFlag: false,
|
||||||
|
standModel: false,
|
||||||
|
lawInfoTableLoading: true,
|
||||||
|
lawInfoTable: [],
|
||||||
|
handleSelectTableList: [],
|
||||||
|
projectStand: [],
|
||||||
|
dataList: [],
|
||||||
|
textStatusMap: {},// 文本状态id与name对应
|
||||||
|
textState: [],
|
||||||
|
handleSelectForm: {
|
||||||
|
standName: '', //标准名称
|
||||||
|
numberName: '', //政策名称
|
||||||
|
lawsNumber: '', //政策编号
|
||||||
|
standNumber: '', //标准编号
|
||||||
|
standCode: '', //企标编号
|
||||||
|
isRelateAccess: '', //是否纳入认证清单
|
||||||
|
textStatus: '', //标准状态
|
||||||
|
dataSource: 'INLAND',
|
||||||
|
standType: 'INLAND',
|
||||||
|
lawNumber: '', // 标准编号/政策编号
|
||||||
|
lawName: '', // 标准名称/政策名称
|
||||||
|
page: 1,
|
||||||
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
|
total: 0,
|
||||||
|
quoteIdList: '',
|
||||||
|
validFlag: '0',
|
||||||
|
menuId: 'nomenu'
|
||||||
|
},
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
disabledDate(time) {
|
disabledDate(time) {
|
||||||
return time.getTime() < Date.now() - 8.64e7;
|
return time.getTime() < Date.now() - 8.64e7;
|
||||||
@@ -471,12 +975,204 @@ export default {
|
|||||||
{ required: true, message: "请选择产品工程经理", trigger: "change" }
|
{ required: true, message: "请选择产品工程经理", trigger: "change" }
|
||||||
],
|
],
|
||||||
approveName: [
|
approveName: [
|
||||||
{ required: true, message: "请选择审批人", trigger: "change" }
|
{ required: true, message: "请选择认证工程师", trigger: "change" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
formatIssueDate(str) {
|
||||||
|
const momentDate = this.$moment(str)
|
||||||
|
if (momentDate.isValid()) {
|
||||||
|
return this.$moment(str).format('YYYY-MM-DD')
|
||||||
|
} else {
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//折叠/展开基础信息方法
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview(item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: "OtherStandardDetails",
|
||||||
|
params: {
|
||||||
|
id: item.id,
|
||||||
|
pageType: "INLAND_STAND"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
window.open(routeUrl.href, "_blank");
|
||||||
|
},
|
||||||
|
dataSourceChange() {
|
||||||
|
this.handleSelectForm.page = 1
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
|
isRelateAccessChange(){
|
||||||
|
this.handleSelectForm.page = 1
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
|
//添加标准确定按钮
|
||||||
|
handleSelectConfirm(){
|
||||||
|
if(this.handleSelectTableList.length < 1){
|
||||||
|
this.$message.warning('请至少选择一条数据进行添加')
|
||||||
|
}else{
|
||||||
|
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
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//添加标准勾选框数据
|
||||||
|
handleSelectTableChange (data) {
|
||||||
|
this.handleSelectTableList = data
|
||||||
|
},
|
||||||
|
//dataList列表的添加数据
|
||||||
|
selectStandChange(data){
|
||||||
|
this.projectStand = data
|
||||||
|
},
|
||||||
|
//根据标准编号的查询
|
||||||
|
lawNumberSearch() {
|
||||||
|
this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
|
||||||
|
this.handleSelectForm.lawsNumber = this.handleSelectForm.lawNumber
|
||||||
|
this.handleSelectForm.standCode = this.handleSelectForm.lawNumber
|
||||||
|
},
|
||||||
|
//手动查找的清空按钮
|
||||||
|
clearLawBtn(){
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.lawNumber = ''
|
||||||
|
this.handleSelectForm.textStatus = ''
|
||||||
|
this.handleSelectForm.isRelateAccess = ''
|
||||||
|
this.handleSelectForm.standNumber = ''
|
||||||
|
this.handleSelectForm.lawsNumber = ''
|
||||||
|
this.handleSelectForm.standCode = ''
|
||||||
|
//清空标准名称/政策名称的查询
|
||||||
|
this.handleSelectForm.lawName = ''
|
||||||
|
this.handleSelectForm.standName = ''
|
||||||
|
this.handleSelectForm.numberName = ''
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
|
//添加标准的查询按钮
|
||||||
|
searchLawBtn(){
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
if (this.handleSelectForm.dataSource === 'INLAND'){
|
||||||
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPageByWk1',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
|
||||||
|
this.lawInfoTableLoading = false
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
}
|
||||||
|
},e=>{
|
||||||
|
this.lawInfoTable = []
|
||||||
|
this.handleSelectForm.total = 0
|
||||||
|
})
|
||||||
|
}else if(this.handleSelectForm.dataSource === 'FOREIGN'){
|
||||||
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPageByWk1',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 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('请先选择标准/政策来源')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSelectPageChange(page){
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.page = page
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
|
handleSelectPageSizeChange(pageSize){
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.pageSize = pageSize
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
|
addList() {
|
||||||
|
this.searchLawBtn()
|
||||||
|
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.id === item.id;
|
||||||
|
});
|
||||||
|
if (index > -1) {
|
||||||
|
this.dataList.splice(index, 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.$refs.standSelection.clearSelection()
|
||||||
|
}).catch(() => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
// 表格勾选
|
// 表格勾选
|
||||||
handleSelectionChange(selection, val) {
|
handleSelectionChange(selection, val) {
|
||||||
if (selection.length > 1) {
|
if (selection.length > 1) {
|
||||||
@@ -605,10 +1301,44 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.qdform.detailedListName = this.selectedList[0].detailedListName;
|
this.qdform.detailedListName = this.selectedList[0].detailedListName;
|
||||||
this.qdform.detailedListId = this.selectedList[0].id;
|
this.qdform.detailedListId = this.selectedList[0].id;
|
||||||
|
this.getStandData(this.qdform.detailedListId)
|
||||||
this.qdform.detailedListVision = this.selectedList[0].detailedListVision;
|
this.qdform.detailedListVision = this.selectedList[0].detailedListVision;
|
||||||
this.detailedListModel = false;
|
this.detailedListModel = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
//查询清单下的标准
|
||||||
|
getStandData(id) {
|
||||||
|
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
|
||||||
|
id: id,
|
||||||
|
page: 1,
|
||||||
|
Size: 100
|
||||||
|
}, {
|
||||||
|
_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(",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.dataList.map(item => {
|
||||||
|
if(item.zrbm === '[]'){
|
||||||
|
item.zrbm = ''
|
||||||
|
}
|
||||||
|
this.$set(item, 'zccssrq', item.zccssrqgj)
|
||||||
|
this.$set(item, 'xcxssrq', item.xcxssrqgj)
|
||||||
|
})
|
||||||
|
});
|
||||||
|
},
|
||||||
cancleUserInfo() {
|
cancleUserInfo() {
|
||||||
this.modalshowflag = false;
|
this.modalshowflag = false;
|
||||||
},
|
},
|
||||||
@@ -658,7 +1388,8 @@ export default {
|
|||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.qdform.commentText = this.commentText;
|
this.qdform.commentText = this.commentText;
|
||||||
var json = Object.assign(this.qdform, this.roleForm);
|
this.qdform.dataList = this.dataList;
|
||||||
|
let json = Object.assign(this.qdform, this.roleForm);
|
||||||
this.$refs["qdqrForm"].validate((valid) => {
|
this.$refs["qdqrForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs["Form"].validate((valid) => {
|
this.$refs["Form"].validate((valid) => {
|
||||||
@@ -714,6 +1445,7 @@ export default {
|
|||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
|
this.qdform.dataList = this.dataList
|
||||||
_formData.append("id", this.bpnId || "");
|
_formData.append("id", this.bpnId || "");
|
||||||
_formData.append("createUser", this.$store.getters.userInfo.userId);
|
_formData.append("createUser", this.$store.getters.userInfo.userId);
|
||||||
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
||||||
@@ -731,15 +1463,34 @@ export default {
|
|||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.saveLoading = false;
|
this.saveLoading = false;
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data) {
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if(this.$route.query.bpnId){
|
||||||
|
queryTaskFirst({
|
||||||
|
bpnId: this.$route.query.bpnId
|
||||||
|
}).then(res => {
|
||||||
|
let mes = JSON.parse(res.mes);
|
||||||
|
this.qdform = mes.form;
|
||||||
|
this.dataList = mes.form.dataList;
|
||||||
|
this.roleForm = mes.roleForm;
|
||||||
|
this.commentText = mes.commentText;
|
||||||
|
});
|
||||||
|
}
|
||||||
// 查询各下拉框数据
|
// 查询各下拉框数据
|
||||||
this.$http.get("sys/dictype/getDicTypeListCode", "", {
|
this.$http.get("sys/dictype/getDicTypeListCode", "", {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: "loading"
|
loading: "loading"
|
||||||
}, res => {
|
}, res => {
|
||||||
this.energyKindOptions = res.data.ENERGYTYPES; //适用车型
|
this.energyKindOptions = res.data.ENERGYTYPES; //适用车型
|
||||||
|
this.setMap(res.data.WBZTCLASS);// 文本状态
|
||||||
|
this.textState = res.data.WBZTCLASS // 文本状态
|
||||||
this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
|
this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
|
|||||||
@@ -2,59 +2,60 @@
|
|||||||
<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>
|
||||||
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-show="active === '1'">
|
<div class="content" v-show="active === '1'">
|
||||||
<div style="flex: auto; overflow: auto">
|
<div style="overflow: auto">
|
||||||
<process-title>
|
<process-title>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</process-title>
|
</process-title>
|
||||||
<el-form
|
<el-collapse-transition>
|
||||||
:model="qdform"
|
<el-form
|
||||||
class="label-input-form prc-content-border"
|
v-show="!foldFormFlag"
|
||||||
label-width="150px"
|
:model="qdform"
|
||||||
>
|
class="label-input-form prc-content-border"
|
||||||
<el-row :gutter="24">
|
label-width="150px"
|
||||||
<el-col :span="24">
|
>
|
||||||
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled">
|
<el-row :gutter="24">
|
||||||
<el-input
|
<el-col :span="24">
|
||||||
v-model="qdform.projectNumber"
|
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled">
|
||||||
placeholder="请输入项目编号"
|
<el-input
|
||||||
disabled
|
v-model="qdform.projectNumber"
|
||||||
clearable
|
placeholder="请输入项目编号"
|
||||||
></el-input>
|
disabled
|
||||||
</el-form-item>
|
clearable
|
||||||
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
|
></el-input>
|
||||||
<el-input
|
</el-form-item>
|
||||||
v-model="qdform.projectName"
|
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
|
||||||
placeholder="请输入项目名称"
|
<el-input
|
||||||
disabled
|
v-model="qdform.projectName"
|
||||||
clearable
|
placeholder="请输入项目名称"
|
||||||
></el-input>
|
disabled
|
||||||
</el-form-item>
|
clearable
|
||||||
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled">
|
></el-input>
|
||||||
<el-input
|
</el-form-item>
|
||||||
v-model="qdform.detailedListName"
|
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled">
|
||||||
placeholder="请输入清单名称"
|
<el-input
|
||||||
disabled
|
v-model="qdform.detailedListName"
|
||||||
clearable
|
placeholder="请输入清单名称"
|
||||||
></el-input>
|
disabled
|
||||||
</el-form-item>
|
clearable
|
||||||
<el-form-item label="确认人" prop="detailPeopleName" class="add-form-item form-item-disabled">
|
></el-input>
|
||||||
<el-input
|
</el-form-item>
|
||||||
v-model="qdform.detailPeopleName"
|
</el-col>
|
||||||
placeholder="请选择确认人"
|
</el-row>
|
||||||
clearable
|
</el-form>
|
||||||
@click.native="choiceZRRS"
|
</el-collapse-transition>
|
||||||
></el-input>
|
<el-button v-if="foldFormFlag === false" style="width: 100%" icon="el-icon-caret-top" @click="foldForm">隐藏基础信息
|
||||||
</el-form-item>
|
</el-button>
|
||||||
</el-col>
|
<el-button v-if="foldFormFlag === true" style="width: 100%" icon="el-icon-caret-bottom" @click="foldForm">
|
||||||
</el-row>
|
展开基础信息
|
||||||
</el-form>
|
</el-button>
|
||||||
|
</div>
|
||||||
<process-title style="margin-top:5px; margin-bottom: 5px">
|
<process-title style="margin-top:5px; margin-bottom: 5px">
|
||||||
<template slot="title">填写信息</template>
|
<template slot="title">填写信息</template>
|
||||||
</process-title>
|
</process-title>
|
||||||
@@ -136,7 +137,6 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<el-collapse accordion>
|
<el-collapse accordion>
|
||||||
<el-collapse-item title="回执说明">
|
<el-collapse-item title="回执说明">
|
||||||
@@ -247,22 +247,39 @@
|
|||||||
<el-option value="BUSINESS_STAND" label="企业标准库"></el-option>
|
<el-option value="BUSINESS_STAND" label="企业标准库"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准编号" class="search-item">
|
<el-form-item label="标准号/标准名称" class="search-item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="handleSelectForm.lawNumber"
|
v-model="handleSelectForm.lawNumber"
|
||||||
@change="lawNumberSearch"
|
@change="lawNumberSearch"
|
||||||
placeholder="根据标准编号查找"
|
placeholder="根据标准号/标准名称查找"
|
||||||
clearable
|
clearable
|
||||||
:maxlength="100"></el-input>
|
:maxlength="100"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="标准名称/政策名称" class="search-item">-->
|
<el-form-item label="是否纳入认证清单" class="search-item">
|
||||||
<!-- <el-input-->
|
<el-select
|
||||||
<!-- v-model="handleSelectForm.lawName"-->
|
v-model="handleSelectForm.isRelateAccess"
|
||||||
<!-- @change="lawNameSearch"-->
|
@change="isRelateAccessChange"
|
||||||
<!-- placeholder="根据标准名称/政策名称查找"-->
|
:popper-append-to-body="false"
|
||||||
<!-- clearable-->
|
placeholder="是否纳入认证清单">
|
||||||
<!-- :maxlength="100"></el-input>-->
|
<el-option value="0" label="否"></el-option>
|
||||||
<!-- </el-form-item>-->
|
<el-option value="1" label="是"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准状态" class="search-item">
|
||||||
|
<el-select
|
||||||
|
v-model="handleSelectForm.textStatus"
|
||||||
|
@change="isRelateAccessChange"
|
||||||
|
:popper-append-to-body="false"
|
||||||
|
placeholder="请选择标准状态">
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in textState"
|
||||||
|
:key="index"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
@@ -620,28 +637,6 @@
|
|||||||
:approval="true"
|
:approval="true"
|
||||||
>
|
>
|
||||||
</ProcessFooter>
|
</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
|
|
||||||
is-title="选择责任部门对接人"
|
|
||||||
:is-visible.sync="modalshowflag"
|
|
||||||
@checkedRole="checkedRole2"
|
|
||||||
:nodeList="nodeList2"
|
|
||||||
></Role-tree>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<Role-tree
|
<Role-tree
|
||||||
check-box
|
check-box
|
||||||
@@ -670,7 +665,10 @@ export default {
|
|||||||
return {
|
return {
|
||||||
lawInfoTableLoading: true,
|
lawInfoTableLoading: true,
|
||||||
lawInfoTable:[],
|
lawInfoTable:[],
|
||||||
|
textState: [],
|
||||||
handleSelectForm: {
|
handleSelectForm: {
|
||||||
|
isRelateAccess: '', //是否纳入认证清单
|
||||||
|
textStatus: '', //标准状态
|
||||||
standName: '', //标准名称
|
standName: '', //标准名称
|
||||||
numberName: '', //政策名称
|
numberName: '', //政策名称
|
||||||
lawsNumber: '', //政策编号
|
lawsNumber: '', //政策编号
|
||||||
@@ -688,6 +686,7 @@ export default {
|
|||||||
menuId: 'nomenu'
|
menuId: 'nomenu'
|
||||||
},
|
},
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
|
foldFormFlag: false,
|
||||||
// 调整处理人抽屉状态
|
// 调整处理人抽屉状态
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle:'',
|
drawerTitle:'',
|
||||||
@@ -704,7 +703,6 @@ export default {
|
|||||||
acceptShow: false,
|
acceptShow: false,
|
||||||
todoId: '',
|
todoId: '',
|
||||||
projectId: "",
|
projectId: "",
|
||||||
detailedId: "",
|
|
||||||
standModel: false,
|
standModel: false,
|
||||||
standSortOptions: [],
|
standSortOptions: [],
|
||||||
standList: [],
|
standList: [],
|
||||||
@@ -724,7 +722,6 @@ export default {
|
|||||||
},
|
},
|
||||||
//表单的数据
|
//表单的数据
|
||||||
qdform: {
|
qdform: {
|
||||||
detailPeople: "", //确认人
|
|
||||||
BZFlag: " ", //1审批通过 其他为驳回
|
BZFlag: " ", //1审批通过 其他为驳回
|
||||||
projectNumber: "", //项目编号
|
projectNumber: "", //项目编号
|
||||||
projectName: "", //项目名称
|
projectName: "", //项目名称
|
||||||
@@ -753,11 +750,16 @@ export default {
|
|||||||
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
||||||
this.setMap(res.data.WBZTCLASS);// 文本状态
|
this.setMap(res.data.WBZTCLASS);// 文本状态
|
||||||
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
||||||
|
this.textState = res.data.WBZTCLASS // 文本状态
|
||||||
this.showLocalProductData(this.getLocalPro);
|
this.showLocalProductData(this.getLocalPro);
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//折叠/展开基础信息方法
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
formatIssueDate(str) {
|
formatIssueDate(str) {
|
||||||
const momentDate = this.$moment(str)
|
const momentDate = this.$moment(str)
|
||||||
if (momentDate.isValid()) {
|
if (momentDate.isValid()) {
|
||||||
@@ -869,53 +871,21 @@ export default {
|
|||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if(item.form === undefined){
|
if(!item.form){
|
||||||
this.qdform = JSON.parse(JSON.stringify(item));
|
this.qdform = JSON.parse(JSON.stringify(item));
|
||||||
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;
|
||||||
//获取清单id 查询对应清单下的标准
|
this.dataList = item.dataList
|
||||||
this.detailedId = item.detailedListId;
|
|
||||||
this.getStandData();
|
|
||||||
}else{
|
}else{
|
||||||
this.qdform = item.form
|
this.qdform = JSON.parse(JSON.stringify(item.form));
|
||||||
this.dataList =item.form.dataList
|
this.qdform.prcNum = this.prcNum;
|
||||||
|
this.qdform.prcName = this.prcName;
|
||||||
|
this.qdform["id"] = item.id;
|
||||||
|
this.dataList = item.form.dataList
|
||||||
this.commentText = item.commentText
|
this.commentText = item.commentText
|
||||||
this.detailedId = item.form.detailedListId;
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
},
|
|
||||||
//查询清单下的标准
|
|
||||||
getStandData() {
|
|
||||||
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
|
|
||||||
id: this.detailedId,
|
|
||||||
page: 1,
|
|
||||||
Size: 100
|
|
||||||
}, {
|
|
||||||
_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(",");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.dataList.map(item => {
|
|
||||||
if(item.zrbm === '[]'){
|
|
||||||
item.zrbm = ''
|
|
||||||
}
|
|
||||||
this.$set(item, 'zccssrq', item.zccssrqgj)
|
|
||||||
this.$set(item, 'xcxssrq', item.xcxssrqgj)
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 接受按钮
|
// 接受按钮
|
||||||
@@ -956,28 +926,24 @@ export default {
|
|||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
this.$set(item, 'standId', item.id)
|
this.$set(item, 'standId', item.id)
|
||||||
})
|
})
|
||||||
if(this.qdform.detailPeople === undefined){
|
this.isSubmit = true;
|
||||||
this.$message.warning('请选择确认人')
|
this.qdform.commentText = this.commentText;
|
||||||
}else{
|
this.qdform.dataList = this.dataList
|
||||||
this.isSubmit = true;
|
const json = JSON.stringify(this.qdform);
|
||||||
this.qdform.commentText = this.commentText;
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
this.qdform.dataList = this.dataList
|
taskIds: this.taskIds,
|
||||||
const json = JSON.stringify(this.qdform);
|
userId: this.userId,
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
json: json
|
||||||
taskIds: this.taskIds,
|
}, {
|
||||||
userId: this.userId,
|
_this: this
|
||||||
json: json
|
}, res => {
|
||||||
}, {
|
if (res.success) {
|
||||||
_this: this
|
this.$message.success(res.message);
|
||||||
}, res => {
|
this.$router.push("/processCenter");
|
||||||
if (res.success) {
|
}
|
||||||
this.$message.success(res.message);
|
this.isSubmit = false;
|
||||||
this.$router.push("/processCenter");
|
}, e => {
|
||||||
}
|
});
|
||||||
this.isSubmit = false;
|
|
||||||
}, e => {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
addList() {
|
addList() {
|
||||||
this.searchLawBtn()
|
this.searchLawBtn()
|
||||||
@@ -1016,27 +982,6 @@ export default {
|
|||||||
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;
|
||||||
},
|
},
|
||||||
@@ -1186,6 +1131,12 @@ export default {
|
|||||||
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
this.searchLawBtn()
|
this.searchLawBtn()
|
||||||
},
|
},
|
||||||
|
isRelateAccessChange(){
|
||||||
|
this.handleSelectForm.page = 1
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
//根据标准编号的查询
|
//根据标准编号的查询
|
||||||
lawNumberSearch() {
|
lawNumberSearch() {
|
||||||
this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
|
this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
|
||||||
|
|||||||
@@ -1,162 +1,142 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="xmqdqr-step2">
|
<div class="xmqdqr-step3">
|
||||||
<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>
|
||||||
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-show="active === '1'">
|
<div class="content" v-show="active === '1'">
|
||||||
<div style="flex: auto; overflow: auto">
|
<div style="overflow: auto">
|
||||||
<process-title>
|
<process-title>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</process-title>
|
</process-title>
|
||||||
<el-form
|
<el-collapse-transition>
|
||||||
:model="qdform"
|
<el-form
|
||||||
class="label-input-form prc-content-border"
|
v-show="!foldFormFlag"
|
||||||
label-width="150px"
|
:model="qdform"
|
||||||
>
|
class="label-input-form prc-content-border"
|
||||||
<el-row :gutter="24">
|
label-width="150px"
|
||||||
<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="standSelection"
|
|
||||||
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">
|
<el-row :gutter="24">
|
||||||
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort
|
<el-col :span="24">
|
||||||
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled">
|
||||||
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
|
<el-input
|
||||||
{{ scope.row.standNumber }}</a>
|
v-model="qdform.projectNumber"
|
||||||
</template>
|
placeholder="请输入项目编号"
|
||||||
</el-table-column>
|
disabled
|
||||||
<el-table-column
|
clearable
|
||||||
prop="standName"
|
></el-input>
|
||||||
align="center"
|
</el-form-item>
|
||||||
min-width="300"
|
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
|
||||||
label="中文名称"
|
<el-input
|
||||||
>
|
v-model="qdform.projectName"
|
||||||
<template slot-scope="scope">
|
placeholder="请输入项目名称"
|
||||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
disabled
|
||||||
</template>
|
clearable
|
||||||
</el-table-column>
|
></el-input>
|
||||||
<el-table-column
|
</el-form-item>
|
||||||
prop="standEnName"
|
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled">
|
||||||
label="英文名称"
|
<el-input
|
||||||
min-width="300"
|
v-model="qdform.detailedListName"
|
||||||
align="center"
|
placeholder="请输入清单名称"
|
||||||
>
|
disabled
|
||||||
<template slot-scope="scope">
|
clearable
|
||||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
|
></el-input>
|
||||||
</template>
|
</el-form-item>
|
||||||
</el-table-column>
|
</el-col>
|
||||||
<el-table-column
|
</el-row>
|
||||||
prop="ssrq"
|
</el-form>
|
||||||
width="190px"
|
</el-collapse-transition>
|
||||||
align="center"
|
<el-button v-if="foldFormFlag === false" style="width: 100%" icon="el-icon-caret-top" @click="foldForm">隐藏基础信息
|
||||||
label="标准实施日期">
|
</el-button>
|
||||||
</el-table-column>
|
<el-button v-if="foldFormFlag === true" style="width: 100%" icon="el-icon-caret-bottom" @click="foldForm">
|
||||||
<el-table-column
|
展开基础信息
|
||||||
prop="xcxssrq"
|
</el-button>
|
||||||
width="190px"
|
|
||||||
align="center"
|
|
||||||
label="新车型实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zccssrq"
|
|
||||||
align="center"
|
|
||||||
width="190px"
|
|
||||||
label="在产车实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zrbm"
|
|
||||||
label="责任部门"
|
|
||||||
align="center"
|
|
||||||
width="180px"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="involve"
|
|
||||||
width="160px"
|
|
||||||
align="center"
|
|
||||||
label="标准是否涉及">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-select v-model="scope.row.involve"
|
|
||||||
placeholder="请选择涉不涉及"
|
|
||||||
max-length="30"
|
|
||||||
clearable>
|
|
||||||
<el-option value="involve" label="涉及"></el-option>
|
|
||||||
<el-option value="noInvolve" label="不涉及"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="remarks"
|
|
||||||
align="center"
|
|
||||||
width="180"
|
|
||||||
label="备注">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-input
|
|
||||||
v-model.trim="dataList[scope.$index].remarks"
|
|
||||||
placeholder="请输入备注"
|
|
||||||
>
|
|
||||||
</el-input>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
</div>
|
||||||
|
<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="standSelection"
|
||||||
|
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"
|
||||||
|
min-width="300"
|
||||||
|
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="standEnName"
|
||||||
|
label="英文名称"
|
||||||
|
min-width="300"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<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"
|
||||||
|
label="标准实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="xcxssrq"
|
||||||
|
width="190px"
|
||||||
|
align="center"
|
||||||
|
label="新车型实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zccssrq"
|
||||||
|
align="center"
|
||||||
|
width="190px"
|
||||||
|
label="在产车实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zrbm"
|
||||||
|
label="责任部门"
|
||||||
|
align="center"
|
||||||
|
width="180px"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
<div>
|
<div>
|
||||||
<el-collapse accordion>
|
<el-collapse accordion>
|
||||||
<el-collapse-item title="回执说明">
|
<el-collapse-item title="回执说明">
|
||||||
@@ -267,14 +247,39 @@
|
|||||||
<el-option value="BUSINESS_STAND" label="企业标准库"></el-option>
|
<el-option value="BUSINESS_STAND" label="企业标准库"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准编号" class="search-item">
|
<el-form-item label="标准号/标准名称" class="search-item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="handleSelectForm.lawNumber"
|
v-model="handleSelectForm.lawNumber"
|
||||||
@change="lawNumberSearch"
|
@change="lawNumberSearch"
|
||||||
placeholder="根据标准编号查找"
|
placeholder="根据标准号/标准名称查找"
|
||||||
clearable
|
clearable
|
||||||
:maxlength="100"></el-input>
|
:maxlength="100"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="是否纳入认证清单" class="search-item">
|
||||||
|
<el-select
|
||||||
|
v-model="handleSelectForm.isRelateAccess"
|
||||||
|
@change="isRelateAccessChange"
|
||||||
|
:popper-append-to-body="false"
|
||||||
|
placeholder="是否纳入认证清单">
|
||||||
|
<el-option value="0" label="否"></el-option>
|
||||||
|
<el-option value="1" label="是"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准状态" class="search-item">
|
||||||
|
<el-select
|
||||||
|
v-model="handleSelectForm.textStatus"
|
||||||
|
@change="isRelateAccessChange"
|
||||||
|
:popper-append-to-body="false"
|
||||||
|
placeholder="请选择标准状态">
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in textState"
|
||||||
|
:key="index"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
@@ -614,7 +619,7 @@
|
|||||||
@pageChange="handleSelectPageChange"
|
@pageChange="handleSelectPageChange"
|
||||||
@pageSizeChange="handleSelectPageSizeChange"></pagination>
|
@pageSizeChange="handleSelectPageSizeChange"></pagination>
|
||||||
<div slot="footer" class="demo-drawer-footer">
|
<div slot="footer" class="demo-drawer-footer">
|
||||||
<el-button class="common-button-default" size="mini" @click="standModel = false">取消</el-button>
|
<el-button class="common-button-default" size="mini" @click="standModel = false">取消</el-button>
|
||||||
<el-button type="primary" size="mini" class="common-button-primary" @click="handleSelectConfirm" v-show="lawInfoTableLoading === false">确定</el-button>
|
<el-button type="primary" size="mini" class="common-button-primary" @click="handleSelectConfirm" v-show="lawInfoTableLoading === false">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -632,21 +637,6 @@
|
|||||||
:approval="true"
|
:approval="true"
|
||||||
>
|
>
|
||||||
</ProcessFooter>
|
</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
|
<Role-tree
|
||||||
check-box
|
check-box
|
||||||
@@ -675,24 +665,28 @@ export default {
|
|||||||
return {
|
return {
|
||||||
lawInfoTableLoading: true,
|
lawInfoTableLoading: true,
|
||||||
lawInfoTable:[],
|
lawInfoTable:[],
|
||||||
|
textState: [],
|
||||||
handleSelectForm: {
|
handleSelectForm: {
|
||||||
|
isRelateAccess: '', //是否纳入认证清单
|
||||||
|
textStatus: '', //标准状态
|
||||||
standName: '', //标准名称
|
standName: '', //标准名称
|
||||||
numberName: '', //政策名称
|
numberName: '', //政策名称
|
||||||
lawsNumber: '', //政策编号
|
lawsNumber: '', //政策编号
|
||||||
standNumber: '', //标准编号
|
standNumber: '', //标准编号
|
||||||
standCode: '', //企标编号
|
standCode: '', //企标编号
|
||||||
dataSource: 'INLAND',
|
dataSource: 'INLAND',
|
||||||
|
standType: 'INLAND',
|
||||||
lawNumber: '', // 标准编号/政策编号
|
lawNumber: '', // 标准编号/政策编号
|
||||||
lawName: '', // 标准名称/政策名称
|
lawName: '', // 标准名称/政策名称
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
standType: 'INLAND',
|
|
||||||
quoteIdList: '',
|
quoteIdList: '',
|
||||||
validFlag: '0',
|
validFlag: '0',
|
||||||
menuId: 'nomenu'
|
menuId: 'nomenu'
|
||||||
},
|
},
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
|
foldFormFlag: false,
|
||||||
// 调整处理人抽屉状态
|
// 调整处理人抽屉状态
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle:'',
|
drawerTitle:'',
|
||||||
@@ -700,6 +694,7 @@ export default {
|
|||||||
nodeList: [],
|
nodeList: [],
|
||||||
nodeList2: [],
|
nodeList2: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
|
modalshowflag: false,
|
||||||
// 当前流程类型(1待办/2已办)
|
// 当前流程类型(1待办/2已办)
|
||||||
processType: 1,
|
processType: 1,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
@@ -708,7 +703,6 @@ export default {
|
|||||||
acceptShow: false,
|
acceptShow: false,
|
||||||
todoId: '',
|
todoId: '',
|
||||||
projectId: "",
|
projectId: "",
|
||||||
detailedId: "",
|
|
||||||
standModel: false,
|
standModel: false,
|
||||||
standSortOptions: [],
|
standSortOptions: [],
|
||||||
standList: [],
|
standList: [],
|
||||||
@@ -756,11 +750,16 @@ export default {
|
|||||||
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
||||||
this.setMap(res.data.WBZTCLASS);// 文本状态
|
this.setMap(res.data.WBZTCLASS);// 文本状态
|
||||||
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
||||||
|
this.textState = res.data.WBZTCLASS // 文本状态
|
||||||
this.showLocalProductData(this.getLocalPro);
|
this.showLocalProductData(this.getLocalPro);
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//折叠/展开基础信息方法
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
formatIssueDate(str) {
|
formatIssueDate(str) {
|
||||||
const momentDate = this.$moment(str)
|
const momentDate = this.$moment(str)
|
||||||
if (momentDate.isValid()) {
|
if (momentDate.isValid()) {
|
||||||
@@ -872,53 +871,21 @@ export default {
|
|||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if(item.form === undefined){
|
if(!item.form){
|
||||||
this.qdform = JSON.parse(JSON.stringify(item));
|
this.qdform = JSON.parse(JSON.stringify(item));
|
||||||
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.dataList = item.dataList
|
this.dataList = item.dataList
|
||||||
this.dataList.forEach(item => {
|
|
||||||
this.$set(item, 'involve', 'involve')
|
|
||||||
this.$set(item, 'remarks', '')
|
|
||||||
})
|
|
||||||
// this.projectId = item.projectId;
|
|
||||||
// //获取清单id 查询对应清单下的标准
|
|
||||||
// this.detailedId = item.detailedListId;
|
|
||||||
// this.getStandData();
|
|
||||||
}else{
|
}else{
|
||||||
this.qdform = item.form
|
this.qdform = JSON.parse(JSON.stringify(item.form));
|
||||||
this.dataList =item.form.dataList
|
this.qdform.prcNum = this.prcNum;
|
||||||
|
this.qdform.prcName = this.prcName;
|
||||||
|
this.qdform["id"] = item.id;
|
||||||
|
this.dataList = item.form.dataList
|
||||||
this.commentText = item.commentText
|
this.commentText = item.commentText
|
||||||
this.detailedId = item.form.detailedListId;
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
},
|
|
||||||
//查询清单下的标准
|
|
||||||
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(",");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.dataList.map(item => {
|
|
||||||
if(item.zrbm === '[]'){
|
|
||||||
item.zrbm = ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 接受按钮
|
// 接受按钮
|
||||||
@@ -956,38 +923,27 @@ export default {
|
|||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let comFlag = 0
|
this.dataList.forEach(item => {
|
||||||
this.dataList.map(item => {
|
this.$set(item, 'standId', item.id)
|
||||||
if(item.involve === 'noInvolve' && item.remarks === ''){
|
|
||||||
comFlag++
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
if(comFlag > 0){
|
this.isSubmit = true;
|
||||||
this.$message.warning('请填写不涉及的备注信息')
|
this.qdform.commentText = this.commentText;
|
||||||
}else{
|
this.qdform.dataList = this.dataList
|
||||||
this.dataList.forEach(item => {
|
const json = JSON.stringify(this.qdform);
|
||||||
this.$set(item, 'standId', item.id)
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
})
|
taskIds: this.taskIds,
|
||||||
this.isSubmit = true;
|
userId: this.userId,
|
||||||
this.qdform.currentPerson = this.$store.getters.userInfo.userName;
|
json: json
|
||||||
this.qdform.commentText = this.commentText;
|
}, {
|
||||||
this.qdform.dataList = this.dataList
|
_this: this
|
||||||
const json = JSON.stringify(this.qdform);
|
}, res => {
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
if (res.success) {
|
||||||
taskIds: this.taskIds,
|
this.$message.success(res.message);
|
||||||
userId: this.userId,
|
this.$router.push("/processCenter");
|
||||||
json: json
|
}
|
||||||
}, {
|
this.isSubmit = false;
|
||||||
_this: this
|
}, e => {
|
||||||
}, res => {
|
});
|
||||||
if (res.success) {
|
|
||||||
this.$message.success(res.message);
|
|
||||||
this.$router.push("/processCenter");
|
|
||||||
}
|
|
||||||
this.isSubmit = false;
|
|
||||||
}, e => {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
addList() {
|
addList() {
|
||||||
this.searchLawBtn()
|
this.searchLawBtn()
|
||||||
@@ -1007,7 +963,7 @@ export default {
|
|||||||
this.projectStand.map(item => {
|
this.projectStand.map(item => {
|
||||||
let index;
|
let index;
|
||||||
index = this.dataList.findIndex(items => {
|
index = this.dataList.findIndex(items => {
|
||||||
return items.id === item.id;
|
return items.id === item.id;
|
||||||
});
|
});
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
this.dataList.splice(index, 1);
|
this.dataList.splice(index, 1);
|
||||||
@@ -1030,34 +986,34 @@ export default {
|
|||||||
this.standModel = false;
|
this.standModel = false;
|
||||||
},
|
},
|
||||||
//添加标准带入事件
|
//添加标准带入事件
|
||||||
// okStand() {
|
okStand() {
|
||||||
// if(this.standList.length < 1){
|
if(this.standList.length < 1){
|
||||||
// this.$message.warning('请至少选择一条数据进行添加')
|
this.$message.warning('请至少选择一条数据进行添加')
|
||||||
// }else{
|
}else{
|
||||||
// this.standList.forEach(item =>{
|
this.standList.forEach(item =>{
|
||||||
// if(item.ssrq === "-"){
|
if(item.ssrq === "-"){
|
||||||
// item.ssrq = ''
|
item.ssrq = ''
|
||||||
// }
|
}
|
||||||
// if(item.zrbm === '[]'){
|
if(item.zrbm === '[]'){
|
||||||
// item.zrbm =''
|
item.zrbm =''
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// this.standList.map(item => {
|
this.standList.map(item => {
|
||||||
// let addIndex
|
let addIndex
|
||||||
// addIndex = this.dataList.findIndex(items =>{
|
addIndex = this.dataList.findIndex(items =>{
|
||||||
// return items.id === item.id
|
return items.id === item.id
|
||||||
// })
|
})
|
||||||
// if(addIndex > -1){
|
if(addIndex > -1){
|
||||||
// this.$message.warning('请勿重复添加数据')
|
this.$message.warning('请勿重复添加数据')
|
||||||
// }else{
|
}else{
|
||||||
// this.dataList.push(item)
|
this.dataList.push(item)
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
//
|
|
||||||
// this.standModel = false
|
this.standModel = false
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// },
|
},
|
||||||
//手动查找的清空按钮
|
//手动查找的清空按钮
|
||||||
clearLawBtn(){
|
clearLawBtn(){
|
||||||
this.lawInfoTableLoading = true
|
this.lawInfoTableLoading = true
|
||||||
@@ -1073,6 +1029,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//添加标准的查询按钮
|
//添加标准的查询按钮
|
||||||
searchLawBtn(){
|
searchLawBtn(){
|
||||||
|
console.log(this.handleSelectForm);
|
||||||
this.lawInfoTableLoading = true
|
this.lawInfoTableLoading = true
|
||||||
if (this.handleSelectForm.dataSource === 'INLAND'){
|
if (this.handleSelectForm.dataSource === 'INLAND'){
|
||||||
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{
|
||||||
@@ -1142,7 +1099,6 @@ export default {
|
|||||||
this.$message.warning('请先选择标准/政策来源')
|
this.$message.warning('请先选择标准/政策来源')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//添加标准带入事件
|
|
||||||
handleSelectConfirm(){
|
handleSelectConfirm(){
|
||||||
if(this.handleSelectTableList.length < 1){
|
if(this.handleSelectTableList.length < 1){
|
||||||
this.$message.warning('请至少选择一条数据进行添加')
|
this.$message.warning('请至少选择一条数据进行添加')
|
||||||
@@ -1156,8 +1112,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.handleSelectTableList.map(item => {
|
this.handleSelectTableList.map(item => {
|
||||||
this.$set(item, 'involve', 'involve')
|
|
||||||
this.$set(item, 'remarks', '')
|
|
||||||
let addIndex
|
let addIndex
|
||||||
addIndex = this.dataList.findIndex(items =>{
|
addIndex = this.dataList.findIndex(items =>{
|
||||||
return items.id === item.id
|
return items.id === item.id
|
||||||
@@ -1177,6 +1131,12 @@ export default {
|
|||||||
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
this.searchLawBtn()
|
this.searchLawBtn()
|
||||||
},
|
},
|
||||||
|
isRelateAccessChange(){
|
||||||
|
this.handleSelectForm.page = 1
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
//根据标准编号的查询
|
//根据标准编号的查询
|
||||||
lawNumberSearch() {
|
lawNumberSearch() {
|
||||||
this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
|
this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
|
||||||
@@ -1206,7 +1166,7 @@ export default {
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
|
||||||
.xmqdqr-step2 {
|
.xmqdqr-step3 {
|
||||||
/deep/ .el-drawer__container {
|
/deep/ .el-drawer__container {
|
||||||
.prc-content-border {
|
.prc-content-border {
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@@ -1,146 +1,136 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="xmqdqr-step2">
|
<div class="xmqdqr-step4">
|
||||||
<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>
|
||||||
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-show="active === '1'">
|
<div class="content" v-show="active === '1'">
|
||||||
<div style="flex: auto; overflow: auto">
|
<div style="overflow: auto">
|
||||||
<process-title>
|
<process-title>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</process-title>
|
</process-title>
|
||||||
<el-form
|
<el-collapse-transition>
|
||||||
:model="qdform"
|
<el-form
|
||||||
class="label-input-form prc-content-border"
|
v-show="!foldFormFlag"
|
||||||
label-width="150px"
|
:model="qdform"
|
||||||
>
|
class="label-input-form prc-content-border"
|
||||||
<el-row :gutter="24">
|
label-width="150px"
|
||||||
<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="standSelection"
|
|
||||||
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">
|
<el-row :gutter="24">
|
||||||
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort
|
<el-col :span="24">
|
||||||
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled">
|
||||||
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
|
<el-input
|
||||||
{{ scope.row.standNumber }}</a>
|
v-model="qdform.projectNumber"
|
||||||
</template>
|
placeholder="请输入项目编号"
|
||||||
</el-table-column>
|
disabled
|
||||||
<el-table-column
|
clearable
|
||||||
prop="standName"
|
></el-input>
|
||||||
align="center"
|
</el-form-item>
|
||||||
min-width="300"
|
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
|
||||||
label="中文名称"
|
<el-input
|
||||||
>
|
v-model="qdform.projectName"
|
||||||
<template slot-scope="scope">
|
placeholder="请输入项目名称"
|
||||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
disabled
|
||||||
</template>
|
clearable
|
||||||
</el-table-column>
|
></el-input>
|
||||||
<el-table-column
|
</el-form-item>
|
||||||
prop="standEnName"
|
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled">
|
||||||
label="英文名称"
|
<el-input
|
||||||
min-width="300"
|
v-model="qdform.detailedListName"
|
||||||
align="center"
|
placeholder="请输入清单名称"
|
||||||
>
|
disabled
|
||||||
<template slot-scope="scope">
|
clearable
|
||||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
|
></el-input>
|
||||||
</template>
|
</el-form-item>
|
||||||
</el-table-column>
|
</el-col>
|
||||||
<el-table-column
|
</el-row>
|
||||||
prop="ssrq"
|
</el-form>
|
||||||
width="190px"
|
</el-collapse-transition>
|
||||||
align="center"
|
<el-button v-if="foldFormFlag === false" style="width: 100%" icon="el-icon-caret-top" @click="foldForm">隐藏基础信息
|
||||||
label="标准实施日期">
|
</el-button>
|
||||||
</el-table-column>
|
<el-button v-if="foldFormFlag === true" style="width: 100%" icon="el-icon-caret-bottom" @click="foldForm">
|
||||||
<el-table-column
|
展开基础信息
|
||||||
prop="xcxssrq"
|
</el-button>
|
||||||
width="190px"
|
|
||||||
align="center"
|
|
||||||
label="新车型实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zccssrq"
|
|
||||||
align="center"
|
|
||||||
width="190px"
|
|
||||||
label="在产车实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zrbm"
|
|
||||||
label="责任部门"
|
|
||||||
align="center"
|
|
||||||
width="180px"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="involve"
|
|
||||||
width="160px"
|
|
||||||
align="center"
|
|
||||||
label="标准是否涉及">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="remarks"
|
|
||||||
align="center"
|
|
||||||
width="180"
|
|
||||||
label="备注">
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
</div>
|
||||||
|
<process-title style="margin-top:5px; margin-bottom: 5px">
|
||||||
|
<template slot="title">填写信息</template>
|
||||||
|
</process-title>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
ref="standSelection"
|
||||||
|
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"
|
||||||
|
min-width="300"
|
||||||
|
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="standEnName"
|
||||||
|
label="英文名称"
|
||||||
|
min-width="300"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<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"
|
||||||
|
label="标准实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="xcxssrq"
|
||||||
|
width="190px"
|
||||||
|
align="center"
|
||||||
|
label="新车型实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zccssrq"
|
||||||
|
align="center"
|
||||||
|
width="190px"
|
||||||
|
label="在产车实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="zrbm"
|
||||||
|
label="责任部门"
|
||||||
|
align="center"
|
||||||
|
width="180px"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
<div>
|
<div>
|
||||||
<el-collapse accordion>
|
<el-collapse accordion>
|
||||||
<el-collapse-item title="回执说明">
|
<el-collapse-item title="回执说明">
|
||||||
@@ -251,22 +241,39 @@
|
|||||||
<el-option value="BUSINESS_STAND" label="企业标准库"></el-option>
|
<el-option value="BUSINESS_STAND" label="企业标准库"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准编号" class="search-item">
|
<el-form-item label="标准号/标准名称" class="search-item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="handleSelectForm.lawNumber"
|
v-model="handleSelectForm.lawNumber"
|
||||||
@change="lawNumberSearch"
|
@change="lawNumberSearch"
|
||||||
placeholder="根据标准编号查找"
|
placeholder="根据标准号/标准名称查找"
|
||||||
clearable
|
clearable
|
||||||
:maxlength="100"></el-input>
|
:maxlength="100"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="标准名称/政策名称" class="search-item">-->
|
<el-form-item label="是否纳入认证清单" class="search-item">
|
||||||
<!-- <el-input-->
|
<el-select
|
||||||
<!-- v-model="handleSelectForm.lawName"-->
|
v-model="handleSelectForm.isRelateAccess"
|
||||||
<!-- @change="lawNameSearch"-->
|
@change="isRelateAccessChange"
|
||||||
<!-- placeholder="根据标准名称/政策名称查找"-->
|
:popper-append-to-body="false"
|
||||||
<!-- clearable-->
|
placeholder="是否纳入认证清单">
|
||||||
<!-- :maxlength="100"></el-input>-->
|
<el-option value="0" label="否"></el-option>
|
||||||
<!-- </el-form-item>-->
|
<el-option value="1" label="是"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准状态" class="search-item">
|
||||||
|
<el-select
|
||||||
|
v-model="handleSelectForm.textStatus"
|
||||||
|
@change="isRelateAccessChange"
|
||||||
|
:popper-append-to-body="false"
|
||||||
|
placeholder="请选择标准状态">
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in textState"
|
||||||
|
:key="index"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
@@ -606,13 +613,12 @@
|
|||||||
@pageChange="handleSelectPageChange"
|
@pageChange="handleSelectPageChange"
|
||||||
@pageSizeChange="handleSelectPageSizeChange"></pagination>
|
@pageSizeChange="handleSelectPageSizeChange"></pagination>
|
||||||
<div slot="footer" class="demo-drawer-footer">
|
<div slot="footer" class="demo-drawer-footer">
|
||||||
<el-button class="common-button-default" size="mini" @click="standModel = false">取消</el-button>
|
<el-button class="common-button-default" size="mini" @click="standModel = false">取消</el-button>
|
||||||
<el-button type="primary" size="mini" class="common-button-primary" @click="handleSelectConfirm" v-show="lawInfoTableLoading === false">确定</el-button>
|
<el-button type="primary" size="mini" class="common-button-primary" @click="handleSelectConfirm" v-show="lawInfoTableLoading === false">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-save
|
|
||||||
show-transfer
|
show-transfer
|
||||||
show-affirm
|
show-affirm
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
@@ -620,25 +626,9 @@
|
|||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@save="handleSave"
|
|
||||||
:approval="true"
|
:approval="true"
|
||||||
>
|
>
|
||||||
</ProcessFooter>
|
</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
|
<Role-tree
|
||||||
check-box
|
check-box
|
||||||
@@ -667,24 +657,28 @@ export default {
|
|||||||
return {
|
return {
|
||||||
lawInfoTableLoading: true,
|
lawInfoTableLoading: true,
|
||||||
lawInfoTable:[],
|
lawInfoTable:[],
|
||||||
|
textState: [],
|
||||||
handleSelectForm: {
|
handleSelectForm: {
|
||||||
|
isRelateAccess: '', //是否纳入认证清单
|
||||||
|
textStatus: '', //标准状态
|
||||||
standName: '', //标准名称
|
standName: '', //标准名称
|
||||||
numberName: '', //政策名称
|
numberName: '', //政策名称
|
||||||
lawsNumber: '', //政策编号
|
lawsNumber: '', //政策编号
|
||||||
standNumber: '', //标准编号
|
standNumber: '', //标准编号
|
||||||
standCode: '', //企标编号
|
standCode: '', //企标编号
|
||||||
dataSource: 'INLAND',
|
dataSource: 'INLAND',
|
||||||
|
standType: 'INLAND',
|
||||||
lawNumber: '', // 标准编号/政策编号
|
lawNumber: '', // 标准编号/政策编号
|
||||||
lawName: '', // 标准名称/政策名称
|
lawName: '', // 标准名称/政策名称
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
standType: 'INLAND',
|
|
||||||
quoteIdList: '',
|
quoteIdList: '',
|
||||||
validFlag: '0',
|
validFlag: '0',
|
||||||
menuId: 'nomenu'
|
menuId: 'nomenu'
|
||||||
},
|
},
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
|
foldFormFlag: false,
|
||||||
// 调整处理人抽屉状态
|
// 调整处理人抽屉状态
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle:'',
|
drawerTitle:'',
|
||||||
@@ -692,6 +686,7 @@ export default {
|
|||||||
nodeList: [],
|
nodeList: [],
|
||||||
nodeList2: [],
|
nodeList2: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
|
modalshowflag: false,
|
||||||
// 当前流程类型(1待办/2已办)
|
// 当前流程类型(1待办/2已办)
|
||||||
processType: 1,
|
processType: 1,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
@@ -700,7 +695,6 @@ export default {
|
|||||||
acceptShow: false,
|
acceptShow: false,
|
||||||
todoId: '',
|
todoId: '',
|
||||||
projectId: "",
|
projectId: "",
|
||||||
detailedId: "",
|
|
||||||
standModel: false,
|
standModel: false,
|
||||||
standSortOptions: [],
|
standSortOptions: [],
|
||||||
standList: [],
|
standList: [],
|
||||||
@@ -748,11 +742,16 @@ export default {
|
|||||||
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
||||||
this.setMap(res.data.WBZTCLASS);// 文本状态
|
this.setMap(res.data.WBZTCLASS);// 文本状态
|
||||||
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
||||||
|
this.textState = res.data.WBZTCLASS // 文本状态
|
||||||
this.showLocalProductData(this.getLocalPro);
|
this.showLocalProductData(this.getLocalPro);
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//折叠/展开基础信息方法
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
formatIssueDate(str) {
|
formatIssueDate(str) {
|
||||||
const momentDate = this.$moment(str)
|
const momentDate = this.$moment(str)
|
||||||
if (momentDate.isValid()) {
|
if (momentDate.isValid()) {
|
||||||
@@ -862,57 +861,23 @@ export default {
|
|||||||
},
|
},
|
||||||
//动态表单读取
|
//动态表单读取
|
||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if(item.form === undefined){
|
if(!item.form){
|
||||||
this.qdform = JSON.parse(JSON.stringify(item));
|
this.qdform = JSON.parse(JSON.stringify(item));
|
||||||
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.dataList = item.dataList
|
this.dataList = item.dataList
|
||||||
this.dataList.forEach(item => {
|
|
||||||
if(item.involve === 'involve'){
|
|
||||||
item.involve = '涉及'
|
|
||||||
}else if(item.involve === 'noInvolve'){
|
|
||||||
item.involve = '不涉及'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
// this.projectId = item.projectId;
|
|
||||||
// //获取清单id 查询对应清单下的标准
|
|
||||||
// this.detailedId = item.detailedListId;
|
|
||||||
// this.getStandData();
|
|
||||||
}else{
|
}else{
|
||||||
this.qdform = item.form
|
this.qdform = JSON.parse(JSON.stringify(item.form));
|
||||||
this.dataList =item.form.dataList
|
this.qdform.prcNum = this.prcNum;
|
||||||
|
this.qdform.prcName = this.prcName;
|
||||||
|
this.qdform["id"] = item.id;
|
||||||
|
this.dataList = item.form.dataList
|
||||||
this.commentText = item.commentText
|
this.commentText = item.commentText
|
||||||
this.detailedId = item.form.detailedListId;
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
},
|
|
||||||
//查询清单下的标准
|
|
||||||
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(",");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.dataList.map(item => {
|
|
||||||
if(item.zrbm === '[]'){
|
|
||||||
item.zrbm = ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 接受按钮
|
// 接受按钮
|
||||||
@@ -928,66 +893,29 @@ export default {
|
|||||||
this.isSubmit = false
|
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;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleRemark(){
|
|
||||||
this.dataList.map(item => {
|
|
||||||
if(item.involve === 'noInvolve'){
|
|
||||||
comFlag
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let comFlag = 0
|
this.dataList.forEach(item => {
|
||||||
this.dataList.map(item => {
|
this.$set(item, 'standId', item.id)
|
||||||
if(item.involve === 'noInvolve' && item.remarks === ''){
|
|
||||||
comFlag++
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
if(comFlag > 0){
|
this.isSubmit = true;
|
||||||
this.$message.warning('请填写不涉及的备注信息')
|
this.qdform.commentText = this.commentText;
|
||||||
}else{
|
this.qdform.dataList = this.dataList
|
||||||
this.dataList.forEach(item => {
|
const json = JSON.stringify(this.qdform);
|
||||||
this.$set(item, 'standId', item.id)
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
})
|
taskIds: this.taskIds,
|
||||||
this.isSubmit = true;
|
userId: this.userId,
|
||||||
this.qdform.commentText = this.commentText;
|
json: json
|
||||||
this.qdform.dataList = this.dataList
|
}, {
|
||||||
const json = JSON.stringify(this.qdform);
|
_this: this
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
}, res => {
|
||||||
taskIds: this.taskIds,
|
if (res.success) {
|
||||||
userId: this.userId,
|
this.$message.success(res.message);
|
||||||
json: json
|
this.$router.push("/processCenter");
|
||||||
}, {
|
}
|
||||||
_this: this
|
this.isSubmit = false;
|
||||||
}, res => {
|
}, e => {
|
||||||
if (res.success) {
|
});
|
||||||
this.$message.success(res.message);
|
|
||||||
this.$router.push("/processCenter");
|
|
||||||
}
|
|
||||||
this.isSubmit = false;
|
|
||||||
}, e => {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
addList() {
|
addList() {
|
||||||
this.searchLawBtn()
|
this.searchLawBtn()
|
||||||
@@ -1007,7 +935,7 @@ export default {
|
|||||||
this.projectStand.map(item => {
|
this.projectStand.map(item => {
|
||||||
let index;
|
let index;
|
||||||
index = this.dataList.findIndex(items => {
|
index = this.dataList.findIndex(items => {
|
||||||
return items.id === item.id;
|
return items.id === item.id;
|
||||||
});
|
});
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
this.dataList.splice(index, 1);
|
this.dataList.splice(index, 1);
|
||||||
@@ -1073,6 +1001,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//添加标准的查询按钮
|
//添加标准的查询按钮
|
||||||
searchLawBtn(){
|
searchLawBtn(){
|
||||||
|
console.log(this.handleSelectForm);
|
||||||
this.lawInfoTableLoading = true
|
this.lawInfoTableLoading = true
|
||||||
if (this.handleSelectForm.dataSource === 'INLAND'){
|
if (this.handleSelectForm.dataSource === 'INLAND'){
|
||||||
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{
|
||||||
@@ -1155,8 +1084,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.handleSelectTableList.map(item => {
|
this.handleSelectTableList.map(item => {
|
||||||
this.$set(item, 'involve', '涉及')
|
|
||||||
this.$set(item, 'remarks', '')
|
|
||||||
let addIndex
|
let addIndex
|
||||||
addIndex = this.dataList.findIndex(items =>{
|
addIndex = this.dataList.findIndex(items =>{
|
||||||
return items.id === item.id
|
return items.id === item.id
|
||||||
@@ -1176,6 +1103,12 @@ export default {
|
|||||||
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
this.searchLawBtn()
|
this.searchLawBtn()
|
||||||
},
|
},
|
||||||
|
isRelateAccessChange(){
|
||||||
|
this.handleSelectForm.page = 1
|
||||||
|
this.lawInfoTableLoading = true
|
||||||
|
this.handleSelectForm.standType = this.handleSelectForm.dataSource
|
||||||
|
this.searchLawBtn()
|
||||||
|
},
|
||||||
//根据标准编号的查询
|
//根据标准编号的查询
|
||||||
lawNumberSearch() {
|
lawNumberSearch() {
|
||||||
this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
|
this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber
|
||||||
@@ -1205,7 +1138,7 @@ export default {
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
|
||||||
.xmqdqr-step2 {
|
.xmqdqr-step4 {
|
||||||
/deep/ .el-drawer__container {
|
/deep/ .el-drawer__container {
|
||||||
.prc-content-border {
|
.prc-content-border {
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@@ -1,686 +0,0 @@
|
|||||||
<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"
|
|
||||||
min-width="300"
|
|
||||||
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="standEnName"
|
|
||||||
label="英文名称"
|
|
||||||
min-width="300"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<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"
|
|
||||||
label="标准实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="xcxssrq"
|
|
||||||
width="190px"
|
|
||||||
align="center"
|
|
||||||
label="新车型实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zccssrq"
|
|
||||||
align="center"
|
|
||||||
width="190px"
|
|
||||||
label="在产车实施日期">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="zrbm"
|
|
||||||
label="责任部门"
|
|
||||||
align="center"
|
|
||||||
width="180px"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="involve"
|
|
||||||
width="160px"
|
|
||||||
align="center"
|
|
||||||
label="标准是否涉及">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="remarks"
|
|
||||||
align="center"
|
|
||||||
width="180"
|
|
||||||
label="备注">
|
|
||||||
</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="创建时间"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="endTime"
|
|
||||||
label="完成时间"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="comment"
|
|
||||||
label="流程信息"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ scope.row.commentText }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="completeFlag"
|
|
||||||
label="状态"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<loading :loading="loading">流程列表加载中</loading>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ProcessFooter
|
|
||||||
show-back
|
|
||||||
show-transfer
|
|
||||||
show-submit
|
|
||||||
: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 { inboundLiaisonDetail, queryDetail, saveTaskForPub ,changeAssigneeNew, execTask} from "api/process";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "xmqdqrStep5",
|
|
||||||
components: {
|
|
||||||
ProcessTitle,
|
|
||||||
ProcessHeader,
|
|
||||||
ProcessFooter
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
lawInfoTableLoading: true,
|
|
||||||
lawInfoTable:[],
|
|
||||||
isTransfer: false,
|
|
||||||
// 调整处理人抽屉状态
|
|
||||||
drawerModal: false,
|
|
||||||
drawerTitle:'',
|
|
||||||
active: "1",
|
|
||||||
nodeList: [],
|
|
||||||
nodeList2: [],
|
|
||||||
loading: false,
|
|
||||||
// 当前流程类型(1待办/2已办)
|
|
||||||
processType: 1,
|
|
||||||
isSubmit: false,
|
|
||||||
saveLoading: false,
|
|
||||||
submitShow: false,
|
|
||||||
acceptShow: false,
|
|
||||||
todoId: '',
|
|
||||||
projectId: "",
|
|
||||||
detailedId: "",
|
|
||||||
standSortOptions: [],
|
|
||||||
standList: [],
|
|
||||||
projectStand:[],
|
|
||||||
standardData: [],
|
|
||||||
handleSelectTableList: [], //标准数据
|
|
||||||
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: {
|
|
||||||
formatIssueDate(str) {
|
|
||||||
const momentDate = this.$moment(str)
|
|
||||||
if (momentDate.isValid()) {
|
|
||||||
return this.$moment(str).format('YYYY-MM-DD')
|
|
||||||
} else {
|
|
||||||
return str
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//确认转办
|
|
||||||
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.dataList = item.dataList
|
|
||||||
// this.projectId = item.projectId;
|
|
||||||
// //获取清单id 查询对应清单下的标准
|
|
||||||
// this.detailedId = item.detailedListId;
|
|
||||||
// this.getStandData();
|
|
||||||
}else{
|
|
||||||
this.qdform = item.form
|
|
||||||
this.dataList =item.form.dataList
|
|
||||||
this.detailedId = item.form.detailedListId;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//查询清单下的标准
|
|
||||||
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(",");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.dataList.map(item => {
|
|
||||||
if(item.zrbm === '[]'){
|
|
||||||
item.zrbm = ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 接受按钮
|
|
||||||
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;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//驳回事件
|
|
||||||
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 => {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//提交事件
|
|
||||||
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 => {
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//添加标准勾选框数据
|
|
||||||
handleSelectTableChange (data) {
|
|
||||||
this.handleSelectTableList = data
|
|
||||||
console.log(this.handleSelectTableList);
|
|
||||||
},
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
},
|
|
||||||
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>
|
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ export default {
|
|||||||
this.toProcessDetail('bzzqyjStep1-9',row)
|
this.toProcessDetail('bzzqyjStep1-9',row)
|
||||||
}else if(prcType === '10'){
|
}else if(prcType === '10'){
|
||||||
//项目清单确认
|
//项目清单确认
|
||||||
this.toProcessDetail('xmqdqrStep1-3',row)
|
this.toProcessDetail('xmqdqrStep1-4',row)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('当前流程未全部办理完成,无法查看')
|
this.$message.warning('当前流程未全部办理完成,无法查看')
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ export default {
|
|||||||
this.toProcessDetail('bzzqyjStep1-9',row)
|
this.toProcessDetail('bzzqyjStep1-9',row)
|
||||||
}else if(prcType === '10'){
|
}else if(prcType === '10'){
|
||||||
//项目清单确认
|
//项目清单确认
|
||||||
this.toProcessDetail('xmqdqrStep1-3',row)
|
this.toProcessDetail('xmqdqrStep1-4',row)
|
||||||
} else if(prcType === '16'){
|
} else if(prcType === '16'){
|
||||||
//外部署名
|
//外部署名
|
||||||
this.toProcessDetail('wbsmStep1-5',row)
|
this.toProcessDetail('wbsmStep1-5',row)
|
||||||
|
|||||||
@@ -1297,7 +1297,7 @@ export default {
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
case '10':
|
case '10':
|
||||||
if (row.taskInfo === '产品工程经理分发清单') {
|
if (row.taskInfo === '清单完善1') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep2',
|
name: 'xmqdqrStep2',
|
||||||
query: {
|
query: {
|
||||||
@@ -1308,7 +1308,7 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if(row.taskInfo === '确认人确认'){
|
} else if(row.taskInfo === '清单完善2'){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep3',
|
name: 'xmqdqrStep3',
|
||||||
query: {
|
query: {
|
||||||
@@ -1319,7 +1319,7 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else if(row.taskInfo === '产品工程经理汇总清单'){
|
}else if(row.taskInfo === '清单发布'){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep4',
|
name: 'xmqdqrStep4',
|
||||||
query: {
|
query: {
|
||||||
@@ -1330,17 +1330,6 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else if(row.taskInfo === '标准法规部经理审批'){
|
|
||||||
this.$router.push({
|
|
||||||
name: 'xmqdqrStep5',
|
|
||||||
query: {
|
|
||||||
taskIds: row.taskIds,
|
|
||||||
prcId: row.prcId,
|
|
||||||
prcNum: row.prcNum,
|
|
||||||
prcName: row.prcName,
|
|
||||||
prcType: row.prcType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case "26":
|
case "26":
|
||||||
|
|||||||
@@ -714,7 +714,7 @@ export default {
|
|||||||
break
|
break
|
||||||
case '10':
|
case '10':
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'xmqdqrStep1-1',
|
name: 'xmqdqrStep1',
|
||||||
query: {
|
query: {
|
||||||
type: '10',
|
type: '10',
|
||||||
processName: '项目清单确认流程',
|
processName: '项目清单确认流程',
|
||||||
|
|||||||
@@ -826,33 +826,6 @@ const routes = [
|
|||||||
title: '项目清单确认流程'
|
title: '项目清单确认流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/xmqdqrStep5',
|
|
||||||
name: 'xmqdqrStep5',
|
|
||||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue'),
|
|
||||||
meta: {
|
|
||||||
requireAuth: true,
|
|
||||||
title: '项目清单确认流程'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/xmqdqrStep1-1',
|
|
||||||
name: 'xmqdqrStep1-1',
|
|
||||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step1-1.vue'),
|
|
||||||
meta: {
|
|
||||||
requireAuth: true,
|
|
||||||
title: '项目清单确认流程'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/xmqdqrStep1-3',
|
|
||||||
name: 'xmqdqrStep1-3',
|
|
||||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step1-3.vue'),
|
|
||||||
meta: {
|
|
||||||
requireAuth: true,
|
|
||||||
title: '项目清单确认流程'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/xmqdqrStep1-4',
|
path: '/xmqdqrStep1-4',
|
||||||
name: 'xmqdqrStep1-4',
|
name: 'xmqdqrStep1-4',
|
||||||
|
|||||||
Reference in New Issue
Block a user