发起售后问题修复

This commit is contained in:
donqi 2022-10-08 23:52:33 +08:00
parent 460a9b5091
commit 09e15d9619
2 changed files with 4 additions and 4 deletions

View File

@ -11,9 +11,9 @@ export default {
title: '加载中' title: '加载中'
}) })
// request 触发前拼接 url // request 触发前拼接 url
// args.url = 'https://www.opsoul.com' + args.url; args.url = 'https://www.opsoul.com' + args.url;
// args.url = 'http://192.168.2.20:80' + args.url; // args.url = 'http://192.168.2.20:80' + args.url;
args.url = 'http://127.0.0.1:80' + args.url; // args.url = 'http://127.0.0.1:80' + args.url;
if (args.data && Object.prototype && Object.prototype.toString.call(args.data) === '[object Object]') { if (args.data && Object.prototype && Object.prototype.toString.call(args.data) === '[object Object]') {
args.data.deptId = globalData.deptId; args.data.deptId = globalData.deptId;
args.data.from = globalData.from; args.data.from = globalData.from;

View File

@ -160,9 +160,9 @@
let errMsg = null; let errMsg = null;
if (!this.detailObj) { if (!this.detailObj) {
errMsg = "请选择子单"; errMsg = "请选择子单";
} else if (this.refund == null) { } else if (this.afterServiceType == 1 && this.refund == null) {
errMsg = "退款金额不能为空"; errMsg = "退款金额不能为空";
} else if (this.refund > this.detailObj.payMoney) { } else if (this.afterServiceType == 1 && this.refund > this.detailObj.payMoney) {
errMsg = "不可超出最大退款金额"; errMsg = "不可超出最大退款金额";
} }
if (errMsg) { if (errMsg) {