手机端-未符合项整改流程-审定
This commit is contained in:
@@ -0,0 +1,260 @@
|
|||||||
|
<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>
|
||||||
|
<el-table
|
||||||
|
ref="selection"
|
||||||
|
:data="dataList"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%;"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
|
>
|
||||||
|
<el-table-column prop="standSerialNumber" width="150" align="center" label="标准号">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="standName" width="250" align="center" label="标准名称">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="productName" width="250" label="项目名称" align="center" show-overflow-tooltip/>
|
||||||
|
<el-table-column prop="itemsNum" label="条款号" align="center"/>
|
||||||
|
<el-table-column prop="itemsName" width="200" label="条款名称" align="center"/>
|
||||||
|
<el-table-column prop="planCloseTime" width="120" label="整改完成时间" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.planCloseTime ? $moment(scope.row.planCloseTime).format('YYYY-MM-DD') : '' }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="responsibleUnit" width="150" label="责任部门" align="center"/>
|
||||||
|
<el-table-column prop="dutyEngineerName" width="150" label="责任工程师" align="center"/>
|
||||||
|
<el-table-column prop="dutyPeople" width="150" label="负责人" align="center"/>
|
||||||
|
<el-table-column
|
||||||
|
label="回执文件"
|
||||||
|
min-width="200"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div v-for="file in scope.row.fileText"
|
||||||
|
:key="file.id"
|
||||||
|
style="color: #409eff;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;"
|
||||||
|
@click="preview(file.id)"
|
||||||
|
>{{file.name}}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</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'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "step4",
|
||||||
|
components: {
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
PhoneHistortTable,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessFooter,
|
||||||
|
ReceiptDescription,
|
||||||
|
phoneRoleTree,
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
const form = {}
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
reloadForm: true,
|
||||||
|
form,
|
||||||
|
dataList: [],
|
||||||
|
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 = ''
|
||||||
|
if (this.form.responUserList) {
|
||||||
|
this.dataList = this.form.responUserList
|
||||||
|
} else if (this.form.dockUserList) {
|
||||||
|
this.dataList = this.form.dockUserList[0].standardInfoList
|
||||||
|
} else {
|
||||||
|
this.dataList = [this.form.info]
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview(item) {
|
||||||
|
if(item.standType ==='BUSINESS_STAND'){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'domesticDetails',
|
||||||
|
query: {
|
||||||
|
id: item.standId,
|
||||||
|
pageType: 'BUSS'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else if (item.standType === 'INLAND'){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'domesticDetails',
|
||||||
|
query: {
|
||||||
|
id: item.standId,
|
||||||
|
pageType: 'INLAND_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (item.standType === 'FOREIGN') {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'domesticDetails',
|
||||||
|
query: {
|
||||||
|
id: item.standId,
|
||||||
|
pageType: 'FOREIGN_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 预览文件
|
||||||
|
preview(fileId) {
|
||||||
|
this.$preview(fileId)
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</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>
|
||||||
@@ -3322,6 +3322,17 @@ const routes = [
|
|||||||
title: '未符合项整改流程'
|
title: '未符合项整改流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 审定
|
||||||
|
{
|
||||||
|
path: '/phoneWfhxzgStep4',
|
||||||
|
name: 'phoneWfhxzgStep4',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/wfhxzg/step4.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '未符合项整改流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/phoneWfhxzgStep5',
|
path: '/phoneWfhxzgStep5',
|
||||||
name: 'phoneWfhxzgStep5',
|
name: 'phoneWfhxzgStep5',
|
||||||
|
|||||||
Reference in New Issue
Block a user