1.退款字段更改
This commit is contained in:
parent
2d5ae62212
commit
5fcfe4003f
|
|
@ -121,8 +121,8 @@ export function getEntTree (sysType) {
|
|||
return request.request({ url: '/api/sysEnts/showTree?sysType=' + sysType, method: 'GET' })
|
||||
}
|
||||
|
||||
/** 0617 测试退款用接口 */
|
||||
export function refundModal (payOrderId, refundAmount, refundReason) {
|
||||
/** 退款接口 */
|
||||
export function payOrderRefund (payOrderId, refundAmount, refundReason) {
|
||||
return request.request({
|
||||
url: '/api/payOrder/refunds/' + payOrderId,
|
||||
method: 'POST',
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
<a-input v-model="refund.refundAmount" type="number" @keyup="handleInput2" style="flex-grow:1" />
|
||||
</a-form-model-item>
|
||||
|
||||
<a-form-model-item label="退款详情" prop="refundReason">
|
||||
<a-form-model-item label="退款原因" prop="refundReason">
|
||||
<a-input v-model="refund.refundReason" type="textarea" />
|
||||
</a-form-model-item>
|
||||
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { API_URL_PAY_ORDER_LIST, req, refundModal } from '@/api/manage'
|
||||
import { API_URL_PAY_ORDER_LIST, req, payOrderRefund } from '@/api/manage'
|
||||
export default {
|
||||
|
||||
data () {
|
||||
|
|
@ -119,7 +119,7 @@ export default {
|
|||
this.confirmLoading = true
|
||||
const that = this
|
||||
// 退款接口
|
||||
refundModal(that.recordId, that.refund.refundAmount, that.refund.refundReason).then(res => {
|
||||
payOrderRefund(that.recordId, that.refund.refundAmount, that.refund.refundReason).then(res => {
|
||||
that.visible = false // 关闭弹窗
|
||||
that.confirmLoading = false // 取消按钮转圈
|
||||
that.$message.success('退款成功')
|
||||
|
|
|
|||
Loading…
Reference in New Issue