1.退款字段更改

This commit is contained in:
ssyang1993 2021-06-18 12:47:50 +08:00
parent 2d5ae62212
commit 5fcfe4003f
2 changed files with 5 additions and 5 deletions

View File

@ -121,8 +121,8 @@ export function getEntTree (sysType) {
return request.request({ url: '/api/sysEnts/showTree?sysType=' + sysType, method: 'GET' }) 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({ return request.request({
url: '/api/payOrder/refunds/' + payOrderId, url: '/api/payOrder/refunds/' + payOrderId,
method: 'POST', method: 'POST',

View File

@ -44,7 +44,7 @@
<a-input v-model="refund.refundAmount" type="number" @keyup="handleInput2" style="flex-grow:1" /> <a-input v-model="refund.refundAmount" type="number" @keyup="handleInput2" style="flex-grow:1" />
</a-form-model-item> </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-input v-model="refund.refundReason" type="textarea" />
</a-form-model-item> </a-form-model-item>
@ -54,7 +54,7 @@
</div> </div>
</template> </template>
<script> <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 { export default {
data () { data () {
@ -119,7 +119,7 @@ export default {
this.confirmLoading = true this.confirmLoading = true
const that = this 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.visible = false //
that.confirmLoading = false // that.confirmLoading = false //
that.$message.success('退款成功') that.$message.success('退款成功')