手机端-标准解读流程-选择责任人、解读

This commit is contained in:
zyn
2023-11-15 18:01:44 +08:00
parent f92eb0105c
commit 093f122822
5 changed files with 633 additions and 0 deletions
@@ -0,0 +1,104 @@
<template>
<div class="prc-content-border">
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
<span class="file-box-span" :title="form.itemsNum" @click="handlePreview(form.itemsNum)">{{ form.itemsNum }}</span>
</el-form-item>
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
<span class="file-box-span" @click="handlePreview(form.itemsNum)" :title="form.itemsName">{{ form.itemsName }}</span>
</el-form-item>
<InputFormItem
label="上一版本标准号/政策号"
v-model="form.itemsNum1"
:disabled="disabled"
></InputFormItem>
<InputFormItem
label="上一版本标准名称/政策名称"
v-model="form.itemsName1"
:disabled="disabled"
></InputFormItem>
<DatePickerFormItem
label="截止日期"
prop="endTime"
v-model="form.endTime"
:disabled="disabled"
></DatePickerFormItem>
</div>
</template>
<script>
import InputFormItem from '@/components/hzwlComponents/InputFormItem'
import DatePickerFormItem from '@/components/hzwlComponents/DatePickerFormItem'
export default {
name: "Basic",
props: {
form: {
type: Object,
default: () => {}
},
disabled: {
type: Boolean,
default: false
},
dict: {
type: Object,
default: () => {}
}
},
components: {
InputFormItem,
DatePickerFormItem
},
methods: {
// 点击跳转标准详情
handlePreview (item) {
let replaceStandInfoEO ={}
replaceStandInfoEO.standNumber = item
this.$http.get('sarStandardsInfo/sar-standards-info/queryInfoByStandNum', replaceStandInfoEO, {
_this: this
}, res => {
if (res.data != null) {
let dataType ='INLAND_STAND'
if(res.data.standType ==='FOREIGN'){
dataType ='FOREIGN_STAND'
}
this.$router.push({
name: 'domesticDetails',
query: {
id: res.data.id,
pageType: dataType
}
})
// let routeUrl = this.$router.resolve({
// name: 'OtherStandardDetails',
// params: {
// id: res.data.id,
// pageType:dataType
// }
// })
// window.open(routeUrl.href, '_blank')
} else {
this.$message.error('标准号不存在!')
}
}, e => {
})
},
}
}
</script>
<style scoped>
.prc-content-border /deep/ .el-form-item__content {
line-height: 50px !important;
height: 50px !important;
}
.file-box-span{
display: inline-block;
width: 100%;
color: #4498f0;
cursor: pointer;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
</style>
@@ -0,0 +1,125 @@
<template>
<el-table
ref="selection"
:data="data"
tooltip-effect="dark"
style="width: 100%;"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
>
<el-table-column
prop="itemsNum"
label="条款号"
width="120"
align="center">
</el-table-column>
<el-table-column
prop="itemsName"
width="170"
label="条款名称"
align="center">
</el-table-column>
<el-table-column
prop="itermsConditions"
label="条款内容"
width="500"
align="center">
<template slot-scope="scope">
<div class="itemsTextBox" v-html="scope.row.itermsConditions.replace(/''/g, '\'')"></div>
</template>
</el-table-column>
<el-table-column
prop="newData"
width="180"
label="新车型实施日期"
align="center">
</el-table-column>
<el-table-column
prop="onlineData"
width="180"
label="在产车型实施日期"
align="center">
</el-table-column>
<el-table-column
prop="applyArctic"
width="200"
label="适用车型"
align="center">
<template slot-scope="scope">
{{ JSON.parse(scope.row.applyArctic).join(',') }}
</template>
</el-table-column>
<el-table-column
v-if="!form.itemsNum1"
prop="technicalRequir"
label="核心技术要求"
align="center">
</el-table-column>
<el-table-column
prop="changePoint"
v-if="form.itemsNum1"
label="基于上一版本差异"
align="center">
</el-table-column>
<el-table-column
v-if="$route.name === 'phoneBzjdStep3'"
prop="unitDeptName"
label="责任部门"
width="200"
align="center">
</el-table-column>
<el-table-column
label="责任人"
width="150"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.zxUserIdName }}</span>
</template>
</el-table-column>
<el-table-column
v-if="$route.name === 'phoneBzjdStep3'"
prop="complianceRequir"
width="150"
label="符合项状态"
align="center">
<template slot-scope="scope">
{{ scope.row.complianceRequir === '1' ? '符合' : (scope.row.complianceRequir === '2' ? '不符合' : '') }}
</template>
</el-table-column>
<el-table-column
v-if="$route.name === 'phoneBzjdStep3'"
prop="complianceState"
width="200"
label="合规性分析"
align="center">
</el-table-column>
</el-table>
</template>
<script>
export default {
name: "SplitInformation",
props: {
form: {
type: Object,
default: () => ({})
},
data: {
type: Array,
default: () => []
},
dict: {
type: Object,
default: () => ({})
}
},
}
</script>
<style scoped>
.itemsTextBox {
min-height: 0;
max-height: 150px;
}
</style>
@@ -0,0 +1,191 @@
<template>
<div class="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">
<el-form
v-if="reloadForm"
ref="form"
:model="form"
class="label-input-form phoneForm"
label-width="112px"
>
<template v-if="active === '1'">
<div>
<ProcessTitle>
<template slot="title">基础信息</template>
</ProcessTitle>
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
<ProcessTitle>
<template slot="title">拆分信息</template>
</ProcessTitle>
<SplitInformation :data="form.itemList" :form="form"></SplitInformation>
</div>
<ReceiptDescription v-model="form.commentText" title="回执说明"></ReceiptDescription>
</template>
<template v-if="active === '3'">
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
</template>
</el-form>
</div>
<ProcessFooter
show-submit
show-transfer
:submitLoading="footerLoading"
:saveLoading="footerLoading"
@submit="handleSubmit"
@transfer="handleTransfer"
>
</ProcessFooter>
<!-- 福田全公司选人解决方案 -->
<phoneRoleTree
check-box
:is-title="drawerTitle"
:is-visible.sync="drawerModal"
@checkedRole="checkedRole"
:nodeList="nodeList"
></phoneRoleTree>
</div>
</template>
<script>
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
import Basic from "./components/Basic";
import SplitInformation from "./components/SplitInformation";
export default {
name: "step2",
components: {
ProcessHeaderPhone,
PhoneHistortTable,
ProcessTitle,
ProcessFooter,
ReceiptDescription,
phoneRoleTree,
Basic,
SplitInformation
},
data () {
const form = {}
return {
active: '1',
reloadForm: true,
form,
dict: {},
disabled: true,
footerLoading: false,
// 福田全公司选人解决方案
drawerModal: false,
drawerTitle: '',
nodeList: []
}
},
created() {
this.getData()
},
methods: {
handleTabs(name) {
this.active = name;
},
getData () {
const { taskIds, prcId } = this.$route.query
inboundLiaisonDetail({
taskIds,
pId: prcId
}).then(res => {
if (res) {
this.reloadForm = false
const processForm = JSON.parse(res.mesg)
this.form = JSON.parse(JSON.stringify(processForm.form || processForm))
this.form.commentText = ''
this.form.itemList = processForm.form.itemList || processForm.itemList
if (typeof(this.form.itemList) === 'string') {
this.form.itemList = JSON.parse(this.form.itemList)
}
this.$nextTick(() => {
this.reloadForm = true
})
}
})
},
async handleSubmit () {
this.$message({
dangerouslyUseHTMLString: true,
message: <div style="word-break: keep-all;color: #F56C6C">当前任务不支持手机端处理</div>,
type: 'error'
})
},
handleTransfer () {
this.drawerModal = true
this.drawerTitle = '转办处理人'
},
// 转办
checkedRole (data) {
this.footerLoading = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId: this.$store.getters.userInfo.userId, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
}, 100)
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.footerLoading = false
})
}
}
}
</script>
<style scoped lang="less">
.phoneBox .content {
border-top: 1px solid #DCDFE6;
margin-top: 51px;
height: calc(100% - 156px);
background-color: #fff;
padding: 0 10px;
box-sizing: border-box;
overflow: auto;
.phoneForm {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
.phoneBox /deep/ .van-field__label {
width: 112px !important;
margin-right: 0 !important;
padding-left: 10px !important;
}
.phoneBox /deep/ .van-field__control {
padding-left: 10px !important;
}
</style>
@@ -0,0 +1,191 @@
<template>
<div class="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">
<el-form
v-if="reloadForm"
ref="form"
:model="form"
class="label-input-form phoneForm"
label-width="112px"
>
<template v-if="active === '1'">
<div>
<ProcessTitle>
<template slot="title">基础信息</template>
</ProcessTitle>
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
<ProcessTitle>
<template slot="title">拆分信息</template>
</ProcessTitle>
<SplitInformation :data="form.itemList" :form="form"></SplitInformation>
</div>
<ReceiptDescription v-model="form.commentText" title="回执说明"></ReceiptDescription>
</template>
<template v-if="active === '3'">
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
</template>
</el-form>
</div>
<ProcessFooter
show-submit
show-transfer
:submitLoading="footerLoading"
:saveLoading="footerLoading"
@submit="handleSubmit"
@transfer="handleTransfer"
>
</ProcessFooter>
<!-- 福田全公司选人解决方案 -->
<phoneRoleTree
check-box
:is-title="drawerTitle"
:is-visible.sync="drawerModal"
@checkedRole="checkedRole"
:nodeList="nodeList"
></phoneRoleTree>
</div>
</template>
<script>
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
import Basic from "./components/Basic";
import SplitInformation from "./components/SplitInformation";
export default {
name: "step2",
components: {
ProcessHeaderPhone,
PhoneHistortTable,
ProcessTitle,
ProcessFooter,
ReceiptDescription,
phoneRoleTree,
Basic,
SplitInformation
},
data () {
const form = {}
return {
active: '1',
reloadForm: true,
form,
dict: {},
disabled: true,
footerLoading: false,
// 福田全公司选人解决方案
drawerModal: false,
drawerTitle: '',
nodeList: []
}
},
created() {
this.getData()
},
methods: {
handleTabs(name) {
this.active = name;
},
getData () {
const { taskIds, prcId } = this.$route.query
inboundLiaisonDetail({
taskIds,
pId: prcId
}).then(res => {
if (res) {
this.reloadForm = false
const processForm = JSON.parse(res.mesg)
this.form = JSON.parse(JSON.stringify(processForm.form || processForm))
this.form.commentText = ''
this.form.itemList = processForm.form.itemList || processForm.itemList
if (typeof(this.form.itemList) === 'string') {
this.form.itemList = JSON.parse(this.form.itemList)
}
this.$nextTick(() => {
this.reloadForm = true
})
}
})
},
async handleSubmit () {
this.$message({
dangerouslyUseHTMLString: true,
message: <div style="word-break: keep-all;color: #F56C6C">当前任务不支持手机端处理</div>,
type: 'error'
})
},
handleTransfer () {
this.drawerModal = true
this.drawerTitle = '转办处理人'
},
// 转办
checkedRole (data) {
this.footerLoading = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId: this.$store.getters.userInfo.userId, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
}, 100)
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.footerLoading = false
})
}
}
}
</script>
<style scoped lang="less">
.phoneBox .content {
border-top: 1px solid #DCDFE6;
margin-top: 51px;
height: calc(100% - 156px);
background-color: #fff;
padding: 0 10px;
box-sizing: border-box;
overflow: auto;
.phoneForm {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
.phoneBox /deep/ .van-field__label {
width: 112px !important;
margin-right: 0 !important;
padding-left: 10px !important;
}
.phoneBox /deep/ .van-field__control {
padding-left: 10px !important;
}
</style>
+22
View File
@@ -2064,6 +2064,28 @@ const routes = [
title: '标准解读流程' title: '标准解读流程'
} }
}, },
// 选择责任人
{
path: '/phoneBzjdStep2',
name: 'phoneBzjdStep2',
component: () => import('@/pages/processCenter/pages/phone/bzjd/step2.vue'),
meta: {
isBoolean: true,
requireAuth: true,
title: '标准调研流程'
}
},
// 解读
{
path: '/phoneBzjdStep3',
name: 'phoneBzjdStep3',
component: () => import('@/pages/processCenter/pages/phone/bzjd/step3.vue'),
meta: {
isBoolean: true,
requireAuth: true,
title: '标准调研流程'
}
},
{ {
path: '/zcrhStep1', path: '/zcrhStep1',
name: 'zcrhStep1', name: 'zcrhStep1',