824 lines
26 KiB
Vue
824 lines
26 KiB
Vue
<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">
|
|
<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="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">
|
|
<el-input
|
|
v-model="qdform.detailedListName"
|
|
placeholder="请输入清单名称"
|
|
disabled
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
</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
|
|
height="100%"
|
|
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '48px'}"
|
|
@selection-change="selectProjectChange"
|
|
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="searchSarAccess">
|
|
查询
|
|
</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"
|
|
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 { saveTaskFirst } from "api/process";
|
|
|
|
export default {
|
|
name: "xmqdqrStep1",
|
|
components: {
|
|
ProcessHeader,
|
|
ProcessFooter,
|
|
ProcessTitle
|
|
},
|
|
data() {
|
|
return {
|
|
multipleSelection: [],
|
|
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" }
|
|
],
|
|
approveName: [
|
|
{ required: true, message: "请选择审批人", trigger: "change" }
|
|
]
|
|
}
|
|
};
|
|
},
|
|
methods: {
|
|
// 表格勾选
|
|
handleSelectionChange(val) {
|
|
// 单选
|
|
if (val.length > 1) {
|
|
this.$refs.table.clearSelection();
|
|
this.$refs.table.toggleRowSelection(val.pop());
|
|
}
|
|
this.multipleSelection = val;
|
|
},
|
|
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;
|
|
this.page = 1;
|
|
}, 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) {
|
|
// 单选
|
|
if (data.length > 1) {
|
|
this.$refs.selection.clearSelection();
|
|
this.$refs.selection.toggleRowSelection(data.pop());
|
|
}
|
|
this.multipleSelection = data
|
|
|
|
this.selectedList = data;
|
|
},
|
|
//项目勾选框数据
|
|
selectProjectChange(data) {
|
|
// 单选
|
|
if (data.length > 1) {
|
|
this.$refs.selection.clearSelection();
|
|
this.$refs.selection.toggleRowSelection(data.pop());
|
|
}
|
|
this.multipleSelection = 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.get("lawss/activiti/startProcess", { type: "10" }, {
|
|
_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);
|
|
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.$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-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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|