项目清单确认流程增加审批节点
This commit is contained in:
@@ -621,19 +621,18 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else if (row.taskInfo === '标准法规部经理审批') {
|
||||
this.$router.push({
|
||||
name: 'xmqdqrStep3',
|
||||
query: {
|
||||
taskIds: row.taskIds,
|
||||
prcId: row.prcId,
|
||||
prcNum: row.prcNum,
|
||||
prcName: row.prcName,
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}
|
||||
// else if (row.taskInfo === '上传佐证材料填写信息') {
|
||||
// this.$router.push({
|
||||
// name: 'wfhxzgStep4',
|
||||
// query: {
|
||||
// taskIds: row.taskIds,
|
||||
// prcId: row.prcId,
|
||||
// prcNum: row.prcNum,
|
||||
// prcName: row.prcName,
|
||||
// prcType: row.prcType
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
break
|
||||
|
||||
}
|
||||
|
||||
@@ -106,6 +106,19 @@
|
||||
</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>
|
||||
@@ -412,7 +425,9 @@ export default {
|
||||
startUserName: this.$store.getters.userInfo.userName,
|
||||
startUser: this.$store.getters.userInfo.userId,
|
||||
confirmId: "",
|
||||
confirmName: ""
|
||||
confirmName: "",
|
||||
approveId: "",
|
||||
approveName: "",
|
||||
},
|
||||
//表单验证
|
||||
formRules: {
|
||||
@@ -579,6 +594,9 @@ export default {
|
||||
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;
|
||||
},
|
||||
|
||||
+27
-25
@@ -2,7 +2,7 @@
|
||||
<div class="xmqdqr-step2">
|
||||
<ProcessHeader toggle>
|
||||
<template slot="proName">项目清单确认流程</template>
|
||||
<template slot="proNode">确认人确认</template>
|
||||
<template slot="proNode">法规部经理审批</template>
|
||||
</ProcessHeader>
|
||||
<div class="headerTabs">
|
||||
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||
@@ -253,7 +253,7 @@ import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { inboundLiaisonDetail, queryDetail } from "api/process";
|
||||
|
||||
export default {
|
||||
name: "xmqdqrStep1-2",
|
||||
name: "xmqdqrStep1-3",
|
||||
components: {
|
||||
ProcessTitle,
|
||||
ProcessHeader,
|
||||
@@ -348,44 +348,46 @@ export default {
|
||||
},
|
||||
//动态表单读取
|
||||
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.projectId = item.projectId
|
||||
this.getStandData();
|
||||
// this.getStandData();
|
||||
}else{
|
||||
this.qdform = item.form
|
||||
this.dataList =item.form.dataList
|
||||
this.projectId = item.form.projectId
|
||||
this.getStandData();
|
||||
// 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(",");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
// 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;
|
||||
@@ -105,6 +105,19 @@
|
||||
</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>
|
||||
@@ -412,7 +425,9 @@ export default {
|
||||
startUserName: this.$store.getters.userInfo.userName,
|
||||
startUser: this.$store.getters.userInfo.userId,
|
||||
confirmId: "",
|
||||
confirmName: ""
|
||||
confirmName: "",
|
||||
approveId: "",
|
||||
approveName:"",
|
||||
},
|
||||
//表单验证
|
||||
formRules: {
|
||||
@@ -430,6 +445,9 @@ export default {
|
||||
roleFormRules: {
|
||||
confirmName: [
|
||||
{ required: true, message: "请选择确认人", trigger: "change" }
|
||||
],
|
||||
approveName: [
|
||||
{ required: true, message: "请选择审批人", trigger: "change" }
|
||||
]
|
||||
}
|
||||
};
|
||||
@@ -577,6 +595,9 @@ export default {
|
||||
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;
|
||||
},
|
||||
|
||||
@@ -340,7 +340,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="XCXSSRQ"
|
||||
prop="xcxssrqgj"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
<template slot-scope="scope">
|
||||
@@ -349,7 +349,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="ZCCSSRQ"
|
||||
prop="zccssrqgj"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
<template slot-scope="scope">
|
||||
@@ -423,7 +423,9 @@ export default {
|
||||
isTransfer: false,
|
||||
// 调整处理人抽屉状态
|
||||
drawerModal: false,
|
||||
drawerTitle:'',
|
||||
active: "1",
|
||||
nodeList: [],
|
||||
loading: false,
|
||||
// 当前流程类型(1待办/2已办)
|
||||
processType: 1,
|
||||
|
||||
@@ -0,0 +1,671 @@
|
||||
<template>
|
||||
<div class="xmqdqr-step2">
|
||||
<ProcessHeader toggle>
|
||||
<template slot="proName">项目清单确认流程</template>
|
||||
<template slot="proNode">法规部经理审批</template>
|
||||
</ProcessHeader>
|
||||
<div class="headerTabs">
|
||||
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||
</div>
|
||||
<div class="content" v-show="active === '1'">
|
||||
<div style="flex: auto; overflow: auto">
|
||||
<process-title>
|
||||
<template slot="title">基础信息</template>
|
||||
</process-title>
|
||||
<el-form
|
||||
:model="qdform"
|
||||
class="label-input-form prc-content-border"
|
||||
label-width="150px"
|
||||
>
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="项目编号" prop="projectNumber" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="qdform.projectNumber"
|
||||
placeholder="请输入项目编号"
|
||||
disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目名称" prop="projectName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="qdform.projectName"
|
||||
placeholder="请输入项目名称"
|
||||
disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="清单名称" prop="detailedListName" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="qdform.detailedListName"
|
||||
placeholder="请输入清单名称"
|
||||
disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<process-title style="margin-top:5px; margin-bottom: 5px">
|
||||
<template slot="title">填写信息</template>
|
||||
</process-title>
|
||||
<el-table
|
||||
:data="dataList"
|
||||
border
|
||||
ref="selection"
|
||||
height="65%"
|
||||
@selection-change="selectStandChange"
|
||||
style="width: 100%; border:1px solid #ccc"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="200px"
|
||||
label="标准号"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort
|
||||
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
|
||||
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
|
||||
{{ scope.row.standNumber }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
align="center"
|
||||
label="中文名称"
|
||||
width="180px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standEnName"
|
||||
label="英文名称"
|
||||
align="center"
|
||||
width="180px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="ssrq"
|
||||
width="190px"
|
||||
align="center"
|
||||
sortable
|
||||
label="标准实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="xcxssrq"
|
||||
width="190px"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zccssrq"
|
||||
align="center"
|
||||
sortable
|
||||
width="190px"
|
||||
label="在产车实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zrbm"
|
||||
label="责任部门"
|
||||
align="center"
|
||||
width="180px"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="kccvppsbm"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="卡车VPPS编码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="kccvppscn"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="卡车vpps中文名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="cycvppsbm"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="乘用车VPPS编码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="cycvppscn"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="乘用车vpps中文名称">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div>
|
||||
<el-collapse accordion>
|
||||
<el-collapse-item title="意见填写">
|
||||
<div style="margin: 10px 0;">
|
||||
<el-input
|
||||
type="textarea"
|
||||
:rows="3"
|
||||
resize="none"
|
||||
placeholder="请输入意见"
|
||||
v-model="commentText">
|
||||
</el-input>
|
||||
</div>
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content" v-show="active === '3'">
|
||||
<div class="flow-list" style="height: 100%">
|
||||
<el-table
|
||||
height="100%"
|
||||
ref="selection"
|
||||
:data="detailData"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%"
|
||||
border
|
||||
row-key="id"
|
||||
:no-data-text="listNoDataText"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="任务步骤"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="assignee"
|
||||
label="任务受理人"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="创建时间"
|
||||
sortable="custom"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
label="完成时间"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="comment"
|
||||
label="审批意见"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.commentText }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completeFlag"
|
||||
label="状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<loading :loading="loading">流程列表加载中</loading>
|
||||
</div>
|
||||
</div>
|
||||
<ProcessFooter
|
||||
show-back
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
</ProcessFooter>
|
||||
<!-- 福田全公司选人解决方案 -->
|
||||
<Role-tree
|
||||
check-box
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="drawerModal"
|
||||
@checkedRole="checkedTransferRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { changeAssigneeNew, inboundLiaisonDetail, queryDetail } from "api/process";
|
||||
|
||||
export default {
|
||||
name: "xmqdqrStep3",
|
||||
components: {
|
||||
ProcessTitle,
|
||||
ProcessHeader,
|
||||
ProcessFooter
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
active: "1",
|
||||
loading: false,
|
||||
// 当前流程类型(1待办/2已办)
|
||||
processType: 1,
|
||||
nodeList: [],
|
||||
drawerTitle: '',
|
||||
// 调整处理人抽屉状态
|
||||
drawerModal: false,
|
||||
isSubmit: false,
|
||||
isTransfer: false,
|
||||
saveLoading: false,
|
||||
projectId: "",
|
||||
detailedId: "",
|
||||
standSortOptions: [],
|
||||
standList: [],
|
||||
projectStand:[],
|
||||
standardData: [],
|
||||
page: 1,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
total: 0,
|
||||
//查询清单下标准数据
|
||||
standCommonlySearch: {
|
||||
standSort: "",
|
||||
standNumber: "",
|
||||
standType: "",
|
||||
page: 1,
|
||||
Size: this.$store.getters.userInfo.configContent
|
||||
},
|
||||
//表单的数据
|
||||
qdform: {
|
||||
BZFlag: " ", //1审批通过 其他为驳回
|
||||
projectNumber: "", //项目编号
|
||||
projectName: "", //项目名称
|
||||
dataList: [], //项目下的标准数据
|
||||
breakdownList: [] //标准下的分解单数据
|
||||
},
|
||||
dataList: [], //展示的标准数据
|
||||
commentText: "", //审批意见
|
||||
detailData: [],//流程历史数据
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
taskIds: this.$route.query.taskIds,
|
||||
pId: this.$route.query.prcId,
|
||||
standMap: new Map(),
|
||||
textStatusMap: {}// 文本状态id与name对应
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
this.$router.push("/processCenter");
|
||||
this.processNum()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
processNum () {
|
||||
axios.request({
|
||||
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||
responseType: 'blob',
|
||||
method: 'get',
|
||||
params: {
|
||||
prcNum: this.$route.query.prcNum
|
||||
}
|
||||
}).then(res => {
|
||||
// let blob = new Blob([res.data], {type: 'image/jpg'})
|
||||
// let url = window.URL.createObjectURL(res.data)
|
||||
this.processStep = window.URL.createObjectURL(res.data)
|
||||
})
|
||||
},
|
||||
processTable() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
sortWord: this.shunxu ? this.paixu : "",
|
||||
shunxu: this.shunxu
|
||||
}, {
|
||||
loading: "loading",
|
||||
_this: this
|
||||
}, res => {
|
||||
this.detailData = res;
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
//tab改变
|
||||
handleTabs(type) {
|
||||
this.active = type;
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview(item) {
|
||||
let routeUrl = this.$router.resolve({
|
||||
name: "OtherStandardDetails",
|
||||
params: {
|
||||
id: item.id,
|
||||
pageType: "INLAND_STAND"
|
||||
}
|
||||
});
|
||||
window.open(routeUrl.href, "_blank");
|
||||
},
|
||||
//获取数据
|
||||
getData() {
|
||||
return new Promise((resolve, reject) => {
|
||||
inboundLiaisonDetail({
|
||||
taskIds: this.taskIds,
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
const processForm = JSON.parse(res.mesg);
|
||||
this.getFormFieldList(processForm);
|
||||
}
|
||||
}).catch(e => {
|
||||
});
|
||||
});
|
||||
},
|
||||
//动态表单读取
|
||||
getFormFieldList(item) {
|
||||
this.$nextTick(() => {
|
||||
if(item.form === undefined){
|
||||
this.qdform = JSON.parse(JSON.stringify(item));
|
||||
this.qdform.prcNum = this.prcNum;
|
||||
this.qdform.prcName = this.prcName;
|
||||
this.dataList = item.dataList
|
||||
this.qdform["id"] = item.id;
|
||||
this.projectId = item.projectId
|
||||
// this.getStandData();
|
||||
}else{
|
||||
this.qdform = item.form
|
||||
this.dataList =item.form.dataList
|
||||
this.projectId = item.form.projectId
|
||||
// this.getStandData();
|
||||
}
|
||||
});
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
this.qdform.passFlag = "0";
|
||||
this.qdform.commentText = this.commentText;
|
||||
this.qdform.dataList = this.dataList
|
||||
const json = JSON.stringify(this.qdform);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
//转办事件
|
||||
handleTransfer(){
|
||||
this.drawerModal = true
|
||||
this.drawerTitle = '转办处理人'
|
||||
this.selectPeople = row
|
||||
},
|
||||
//驳回事件
|
||||
beforeBack() {
|
||||
if (this.commentText === null || this.commentText === undefined || this.commentText === "") {
|
||||
this.$message.warning("请填写审批意见");
|
||||
} else {
|
||||
this.qdform.passFlag = "1";
|
||||
this.qdform.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.qdform);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
},
|
||||
//添加标准勾选框数据
|
||||
selectStand(data) {
|
||||
this.standList = data;
|
||||
},
|
||||
selectStandChange(data){
|
||||
this.projectStand = data
|
||||
},
|
||||
cancelStand() {
|
||||
this.standModel = false;
|
||||
},
|
||||
//添加标准带入事件
|
||||
okStand() {
|
||||
if(this.standList.length < 1){
|
||||
this.$message.warning('请至少选择一条数据进行添加')
|
||||
}else{
|
||||
this.standList.forEach(item =>{
|
||||
if(item.ssrq === "-"){
|
||||
item.ssrq = ''
|
||||
}
|
||||
if(item.zrbm === '[]'){
|
||||
item.zrbm =''
|
||||
}
|
||||
})
|
||||
this.standList.map(item => {
|
||||
let addIndex
|
||||
addIndex = this.dataList.findIndex(items =>{
|
||||
return items.standId === item.id
|
||||
})
|
||||
if(addIndex > -1){
|
||||
this.$message.warning('请勿重复添加数据')
|
||||
}else{
|
||||
this.dataList.push(item)
|
||||
}
|
||||
})
|
||||
|
||||
this.standModel = false
|
||||
}
|
||||
|
||||
},
|
||||
//添加标准的查询按钮
|
||||
search() {
|
||||
this.getStand();
|
||||
},
|
||||
clearSearch() {
|
||||
this.standCommonlySearch = {
|
||||
standSort: "",
|
||||
standNumber: "",
|
||||
standType: ""
|
||||
};
|
||||
this.getStand();
|
||||
},
|
||||
pageChange(page) {
|
||||
this.page = page;
|
||||
this.getStand();
|
||||
},
|
||||
pageSizeChange(pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
this.getStand();
|
||||
},
|
||||
getStand(data) {
|
||||
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
|
||||
id: this.detailedId,
|
||||
page: this.page,
|
||||
Size: this.pageSize,
|
||||
...this.standCommonlySearch
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.data === null) {
|
||||
this.standardData = "";
|
||||
this.totalDo = "";
|
||||
}
|
||||
this.standardData = res.data.records;
|
||||
this.standardData.forEach(item => {
|
||||
if (item.zccssrqgj === "-") {
|
||||
item.zccssrqgj = "";
|
||||
}
|
||||
if (item.xcxssrqgj === "-") {
|
||||
item.xcxssrq = "";
|
||||
}
|
||||
});
|
||||
this.total = res.data.total;
|
||||
});
|
||||
},
|
||||
// 将文本状态的id与name对应
|
||||
setMap(data) {
|
||||
data.forEach(item => {
|
||||
this.$set(this.textStatusMap, item.value, item.label);
|
||||
});
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.processTable();
|
||||
this.getData();
|
||||
// 查询各下拉框数据
|
||||
this.$http.get("sys/dictype/getDicTypeListCode", "", {
|
||||
_this: this,
|
||||
loading: "loading"
|
||||
}, res => {
|
||||
this.energyKindOptions = res.data.ENERGYTYPES; //适用车型
|
||||
this.standSortOptions = res.data.STANDCLASSIFY; // 标准类别
|
||||
this.standStateOptions = res.data.WBZTCLASS; // 文本状态
|
||||
this.setMap(this.zrbmMap, res.data.ZRBMCLASS);
|
||||
this.setMap(this.standStateOptions);
|
||||
this.showLocalProductData(this.getLocalPro);
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/style';
|
||||
|
||||
.xmqdqr-step2 {
|
||||
/deep/ .el-drawer__container {
|
||||
.prc-content-border {
|
||||
border: none;
|
||||
padding: 0 20px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.choiceBtn {
|
||||
.el-button--primary {
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
|
||||
position: relative;
|
||||
height: 100%;
|
||||
|
||||
.headerTabs {
|
||||
height: 52px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 10px;
|
||||
|
||||
.headerTabsItem {
|
||||
border: 1px solid #c1c1c1;
|
||||
padding: 0 5px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.active {
|
||||
border: 1px solid #E6A23C;
|
||||
color: #fff;
|
||||
background: #E6A23C;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
height: calc(~'100% - 103px');
|
||||
overflow: auto;
|
||||
|
||||
.tableTitle {
|
||||
margin-bottom: 10px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
position: relative;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
|
||||
.tableButton {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.accessStandardsAndRegulations {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.demo-drawer-content {
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -257,7 +257,7 @@ export default {
|
||||
this.toProcessDetail('bzzqyjStep1-9',row)
|
||||
}else if(prcType === '10'){
|
||||
//项目清单确认
|
||||
this.toProcessDetail('xmqdqrStep1-2',row)
|
||||
this.toProcessDetail('xmqdqrStep1-3',row)
|
||||
}
|
||||
} else {
|
||||
this.$message.warning('当前流程未全部办理完成,无法查看')
|
||||
|
||||
@@ -856,6 +856,17 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else if(row.taskInfo === '标准法规部经理审批'){
|
||||
this.$router.push({
|
||||
name: 'xmqdqrStep3',
|
||||
query: {
|
||||
taskIds: row.taskIds,
|
||||
prcId: row.prcId,
|
||||
prcNum: row.prcNum,
|
||||
prcName: row.prcName,
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
+12
-3
@@ -557,9 +557,18 @@ const routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/xmqdqrStep1-2',
|
||||
name: 'xmqdqrStep1-2',
|
||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step1-2.vue'),
|
||||
path: '/xmqdqrStep1-3',
|
||||
name: 'xmqdqrStep1-3',
|
||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step1-3.vue'),
|
||||
meta: {
|
||||
requireAuth: true,
|
||||
title: '项目清单确认流程'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/xmqdqrStep3',
|
||||
name: 'xmqdqrStep3',
|
||||
component: () => import('@/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue'),
|
||||
meta: {
|
||||
requireAuth: true,
|
||||
title: '项目清单确认流程'
|
||||
|
||||
Reference in New Issue
Block a user