移动端手机页面
This commit is contained in:
@@ -0,0 +1,537 @@
|
|||||||
|
<!-- 参与外部标准制修订信息提报流程-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneCywbbzzxdStep4 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">参与外部标准制修订信息提报流程</template>
|
||||||
|
<template slot="proNode">责任部门对接人审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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>
|
||||||
|
<el-form
|
||||||
|
ref="wbbzForm"
|
||||||
|
:model="wbbzform"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border" v-if="foldFormFlag">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="提报单位" prop="reportingUnit" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.reportingUnit"
|
||||||
|
placeholder="请输入提报单位"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准编号" prop="standNumber" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standNumber"
|
||||||
|
readonly
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="主持或参与" prop="hostOrTask" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.hostOrTask"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择主持或参与"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="参与人" prop="participants" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.participants"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择参与人"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准制定机构" prop="standMechanism" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standMechanism"
|
||||||
|
placeholder="请选择标准制定机构"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="参与时间" prop="partakeTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.partakeTime"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择参与时间"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="standName" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standName"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准类型" prop="standType" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standType"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准类型"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准制修订" prop="standRevise" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standRevise"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准制修订"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准(拟)发布时间" prop="releaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.releaseTime"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准(拟)发布时间"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
<el-button style="width: 100%" :icon=" foldFormFlag ? 'el-icon-caret-top': 'el-icon-caret-bottom'" @click="foldForm">{{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}</el-button>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">参与人信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table border
|
||||||
|
ref="selection"
|
||||||
|
:data="participantsData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%;"
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
row-key="id">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column
|
||||||
|
prop="projectNumber"
|
||||||
|
min-width="150"
|
||||||
|
label="项目编号"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="projectName"
|
||||||
|
min-width="300"
|
||||||
|
label="项目名称"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="expenses"
|
||||||
|
min-width="130"
|
||||||
|
label="费用支出项"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="costBudget"
|
||||||
|
min-width="130"
|
||||||
|
label="费用预算"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</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 === '3'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
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="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneCywbbzzxdStep4",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//切换tab
|
||||||
|
active: "1",
|
||||||
|
foldFormFlag: true,
|
||||||
|
isSubmit: false,
|
||||||
|
recordLoading: false,
|
||||||
|
saveLoading: false,
|
||||||
|
loading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
isTransfer: false,
|
||||||
|
drawerTitle: '',
|
||||||
|
detailData: [], //审批历史信息
|
||||||
|
nodeList: [],
|
||||||
|
wbbzform: {
|
||||||
|
reportingUnit: "",
|
||||||
|
standNumber: "",
|
||||||
|
hostOrTask: "",
|
||||||
|
participants: "",
|
||||||
|
standMechanism: "",
|
||||||
|
partakeTime: "",
|
||||||
|
standName: "",
|
||||||
|
standType: "",
|
||||||
|
standRevise: "",
|
||||||
|
releaseTime: ""
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
reportingUnit: [
|
||||||
|
{ required: true, message: "请输入提报单位", trigger: "change" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
participantsData: [],
|
||||||
|
// participantsData: [{
|
||||||
|
// projectNumber: '',
|
||||||
|
// projectName: '',
|
||||||
|
// expenses: '',
|
||||||
|
// costBudget:'',
|
||||||
|
// }], //参与人表格信息
|
||||||
|
associationOptions: [{
|
||||||
|
value: "选项1",
|
||||||
|
label: "1"
|
||||||
|
}, {
|
||||||
|
value: "选项2",
|
||||||
|
label: "2"
|
||||||
|
}, {
|
||||||
|
value: "选项3",
|
||||||
|
label: "3"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getData();
|
||||||
|
this.processTable();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.wbbzform = item.wbbzform
|
||||||
|
this.participantsData = item.participantsData
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//审批历史信息
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleTabs(type) {
|
||||||
|
this.active = type;
|
||||||
|
},
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
|
handleSave() {
|
||||||
|
},
|
||||||
|
//驳回
|
||||||
|
beforeBack(){
|
||||||
|
if (this.participantsData.length < 1) {
|
||||||
|
this.$message.warning("项目信息不能为空");
|
||||||
|
} else {
|
||||||
|
this.participantsData.forEach(item => {
|
||||||
|
if (item.projectNumber === undefined) {
|
||||||
|
this.$message.warning("请完善项目信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.wbbzform.commentText = this.commentText;
|
||||||
|
let json = {
|
||||||
|
participantsData: this.participantsData,
|
||||||
|
wbbzform: this.wbbzform,
|
||||||
|
signFlag: '2',
|
||||||
|
};
|
||||||
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
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("请完善基础信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true;
|
||||||
|
if (this.participantsData.length < 1) {
|
||||||
|
this.$message.warning("项目信息不能为空");
|
||||||
|
} else {
|
||||||
|
this.participantsData.forEach(item => {
|
||||||
|
if (item.projectNumber === undefined) {
|
||||||
|
this.$message.warning("请完善项目信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.wbbzform.commentText = this.commentText;
|
||||||
|
let json = {
|
||||||
|
participantsData: this.participantsData,
|
||||||
|
wbbzform: this.wbbzform,
|
||||||
|
signFlag: '1',
|
||||||
|
};
|
||||||
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
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("请完善基础信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//转办按钮
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneCywbbzzxdStep4 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 75px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 180px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,537 @@
|
|||||||
|
<!-- 参与外部标准制修订信息提报流程-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneCywbbzzxdStep5 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">参与外部标准制修订信息提报流程</template>
|
||||||
|
<template slot="proNode">标准法规工程师审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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>
|
||||||
|
<el-form
|
||||||
|
ref="wbbzForm"
|
||||||
|
:model="wbbzform"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border" v-if="foldFormFlag">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="提报单位" prop="reportingUnit" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.reportingUnit"
|
||||||
|
placeholder="请输入提报单位"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准编号" prop="standNumber" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standNumber"
|
||||||
|
readonly
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="主持或参与" prop="hostOrTask" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.hostOrTask"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择主持或参与"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="参与人" prop="participants" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.participants"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择参与人"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准制定机构" prop="standMechanism" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standMechanism"
|
||||||
|
placeholder="请选择标准制定机构"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="参与时间" prop="partakeTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.partakeTime"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择参与时间"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="standName" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standName"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准类型" prop="standType" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standType"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准类型"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准制修订" prop="standRevise" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standRevise"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准制修订"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准(拟)发布时间" prop="releaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.releaseTime"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准(拟)发布时间"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
<el-button style="width: 100%" :icon=" foldFormFlag ? 'el-icon-caret-top': 'el-icon-caret-bottom'" @click="foldForm">{{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}</el-button>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">参与人信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table border
|
||||||
|
ref="selection"
|
||||||
|
:data="participantsData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%;"
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
row-key="id">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column
|
||||||
|
prop="projectNumber"
|
||||||
|
min-width="150"
|
||||||
|
label="项目编号"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="projectName"
|
||||||
|
min-width="300"
|
||||||
|
label="项目名称"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="expenses"
|
||||||
|
min-width="130"
|
||||||
|
label="费用支出项"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="costBudget"
|
||||||
|
min-width="130"
|
||||||
|
label="费用预算"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</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 === '3'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
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="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneCywbbzzxdStep5",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//切换tab
|
||||||
|
active: "1",
|
||||||
|
foldFormFlag: true,
|
||||||
|
isSubmit: false,
|
||||||
|
recordLoading: false,
|
||||||
|
saveLoading: false,
|
||||||
|
loading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
isTransfer: false,
|
||||||
|
drawerTitle: '',
|
||||||
|
detailData: [], //审批历史信息
|
||||||
|
nodeList: [],
|
||||||
|
wbbzform: {
|
||||||
|
reportingUnit: "",
|
||||||
|
standNumber: "",
|
||||||
|
hostOrTask: "",
|
||||||
|
participants: "",
|
||||||
|
standMechanism: "",
|
||||||
|
partakeTime: "",
|
||||||
|
standName: "",
|
||||||
|
standType: "",
|
||||||
|
standRevise: "",
|
||||||
|
releaseTime: ""
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
reportingUnit: [
|
||||||
|
{ required: true, message: "请输入提报单位", trigger: "change" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
participantsData: [],
|
||||||
|
// participantsData: [{
|
||||||
|
// projectNumber: '',
|
||||||
|
// projectName: '',
|
||||||
|
// expenses: '',
|
||||||
|
// costBudget:'',
|
||||||
|
// }], //参与人表格信息
|
||||||
|
associationOptions: [{
|
||||||
|
value: "选项1",
|
||||||
|
label: "1"
|
||||||
|
}, {
|
||||||
|
value: "选项2",
|
||||||
|
label: "2"
|
||||||
|
}, {
|
||||||
|
value: "选项3",
|
||||||
|
label: "3"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getData();
|
||||||
|
this.processTable();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.wbbzform = item.wbbzform
|
||||||
|
this.participantsData = item.participantsData
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//审批历史信息
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleTabs(type) {
|
||||||
|
this.active = type;
|
||||||
|
},
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
|
handleSave() {
|
||||||
|
},
|
||||||
|
//驳回
|
||||||
|
beforeBack(){
|
||||||
|
if (this.participantsData.length < 1) {
|
||||||
|
this.$message.warning("项目信息不能为空");
|
||||||
|
} else {
|
||||||
|
this.participantsData.forEach(item => {
|
||||||
|
if (item.projectNumber === undefined) {
|
||||||
|
this.$message.warning("请完善项目信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.wbbzform.commentText = this.commentText;
|
||||||
|
let json = {
|
||||||
|
participantsData: this.participantsData,
|
||||||
|
wbbzform: this.wbbzform,
|
||||||
|
signFlag: '2',
|
||||||
|
};
|
||||||
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
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("请完善基础信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true;
|
||||||
|
if (this.participantsData.length < 1) {
|
||||||
|
this.$message.warning("项目信息不能为空");
|
||||||
|
} else {
|
||||||
|
this.participantsData.forEach(item => {
|
||||||
|
if (item.projectNumber === undefined) {
|
||||||
|
this.$message.warning("请完善项目信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.wbbzform.commentText = this.commentText;
|
||||||
|
let json = {
|
||||||
|
participantsData: this.participantsData,
|
||||||
|
wbbzform: this.wbbzform,
|
||||||
|
signFlag: '1',
|
||||||
|
};
|
||||||
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
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("请完善基础信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//转办按钮
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneCywbbzzxdStep5 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 75px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 180px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,537 @@
|
|||||||
|
<!-- 参与外部标准制修订信息提报流程-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneCywbbzzxdStep6 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">参与外部标准制修订信息提报流程</template>
|
||||||
|
<template slot="proNode">标准法规部部长审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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>
|
||||||
|
<el-form
|
||||||
|
ref="wbbzForm"
|
||||||
|
:model="wbbzform"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border" v-if="foldFormFlag">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="提报单位" prop="reportingUnit" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.reportingUnit"
|
||||||
|
placeholder="请输入提报单位"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准编号" prop="standNumber" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standNumber"
|
||||||
|
readonly
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="主持或参与" prop="hostOrTask" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.hostOrTask"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择主持或参与"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="参与人" prop="participants" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.participants"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择参与人"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准制定机构" prop="standMechanism" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standMechanism"
|
||||||
|
placeholder="请选择标准制定机构"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="参与时间" prop="partakeTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.partakeTime"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择参与时间"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="standName" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standName"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
readonly
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准类型" prop="standType" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standType"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准类型"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准制修订" prop="standRevise" class="add-form-item ">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.standRevise"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准制修订"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准(拟)发布时间" prop="releaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
v-model="wbbzform.releaseTime"
|
||||||
|
readonly
|
||||||
|
placeholder="请选择标准(拟)发布时间"
|
||||||
|
clearable>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
<el-button style="width: 100%" :icon=" foldFormFlag ? 'el-icon-caret-top': 'el-icon-caret-bottom'" @click="foldForm">{{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}</el-button>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">参与人信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table border
|
||||||
|
ref="selection"
|
||||||
|
:data="participantsData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%;"
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
row-key="id">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column
|
||||||
|
prop="projectNumber"
|
||||||
|
min-width="150"
|
||||||
|
label="项目编号"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="projectName"
|
||||||
|
min-width="300"
|
||||||
|
label="项目名称"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="expenses"
|
||||||
|
min-width="130"
|
||||||
|
label="费用支出项"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="costBudget"
|
||||||
|
min-width="130"
|
||||||
|
label="费用预算"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</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 === '3'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
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="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneCywbbzzxdStep6",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//切换tab
|
||||||
|
active: "1",
|
||||||
|
foldFormFlag: true,
|
||||||
|
isSubmit: false,
|
||||||
|
recordLoading: false,
|
||||||
|
saveLoading: false,
|
||||||
|
loading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
isTransfer: false,
|
||||||
|
drawerTitle: '',
|
||||||
|
detailData: [], //审批历史信息
|
||||||
|
nodeList: [],
|
||||||
|
wbbzform: {
|
||||||
|
reportingUnit: "",
|
||||||
|
standNumber: "",
|
||||||
|
hostOrTask: "",
|
||||||
|
participants: "",
|
||||||
|
standMechanism: "",
|
||||||
|
partakeTime: "",
|
||||||
|
standName: "",
|
||||||
|
standType: "",
|
||||||
|
standRevise: "",
|
||||||
|
releaseTime: ""
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
reportingUnit: [
|
||||||
|
{ required: true, message: "请输入提报单位", trigger: "change" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
participantsData: [],
|
||||||
|
// participantsData: [{
|
||||||
|
// projectNumber: '',
|
||||||
|
// projectName: '',
|
||||||
|
// expenses: '',
|
||||||
|
// costBudget:'',
|
||||||
|
// }], //参与人表格信息
|
||||||
|
associationOptions: [{
|
||||||
|
value: "选项1",
|
||||||
|
label: "1"
|
||||||
|
}, {
|
||||||
|
value: "选项2",
|
||||||
|
label: "2"
|
||||||
|
}, {
|
||||||
|
value: "选项3",
|
||||||
|
label: "3"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getData();
|
||||||
|
this.processTable();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.wbbzform = item.wbbzform
|
||||||
|
this.participantsData = item.participantsData
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//审批历史信息
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleTabs(type) {
|
||||||
|
this.active = type;
|
||||||
|
},
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
|
handleSave() {
|
||||||
|
},
|
||||||
|
//驳回
|
||||||
|
beforeBack(){
|
||||||
|
if (this.participantsData.length < 1) {
|
||||||
|
this.$message.warning("项目信息不能为空");
|
||||||
|
} else {
|
||||||
|
this.participantsData.forEach(item => {
|
||||||
|
if (item.projectNumber === undefined) {
|
||||||
|
this.$message.warning("请完善项目信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.wbbzform.commentText = this.commentText;
|
||||||
|
let json = {
|
||||||
|
participantsData: this.participantsData,
|
||||||
|
wbbzform: this.wbbzform,
|
||||||
|
bzFlag: '2',
|
||||||
|
};
|
||||||
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
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("请完善基础信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true;
|
||||||
|
if (this.participantsData.length < 1) {
|
||||||
|
this.$message.warning("项目信息不能为空");
|
||||||
|
} else {
|
||||||
|
this.participantsData.forEach(item => {
|
||||||
|
if (item.projectNumber === undefined) {
|
||||||
|
this.$message.warning("请完善项目信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.wbbzform.commentText = this.commentText;
|
||||||
|
let json = {
|
||||||
|
participantsData: this.participantsData,
|
||||||
|
wbbzform: this.wbbzform,
|
||||||
|
bzFlag: '1',
|
||||||
|
};
|
||||||
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
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("请完善基础信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//转办按钮
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneCywbbzzxdStep6 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 75px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 180px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,550 @@
|
|||||||
|
<!-- 企标复审-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneQbfsStep4 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标复审流程</template>
|
||||||
|
<template slot="proNode">工作组组长审批</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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>
|
||||||
|
<el-form
|
||||||
|
ref="qbfsForm"
|
||||||
|
:model="qbfsForm"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="150px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border" v-if="foldFormFlag">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="企标编号" prop="entNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entNumber"
|
||||||
|
placeholder="请输入企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="中文名称" prop="cnName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.cnName"
|
||||||
|
placeholder="请输入中文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.enName"
|
||||||
|
placeholder="请输入英文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entCategory"
|
||||||
|
placeholder="请输入企标类别"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replaceNumber"
|
||||||
|
placeholder="请输入代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">
|
||||||
|
<el-select v-model="qbfsForm.nextStatus" placeholder="请选择下一步状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in associationOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replacedNumber"
|
||||||
|
placeholder="请输入被代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.releaseDate"
|
||||||
|
placeholder="请输入发布日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.implementDate"
|
||||||
|
placeholder="请输入实施日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="复审日期" prop="reviewDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.reviewDate"
|
||||||
|
placeholder="请输入复审日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled">
|
||||||
|
<div class="file-box" v-if="fileList.length > 0">
|
||||||
|
<p v-for="item in fileList"
|
||||||
|
:key="item.id"> {{ item.oldFileName }}
|
||||||
|
<i
|
||||||
|
title="下载"
|
||||||
|
@click="downloadFile(item.id)"
|
||||||
|
class="icon-download"
|
||||||
|
v-btn-permission="''"
|
||||||
|
/>
|
||||||
|
<i
|
||||||
|
title="下载带水印"
|
||||||
|
@click="downloadFileByWater(item.id, item.name)"
|
||||||
|
class="icon-download2"
|
||||||
|
v-btn-permission="''"
|
||||||
|
/>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
暂无数据
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="add-form-item ">
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<el-button style="width: 100%" :icon=" foldFormFlag ? 'el-icon-caret-top': 'el-icon-caret-bottom'" @click="foldForm">{{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}</el-button>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">审核信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
height="52%"
|
||||||
|
style="width: 100%;"
|
||||||
|
: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
|
||||||
|
prop="opinion"
|
||||||
|
align="center"
|
||||||
|
label="审核意见">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="people"
|
||||||
|
align="center"
|
||||||
|
label="审核人">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</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 === '3'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-transfer
|
||||||
|
show-submit
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbfsStep4",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
active: "1",
|
||||||
|
isTransfer: false,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle: "",
|
||||||
|
nodeList: [],
|
||||||
|
fileList: [],
|
||||||
|
commentText: "",
|
||||||
|
dataList: [],
|
||||||
|
detailData: [],
|
||||||
|
loading: false,
|
||||||
|
foldFormFlag: true,
|
||||||
|
qbfsForm: {
|
||||||
|
entNumber: "",
|
||||||
|
cnName: "",
|
||||||
|
enName: "",
|
||||||
|
entCategory: "",
|
||||||
|
replaceNumber: "",
|
||||||
|
replacedNumber: "",
|
||||||
|
releaseDate: "",
|
||||||
|
implementDate: "",
|
||||||
|
reviewDate: "",
|
||||||
|
nextStatus: ""
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
nextStatus: [
|
||||||
|
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
associationOptions: [{
|
||||||
|
value: "修订",
|
||||||
|
label: "修订"
|
||||||
|
}, {
|
||||||
|
value: "废止",
|
||||||
|
label: "废止"
|
||||||
|
}, {
|
||||||
|
value: "有效",
|
||||||
|
label: "有效"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||||
|
this.fileList = item.fileList
|
||||||
|
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
||||||
|
res = res.split(",");
|
||||||
|
this.dataList = [];
|
||||||
|
res.forEach(item => {
|
||||||
|
this.dataList.push({
|
||||||
|
opinion: item.split("-")[1],
|
||||||
|
people: item.split("-")[0]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
let list = [];
|
||||||
|
this.dataList.forEach(item => {
|
||||||
|
list.push(item.opinion);
|
||||||
|
this.findMost(list);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
findMost(arr) {
|
||||||
|
if (!arr.length) return;
|
||||||
|
if (arr.length === 1) return 1;
|
||||||
|
let res = {};
|
||||||
|
let maxName, maxNum = 0;
|
||||||
|
// 遍历数组
|
||||||
|
arr.forEach((item) => {
|
||||||
|
res[item] ? res[item] += 1 : res[item] = 1;
|
||||||
|
if (res[item] > maxNum) {
|
||||||
|
maxName = item;
|
||||||
|
maxNum = res[item];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.qbfsForm.nextStatus = maxName
|
||||||
|
// return "出现次数最多的元素为:" + maxName + ", 出现次数为:" + maxNum;
|
||||||
|
},
|
||||||
|
//流程提交
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qbfsForm.commentText = this.commentText;
|
||||||
|
this.qbfsForm.dataList = this.dataList;
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name;
|
||||||
|
},
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer() {
|
||||||
|
this.drawerModal = true;
|
||||||
|
this.drawerTitle = "转办处理人";
|
||||||
|
this.selectPeople = row;
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRole(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);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @Description: 点击下载
|
||||||
|
*/
|
||||||
|
downloadFile(attId) {
|
||||||
|
if (attId != null && attId !== "") {
|
||||||
|
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
||||||
|
} else {
|
||||||
|
this.$message.error("请选择要下载的文件");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
downloadFileByWater(attId, fileSuffix) {
|
||||||
|
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
|
||||||
|
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
|
||||||
|
this.$message.error("水印下载仅支持PDF,pdf格式文件");
|
||||||
|
} else {
|
||||||
|
if (attId != null && attId !== "") {
|
||||||
|
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
|
||||||
|
} else {
|
||||||
|
this.$message.error("请选择要下载的文件");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbfsStep4 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 180px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,478 @@
|
|||||||
|
<!-- 企标废止-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneQbfzStep2 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标废止</template>
|
||||||
|
<template slot="proNode">标准法规部部长审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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 ref="qbfsForm"
|
||||||
|
:model="qbfsForm"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form prc-content-border"
|
||||||
|
label-width="150px">
|
||||||
|
<el-form-item label="企标编号" prop="standCode" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standCode"
|
||||||
|
placeholder="请输入企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standName"
|
||||||
|
placeholder="请输入中文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.enName"
|
||||||
|
placeholder="请输入英文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entCategory"
|
||||||
|
placeholder="请输入企标类别"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replaceNumber"
|
||||||
|
placeholder="请输入代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replacedNumber"
|
||||||
|
placeholder="请输入被代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.releaseDate"
|
||||||
|
placeholder="请输入发布日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.implementDate"
|
||||||
|
placeholder="请输入实施日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="废止理由" prop="abolishCause" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.abolishCause"
|
||||||
|
placeholder="请输入废止理由"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</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'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
show-transfer
|
||||||
|
show-submit
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@back="beforeBack"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRoles"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
<!-- 选择责任人-->
|
||||||
|
<Role-tree
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbfzStep2",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
fileList: [],
|
||||||
|
commentText: '',
|
||||||
|
detailData: [],
|
||||||
|
nodeList: [],
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
isTransfer: false,
|
||||||
|
// 调整处理人抽屉状态
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle: "", //drawer标题
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
loading: false,
|
||||||
|
qbfsForm:{
|
||||||
|
entNumber: '',
|
||||||
|
cnName: '',
|
||||||
|
enName: '',
|
||||||
|
entCategory: '',
|
||||||
|
replaceNumber: '',
|
||||||
|
replacedNumber: '',
|
||||||
|
releaseDate: '',
|
||||||
|
implementDate: '',
|
||||||
|
abolishCause: '',
|
||||||
|
reviewDate: '',
|
||||||
|
jgUser: '',
|
||||||
|
jgUserId: '',
|
||||||
|
},
|
||||||
|
roleForm: {
|
||||||
|
jgUser: ""
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
jgUser: [
|
||||||
|
{required: true, message: "请选择工作组成员", trigger: "change"}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable()
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.getFormFieldList(processForm)
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList (item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item))
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name;
|
||||||
|
},
|
||||||
|
//流程驳回
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.passFlag = '1'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//流程提交
|
||||||
|
handleSubmit(){
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.passFlag = '0'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.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
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRoles (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)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
choiceZRR(scope, type, title, id) {
|
||||||
|
if (scope != null) {
|
||||||
|
this.dsadadadsada = scope.$index;
|
||||||
|
}
|
||||||
|
this.nodeList = [];
|
||||||
|
this.nodeList.push(id);
|
||||||
|
this.type = type;
|
||||||
|
this.drawerTitle = title;
|
||||||
|
this.modalshowflag = true;
|
||||||
|
},
|
||||||
|
checkedRole(data) {
|
||||||
|
var idList = "";
|
||||||
|
var nameList = "";
|
||||||
|
data.forEach(item => {
|
||||||
|
if (nameList.length > 0) {
|
||||||
|
nameList += ",";
|
||||||
|
idList += ",";
|
||||||
|
}
|
||||||
|
idList += item.id;
|
||||||
|
nameList += item.name;
|
||||||
|
});
|
||||||
|
this.qbfsForm.jgUserId = idList;
|
||||||
|
this.qbfsForm.jgUser = nameList;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbfzStep2 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,634 @@
|
|||||||
|
<template>
|
||||||
|
<div class="phoneQbfzStep5 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标废止流程</template>
|
||||||
|
<template slot="proNode">标准法规部部长审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
:model="qbfsForm"
|
||||||
|
class="label-input-form"
|
||||||
|
:rules="formRules"
|
||||||
|
label-width="150px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-collapse-transition>
|
||||||
|
<div class="prc-content-border" v-if="foldFormFlag === false">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="企标编号" prop="standCode" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standCode"
|
||||||
|
placeholder="请输入企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standName"
|
||||||
|
placeholder="请输入中文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entCategory"
|
||||||
|
placeholder="请输入企标类别"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replaceNumber"
|
||||||
|
placeholder="请输入代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="废止理由" prop="abolishCause" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.abolishCause"
|
||||||
|
placeholder="请输入废止理由"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.enName"
|
||||||
|
placeholder="请输入英文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replacedNumber"
|
||||||
|
placeholder="请输入被代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.releaseDate"
|
||||||
|
placeholder="请输入发布日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.implementDate"
|
||||||
|
placeholder="请输入实施日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">
|
||||||
|
<el-select v-model="qbfsForm.nextStatus" disabled placeholder="请选择下一步状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in associationOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</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 class="prc-content-border" v-if="foldFormFlag === true" style="display: none">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="企标编号" prop="standCode" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standCode"
|
||||||
|
placeholder="请输入企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standName"
|
||||||
|
placeholder="请输入中文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entCategory"
|
||||||
|
placeholder="请输入企标类别"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replaceNumber"
|
||||||
|
placeholder="请输入代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="废止理由" prop="abolishCause" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.abolishCause"
|
||||||
|
placeholder="请输入废止理由"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.enName"
|
||||||
|
placeholder="请输入英文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replacedNumber"
|
||||||
|
placeholder="请输入被代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.releaseDate"
|
||||||
|
placeholder="请输入发布日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.implementDate"
|
||||||
|
placeholder="请输入实施日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">
|
||||||
|
<el-select v-model="qbfsForm.nextStatus" disabled placeholder="请选择下一步状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in associationOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">会签信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
height="52%"
|
||||||
|
style="width: 100%;"
|
||||||
|
: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
|
||||||
|
prop="opinion"
|
||||||
|
align="center"
|
||||||
|
min-width="300"
|
||||||
|
label="会签意见">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="people"
|
||||||
|
align="center"
|
||||||
|
min-width="300"
|
||||||
|
label="会签人">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="审批意见">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '2'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-transfer
|
||||||
|
show-submit
|
||||||
|
show-back
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@back="beforeBack"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
||||||
|
import axios from "axios";
|
||||||
|
import ProcessHeader from "process/components/ProcessHeader";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbfzStep5",
|
||||||
|
components: {
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
active: "1",
|
||||||
|
isTransfer: false,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle: "",
|
||||||
|
nodeList: [],
|
||||||
|
fileList: [],
|
||||||
|
commentText: "",
|
||||||
|
dataList: [],
|
||||||
|
detailData: [],
|
||||||
|
loading: false,
|
||||||
|
foldFormFlag: false,
|
||||||
|
qbfsForm: {
|
||||||
|
entNumber: "",
|
||||||
|
cnName: "",
|
||||||
|
enName: "",
|
||||||
|
entCategory: "",
|
||||||
|
replaceNumber: "",
|
||||||
|
replacedNumber: "",
|
||||||
|
releaseDate: "",
|
||||||
|
implementDate: "",
|
||||||
|
reviewDate: "",
|
||||||
|
nextStatus: ""
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
nextStatus: [
|
||||||
|
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
associationOptions: [{
|
||||||
|
value: "修订",
|
||||||
|
label: "修订"
|
||||||
|
}, {
|
||||||
|
value: "废止",
|
||||||
|
label: "废止"
|
||||||
|
}, {
|
||||||
|
value: "有效",
|
||||||
|
label: "有效"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||||
|
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
||||||
|
res = res.split(",");
|
||||||
|
this.dataList = [];
|
||||||
|
res.forEach(item => {
|
||||||
|
this.dataList.push({
|
||||||
|
opinion: item.split("-")[1],
|
||||||
|
people: item.split("-")[0]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//流程驳回
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qbfsForm.commentText = this.commentText;
|
||||||
|
this.qbfsForm.bzFlag = '1'
|
||||||
|
this.qbfsForm.dataList = this.dataList;
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//流程提交
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs['qbfsForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qbfsForm.commentText = this.commentText;
|
||||||
|
this.qbfsForm.bzFlag = '0'
|
||||||
|
this.qbfsForm.dataList = this.dataList;
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
this.$message.warning('请完善基础信息')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name;
|
||||||
|
},
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer() {
|
||||||
|
this.drawerModal = true;
|
||||||
|
this.drawerTitle = "转办处理人";
|
||||||
|
this.selectPeople = row;
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRole(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);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @Description: 点击下载
|
||||||
|
*/
|
||||||
|
downloadFile(attId) {
|
||||||
|
if (attId != null && attId !== "") {
|
||||||
|
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
||||||
|
} else {
|
||||||
|
this.$message.error("请选择要下载的文件");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
downloadFileByWater(attId, fileSuffix) {
|
||||||
|
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
|
||||||
|
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
|
||||||
|
this.$message.error("水印下载仅支持PDF,pdf格式文件");
|
||||||
|
} else {
|
||||||
|
if (attId != null && attId !== "") {
|
||||||
|
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
|
||||||
|
} else {
|
||||||
|
this.$message.error("请选择要下载的文件");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbfzStep5 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
//overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,634 @@
|
|||||||
|
<template>
|
||||||
|
<div class="phoneQbfzStep5 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标废止流程</template>
|
||||||
|
<template slot="proNode">审定责任人审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
:model="qbfsForm"
|
||||||
|
class="label-input-form"
|
||||||
|
:rules="formRules"
|
||||||
|
label-width="150px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-collapse-transition>
|
||||||
|
<div class="prc-content-border" v-if="foldFormFlag === false">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="企标编号" prop="standCode" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standCode"
|
||||||
|
placeholder="请输入企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standName"
|
||||||
|
placeholder="请输入中文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entCategory"
|
||||||
|
placeholder="请输入企标类别"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replaceNumber"
|
||||||
|
placeholder="请输入代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="废止理由" prop="abolishCause" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.abolishCause"
|
||||||
|
placeholder="请输入废止理由"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.enName"
|
||||||
|
placeholder="请输入英文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replacedNumber"
|
||||||
|
placeholder="请输入被代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.releaseDate"
|
||||||
|
placeholder="请输入发布日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.implementDate"
|
||||||
|
placeholder="请输入实施日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">
|
||||||
|
<el-select v-model="qbfsForm.nextStatus" disabled placeholder="请选择下一步状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in associationOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</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 class="prc-content-border" v-if="foldFormFlag === true" style="display: none">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="企标编号" prop="standCode" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standCode"
|
||||||
|
placeholder="请输入企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standName"
|
||||||
|
placeholder="请输入中文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entCategory"
|
||||||
|
placeholder="请输入企标类别"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replaceNumber"
|
||||||
|
placeholder="请输入代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="废止理由" prop="abolishCause" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.abolishCause"
|
||||||
|
placeholder="请输入废止理由"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.enName"
|
||||||
|
placeholder="请输入英文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replacedNumber"
|
||||||
|
placeholder="请输入被代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.releaseDate"
|
||||||
|
placeholder="请输入发布日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.implementDate"
|
||||||
|
placeholder="请输入实施日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">
|
||||||
|
<el-select v-model="qbfsForm.nextStatus" disabled placeholder="请选择下一步状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in associationOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">会签信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
height="52%"
|
||||||
|
style="width: 100%;"
|
||||||
|
: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
|
||||||
|
prop="opinion"
|
||||||
|
align="center"
|
||||||
|
min-width="300"
|
||||||
|
label="会签意见">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="people"
|
||||||
|
align="center"
|
||||||
|
min-width="300"
|
||||||
|
label="会签人">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="审批意见">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '2'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-transfer
|
||||||
|
show-submit
|
||||||
|
show-back
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@back="beforeBack"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
||||||
|
import axios from "axios";
|
||||||
|
import ProcessHeader from "process/components/ProcessHeader";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbfzStep5",
|
||||||
|
components: {
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
active: "1",
|
||||||
|
isTransfer: false,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle: "",
|
||||||
|
nodeList: [],
|
||||||
|
fileList: [],
|
||||||
|
commentText: "",
|
||||||
|
dataList: [],
|
||||||
|
detailData: [],
|
||||||
|
loading: false,
|
||||||
|
foldFormFlag: false,
|
||||||
|
qbfsForm: {
|
||||||
|
entNumber: "",
|
||||||
|
cnName: "",
|
||||||
|
enName: "",
|
||||||
|
entCategory: "",
|
||||||
|
replaceNumber: "",
|
||||||
|
replacedNumber: "",
|
||||||
|
releaseDate: "",
|
||||||
|
implementDate: "",
|
||||||
|
reviewDate: "",
|
||||||
|
nextStatus: ""
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
nextStatus: [
|
||||||
|
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
associationOptions: [{
|
||||||
|
value: "修订",
|
||||||
|
label: "修订"
|
||||||
|
}, {
|
||||||
|
value: "废止",
|
||||||
|
label: "废止"
|
||||||
|
}, {
|
||||||
|
value: "有效",
|
||||||
|
label: "有效"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||||
|
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
||||||
|
res = res.split(",");
|
||||||
|
this.dataList = [];
|
||||||
|
res.forEach(item => {
|
||||||
|
this.dataList.push({
|
||||||
|
opinion: item.split("-")[1],
|
||||||
|
people: item.split("-")[0]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//流程驳回
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qbfsForm.commentText = this.commentText;
|
||||||
|
this.qbfsForm.sdFlag = '1'
|
||||||
|
this.qbfsForm.dataList = this.dataList;
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//流程提交
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs['qbfsForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qbfsForm.commentText = this.commentText;
|
||||||
|
this.qbfsForm.sdFlag = '0'
|
||||||
|
this.qbfsForm.dataList = this.dataList;
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
this.$message.warning('请完善基础信息')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name;
|
||||||
|
},
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer() {
|
||||||
|
this.drawerModal = true;
|
||||||
|
this.drawerTitle = "转办处理人";
|
||||||
|
this.selectPeople = row;
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRole(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);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @Description: 点击下载
|
||||||
|
*/
|
||||||
|
downloadFile(attId) {
|
||||||
|
if (attId != null && attId !== "") {
|
||||||
|
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
||||||
|
} else {
|
||||||
|
this.$message.error("请选择要下载的文件");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
downloadFileByWater(attId, fileSuffix) {
|
||||||
|
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
|
||||||
|
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
|
||||||
|
this.$message.error("水印下载仅支持PDF,pdf格式文件");
|
||||||
|
} else {
|
||||||
|
if (attId != null && attId !== "") {
|
||||||
|
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
|
||||||
|
} else {
|
||||||
|
this.$message.error("请选择要下载的文件");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbfzStep5 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
//overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,634 @@
|
|||||||
|
<template>
|
||||||
|
<div class="phoneQbfzStep7 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标废止流程</template>
|
||||||
|
<template slot="proNode">批准负责人批准</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
:model="qbfsForm"
|
||||||
|
class="label-input-form"
|
||||||
|
:rules="formRules"
|
||||||
|
label-width="150px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-collapse-transition>
|
||||||
|
<div class="prc-content-border" v-if="foldFormFlag === false">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="企标编号" prop="standCode" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standCode"
|
||||||
|
placeholder="请输入企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standName"
|
||||||
|
placeholder="请输入中文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entCategory"
|
||||||
|
placeholder="请输入企标类别"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replaceNumber"
|
||||||
|
placeholder="请输入代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="废止理由" prop="abolishCause" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.abolishCause"
|
||||||
|
placeholder="请输入废止理由"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.enName"
|
||||||
|
placeholder="请输入英文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replacedNumber"
|
||||||
|
placeholder="请输入被代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.releaseDate"
|
||||||
|
placeholder="请输入发布日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.implementDate"
|
||||||
|
placeholder="请输入实施日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">
|
||||||
|
<el-select v-model="qbfsForm.nextStatus" disabled placeholder="请选择下一步状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in associationOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</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 class="prc-content-border" v-if="foldFormFlag === true" style="display: none">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="企标编号" prop="standCode" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standCode"
|
||||||
|
placeholder="请输入企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.standName"
|
||||||
|
placeholder="请输入中文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.entCategory"
|
||||||
|
placeholder="请输入企标类别"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replaceNumber"
|
||||||
|
placeholder="请输入代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="废止理由" prop="abolishCause" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.abolishCause"
|
||||||
|
placeholder="请输入废止理由"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.enName"
|
||||||
|
placeholder="请输入英文名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.replacedNumber"
|
||||||
|
placeholder="请输入被代替企标编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.releaseDate"
|
||||||
|
placeholder="请输入发布日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="qbfsForm.implementDate"
|
||||||
|
placeholder="请输入实施日期"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">
|
||||||
|
<el-select v-model="qbfsForm.nextStatus" disabled placeholder="请选择下一步状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in associationOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">会签信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
height="52%"
|
||||||
|
style="width: 100%;"
|
||||||
|
: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
|
||||||
|
prop="opinion"
|
||||||
|
align="center"
|
||||||
|
min-width="300"
|
||||||
|
label="会签意见">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="people"
|
||||||
|
align="center"
|
||||||
|
min-width="300"
|
||||||
|
label="会签人">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="审批意见">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '2'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-transfer
|
||||||
|
show-submit
|
||||||
|
show-back
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@back="beforeBack"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
||||||
|
import axios from "axios";
|
||||||
|
import ProcessHeader from "process/components/ProcessHeader";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbfzStep7",
|
||||||
|
components: {
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
active: "1",
|
||||||
|
isTransfer: false,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle: "",
|
||||||
|
nodeList: [],
|
||||||
|
fileList: [],
|
||||||
|
commentText: "",
|
||||||
|
dataList: [],
|
||||||
|
detailData: [],
|
||||||
|
loading: false,
|
||||||
|
foldFormFlag: false,
|
||||||
|
qbfsForm: {
|
||||||
|
entNumber: "",
|
||||||
|
cnName: "",
|
||||||
|
enName: "",
|
||||||
|
entCategory: "",
|
||||||
|
replaceNumber: "",
|
||||||
|
replacedNumber: "",
|
||||||
|
releaseDate: "",
|
||||||
|
implementDate: "",
|
||||||
|
reviewDate: "",
|
||||||
|
nextStatus: ""
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
nextStatus: [
|
||||||
|
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
associationOptions: [{
|
||||||
|
value: "修订",
|
||||||
|
label: "修订"
|
||||||
|
}, {
|
||||||
|
value: "废止",
|
||||||
|
label: "废止"
|
||||||
|
}, {
|
||||||
|
value: "有效",
|
||||||
|
label: "有效"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||||
|
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
||||||
|
res = res.split(",");
|
||||||
|
this.dataList = [];
|
||||||
|
res.forEach(item => {
|
||||||
|
this.dataList.push({
|
||||||
|
opinion: item.split("-")[1],
|
||||||
|
people: item.split("-")[0]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//流程驳回
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qbfsForm.commentText = this.commentText;
|
||||||
|
this.qbfsForm.bafzFlag = '1'
|
||||||
|
this.qbfsForm.dataList = this.dataList;
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//流程提交
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs['qbfsForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.qbfsForm.commentText = this.commentText;
|
||||||
|
this.qbfsForm.bafzFlag = '0'
|
||||||
|
this.qbfsForm.dataList = this.dataList;
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
this.$message.warning('请完善基础信息')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name;
|
||||||
|
},
|
||||||
|
foldForm() {
|
||||||
|
this.foldFormFlag = !this.foldFormFlag;
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer() {
|
||||||
|
this.drawerModal = true;
|
||||||
|
this.drawerTitle = "转办处理人";
|
||||||
|
this.selectPeople = row;
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRole(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);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @Description: 点击下载
|
||||||
|
*/
|
||||||
|
downloadFile(attId) {
|
||||||
|
if (attId != null && attId !== "") {
|
||||||
|
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
||||||
|
} else {
|
||||||
|
this.$message.error("请选择要下载的文件");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
downloadFileByWater(attId, fileSuffix) {
|
||||||
|
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
|
||||||
|
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
|
||||||
|
this.$message.error("水印下载仅支持PDF,pdf格式文件");
|
||||||
|
} else {
|
||||||
|
if (attId != null && attId !== "") {
|
||||||
|
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
|
||||||
|
} else {
|
||||||
|
this.$message.error("请选择要下载的文件");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbfzStep7 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
//overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,487 @@
|
|||||||
|
<!-- 企标制修订计划管控-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneQbzxdjhgkStep2 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标制修订计划管控</template>
|
||||||
|
<template slot="proNode">申请部门高级经理审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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="qbfsForm" class="label-input-form prc-content-border"
|
||||||
|
label-width="150px">
|
||||||
|
<el-form-item prop="esName" label="企标名称" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.esName"
|
||||||
|
placeholder="请输入企标名称"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="planStatus" label="计划状态" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-select disabled v-model="qbfsForm.planStatus" placeholder="请选择计划状态">
|
||||||
|
<el-option label="制定" value="制定"></el-option>
|
||||||
|
<el-option label="修订" value="修订"></el-option>
|
||||||
|
<el-option label="完成" value="完成"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="reviseStatus" label="制修订状态" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-select disabled v-model="qbfsForm.reviseStatus" placeholder="请选择制修订状态">
|
||||||
|
<el-option label="制定完成" value="制定完成"></el-option>
|
||||||
|
<el-option label="制定中" value="制定中"></el-option>
|
||||||
|
<el-option label="未制定" value="未制定"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="drafterName" label="起草人" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.drafterName"
|
||||||
|
placeholder="请输入起草人"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="resPersonName" label="评审责任人" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.resPersonName"
|
||||||
|
placeholder="请输入评审责任人"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="wgLeaderName" label="工作组组长" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.wgLeaderName"
|
||||||
|
placeholder="请输入工作组组长"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="计划标准初稿完成时间" style="width: 100%; margin-right:10px" prop="draftTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.draftTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择计划标准初稿完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="计划标准发布时间" style="width: 100%; margin-right:10px" prop="releaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.releaseTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择计划标准发布时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="起草责任单位" style="width: 100%; margin-right:10px" prop="unit" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.unit"
|
||||||
|
placeholder="请输入起草责任单位"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '5'" label="新增原因" style="width: 100%; margin-right:10px" prop="newReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.newReason"
|
||||||
|
placeholder="请输入新增原因"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.mergeReason"
|
||||||
|
placeholder="请输入合并原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.yqDraftTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择延期后初稿完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.yqReleaseTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择延期后标准发布时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.delayReason"
|
||||||
|
placeholder="请输入延期原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.cancelReason"
|
||||||
|
placeholder="请输入取消原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.renameReason"
|
||||||
|
placeholder="请输入更名原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="备注" style="width: 100%; margin-right:10px" class="add-form-item" prop="remarks">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="qbfsForm.remarks"-->
|
||||||
|
<!-- placeholder="请输入备注"-->
|
||||||
|
<!-- :maxlength="500"/>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-form>
|
||||||
|
</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'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
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="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbzxdjhgkStep2",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
type: '',
|
||||||
|
commentText: '',
|
||||||
|
qbfsForm: {},
|
||||||
|
isTransfer: false,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
loading: false,
|
||||||
|
// 调整处理人抽屉状态
|
||||||
|
drawerModal: false,
|
||||||
|
nodeList:[],
|
||||||
|
drawerTitle: '',
|
||||||
|
detailData: [],
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable()
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.getFormFieldList(processForm)
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList (item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item))
|
||||||
|
this.type = item.type
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleTabs(name){
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRole (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)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmit(){
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.passFlag = '0'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.passFlag = '1'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbzxdjhgkStep2 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,487 @@
|
|||||||
|
<!-- 企标制修订计划管控-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneQbzxdjhgkStep3 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标制修订计划管控</template>
|
||||||
|
<template slot="proNode">申请部门中心主任会签</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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="qbfsForm" class="label-input-form prc-content-border"
|
||||||
|
label-width="150px">
|
||||||
|
<el-form-item prop="esName" label="企标名称" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.esName"
|
||||||
|
placeholder="请输入企标名称"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="planStatus" label="计划状态" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-select disabled v-model="qbfsForm.planStatus" placeholder="请选择计划状态">
|
||||||
|
<el-option label="制定" value="制定"></el-option>
|
||||||
|
<el-option label="修订" value="修订"></el-option>
|
||||||
|
<el-option label="完成" value="完成"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="reviseStatus" label="制修订状态" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-select disabled v-model="qbfsForm.reviseStatus" placeholder="请选择制修订状态">
|
||||||
|
<el-option label="制定完成" value="制定完成"></el-option>
|
||||||
|
<el-option label="制定中" value="制定中"></el-option>
|
||||||
|
<el-option label="未制定" value="未制定"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="drafterName" label="起草人" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.drafterName"
|
||||||
|
placeholder="请输入起草人"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="resPersonName" label="评审责任人" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.resPersonName"
|
||||||
|
placeholder="请输入评审责任人"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="wgLeaderName" label="工作组组长" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.wgLeaderName"
|
||||||
|
placeholder="请输入工作组组长"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="计划标准初稿完成时间" style="width: 100%; margin-right:10px" prop="draftTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.draftTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择计划标准初稿完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="计划标准发布时间" style="width: 100%; margin-right:10px" prop="releaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.releaseTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择计划标准发布时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="起草责任单位" style="width: 100%; margin-right:10px" prop="unit" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.unit"
|
||||||
|
placeholder="请输入起草责任单位"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '5'" label="新增原因" style="width: 100%; margin-right:10px" prop="newReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.newReason"
|
||||||
|
placeholder="请输入新增原因"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.mergeReason"
|
||||||
|
placeholder="请输入合并原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.yqDraftTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择延期后初稿完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.yqReleaseTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择延期后标准发布时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.delayReason"
|
||||||
|
placeholder="请输入延期原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.cancelReason"
|
||||||
|
placeholder="请输入取消原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.renameReason"
|
||||||
|
placeholder="请输入更名原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="备注" style="width: 100%; margin-right:10px" class="add-form-item" prop="remarks">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="qbfsForm.remarks"-->
|
||||||
|
<!-- placeholder="请输入备注"-->
|
||||||
|
<!-- :maxlength="500"/>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-form>
|
||||||
|
</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'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
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="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbzxdjhgkStep3",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
type: '',
|
||||||
|
commentText: '',
|
||||||
|
qbfsForm: {},
|
||||||
|
isTransfer: false,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
loading: false,
|
||||||
|
// 调整处理人抽屉状态
|
||||||
|
drawerModal: false,
|
||||||
|
nodeList:[],
|
||||||
|
drawerTitle: '',
|
||||||
|
detailData: [],
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable()
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.getFormFieldList(processForm)
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList (item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item))
|
||||||
|
this.type = item.type
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleTabs(name){
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRole (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)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmit(){
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.deptCenterFlag = '0'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.deptCenterFlag = '1'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbzxdjhgkStep3 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,487 @@
|
|||||||
|
<!-- 企标制修订计划管控-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneQbzxdjhgkStep4 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标制修订计划管控</template>
|
||||||
|
<template slot="proNode">标准法规工作组组长审定</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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="qbfsForm" class="label-input-form prc-content-border"
|
||||||
|
label-width="150px">
|
||||||
|
<el-form-item prop="esName" label="企标名称" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.esName"
|
||||||
|
placeholder="请输入企标名称"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="planStatus" label="计划状态" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-select disabled v-model="qbfsForm.planStatus" placeholder="请选择计划状态">
|
||||||
|
<el-option label="制定" value="制定"></el-option>
|
||||||
|
<el-option label="修订" value="修订"></el-option>
|
||||||
|
<el-option label="完成" value="完成"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="reviseStatus" label="制修订状态" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-select disabled v-model="qbfsForm.reviseStatus" placeholder="请选择制修订状态">
|
||||||
|
<el-option label="制定完成" value="制定完成"></el-option>
|
||||||
|
<el-option label="制定中" value="制定中"></el-option>
|
||||||
|
<el-option label="未制定" value="未制定"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="drafterName" label="起草人" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.drafterName"
|
||||||
|
placeholder="请输入起草人"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="resPersonName" label="评审责任人" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.resPersonName"
|
||||||
|
placeholder="请输入评审责任人"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="wgLeaderName" label="工作组组长" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.wgLeaderName"
|
||||||
|
placeholder="请输入工作组组长"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="计划标准初稿完成时间" style="width: 100%; margin-right:10px" prop="draftTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.draftTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择计划标准初稿完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="计划标准发布时间" style="width: 100%; margin-right:10px" prop="releaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.releaseTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择计划标准发布时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="起草责任单位" style="width: 100%; margin-right:10px" prop="unit" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.unit"
|
||||||
|
placeholder="请输入起草责任单位"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '5'" label="新增原因" style="width: 100%; margin-right:10px" prop="newReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.newReason"
|
||||||
|
placeholder="请输入新增原因"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.mergeReason"
|
||||||
|
placeholder="请输入合并原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.yqDraftTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择延期后初稿完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.yqReleaseTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择延期后标准发布时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.delayReason"
|
||||||
|
placeholder="请输入延期原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.cancelReason"
|
||||||
|
placeholder="请输入取消原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.renameReason"
|
||||||
|
placeholder="请输入更名原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="备注" style="width: 100%; margin-right:10px" class="add-form-item" prop="remarks">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="qbfsForm.remarks"-->
|
||||||
|
<!-- placeholder="请输入备注"-->
|
||||||
|
<!-- :maxlength="500"/>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-form>
|
||||||
|
</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'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
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="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbzxdjhgkStep4",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
type: '',
|
||||||
|
commentText: '',
|
||||||
|
qbfsForm: {},
|
||||||
|
isTransfer: false,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
loading: false,
|
||||||
|
// 调整处理人抽屉状态
|
||||||
|
drawerModal: false,
|
||||||
|
nodeList:[],
|
||||||
|
drawerTitle: '',
|
||||||
|
detailData: [],
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable()
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.getFormFieldList(processForm)
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList (item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item))
|
||||||
|
this.type = item.type
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleTabs(name){
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRole (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)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmit(){
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.bzFlag = '0'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.bzFlag = '1'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbzxdjhgkStep4 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
||||||
@@ -0,0 +1,487 @@
|
|||||||
|
<!-- 企标制修订计划管控-->
|
||||||
|
<template>
|
||||||
|
<div class="phoneQbzxdjhgkStep5 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">企标制修订计划管控</template>
|
||||||
|
<template slot="proNode">标准法规部部长批准</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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="qbfsForm" class="label-input-form prc-content-border"
|
||||||
|
label-width="150px">
|
||||||
|
<el-form-item prop="esName" label="企标名称" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.esName"
|
||||||
|
placeholder="请输入企标名称"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="planStatus" label="计划状态" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-select disabled v-model="qbfsForm.planStatus" placeholder="请选择计划状态">
|
||||||
|
<el-option label="制定" value="制定"></el-option>
|
||||||
|
<el-option label="修订" value="修订"></el-option>
|
||||||
|
<el-option label="完成" value="完成"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="reviseStatus" label="制修订状态" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-select disabled v-model="qbfsForm.reviseStatus" placeholder="请选择制修订状态">
|
||||||
|
<el-option label="制定完成" value="制定完成"></el-option>
|
||||||
|
<el-option label="制定中" value="制定中"></el-option>
|
||||||
|
<el-option label="未制定" value="未制定"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="drafterName" label="起草人" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.drafterName"
|
||||||
|
placeholder="请输入起草人"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="resPersonName" label="评审责任人" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.resPersonName"
|
||||||
|
placeholder="请输入评审责任人"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="wgLeaderName" label="工作组组长" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.wgLeaderName"
|
||||||
|
placeholder="请输入工作组组长"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="计划标准初稿完成时间" style="width: 100%; margin-right:10px" prop="draftTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.draftTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择计划标准初稿完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="计划标准发布时间" style="width: 100%; margin-right:10px" prop="releaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.releaseTime"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择计划标准发布时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="起草责任单位" style="width: 100%; margin-right:10px" prop="unit" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.unit"
|
||||||
|
placeholder="请输入起草责任单位"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '5'" label="新增原因" style="width: 100%; margin-right:10px" prop="newReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.newReason"
|
||||||
|
placeholder="请输入新增原因"
|
||||||
|
:maxlength="500"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.mergeReason"
|
||||||
|
placeholder="请输入合并原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.yqDraftTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择延期后初稿完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="qbfsForm.yqReleaseTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择延期后标准发布时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.delayReason"
|
||||||
|
placeholder="请输入延期原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.cancelReason"
|
||||||
|
placeholder="请输入取消原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="qbfsForm.renameReason"
|
||||||
|
placeholder="请输入更名原因"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="备注" style="width: 100%; margin-right:10px" class="add-form-item" prop="remarks">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="qbfsForm.remarks"-->
|
||||||
|
<!-- placeholder="请输入备注"-->
|
||||||
|
<!-- :maxlength="500"/>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-form>
|
||||||
|
</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'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
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="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedTransferRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessTitle from "process/components/ProcessTitle";
|
||||||
|
import ProcessFooter from "process/components/ProcessFooter";
|
||||||
|
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneQbzxdjhgkStep5",
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
type: '',
|
||||||
|
commentText: '',
|
||||||
|
qbfsForm: {},
|
||||||
|
isTransfer: false,
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
loading: false,
|
||||||
|
// 调整处理人抽屉状态
|
||||||
|
drawerModal: false,
|
||||||
|
nodeList:[],
|
||||||
|
drawerTitle: '',
|
||||||
|
detailData: [],
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.processTable()
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.getFormFieldList(processForm)
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList (item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.qbfsForm = JSON.parse(JSON.stringify(item))
|
||||||
|
this.type = item.type
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleTabs(name){
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
//转办事件
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
//确认转办
|
||||||
|
checkedRole (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)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmit(){
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.bzfgbzFlag = '0'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
this.isSubmit = true
|
||||||
|
this.qbfsForm.bzfgbzFlag = '1'
|
||||||
|
this.qbfsForm.commentText = this.commentText
|
||||||
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: json,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneQbzxdjhgkStep5 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
||||||
@@ -1,13 +1,538 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div class="phoneWbsmStep3 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">外部署名推荐审批流程</template>
|
||||||
|
<template slot="proNode">标准法规部部长审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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;">
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
ref="entryTable"
|
||||||
|
height="90%"
|
||||||
|
style="width: 100%"
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="code"
|
||||||
|
min-width="180"
|
||||||
|
align="center"
|
||||||
|
label="标准号">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standYear" class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
|
scope.row.standNumber
|
||||||
|
}}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }}
|
||||||
|
{{ scope.row.standNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standName"
|
||||||
|
label="标准名称"
|
||||||
|
min-width="300"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="standSortShow" label="标准类别" min-width="150" align="center" show-overflow-tooltip>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a>{{ scope.row.standSortShow }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
|
<el-table-column prop="workPeople" min-width="300" label="推荐署名人及单位" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="reason" min-width="300" label="推荐署名原因" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="expenses" min-width="150" label="费用" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</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'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
show-submit
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@back="beforeBack"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
||||||
|
import axios from "axios";
|
||||||
|
import ProcessHeader from "process/components/ProcessHeader";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step3"
|
name: "phoneWbsmStep3",
|
||||||
|
components: {
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
passInfo: 0,
|
||||||
|
detailData: [],
|
||||||
|
loading: false,
|
||||||
|
commentText: '', // 意见
|
||||||
|
title: '', // 新增编辑抽屉标题
|
||||||
|
isTransfer: false,
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
userId: this.$route.query.taskAssignee,
|
||||||
|
nonSearch: {
|
||||||
|
standSerialNumber: '',
|
||||||
|
standId: '', // 标准号/名称
|
||||||
|
productName: '', // 项目名称
|
||||||
|
responsibleUnit: '' // 责任部门
|
||||||
|
},
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
turnLoading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
dataList: [],
|
||||||
|
endDataList: [],
|
||||||
|
lastDataList: [],
|
||||||
|
// 新增选择分发责任人数组
|
||||||
|
multipleSelection: [],
|
||||||
|
// 当前页数
|
||||||
|
pageNo: 1,
|
||||||
|
total: 0,
|
||||||
|
myLoading: false,
|
||||||
|
// 责任部门
|
||||||
|
zNodesSItem: [],
|
||||||
|
clearSelection: false,
|
||||||
|
nodeList: [],
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
roleForm: {
|
||||||
|
dutyUserInfo: [],
|
||||||
|
dutyUserInfoName: [],
|
||||||
|
dutyPeopleInfo: '',
|
||||||
|
dutyPeople: ''
|
||||||
|
},
|
||||||
|
rowDutyPeople: {},
|
||||||
|
props: { label: 'name', children: 'children', value: 'id', multiple: true, disabled: false },
|
||||||
|
dutyUserCaseData: [],
|
||||||
|
roleFormRules: {},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
nonSearch(val) {
|
||||||
|
this.nonSearch = val
|
||||||
|
}
|
||||||
|
},
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.dataList = item.dataList
|
||||||
|
this.roleForm = item.roleForm
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 批量选择分发责任人
|
||||||
|
dutyEngineerList(id) {
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.$message.warning("请选择至少一条数据进行分发责任人");
|
||||||
|
} else {
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.modalshowflag = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 每行选择负责人点击操作
|
||||||
|
clickOpen(val, id) {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
this.rowDutyPeople = val
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.modalshowflag = true
|
||||||
|
},
|
||||||
|
// 选择勾选项的集合
|
||||||
|
handleSelectionChange(value) {
|
||||||
|
this.multipleSelection = value
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
|
||||||
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
|
// 保存按钮
|
||||||
|
handleSave() {
|
||||||
|
this.saveLoading = true
|
||||||
|
let _formData = new FormData()
|
||||||
|
_formData.append('taskIds', this.taskIds)
|
||||||
|
_formData.append('json', JSON.stringify({
|
||||||
|
// roleForm: this.roleForm,
|
||||||
|
standardInfoList: this.dataList,
|
||||||
|
commentText: this.commentText
|
||||||
|
}))
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.$message.success('保存成功')
|
||||||
|
this.bpnId = res.result
|
||||||
|
}).catch(e => {
|
||||||
|
this.saveLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 提交按钮
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true
|
||||||
|
let son = {
|
||||||
|
signFlag: '1',
|
||||||
|
commentText: this.commentText,
|
||||||
|
dataList: this.dataList,
|
||||||
|
roleForm: this.roleForm
|
||||||
|
}
|
||||||
|
var json = JSON.stringify(son)
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//驳回按钮
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
let son = {
|
||||||
|
signFlag: '2',
|
||||||
|
commentText: this.commentText,
|
||||||
|
dataList: this.dataList,
|
||||||
|
roleForm: this.roleForm
|
||||||
|
}
|
||||||
|
var json = JSON.stringify(son)
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//转办按钮
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
// 流程阶段负责人选择
|
||||||
|
choiceZRR (type, title, id) {
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.type = type
|
||||||
|
this.drawerTitle = title
|
||||||
|
this.modalshowflag = true
|
||||||
|
},
|
||||||
|
drawerCheck (data) {
|
||||||
|
if (this.drawerTitle === '转办处理人') {
|
||||||
|
this.turnLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.taskIds, // 任务id
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
userId: this.userId, // 委托人
|
||||||
|
pId: this.pId // 流程实例
|
||||||
|
}).then(res =>{
|
||||||
|
if (res.success) {
|
||||||
|
this.turnLoading = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push("/processCenter")
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.roleRow = data[0]
|
||||||
|
// 选取负责人时的操作
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.rowDutyPeople.dutyPeopleInfo = this.roleRow.name
|
||||||
|
this.rowDutyPeople.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
}else {
|
||||||
|
this.multipleSelection.forEach(item => {
|
||||||
|
item.dutyPeopleInfo = this.roleRow.name
|
||||||
|
item.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
})
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
this.lastDataList = this.dataList
|
||||||
|
// 选取流程信息完成
|
||||||
|
// this.roleForm.dutyUserInfoName = this.roleRow.name
|
||||||
|
}
|
||||||
|
this.modalshowflag = false
|
||||||
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview (item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: 'OtherStandardDetails',
|
||||||
|
params: {
|
||||||
|
id: item.standId,
|
||||||
|
// pageType: 'FOREIGN_STAND'
|
||||||
|
pageType: item.standType + '_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
window.open(routeUrl.href, '_blank')
|
||||||
|
},
|
||||||
|
// 清空 查询条件
|
||||||
|
clearAllSearch () {
|
||||||
|
this.nonSearch = {
|
||||||
|
standId: '',
|
||||||
|
standSerialNumber: '',
|
||||||
|
productName: '',
|
||||||
|
responsibleUnit: ''
|
||||||
|
}
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
// 分页事件
|
||||||
|
pageChange (page) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getTableByPage()
|
||||||
|
},
|
||||||
|
pageSizeChange () {
|
||||||
|
this.getTableByPage()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneWbsmStep3 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
</style>
|
||||||
|
|||||||
@@ -1,13 +1,538 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div class="phoneWbsmStep4 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">外部署名推荐审批流程</template>
|
||||||
|
<template slot="proNode">技术管理中心主任审核</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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;">
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
ref="entryTable"
|
||||||
|
height="90%"
|
||||||
|
style="width: 100%"
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="code"
|
||||||
|
min-width="180"
|
||||||
|
align="center"
|
||||||
|
label="标准号">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standYear" class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
|
scope.row.standNumber
|
||||||
|
}}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }}
|
||||||
|
{{ scope.row.standNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standName"
|
||||||
|
label="标准名称"
|
||||||
|
min-width="300"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="standSortShow" label="标准类别" min-width="150" align="center" show-overflow-tooltip>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a>{{ scope.row.standSortShow }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
|
<el-table-column prop="workPeople" min-width="300" label="推荐署名人及单位" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="reason" min-width="300" label="推荐署名原因" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="expenses" min-width="150" label="费用" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</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'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
show-submit
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@back="beforeBack"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
||||||
|
import axios from "axios";
|
||||||
|
import ProcessHeader from "process/components/ProcessHeader";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step4"
|
name: "phoneWbsmStep4",
|
||||||
|
components: {
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
passInfo: 0,
|
||||||
|
detailData: [],
|
||||||
|
loading: false,
|
||||||
|
commentText: '', // 意见
|
||||||
|
title: '', // 新增编辑抽屉标题
|
||||||
|
isTransfer: false,
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
userId: this.$route.query.taskAssignee,
|
||||||
|
nonSearch: {
|
||||||
|
standSerialNumber: '',
|
||||||
|
standId: '', // 标准号/名称
|
||||||
|
productName: '', // 项目名称
|
||||||
|
responsibleUnit: '' // 责任部门
|
||||||
|
},
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
turnLoading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
dataList: [],
|
||||||
|
endDataList: [],
|
||||||
|
lastDataList: [],
|
||||||
|
// 新增选择分发责任人数组
|
||||||
|
multipleSelection: [],
|
||||||
|
// 当前页数
|
||||||
|
pageNo: 1,
|
||||||
|
total: 0,
|
||||||
|
myLoading: false,
|
||||||
|
// 责任部门
|
||||||
|
zNodesSItem: [],
|
||||||
|
clearSelection: false,
|
||||||
|
nodeList: [],
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
roleForm: {
|
||||||
|
dutyUserInfo: [],
|
||||||
|
dutyUserInfoName: [],
|
||||||
|
dutyPeopleInfo: '',
|
||||||
|
dutyPeople: ''
|
||||||
|
},
|
||||||
|
rowDutyPeople: {},
|
||||||
|
props: { label: 'name', children: 'children', value: 'id', multiple: true, disabled: false },
|
||||||
|
dutyUserCaseData: [],
|
||||||
|
roleFormRules: {},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
nonSearch(val) {
|
||||||
|
this.nonSearch = val
|
||||||
|
}
|
||||||
|
},
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.dataList = item.dataList
|
||||||
|
this.roleForm = item.roleForm
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 批量选择分发责任人
|
||||||
|
dutyEngineerList(id) {
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.$message.warning("请选择至少一条数据进行分发责任人");
|
||||||
|
} else {
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.modalshowflag = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 每行选择负责人点击操作
|
||||||
|
clickOpen(val, id) {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
this.rowDutyPeople = val
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.modalshowflag = true
|
||||||
|
},
|
||||||
|
// 选择勾选项的集合
|
||||||
|
handleSelectionChange(value) {
|
||||||
|
this.multipleSelection = value
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
|
||||||
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
|
// 保存按钮
|
||||||
|
handleSave() {
|
||||||
|
this.saveLoading = true
|
||||||
|
let _formData = new FormData()
|
||||||
|
_formData.append('taskIds', this.taskIds)
|
||||||
|
_formData.append('json', JSON.stringify({
|
||||||
|
// roleForm: this.roleForm,
|
||||||
|
standardInfoList: this.dataList,
|
||||||
|
commentText: this.commentText
|
||||||
|
}))
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.$message.success('保存成功')
|
||||||
|
this.bpnId = res.result
|
||||||
|
}).catch(e => {
|
||||||
|
this.saveLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 提交按钮
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true
|
||||||
|
let son = {
|
||||||
|
signFlag: '1',
|
||||||
|
commentText: this.commentText,
|
||||||
|
dataList: this.dataList,
|
||||||
|
roleForm: this.roleForm
|
||||||
|
}
|
||||||
|
var json = JSON.stringify(son)
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//驳回按钮
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
let son = {
|
||||||
|
signFlag: '2',
|
||||||
|
commentText: this.commentText,
|
||||||
|
dataList: this.dataList,
|
||||||
|
roleForm: this.roleForm
|
||||||
|
}
|
||||||
|
var json = JSON.stringify(son)
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//转办按钮
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
// 流程阶段负责人选择
|
||||||
|
choiceZRR (type, title, id) {
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.type = type
|
||||||
|
this.drawerTitle = title
|
||||||
|
this.modalshowflag = true
|
||||||
|
},
|
||||||
|
drawerCheck (data) {
|
||||||
|
if (this.drawerTitle === '转办处理人') {
|
||||||
|
this.turnLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.taskIds, // 任务id
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
userId: this.userId, // 委托人
|
||||||
|
pId: this.pId // 流程实例
|
||||||
|
}).then(res =>{
|
||||||
|
if (res.success) {
|
||||||
|
this.turnLoading = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push("/processCenter")
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.roleRow = data[0]
|
||||||
|
// 选取负责人时的操作
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.rowDutyPeople.dutyPeopleInfo = this.roleRow.name
|
||||||
|
this.rowDutyPeople.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
}else {
|
||||||
|
this.multipleSelection.forEach(item => {
|
||||||
|
item.dutyPeopleInfo = this.roleRow.name
|
||||||
|
item.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
})
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
this.lastDataList = this.dataList
|
||||||
|
// 选取流程信息完成
|
||||||
|
// this.roleForm.dutyUserInfoName = this.roleRow.name
|
||||||
|
}
|
||||||
|
this.modalshowflag = false
|
||||||
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview (item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: 'OtherStandardDetails',
|
||||||
|
params: {
|
||||||
|
id: item.standId,
|
||||||
|
// pageType: 'FOREIGN_STAND'
|
||||||
|
pageType: item.standType + '_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
window.open(routeUrl.href, '_blank')
|
||||||
|
},
|
||||||
|
// 清空 查询条件
|
||||||
|
clearAllSearch () {
|
||||||
|
this.nonSearch = {
|
||||||
|
standId: '',
|
||||||
|
standSerialNumber: '',
|
||||||
|
productName: '',
|
||||||
|
responsibleUnit: ''
|
||||||
|
}
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
// 分页事件
|
||||||
|
pageChange (page) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getTableByPage()
|
||||||
|
},
|
||||||
|
pageSizeChange () {
|
||||||
|
this.getTableByPage()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneWbsmStep4 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 52px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
</style>
|
||||||
|
|||||||
@@ -1,13 +1,538 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div class="phoneWbsmStep5 phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">外部署名推荐审批流程</template>
|
||||||
|
<template slot="proNode">工程研究总院院长/FU/BU/SBU领导审批</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<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;">
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
ref="entryTable"
|
||||||
|
height="90%"
|
||||||
|
style="width: 100%"
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="code"
|
||||||
|
min-width="180"
|
||||||
|
align="center"
|
||||||
|
label="标准号">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standYear" class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
|
scope.row.standNumber
|
||||||
|
}}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }}
|
||||||
|
{{ scope.row.standNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standName"
|
||||||
|
label="标准名称"
|
||||||
|
min-width="300"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="standSortShow" label="标准类别" min-width="150" align="center" show-overflow-tooltip>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a>{{ scope.row.standSortShow }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
|
<el-table-column prop="workPeople" min-width="300" label="推荐署名人及单位" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="reason" min-width="300" label="推荐署名原因" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="expenses" min-width="150" label="费用" align="center">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</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'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
width="130"
|
||||||
|
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="完成时间"
|
||||||
|
width="130"
|
||||||
|
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="流程信息"
|
||||||
|
width="130"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-back
|
||||||
|
show-submit
|
||||||
|
:transfer-loading="isTransfer"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:approval="true"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
@back="beforeBack"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Dialog } from 'vant';
|
||||||
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
||||||
|
import axios from "axios";
|
||||||
|
import ProcessHeader from "process/components/ProcessHeader";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step5"
|
name: "phoneWbsmStep5",
|
||||||
|
components: {
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
ProcessFooter
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
passInfo: 0,
|
||||||
|
detailData: [],
|
||||||
|
loading: false,
|
||||||
|
commentText: '', // 意见
|
||||||
|
title: '', // 新增编辑抽屉标题
|
||||||
|
isTransfer: false,
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
userId: this.$route.query.taskAssignee,
|
||||||
|
nonSearch: {
|
||||||
|
standSerialNumber: '',
|
||||||
|
standId: '', // 标准号/名称
|
||||||
|
productName: '', // 项目名称
|
||||||
|
responsibleUnit: '' // 责任部门
|
||||||
|
},
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
turnLoading: false,
|
||||||
|
drawerModal: false,
|
||||||
|
dataList: [],
|
||||||
|
endDataList: [],
|
||||||
|
lastDataList: [],
|
||||||
|
// 新增选择分发责任人数组
|
||||||
|
multipleSelection: [],
|
||||||
|
// 当前页数
|
||||||
|
pageNo: 1,
|
||||||
|
total: 0,
|
||||||
|
myLoading: false,
|
||||||
|
// 责任部门
|
||||||
|
zNodesSItem: [],
|
||||||
|
clearSelection: false,
|
||||||
|
nodeList: [],
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
roleForm: {
|
||||||
|
dutyUserInfo: [],
|
||||||
|
dutyUserInfoName: [],
|
||||||
|
dutyPeopleInfo: '',
|
||||||
|
dutyPeople: ''
|
||||||
|
},
|
||||||
|
rowDutyPeople: {},
|
||||||
|
props: { label: 'name', children: 'children', value: 'id', multiple: true, disabled: false },
|
||||||
|
dutyUserCaseData: [],
|
||||||
|
roleFormRules: {},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
nonSearch(val) {
|
||||||
|
this.nonSearch = val
|
||||||
|
}
|
||||||
|
},
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
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 => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg);
|
||||||
|
this.getFormFieldList(processForm);
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.dataList = item.dataList
|
||||||
|
this.roleForm = item.roleForm
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 批量选择分发责任人
|
||||||
|
dutyEngineerList(id) {
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.$message.warning("请选择至少一条数据进行分发责任人");
|
||||||
|
} else {
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.modalshowflag = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 每行选择负责人点击操作
|
||||||
|
clickOpen(val, id) {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
this.rowDutyPeople = val
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.modalshowflag = true
|
||||||
|
},
|
||||||
|
// 选择勾选项的集合
|
||||||
|
handleSelectionChange(value) {
|
||||||
|
this.multipleSelection = value
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
|
||||||
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
|
// 保存按钮
|
||||||
|
handleSave() {
|
||||||
|
this.saveLoading = true
|
||||||
|
let _formData = new FormData()
|
||||||
|
_formData.append('taskIds', this.taskIds)
|
||||||
|
_formData.append('json', JSON.stringify({
|
||||||
|
// roleForm: this.roleForm,
|
||||||
|
standardInfoList: this.dataList,
|
||||||
|
commentText: this.commentText
|
||||||
|
}))
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.$message.success('保存成功')
|
||||||
|
this.bpnId = res.result
|
||||||
|
}).catch(e => {
|
||||||
|
this.saveLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 提交按钮
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true
|
||||||
|
let son = {
|
||||||
|
yzFlag: '1',
|
||||||
|
commentText: this.commentText,
|
||||||
|
dataList: this.dataList,
|
||||||
|
roleForm: this.roleForm
|
||||||
|
}
|
||||||
|
var json = JSON.stringify(son)
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//驳回按钮
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentText){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
let son = {
|
||||||
|
yzFlag: '2',
|
||||||
|
commentText: this.commentText,
|
||||||
|
dataList: this.dataList,
|
||||||
|
roleForm: this.roleForm
|
||||||
|
}
|
||||||
|
var json = JSON.stringify(son)
|
||||||
|
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 => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//转办按钮
|
||||||
|
handleTransfer(){
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
this.selectPeople = row
|
||||||
|
},
|
||||||
|
// 流程阶段负责人选择
|
||||||
|
choiceZRR (type, title, id) {
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.type = type
|
||||||
|
this.drawerTitle = title
|
||||||
|
this.modalshowflag = true
|
||||||
|
},
|
||||||
|
drawerCheck (data) {
|
||||||
|
if (this.drawerTitle === '转办处理人') {
|
||||||
|
this.turnLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.taskIds, // 任务id
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
userId: this.userId, // 委托人
|
||||||
|
pId: this.pId // 流程实例
|
||||||
|
}).then(res =>{
|
||||||
|
if (res.success) {
|
||||||
|
this.turnLoading = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push("/processCenter")
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.roleRow = data[0]
|
||||||
|
// 选取负责人时的操作
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.rowDutyPeople.dutyPeopleInfo = this.roleRow.name
|
||||||
|
this.rowDutyPeople.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
}else {
|
||||||
|
this.multipleSelection.forEach(item => {
|
||||||
|
item.dutyPeopleInfo = this.roleRow.name
|
||||||
|
item.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
})
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
this.lastDataList = this.dataList
|
||||||
|
// 选取流程信息完成
|
||||||
|
// this.roleForm.dutyUserInfoName = this.roleRow.name
|
||||||
|
}
|
||||||
|
this.modalshowflag = false
|
||||||
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview (item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: 'OtherStandardDetails',
|
||||||
|
params: {
|
||||||
|
id: item.standId,
|
||||||
|
// pageType: 'FOREIGN_STAND'
|
||||||
|
pageType: item.standType + '_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
window.open(routeUrl.href, '_blank')
|
||||||
|
},
|
||||||
|
// 清空 查询条件
|
||||||
|
clearAllSearch () {
|
||||||
|
this.nonSearch = {
|
||||||
|
standId: '',
|
||||||
|
standSerialNumber: '',
|
||||||
|
productName: '',
|
||||||
|
responsibleUnit: ''
|
||||||
|
}
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
// 分页事件
|
||||||
|
pageChange (page) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getTableByPage()
|
||||||
|
},
|
||||||
|
pageSizeChange () {
|
||||||
|
this.getTableByPage()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.phoneWbsmStep5 {
|
||||||
|
/deep/.van-dialog__content {
|
||||||
|
min-height: 300px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prc-content-border {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/.prc-content-border .el-form-item__content {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 75px;
|
||||||
|
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 {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 52px;
|
||||||
|
height: calc(~'100% - 155px');
|
||||||
|
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>
|
</style>
|
||||||
|
|||||||
@@ -2240,6 +2240,126 @@ const routes = [
|
|||||||
title: '未符合项整改流程'
|
title: '未符合项整改流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneCywbbzzxdStep4',
|
||||||
|
name: 'phoneCywbbzzxdStep4',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/cywbbzzxd/step4.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '参与外部标准制修订信息提报流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneCywbbzzxdStep5',
|
||||||
|
name: 'phoneCywbbzzxdStep5',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/cywbbzzxd/step5.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '参与外部标准制修订信息提报流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneCywbbzzxdStep6',
|
||||||
|
name: 'phoneCywbbzzxdStep6',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/cywbbzzxd/step6.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '参与外部标准制修订信息提报流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbzxdjhgkStep2',
|
||||||
|
name: 'phoneQbzxdjhgkStep2',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbzxdjhgk/step2.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标制修订计划管控流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbzxdjhgkStep3',
|
||||||
|
name: 'phoneQbzxdjhgkStep3',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbzxdjhgk/step3.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标制修订计划管控流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbzxdjhgkStep4',
|
||||||
|
name: 'phoneQbzxdjhgkStep4',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbzxdjhgk/step4.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标制修订计划管控流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbzxdjhgkStep5',
|
||||||
|
name: 'phoneQbzxdjhgkStep5',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbzxdjhgk/step5.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标制修订计划管控流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbfsStep4',
|
||||||
|
name: 'phoneQbfsStep4',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbfs/step4.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标复审流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbfzStep2',
|
||||||
|
name: 'phoneQbfzStep2',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbfz/step2.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标废止流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbfzStep5',
|
||||||
|
name: 'phoneQbfzStep5',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbfz/step5.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标废止流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbfzStep6',
|
||||||
|
name: 'phoneQbfzStep6',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbfz/step6.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标废止流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/phoneQbfzStep7',
|
||||||
|
name: 'phoneQbfzStep7',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/qbfz/step7.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '企标废止流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/phoneWfhxzgStep3',
|
path: '/phoneWfhxzgStep3',
|
||||||
name: 'phoneWfhxzgStep3',
|
name: 'phoneWfhxzgStep3',
|
||||||
|
|||||||
Reference in New Issue
Block a user