|
@@ -90,9 +90,9 @@
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div v-if="model=='DEATILSADD'">
|
|
|
- <div class="form-title"><span>审核操作</span></div>
|
|
|
+ <div class="form-title" style="display: flex;align-items: flex-end;"><span>审核操作</span><i>(注意:驳回时需填写驳回原因)</i></div>
|
|
|
<div>
|
|
|
- <el-form-item label="审核备注:" label-width="100px"></el-form-item>
|
|
|
+ <el-form-item label="审核备注:" :error="errReasonText" label-width="100px"></el-form-item>
|
|
|
<div>
|
|
|
<el-input
|
|
|
type="textarea"
|
|
@@ -107,8 +107,8 @@
|
|
|
type="danger"
|
|
|
@click="refundAudit(2)"
|
|
|
:loading="loading"
|
|
|
- >驳回退款</el-button>
|
|
|
- <el-button type="primary" :loading="loading" @click="refundAudit(1)">同意退款</el-button>
|
|
|
+ >驳回</el-button>
|
|
|
+ <el-button type="primary" :loading="loading" @click="refundAudit(1)">同意</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -149,6 +149,7 @@ export default {
|
|
|
},
|
|
|
rules: {},
|
|
|
scenicAreaProducts: [],// 景点产品关联
|
|
|
+ errReasonText: ''
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -229,9 +230,14 @@ export default {
|
|
|
},
|
|
|
/** 审核操作 */
|
|
|
refundAudit(type){
|
|
|
+ if(type == 2 && !this.form.errReason) {
|
|
|
+ this.errReasonText = "请输入驳回原因"
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.loading = true
|
|
|
addTableApi(
|
|
|
this.configUrl.refundAudit,{
|
|
|
- refundId: this.form.id,// 退款ID-列表ID
|
|
|
+ id: this.form.id,// 退款ID-列表ID
|
|
|
auditStatus: type,
|
|
|
errReason: this.form.errReason,
|
|
|
}).then(response => {
|