|
|
@ -4,7 +4,6 @@ |
|
|
|
<el-table-column type="index" width="50" /> |
|
|
|
<el-table-column type="index" width="50" /> |
|
|
|
<el-table-column prop="reason" label="售后原因" /> |
|
|
|
<el-table-column prop="reason" label="售后原因" /> |
|
|
|
<el-table-column prop="refundAmount" label="退款金额" /> |
|
|
|
<el-table-column prop="refundAmount" label="退款金额" /> |
|
|
|
<el-table-column prop="percentageDeductAmount" label="提成扣款" /> |
|
|
|
|
|
|
|
<el-table-column prop="isReturns" label="是否退货" /> |
|
|
|
<el-table-column prop="isReturns" label="是否退货" /> |
|
|
|
<el-table-column prop="applyTime" label="申请日期" width="180px" /> |
|
|
|
<el-table-column prop="applyTime" label="申请日期" width="180px" /> |
|
|
|
<el-table-column prop="stateName" label="审核状态" /> |
|
|
|
<el-table-column prop="stateName" label="审核状态" /> |
|
|
@ -14,16 +13,10 @@ |
|
|
|
<el-button v-show="showAdd" class="mb-10px" type="primary" @click="handleAdd"> |
|
|
|
<el-button v-show="showAdd" class="mb-10px" type="primary" @click="handleAdd"> |
|
|
|
新增售后 |
|
|
|
新增售后 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-form v-if="!showAdd" :model="form" ref="formRef" :rules="rules" label-width="auto"> |
|
|
|
<el-form v-if="!showAdd" :model="form" ref="formRef" :rules="rules" label-width="80px"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
|
|
|
|
<el-col :span="24" :offset="0"> |
|
|
|
|
|
|
|
<el-form-item label="售后原因" prop="reason"> |
|
|
|
<el-form-item label="售后原因" prop="reason"> |
|
|
|
<el-input v-model="form.reason" placeholder="请输入售后原因" /> |
|
|
|
<el-input v-model="form.reason" placeholder="请输入售后原因" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
|
|
|
|
<el-form-item label="退款金额" prop="refundAmount"> |
|
|
|
<el-form-item label="退款金额" prop="refundAmount"> |
|
|
|
<el-input-number |
|
|
|
<el-input-number |
|
|
|
v-model="form.refundAmount" |
|
|
|
v-model="form.refundAmount" |
|
|
@ -32,28 +25,12 @@ |
|
|
|
placeholder="请输入金额" |
|
|
|
placeholder="请输入金额" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
|
|
|
|
<el-form-item label="提成扣款金额" prop="percentageDeductAmount"> |
|
|
|
|
|
|
|
<el-input-number |
|
|
|
|
|
|
|
v-model="form.percentageDeductAmount" |
|
|
|
|
|
|
|
:min="0" |
|
|
|
|
|
|
|
:controls="false" |
|
|
|
|
|
|
|
placeholder="请输入金额" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
|
|
|
<el-col :span="24" :offset="0"> |
|
|
|
|
|
|
|
<el-form-item label="是否退货" prop="isReturns"> |
|
|
|
<el-form-item label="是否退货" prop="isReturns"> |
|
|
|
<el-radio-group v-model="form.isReturns"> |
|
|
|
<el-radio-group v-model="form.isReturns"> |
|
|
|
<el-radio :label="true"> 退货 </el-radio> |
|
|
|
<el-radio :label="true"> 退货 </el-radio> |
|
|
|
<el-radio :label="false"> 不退货 </el-radio> |
|
|
|
<el-radio :label="false"> 不退货 </el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="24" :offset="0"> |
|
|
|
|
|
|
|
<el-form-item label="解决方案" prop="solution"> |
|
|
|
<el-form-item label="解决方案" prop="solution"> |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
type="textarea" |
|
|
@ -62,13 +39,9 @@ |
|
|
|
placeholder="请输入退款原因" |
|
|
|
placeholder="请输入退款原因" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="24" :offset="0"> |
|
|
|
|
|
|
|
<el-form-item label="备注"> |
|
|
|
<el-form-item label="备注"> |
|
|
|
<Editor v-model:modelValue="form.remark" /> |
|
|
|
<Editor v-model:modelValue="form.remark" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button :disabled="formLoading" type="primary" @click="onSubmit">保存</el-button> |
|
|
|
<el-button :disabled="formLoading" type="primary" @click="onSubmit">保存</el-button> |
|
|
|
<el-button @click="showAdd = true">取消</el-button> |
|
|
|
<el-button @click="showAdd = true">取消</el-button> |
|
|
@ -99,8 +72,7 @@ function open(signId) { |
|
|
|
const showAdd = ref(true) |
|
|
|
const showAdd = ref(true) |
|
|
|
const form = ref({}) |
|
|
|
const form = ref({}) |
|
|
|
const rules = { |
|
|
|
const rules = { |
|
|
|
percentageDeductAmount: { required: true, message: '提成扣款金额不可为空', trigger: 'blur' }, |
|
|
|
refundAmount: { required: true, message: '回款金额不可为空', trigger: 'blur' }, |
|
|
|
refundAmount: { required: true, message: '退款金额不可为空', trigger: 'blur' }, |
|
|
|
|
|
|
|
reason: { required: true, message: '售后原因不可为空', trigger: 'blur' }, |
|
|
|
reason: { required: true, message: '售后原因不可为空', trigger: 'blur' }, |
|
|
|
solution: { required: true, message: '解决方案不可为空', trigger: 'blur' } |
|
|
|
solution: { required: true, message: '解决方案不可为空', trigger: 'blur' } |
|
|
|
} |
|
|
|
} |
|
|
@ -119,7 +91,6 @@ function handleAdd() { |
|
|
|
solution: undefined, |
|
|
|
solution: undefined, |
|
|
|
refundAmount: undefined, |
|
|
|
refundAmount: undefined, |
|
|
|
isReturns: false, |
|
|
|
isReturns: false, |
|
|
|
percentageDeductAmount: undefined, |
|
|
|
|
|
|
|
remark: undefined |
|
|
|
remark: undefined |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|