fix(手机端): 不支持手机端提交驳回操作
This commit is contained in:
@@ -10,47 +10,46 @@
|
||||
</div>
|
||||
<div class="content">
|
||||
<el-form
|
||||
v-if="reloadForm"
|
||||
ref="form"
|
||||
:model="form"
|
||||
class="label-input-form phoneForm"
|
||||
label-width="112px"
|
||||
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>
|
||||
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||
<ProcessTitle>
|
||||
<template slot="title">填写信息</template>
|
||||
</ProcessTitle>
|
||||
<InfoTable :data="form.dataList" :dict="dict"></InfoTable>
|
||||
<InfoTable :data="form.dataList" :dict="dict" />
|
||||
</div>
|
||||
<ReceiptDescription v-model="form.commentText" title="回执说明"></ReceiptDescription>
|
||||
<ReceiptDescription v-model="form.commentText" title="回执说明" />
|
||||
</template>
|
||||
<template v-if="active === '3'">
|
||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
||||
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||
</template>
|
||||
</el-form>
|
||||
</div>
|
||||
<ProcessFooter
|
||||
show-submit
|
||||
show-transfer
|
||||
:submitLoading="footerLoading"
|
||||
:saveLoading="footerLoading"
|
||||
@submit="handleSubmit"
|
||||
@transfer="handleTransfer"
|
||||
>
|
||||
</ProcessFooter>
|
||||
show-submit
|
||||
show-transfer
|
||||
:submit-loading="footerLoading"
|
||||
:save-loading="footerLoading"
|
||||
@submit="handleSubmit"
|
||||
@transfer="handleTransfer"
|
||||
/>
|
||||
<!-- 福田全公司选人解决方案 -->
|
||||
<phoneRoleTree
|
||||
check-box
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="drawerModal"
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></phoneRoleTree>
|
||||
check-box
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="drawerModal"
|
||||
:node-list="nodeList"
|
||||
@checkedRole="checkedRole"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -59,16 +58,16 @@ import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHe
|
||||
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 ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||
|
||||
import Basic from "./components/Basic";
|
||||
import InfoTable from "./components/InfoTable";
|
||||
import Basic from './components/Basic';
|
||||
import InfoTable from './components/InfoTable';
|
||||
|
||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||
|
||||
export default {
|
||||
name: "step2",
|
||||
name: 'Step2',
|
||||
components: {
|
||||
ProcessHeaderPhone,
|
||||
PhoneHistortTable,
|
||||
@@ -95,12 +94,12 @@ export default {
|
||||
nodeList: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
created () {
|
||||
this.getDicTypeListCode()
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
handleTabs(name) {
|
||||
handleTabs (name) {
|
||||
this.active = name;
|
||||
},
|
||||
getData () {
|
||||
@@ -125,31 +124,31 @@ export default {
|
||||
})
|
||||
},
|
||||
async handleSubmit () {
|
||||
// this.$message({
|
||||
// dangerouslyUseHTMLString: true,
|
||||
// message: <div style="word-break: keep-all;color: #F56C6C">当前任务不支持手机端处理</div>,
|
||||
// type: 'error'
|
||||
// })
|
||||
this.footerLoading = true;
|
||||
const json = JSON.stringify(this.form);
|
||||
|
||||
const query = {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId : this.$store.getters.userInfo.userId,
|
||||
json
|
||||
}
|
||||
const completeTaskRef = await this.$http._post('lawss/activiti/completeTask', query)
|
||||
if (!completeTaskRef.success) {
|
||||
this.footerLoading = false
|
||||
return this.$message.error(completeTaskRef.message)
|
||||
}
|
||||
|
||||
this.$message.success(completeTaskRef.message)
|
||||
this.footerLoading = false
|
||||
setTimeout(() => {
|
||||
// this.$router.go(-2)
|
||||
this.$close()
|
||||
}, 100)
|
||||
this.$message({
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: <div style="word-break: keep-all;color: #F56C6C">当前任务不支持手机端处理</div>,
|
||||
type: 'error'
|
||||
})
|
||||
// this.footerLoading = true;
|
||||
// const json = JSON.stringify(this.form);
|
||||
//
|
||||
// const query = {
|
||||
// taskIds: this.$route.query.taskIds,
|
||||
// userId : this.$store.getters.userInfo.userId,
|
||||
// json
|
||||
// }
|
||||
// const completeTaskRef = await this.$http._post('lawss/activiti/completeTask', query)
|
||||
// if (!completeTaskRef.success) {
|
||||
// this.footerLoading = false
|
||||
// return this.$message.error(completeTaskRef.message)
|
||||
// }
|
||||
//
|
||||
// this.$message.success(completeTaskRef.message)
|
||||
// this.footerLoading = false
|
||||
// setTimeout(() => {
|
||||
// // this.$router.go(-2)
|
||||
// this.$close()
|
||||
// }, 100)
|
||||
},
|
||||
handleTransfer () {
|
||||
this.drawerModal = true
|
||||
@@ -169,7 +168,7 @@ export default {
|
||||
this.$message.success('调整成功')
|
||||
setTimeout(() => {
|
||||
// this.$router.go(-2)
|
||||
this.$close()
|
||||
this.$close()
|
||||
}, 100)
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
|
||||
Reference in New Issue
Block a user