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