mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
v1.9 优化合同审批不能审核bugc处理
This commit is contained in:
parent
7bd9ddc951
commit
9c8438cac3
@ -2,10 +2,10 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="flex justify-between ">
|
||||||
<h5>{{ $t('flowAudit.auditInfo') }}</h5>
|
<span>{{ $t('flowAudit.auditInfo') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="ibox-content">
|
<div class="">
|
||||||
<el-form label-width="120px">
|
<el-form label-width="120px">
|
||||||
<el-form-item :label="$t('flowAudit.auditStatus')">
|
<el-form-item :label="$t('flowAudit.auditStatus')">
|
||||||
<el-select v-model="flowAuditInfo.state" :placeholder="$t('flowAudit.pleaseAudit')" style="width:100%">
|
<el-select v-model="flowAuditInfo.state" :placeholder="$t('flowAudit.pleaseAudit')" style="width:100%">
|
||||||
@ -40,7 +40,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<select-staff ref="selectStaff" />
|
<select-staff ref="selectStaff" @selectStaff="handleSelectStaff" />
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -53,16 +53,6 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
SelectStaff
|
SelectStaff
|
||||||
},
|
},
|
||||||
props: {
|
|
||||||
callBackListener: {
|
|
||||||
type: String,
|
|
||||||
default: ''
|
|
||||||
},
|
|
||||||
callBackFunction: {
|
|
||||||
type: String,
|
|
||||||
default: ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
flowAuditInfo: {
|
flowAuditInfo: {
|
||||||
@ -90,6 +80,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleSelectStaff(staff) {
|
||||||
|
this.flowAuditInfo.staffId = staff.userId
|
||||||
|
this.flowAuditInfo.staffName = staff.userName
|
||||||
|
},
|
||||||
open(auditOrder) {
|
open(auditOrder) {
|
||||||
Object.assign(this.flowAuditInfo, auditOrder)
|
Object.assign(this.flowAuditInfo, auditOrder)
|
||||||
this.flowAuditInfo.state = ''
|
this.flowAuditInfo.state = ''
|
||||||
@ -117,17 +111,17 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.callBackListener) {
|
|
||||||
const _flowAuditInfo = {
|
const _flowAuditInfo = {
|
||||||
state: this.flowAuditInfo.state,
|
state: this.flowAuditInfo.state,
|
||||||
remark: this.flowAuditInfo.state === '1200'
|
remark: this.flowAuditInfo.state === '1200'
|
||||||
? `${this.$t('flowAudit.reject')}:${this.flowAuditInfo.remark}`
|
? `${this.$t('flowAudit.reject')}:${this.flowAuditInfo.remark}`
|
||||||
: this.flowAuditInfo.remark,
|
: this.flowAuditInfo.remark,
|
||||||
nextUserId: this.flowAuditInfo.staffId
|
nextUserId: this.flowAuditInfo.staffId
|
||||||
}
|
|
||||||
this.$emit(this.callBackFunction, _flowAuditInfo)
|
|
||||||
this.clearAddBasePrivilegeInfo()
|
|
||||||
}
|
}
|
||||||
|
this.$emit('auditSubmit', _flowAuditInfo)
|
||||||
|
this.clearAddBasePrivilegeInfo()
|
||||||
|
|
||||||
},
|
},
|
||||||
clearAddBasePrivilegeInfo() {
|
clearAddBasePrivilegeInfo() {
|
||||||
this.flowAuditInfo = {
|
this.flowAuditInfo = {
|
||||||
@ -160,7 +154,7 @@ export default {
|
|||||||
this.$refs.selectStaff.open(this.flowAuditInfo)
|
this.$refs.selectStaff.open(this.flowAuditInfo)
|
||||||
},
|
},
|
||||||
_goBack() {
|
_goBack() {
|
||||||
this.$emit(this.callBackListener, 'list', {})
|
this.$emit('goBack', {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,8 +38,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<flow-audit v-else ref="flowAudit" :call-back-listener="'contractApplyAuditOrders'"
|
<flow-audit v-else ref="flowAudit" @auditSubmit="handleAuditSubmit" @goBack="handleGoBack" />
|
||||||
:call-back-function="'notifyAudit'" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -85,6 +84,13 @@ export default {
|
|||||||
this._loadStepStaff()
|
this._loadStepStaff()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleGoBack() {
|
||||||
|
this.contractApplyAuditOrdersInfo.audit = '1'
|
||||||
|
this._listAuditOrders(this.page.current, this.page.size)
|
||||||
|
},
|
||||||
|
handleAuditSubmit(auditInfo) {
|
||||||
|
this._auditOrderInfo(auditInfo)
|
||||||
|
},
|
||||||
async _listAuditOrders(page, rows) {
|
async _listAuditOrders(page, rows) {
|
||||||
try {
|
try {
|
||||||
this.contractApplyAuditOrdersInfo.audit = '1'
|
this.contractApplyAuditOrdersInfo.audit = '1'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user