|
@@ -94,7 +94,7 @@
|
|
|
<div v-if="model=='DEATILSADD'">
|
|
|
<div class="form-title"><span>审核操作</span></div>
|
|
|
<div>
|
|
|
- <el-form-item label="审核备注:" label-width="100px"></el-form-item>
|
|
|
+ <el-form-item label="审核备注:" :error="errorText" label-width="100px"><span style="color: #ccc;">(注:驳回时要填写驳回原因)</span></el-form-item>
|
|
|
<div>
|
|
|
<el-input
|
|
|
type="textarea"
|
|
@@ -151,6 +151,7 @@ export default {
|
|
|
},
|
|
|
rules: {},
|
|
|
scenicAreaProducts: [],// 景点产品关联
|
|
|
+ errorText: '', // 驳回原因
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -162,6 +163,7 @@ export default {
|
|
|
this.actionUrlLoading = false
|
|
|
this.model = model
|
|
|
this.formStatus = 0
|
|
|
+ this.errorText = ''
|
|
|
if(model=='DEATILSADD') { // 新增
|
|
|
this.$set(this,'form',{...row})
|
|
|
this.formStatus = 1
|
|
@@ -229,12 +231,15 @@ export default {
|
|
|
},
|
|
|
/** 审核操作 */
|
|
|
refundAudit(type){
|
|
|
+ if(type==2 && !this.form.errReason) {
|
|
|
+ this.errorText = '驳回时请输入驳回原因'
|
|
|
+ return
|
|
|
+ }
|
|
|
addTableApi(
|
|
|
this.configUrl.refundAudit,{
|
|
|
refundId: this.form.id,// 退款ID-列表ID
|
|
|
status: type,
|
|
|
errReason: this.form.errReason,
|
|
|
- errReason: ''
|
|
|
}).then(response => {
|
|
|
this.$modal.msgSuccess(`提交成功`);
|
|
|
this.loading = false
|