Commit 4ef0d522 authored by dragondean@qq.com's avatar dragondean@qq.com

完善修改放货审批

parent 36296c73
<template>
<el-dialog :visible="show" @close="handleClose" :title="$t('收货人限制修改申请')" width="1000px">
<el-form label-position="left" label-width="150px" :model="form">
<el-form label-position="left" label-width="150px" :model="form" :disabled="applyStatus === 1">
<el-row :gutter="20">
<!-- 订单号 -->
<el-col :span="8">
......@@ -151,6 +151,7 @@ export default {
show: true,
fileType: ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "pdf", 'jpg', 'jpeg', 'png', 'mp4', 'mov', 'avi', 'mp3'],
applyStatus: 0, // 审批状态: 1 处理中 2 通过 3 不通过 4 已取消
bpmId: null, // 审批流程ID
form: {
// 申请类型:此处应该是 61 放货限制修改申请 62 海外仓修改申请
applyType: 61,
......@@ -199,27 +200,37 @@ export default {
this.applyStatus = 0
getLimitUpdateInfo(this.order.orderId).then(res => {
const data = res.data
console.log({data})
if(data.applyType === this.form.applyType){
this.newIsLimitUpdateConsignee = data.newIsLimitUpdateConsignee
this.newLockConsigneeDay = data.newLockConsigneeDay
this.reasonZh = data.reasonZh
this.annex = data.annex
this.form.newIsLimitUpdateConsignee = data.newIsLimitUpdateConsignee
this.form.newLockConsigneeDay = data.newLockConsigneeDay
this.form.reasonZh = data.reasonZh
this.form.annex = data.annex
this.form.ccIds = data.ccIds?.split(",").filter(item => !!item).map(item => Number(item)) || []
this.applyStatus = data.applyStatus
// 如果是申请中,则需要查询审批数据
this.bpmId = data.formId
/* // 如果是申请中,则需要查询审批数据
if(this.applyStatus === 1){
this.getApproval()
}
} */
}
})
},
getApproval(){
/* getApproval(){
getApproval(this.id).then(res => {
this.approvalDetail = res.data
})
},
}, */
handleGoBpm(){
console.log("跳转审批页面,待完善")
this.handleClose()
this.$router.push({
path: "/bpm/process-instance/detail",
query: {
id: this.bpmId
}
})
},
handleClose(){
this.show = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment