提交 d7a30bec authored 作者: matian's avatar matian

bug fixes

上级 f7637e0a
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<el-form ref="form" label-width="10px"> <el-form ref="form" label-width="10px">
<el-form-item prop="status"> <el-form-item prop="status">
<el-radio-group v-model="auditInfo.status"> <el-radio-group v-model="auditInfo.status">
<el-radio label="1" :disabled="auditInfo.status !== '0'">通过</el-radio> <el-radio label="1" :disabled="status != '0'">通过</el-radio>
<el-radio label="2" :disabled="auditInfo.status !== '0'">驳回</el-radio> <el-radio label="2" :disabled="status != '0'">驳回</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item prop="reason"> <el-form-item prop="reason">
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:rows="2" :rows="2"
placeholder="原因(选填)" placeholder="原因(选填)"
v-model="auditInfo.cause" v-model="auditInfo.cause"
:disabled="auditInfo.status !== '0'" :disabled="status != '0'"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -36,12 +36,20 @@ export default { ...@@ -36,12 +36,20 @@ export default {
data() { data() {
return { return {
status: '1',
dialogVisible: false dialogVisible: false
} }
}, },
mounted() {
this.status = this.auditInfo.status
},
methods: { methods: {
// 提交审核结果 // 提交审核结果
handleAudit() { handleAudit() {
if (this.auditInfo.status === '0') {
this.$message.warning('请选项审核状态')
return
}
this.$emit('update:visible', false) this.$emit('update:visible', false)
this.$emit('audlt', this.auditInfo) this.$emit('audlt', this.auditInfo)
} }
......
<template> <template>
<el-dialog v-bind="$attrs" v-on="$listeners" center width="40%"> <el-dialog v-bind="$attrs" v-on="$listeners" center width="40%">
<!-- <img <img :src="row" alt="" class="voucher_img" />
src="https://img0.baidu.com/it/u=2631861690,326885075&fm=253&fmt=auto&app=138&f=JPEG?w=550&h=392" <!-- <div class="voucher_img" v-html="row"></div> -->
alt=""
class="voucher_img"
/> -->
<div class="voucher_img">{{ row }}</div>
</el-dialog> </el-dialog>
</template> </template>
...@@ -23,7 +19,7 @@ export default { ...@@ -23,7 +19,7 @@ export default {
::v-deep { ::v-deep {
.el-dialog__body { .el-dialog__body {
width: 80% !important; width: 80% !important;
img { .voucher_img {
width: 100%; width: 100%;
margin-left: 50px; margin-left: 50px;
} }
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
@cancel="dialogVisible = false" @cancel="dialogVisible = false"
@audlt="handleAudlt" @audlt="handleAudlt"
:auditInfo="auditInfo" :auditInfo="auditInfo"
v-if="auditInfo.status != '' && dialogVisible"
/> />
</app-card> </app-card>
</template> </template>
...@@ -35,6 +36,7 @@ export default { ...@@ -35,6 +36,7 @@ export default {
components: { audltDialog, PayVoucher }, components: { audltDialog, PayVoucher },
data() { data() {
return { return {
isDisabled: '',
voucher: '', voucher: '',
auditInfo: { auditInfo: {
cause: '', cause: '',
...@@ -112,7 +114,7 @@ export default { ...@@ -112,7 +114,7 @@ export default {
this.centerDialogVisible = true this.centerDialogVisible = true
}, },
handleAudltDialog(row) { handleAudltDialog(row) {
console.log(row.status, row.cause, row.id) console.log(row.status, row.cause, row.id, '123')
this.auditInfo.status = row.status this.auditInfo.status = row.status
this.auditInfo.cause = row.cause this.auditInfo.cause = row.cause
this.auditInfo.id = row.id this.auditInfo.id = row.id
...@@ -122,7 +124,7 @@ export default { ...@@ -122,7 +124,7 @@ export default {
handleAudlt(val) { handleAudlt(val) {
auditResult(val).then(res => { auditResult(val).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.$message.success('审核通过') this.$message.success(res.message)
} }
this.$refs.list.refetch() this.$refs.list.refetch()
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论