|
@@ -8,7 +8,7 @@
|
|
|
<el-form :model="form" :rules="rules" ref="formRef" label-width="100px">
|
|
<el-form :model="form" :rules="rules" ref="formRef" label-width="100px">
|
|
|
<el-form-item label="驳回原因" prop="reason">
|
|
<el-form-item label="驳回原因" prop="reason">
|
|
|
<dict-data
|
|
<dict-data
|
|
|
- code="shop_refund_reason"
|
|
|
|
|
|
|
+ :code="refundType == 2 ? 'shop_refund_money_reason' : 'shop_refund_reason'"
|
|
|
v-model="form.reason"
|
|
v-model="form.reason"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
class="w-full"
|
|
class="w-full"
|
|
@@ -56,6 +56,7 @@
|
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
|
const formRef = ref(null);
|
|
const formRef = ref(null);
|
|
|
const currentRefundOrderId = ref('');
|
|
const currentRefundOrderId = ref('');
|
|
|
|
|
+ const refundType = ref('');
|
|
|
|
|
|
|
|
const form = reactive({
|
|
const form = reactive({
|
|
|
reason: '',
|
|
reason: '',
|
|
@@ -74,8 +75,9 @@
|
|
|
|
|
|
|
|
const emit = defineEmits(['success']);
|
|
const emit = defineEmits(['success']);
|
|
|
|
|
|
|
|
- const open = (refundOrderId) => {
|
|
|
|
|
|
|
+ const open = (refundOrderId, type) => {
|
|
|
currentRefundOrderId.value = refundOrderId;
|
|
currentRefundOrderId.value = refundOrderId;
|
|
|
|
|
+ refundType.value = type;
|
|
|
// 重置表单
|
|
// 重置表单
|
|
|
form.reason = '';
|
|
form.reason = '';
|
|
|
form.description = '';
|
|
form.description = '';
|