|
@@ -6,7 +6,7 @@
|
|
|
<title>申请退款退货</title>
|
|
|
<meta name="decorator" content="default"/>
|
|
|
<style>
|
|
|
- .form-horizontal .controls{margin-left:0}
|
|
|
+ .form-horizontal .controls{margin-left:0}
|
|
|
#increase,#decrease,.lineNum{width:30px;height:30px}
|
|
|
.lineNum{text-align:center}
|
|
|
.dateInput input{width:150px}
|
|
@@ -26,7 +26,7 @@
|
|
|
.upload-content .conList ol li{width:114px;min-height:80px;text-align:center;background:#fff;position:relative;top:120px}
|
|
|
.hide-pic{display:none !important}
|
|
|
.upload-tips{margin:10px 0}
|
|
|
- .weishaIcon {background:darkorange;color:white;margin:0 0px;padding:0 3px;font-style:normal;font-size: 12px; display:inline-block;border-radius:2px}
|
|
|
+ .weishaIcon {background:darkorange;color:white;margin:0 0px;padding:0 3px;font-style:normal;font-size: 12px; display:inline-block;border-radius:2px}
|
|
|
</style>
|
|
|
<script type="text/javascript">
|
|
|
$(document).ready(function () {
|
|
@@ -36,7 +36,7 @@
|
|
|
//线下转账
|
|
|
if (${!returnOnline}){
|
|
|
//判断退款金额是否和填写金额总和一致
|
|
|
- var obj = document.getElementsByName("returnedWay");
|
|
|
+ var obj = document.getElementsByClassName("check-item-review");
|
|
|
var checked0 = obj[0].checked;
|
|
|
var checked1 = obj[1].checked;
|
|
|
if(!checked1 && !checked0){
|
|
@@ -69,7 +69,6 @@
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if(checked1){
|
|
|
var refundBalanceFee = $('#refundBalanceFee').val();
|
|
|
if( refundBalanceFee == null || refundBalanceFee == ""){
|
|
@@ -85,10 +84,22 @@
|
|
|
refundFee = 0;
|
|
|
}
|
|
|
refundFee = parseFloat(refundFee);
|
|
|
- var number = refundFee - totalFee;
|
|
|
- if(number > 0.1 || number < -0.1){
|
|
|
- alertx("各退款方式的金额之和不等于退款总金额,请重新计算后再提交申请");
|
|
|
- return;
|
|
|
+ var refundType = $("#refundType").val();
|
|
|
+ console.log("refundType------------>"+refundType);
|
|
|
+ if(1==refundType){
|
|
|
+ var number = refundFee - totalFee;
|
|
|
+ if(number > 0.1 || number < -0.1){
|
|
|
+ alertx("各退款方式的金额之和不等于退款总金额,请重新计算后再提交申请");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ var refundFee = $("#freeRefundFee").val();
|
|
|
+ console.log("自定义退款金额------------》"+refundFee);
|
|
|
+ if(refundFee == "" || refundFee == null){
|
|
|
+ refundFee = 0;
|
|
|
+ alertx("请填写自定义退款金额!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (${cmDiscernReceipt.payWay eq 1}) {
|
|
@@ -107,10 +118,10 @@
|
|
|
}
|
|
|
}
|
|
|
}else if (${returnOnline}){
|
|
|
- var obj = document.getElementsByName("returnedWay");
|
|
|
+ var obj = document.getElementsByClassName("check-item-review");
|
|
|
var checked0 = obj[0].checked;
|
|
|
- var checked1 = obj[1].checked;
|
|
|
- if(!checked1 && !checked0){
|
|
|
+ // var checked1 = obj[1].checked;
|
|
|
+ if(!checked0){
|
|
|
alertx("请选择退款方式");
|
|
|
return;
|
|
|
}
|
|
@@ -162,8 +173,8 @@
|
|
|
}
|
|
|
|
|
|
function showBankInfo() {
|
|
|
- if (${!returnOnline}){
|
|
|
- var obj = document.getElementsByName("returnedWay"),
|
|
|
+ if (${!returnOnline}){
|
|
|
+ var obj = document.getElementsByClassName("refundOfflineFee"),
|
|
|
blockEle = $('.refund-details-block');
|
|
|
if(obj){
|
|
|
if(obj[0].checked){
|
|
@@ -255,14 +266,42 @@
|
|
|
<table id="contentTable" class="table table-striped table-bordered table-condensed">
|
|
|
<tr>
|
|
|
<td><b>退款编号:</b>
|
|
|
- ${empty returnedNo?'':(returnedNo)}
|
|
|
+ ${empty returnedNo?'':(returnedNo)}
|
|
|
</td>
|
|
|
+ <c:if test="${cmReturnedPurchase.refundType eq 1 or cmReturnedPurchase.refundType eq 2}">
|
|
|
+ <td><b>退款模式:</b>
|
|
|
+ <form:select path="refundType" class="input-medium" id="refundType" onchange="changeType()">
|
|
|
+ <form:option value="1">按商品金额退款</form:option>
|
|
|
+ <form:option value="2">自定义金额退款</form:option>
|
|
|
+ </form:select>
|
|
|
+ </td>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmReturnedPurchase.refundType eq 3}">
|
|
|
+ <td><b>退款模式:</b>
|
|
|
+ <form:select path="refundType" class="input-medium" id="refundType" onchange="changeType()">
|
|
|
+ <form:option value="2">自定义金额退款</form:option>
|
|
|
+ </form:select>
|
|
|
+ </td>
|
|
|
+ </c:if>
|
|
|
<td><b>申请时间:</b>
|
|
|
${returnTime}
|
|
|
</td>
|
|
|
- <td><b>申请金额:</b>
|
|
|
- <span class="refundFee"><fmt:formatNumber value="${empty cmReturnedPurchase.refundFee?'0.00':(cmReturnedPurchase.refundFee)}" pattern="#0.00"/></span>元
|
|
|
- </td>
|
|
|
+ <c:if test="${cmReturnedPurchase.refundType eq 1}">
|
|
|
+ <td id="spt"><b>申请金额:</b>
|
|
|
+ <span class="refundFee"><fmt:formatNumber value="${empty cmReturnedPurchase.refundFee?'0.00':(cmReturnedPurchase.refundFee)}" pattern="#0.00"/></span>元
|
|
|
+ </td>
|
|
|
+ <td id="zdy" hidden><b>申请金额:</b>
|
|
|
+ <from:input id="freeRefundFee" path="freeRefundFee" onkeyup="num(this)" placeholder="¥0.00" value="${empty cmReturnedPurchase.freeRefundFee?'':(cmReturnedPurchase.freeRefundFee)}"></from:input>
|
|
|
+ </td>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmReturnedPurchase.refundType eq 2 or cmReturnedPurchase.refundType eq 3}">
|
|
|
+ <td id="spt" hidden><b>申请金额:</b>
|
|
|
+ <span class="refundFee"><fmt:formatNumber value="${empty cmReturnedPurchase.refundFee?'0.00':(cmReturnedPurchase.refundFee)}" pattern="#0.00"/></span>元
|
|
|
+ </td>
|
|
|
+ <td id="zdy"><b>申请金额:</b>
|
|
|
+ <from:input id="freeRefundFee" path="freeRefundFee" onkeyup="num(this)" placeholder="¥0.00" value="${empty cmReturnedPurchase.freeRefundFee?'':(cmReturnedPurchase.freeRefundFee)}"></from:input>
|
|
|
+ </td>
|
|
|
+ </c:if>
|
|
|
<td><b>退款状态:</b>
|
|
|
<c:if test="${empty status}">
|
|
|
待申请
|
|
@@ -290,11 +329,21 @@
|
|
|
线上退回
|
|
|
</c:if>
|
|
|
<c:if test="${!returnOnline}">
|
|
|
- <input class="check-item-review refundOfflineFee" type="checkbox" name="returnedWay" value='3' onclick="showBankInfo()"/>
|
|
|
+ <c:if test="${cmReturnedPurchase.refundOfflineFee>0}">
|
|
|
+ <input class="check-item-review refundOfflineFee" checked type="checkbox" onclick="showBankInfo()"/>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${empty cmReturnedPurchase.refundOfflineFee or cmReturnedPurchase.refundOfflineFee eq 0}">
|
|
|
+ <input class="check-item-review refundOfflineFee" type="checkbox" onclick="showBankInfo()"/>
|
|
|
+ </c:if>
|
|
|
线下转账
|
|
|
<from:input path="refundOfflineFee" onkeyup="num(this)" placeholder="¥0.00" value="${empty cmReturnedPurchase.refundOfflineFee?'':(cmReturnedPurchase.refundOfflineFee)}"></from:input>
|
|
|
- <c:if test="${empty order.rechargeGoods}">
|
|
|
- <input class="check-item-review refundBalanceFee" type="checkbox" name="returnedWay" value='1'/>
|
|
|
+ <c:if test="${order.rechargeGoods ne 1 && order.rechargeGoods ne 2}">
|
|
|
+ <c:if test="${cmReturnedPurchase.refundBalanceFee>0}">
|
|
|
+ <input class="check-item-review refundBalanceFee" checked type="checkbox"/>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${empty cmReturnedPurchase.refundBalanceFee or cmReturnedPurchase.refundBalanceFee eq 0}">
|
|
|
+ <input class="check-item-review refundBalanceFee" type="checkbox"/>
|
|
|
+ </c:if>
|
|
|
账户余额
|
|
|
<from:input path="refundBalanceFee" onkeyup="num(this)" placeholder="¥0.00" value="${empty cmReturnedPurchase.refundBalanceFee?'':(cmReturnedPurchase.refundBalanceFee)}"></from:input>
|
|
|
</c:if>
|
|
@@ -306,7 +355,7 @@
|
|
|
<from:input path="bankAccountName" value="${empty cmReturnedPurchase.bankAccountName?'':(cmReturnedPurchase.bankAccountName)}"></from:input>
|
|
|
<font color="red">*</font>账号:
|
|
|
<from:input path="bankAccountNo" value="${empty cmReturnedPurchase.bankAccountNo?'':(cmReturnedPurchase.bankAccountNo)}"></from:input>
|
|
|
- <%--<br> --%>
|
|
|
+ <%--<br> --%>
|
|
|
<font color="red">*</font>开户行:
|
|
|
<from:input path="openBank" value="${empty cmReturnedPurchase.openBank?'':(cmReturnedPurchase.openBank)}"></from:input>
|
|
|
<font color="red">*</font>账户类型:
|
|
@@ -457,210 +506,332 @@
|
|
|
<font>无退款</font>
|
|
|
</c:if>
|
|
|
<c:if test="${order.refundType == 1}">
|
|
|
- <font color="#ff8c00">部分退款</font>
|
|
|
+ <font>部分退款</font>
|
|
|
</c:if>
|
|
|
<c:if test="${order.refundType == 2}">
|
|
|
- <font color="green">已退款</font>
|
|
|
+ <font>已退款</font>
|
|
|
</c:if></td>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- 机构:${order.buyer}<c:if test="${order.organizeID == 3}"></c:if>
|
|
|
+ 机构:${order.buyer}<c:if test="${order.organizeID == 3}"></c:if>
|
|
|
</td>
|
|
|
<td>
|
|
|
- 收货人:${order.bpOrderUserinfo.shouHuoRen}(${order.bpOrderUserinfo.mobile})
|
|
|
+ 收货人:${order.bpOrderUserinfo.shouHuoRen}(${order.bpOrderUserinfo.mobile})
|
|
|
</td>
|
|
|
<td colspan="2">
|
|
|
- 地址:${order.bpOrderUserinfo.province}${order.bpOrderUserinfo.city}${order.bpOrderUserinfo.town}${order.bpOrderUserinfo.address}
|
|
|
+ 地址:${order.bpOrderUserinfo.province}${order.bpOrderUserinfo.city}${order.bpOrderUserinfo.town}${order.bpOrderUserinfo.address}
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
- <c:forEach items="${order.newShopOrders}" var="shopOrder" varStatus="status">
|
|
|
- <c:if test="${!shopOrder.defaultStatus}">
|
|
|
- <table id="shopOrderTable${status.index}" class="table shopOrderTable table-striped table-bordered table-condensed">
|
|
|
- <thead></thead>
|
|
|
+ <c:forEach items="${order.newShopOrders}" var="shopOrder" varStatus="status">
|
|
|
+ <c:if test="${!shopOrder.defaultStatus}">
|
|
|
+ <table id="shopOrderTable${status.index}" class="table shopOrderTable table-striped table-bordered table-condensed">
|
|
|
+ <thead></thead>
|
|
|
+ <tr>
|
|
|
+ <td style="width: 300px;">
|
|
|
+ 子订单号(ID):${shopOrder.shopOrderNo}(${shopOrder.shopOrderID})
|
|
|
+ </td>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 子订单金额:¥<fmt:formatNumber type="number" value="${shopOrder.totalAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 收款状态:${fns:getDictLabel(shopOrder.shopReceiptStatus,'receiptStatus' ,'' )}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 发货状态:${fns:getDictLabel(shopOrder.sendOutStatus,'sendOutStatus' ,'' )}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 付款状态:${fns:getDictLabel(shopOrder.payStatus,'payStatus' ,'' )}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 供应商:${shopOrder.shopName}
|
|
|
+ <c:if test="${not empty shopOrder.commercialCode}">
|
|
|
+ <font color="red" class="businessNumber">(商户号: ${shopOrder.commercialCode})</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <c:if test="${order.onlinePayFlag eq 0}">
|
|
|
<tr>
|
|
|
- <td style="width: 300px;">
|
|
|
- 子订单号(ID):${shopOrder.shopOrderNo}(${shopOrder.shopOrderID})
|
|
|
- </td>
|
|
|
- <td style="width: 275px;">
|
|
|
- 子订单金额:¥<fmt:formatNumber type="number" value="${shopOrder.totalAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
<td>
|
|
|
- 收款状态:${fns:getDictLabel(shopOrder.shopReceiptStatus,'receiptStatus' ,'' )}
|
|
|
+ 商品总额:¥<fmt:formatNumber type="number" value="${shopOrder.needPayAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
</td>
|
|
|
<td>
|
|
|
- 发货状态:${fns:getDictLabel(shopOrder.sendOutStatus,'sendOutStatus' ,'' )}
|
|
|
+ 优惠:¥<fmt:formatNumber type="number" value="${shopOrder.eachDiscount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
</td>
|
|
|
<td>
|
|
|
- 付款状态:${fns:getDictLabel(shopOrder.payStatus,'payStatus' ,'' )}
|
|
|
+ 应付金额:¥<fmt:formatNumber type="number" value="${shopOrder.realPay}" pattern="0.00" maxFractionDigits="2" />
|
|
|
</td>
|
|
|
<td>
|
|
|
- 供应商:${shopOrder.shopName}
|
|
|
- <c:if test="${not empty shopOrder.commercialCode}">
|
|
|
- <font color="red" class="businessNumber">(商户号: ${shopOrder.commercialCode})</font>
|
|
|
- </c:if>
|
|
|
+ 已付金额:¥<fmt:formatNumber type="number" value="${shopOrder.receiptAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
+ </td>
|
|
|
+ <td colspan="2">
|
|
|
+ 待付金额:¥<fmt:formatNumber type="number" value="${shopOrder.restAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <c:if test="${order.onlinePayFlag eq 0}">
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- 商品总额:¥<fmt:formatNumber type="number" value="${shopOrder.needPayAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 优惠:¥<fmt:formatNumber type="number" value="${shopOrder.eachDiscount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 应付金额:¥<fmt:formatNumber type="number" value="${shopOrder.realPay}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 已付金额:¥<fmt:formatNumber type="number" value="${shopOrder.receiptAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- <td colspan="2">
|
|
|
- 待付金额:¥<fmt:formatNumber type="number" value="${shopOrder.restAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </c:if>
|
|
|
- <c:forEach items="${shopOrder.newOrderProducts}" var="newOrderProduct" varStatus="productStatus">
|
|
|
+ </c:if>
|
|
|
+ <c:forEach items="${shopOrder.newOrderProducts}" var="newOrderProduct" varStatus="productStatus">
|
|
|
<tr>
|
|
|
- <td colspan="5">
|
|
|
- <table id="newOrderProductTable" class="table table-striped table-bordered table-condensed">
|
|
|
- <tr>
|
|
|
- <td rowspan="4" style="width: 295px;height: 125px">
|
|
|
- <img style="width: 100px;height: 100px" src="${newOrderProduct.image}">
|
|
|
- <font title="${newOrderProduct.name}">${fns:abbr(newOrderProduct.name,30)}</font>
|
|
|
- </td>
|
|
|
- <td style="width: 275px;">
|
|
|
- 单价:¥<fmt:formatNumber type="number" value="${newOrderProduct.price}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- <c:if test="${order.collageFlag eq 1}"><font color="red">(拼团价)</font></c:if>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- 折扣 :${newOrderProduct.discount}%
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- 折后单价 :¥<span class="discountPrice"><fmt:formatNumber type="number" value="${newOrderProduct.discountPrice}" pattern="0.00" maxFractionDigits="2" /></span>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- 数量(赠品):${newOrderProduct.num}(${newOrderProduct.presentNum})
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="width: 275px;">
|
|
|
- 税率:${newOrderProduct.taxRate}%
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 税费:¥<span class="addedValueTax"><fmt:formatNumber type="number" value="${newOrderProduct.addedValueTax}" pattern="0.00" maxFractionDigits="2" /></span>
|
|
|
- </td>
|
|
|
- <td colspan="2">
|
|
|
- 总额:¥<fmt:formatNumber type="number" value="${newOrderProduct.shouldPayFee}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
+ <td colspan="5">
|
|
|
+ <table id="newOrderProductTable" class="table table-striped table-bordered table-condensed">
|
|
|
+ <tr>
|
|
|
+ <td rowspan="4" style="width: 295px;height: 125px">
|
|
|
+ <img style="width: 100px;height: 100px" src="${newOrderProduct.image}">
|
|
|
+ <font title="${newOrderProduct.name}">${fns:abbr(newOrderProduct.name,30)}</font>
|
|
|
+ </td>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 单价:¥<fmt:formatNumber type="number" value="${newOrderProduct.price}" pattern="0.00" maxFractionDigits="2" />
|
|
|
+ <c:if test="${order.collageFlag eq 1}"><font color="red">(拼团价)</font></c:if>
|
|
|
+ </td>
|
|
|
+ <td >
|
|
|
+ 折扣 :${newOrderProduct.discount}%
|
|
|
+ </td>
|
|
|
+ <td >
|
|
|
+ 折后单价 :¥<span class="discountPrice"><fmt:formatNumber type="number" value="${newOrderProduct.discountPrice}" pattern="0.00" maxFractionDigits="2" /></span>
|
|
|
+ </td>
|
|
|
+ <td >
|
|
|
+ 数量(赠品):${newOrderProduct.num}(${newOrderProduct.presentNum})
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 税率:${newOrderProduct.taxRate}%
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 税费:¥<span class="addedValueTax"><fmt:formatNumber type="number" value="${newOrderProduct.addedValueTax}" pattern="0.00" maxFractionDigits="2" /></span>
|
|
|
+ </td>
|
|
|
+ <td colspan="2">
|
|
|
+ 总额:¥<fmt:formatNumber type="number" value="${newOrderProduct.shouldPayFee}" pattern="0.00" maxFractionDigits="2" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
<%--已发货=商品数量-未出库数量--%>
|
|
|
- <td><font color="red">已发货:<span id="shipped${status.index}${productStatus.index}">${newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore}</span></font></td>
|
|
|
- <input type="hidden" id="returning${status.index}${productStatus.index}" value="${newOrderProduct.returningPurchaseProductNum}"/>
|
|
|
+ <td><font color="red">已发货:<span id="shipped${status.index}${productStatus.index}">${newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore}</span></font></td>
|
|
|
+ <input type="hidden" id="returning${status.index}${productStatus.index}" value="${newOrderProduct.returningPurchaseProductNum}"/>
|
|
|
<%--已退货=所有退货数量总和--%>
|
|
|
- <td><font color="red"><span>已退货:<span id="returned${status.index}${productStatus.index}">${newOrderProduct.returnedPurchaseProductNum}</span></span></font></td>
|
|
|
- <td colspan="4"><font color="red"><span>本次退货:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""} presentNum="${newOrderProduct.presentNum}" id="applicationReturnedNum${status.index}${productStatus.index}" class="refundGoodsInput shopOrderInput" name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationReturnedNum" value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore -newOrderProduct.returnedPurchaseProductNum) }" oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)" class="input tuihuo" type="text" onchange="setApplicationReturnedNum(${status.index},${productStatus.index})"></span></font></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
+ <td><font color="red"><span>已退货:<span id="returned${status.index}${productStatus.index}">${newOrderProduct.returnedPurchaseProductNum}</span></span></font></td>
|
|
|
+ <td colspan="4"><font color="red"><span>本次退货:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""} presentNum="${newOrderProduct.presentNum}" id="applicationReturnedNum${status.index}${productStatus.index}" class="refundGoodsInput shopOrderInput" name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationReturnedNum" value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore -newOrderProduct.returnedPurchaseProductNum) }" oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)" class="input tuihuo" type="text" onchange="setApplicationReturnedNum(${status.index},${productStatus.index})"></span></font></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
<%--待发货=未出库数量-取消数量--%>
|
|
|
- <td><font color="red">待发货:<span id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.notOutStore - newOrderProduct.cancelProductNum}</span></font></td>
|
|
|
+ <td><font color="red">待发货:<span id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.notOutStore - newOrderProduct.cancelProductNum}</span></font></td>
|
|
|
<%--已取消数量=所有已取消数量总和--%>
|
|
|
- <td><font color="red">已取消:<span id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.cancelProductNum}</span></font></td>
|
|
|
- <td colspan="4"><font color="red"><span>本次取消:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""} id="applicationCancelNum${status.index}${productStatus.index}" class="cancelGoodsInput shopOrderInput" name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationCancelNum" value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.notOutStore - newOrderProduct.cancelProductNum)}" oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)" class="input cancel" type="text" onchange="setApplicationCancelNum(${status.index},${productStatus.index})"></span></font></td>
|
|
|
- <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopOrderID" value="${newOrderProduct.shopOrderID}"/>
|
|
|
- <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].productID" value="${newOrderProduct.productID}"/>
|
|
|
- <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].orderProductID" value="${newOrderProduct.orderProductID}"/>
|
|
|
- <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopID" value="${newOrderProduct.shopID}"/>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
+ <td><font color="red">已取消:<span id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.cancelProductNum}</span></font></td>
|
|
|
+ <td colspan="4"><font color="red"><span>本次取消:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""} id="applicationCancelNum${status.index}${productStatus.index}" class="cancelGoodsInput shopOrderInput" name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationCancelNum" value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.notOutStore - newOrderProduct.cancelProductNum)}" oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)" class="input cancel" type="text" onchange="setApplicationCancelNum(${status.index},${productStatus.index})"></span></font></td>
|
|
|
+ <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopOrderID" value="${newOrderProduct.shopOrderID}"/>
|
|
|
+ <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].productID" value="${newOrderProduct.productID}"/>
|
|
|
+ <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].orderProductID" value="${newOrderProduct.orderProductID}"/>
|
|
|
+ <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopID" value="${newOrderProduct.shopID}"/>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
- </c:forEach>
|
|
|
+ </c:forEach>
|
|
|
|
|
|
|
|
|
- </table>
|
|
|
- </c:if>
|
|
|
- <%--默认状态代码--%>
|
|
|
- <c:if test="${shopOrder.defaultStatus}">
|
|
|
- <table id="shopOrderTable${status.index}" class="table shopOrderTable table-striped table-bordered table-condensed">
|
|
|
- <thead></thead>
|
|
|
+ </table>
|
|
|
+ </c:if>
|
|
|
+ <%--默认状态代码--%>
|
|
|
+ <c:if test="${shopOrder.defaultStatus}">
|
|
|
+ <table id="shopOrderTable${status.index}" class="table shopOrderTable table-striped table-bordered table-condensed">
|
|
|
+ <thead></thead>
|
|
|
+ <tr>
|
|
|
+ <td style="width: 300px;">
|
|
|
+ 子订单号(ID):${shopOrder.shopOrderNo}(${shopOrder.shopOrderID})
|
|
|
+ </td>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 子订单金额:¥<fmt:formatNumber type="number" value="${shopOrder.totalAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 发货状态:${fns:getDictLabel(shopOrder.sendOutStatus,'sendOutStatus' ,'' )}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 付款状态:${fns:getDictLabel(shopOrder.payStatus,'payStatus' ,'' )}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 供应商:${shopOrder.shopName}
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <c:forEach items="${shopOrder.newOrderProducts}" var="newOrderProduct" varStatus="productStatus">
|
|
|
<tr>
|
|
|
- <td style="width: 300px;">
|
|
|
- 子订单号(ID):${shopOrder.shopOrderNo}(${shopOrder.shopOrderID})
|
|
|
- </td>
|
|
|
- <td style="width: 275px;">
|
|
|
- 子订单金额:¥<fmt:formatNumber type="number" value="${shopOrder.totalAmount}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 发货状态:${fns:getDictLabel(shopOrder.sendOutStatus,'sendOutStatus' ,'' )}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 付款状态:${fns:getDictLabel(shopOrder.payStatus,'payStatus' ,'' )}
|
|
|
+ <td colspan="5">
|
|
|
+ <table id="newOrderProductTable" class="table table-striped table-bordered table-condensed">
|
|
|
+ <tr>
|
|
|
+ <td rowspan="4" style="width: 295px;height: 125px">
|
|
|
+ <img style="width: 100px;height: 100px" src="${newOrderProduct.image}">
|
|
|
+ <font title="${newOrderProduct.name}">${fns:abbr(newOrderProduct.name,30)}</font>
|
|
|
+ </td>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 单价:¥<fmt:formatNumber type="number" value="${newOrderProduct.price}" pattern="0.00" maxFractionDigits="2" />
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 折扣 :${newOrderProduct.discount}%
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 折后单价 :¥<span class="discountPrice"><fmt:formatNumber type="number" value="${newOrderProduct.discountPrice}" pattern="0.00" maxFractionDigits="2" /></span>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 数量(赠品):${newOrderProduct.num}(${newOrderProduct.presentNum})
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 税率:${newOrderProduct.taxRate}%
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 税费:¥<span class="addedValueTax"><fmt:formatNumber type="number" value="${newOrderProduct.addedValueTax}" pattern="0.00" maxFractionDigits="2" /></span>
|
|
|
+ </td>
|
|
|
+ <td colspan="2">
|
|
|
+ 总额:¥<fmt:formatNumber type="number" value="${newOrderProduct.shouldPayFee}" pattern="0.00" maxFractionDigits="2" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><font color="red">已发货:<span id="shipped${status.index}${productStatus.index}">${newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore}</span></font></td>
|
|
|
+ <input type="hidden" id="returning${status.index}${productStatus.index}" value="${newOrderProduct.returningPurchaseProductNum}"/>
|
|
|
+ <td><font color="red"><span>已退货:<span id="returned${status.index}${productStatus.index}">${newOrderProduct.returnedPurchaseProductNum}</span></span></font></td>
|
|
|
+ <td colspan="4"><font color="red"><span>本次退货:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""} presentNum="${newOrderProduct.presentNum}" id="applicationReturnedNum${status.index}${productStatus.index}" class="refundGoodsInput1 shopOrderInput1 refundGoodsInput shopOrderInput" name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationReturnedNum" value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore - newOrderProduct.returnedPurchaseProductNum)}" oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)" class="input tuihuo" type="text" onchange="setApplicationReturnedNum(${status.index},${productStatus.index})"></span></font></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><font color="red">待发货:<span id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.notOutStore - newOrderProduct.cancelProductNum}</span></font></td>
|
|
|
+ <td><font color="red">已取消:<span id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.cancelProductNum}</span></font></td>
|
|
|
+ <td colspan="4"><font color="red"><span>本次取消:<input ${newOrderProduct.presentNum>0 or (order.onlinfePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""} id="applicationCancelNum${status.index}${productStatus.index}" class="cancelGoodsInput shopOrderInput" name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationCancelNum" value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.notOutStore - newOrderProduct.cancelProductNum)}" oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)" class="input cancel" type="text" onchange="setApplicationCancelNum(${status.index},${productStatus.index})"></span></font></td>
|
|
|
+ <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopOrderID" value="${newOrderProduct.shopOrderID}"/>
|
|
|
+ <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].productID" value="${newOrderProduct.productID}"/>
|
|
|
+ <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].orderProductID" value="${newOrderProduct.orderProductID}"/>
|
|
|
+ <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopID" value="${newOrderProduct.shopID}"/>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
</td>
|
|
|
- <td>
|
|
|
- 供应商:${shopOrder.shopName}
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </table>
|
|
|
+ </c:if>
|
|
|
+ </table>
|
|
|
+ <%--默认状态代码--%>
|
|
|
+ <c:if test="${shopOrder.defaultStatus}">
|
|
|
+ <table id="shopOrderTable${status.index}"
|
|
|
+ class="table shopOrderTable table-striped table-bordered table-condensed">
|
|
|
+ <thead></thead>
|
|
|
+ <tr>
|
|
|
+ <td style="width: 300px;">
|
|
|
+ 子订单号(ID):${shopOrder.shopOrderNo}(${shopOrder.shopOrderID})
|
|
|
+ </td>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 子订单金额:¥<fmt:formatNumber type="number" value="${shopOrder.totalAmount}" pattern="0.00"
|
|
|
+ maxFractionDigits="2"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 发货状态:${fns:getDictLabel(shopOrder.sendOutStatus,'sendOutStatus' ,'' )}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 付款状态:${fns:getDictLabel(shopOrder.payStatus,'payStatus' ,'' )}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 供应商:${shopOrder.shopName}
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <c:forEach items="${shopOrder.newOrderProducts}" var="newOrderProduct" varStatus="productStatus">
|
|
|
+ <tr>
|
|
|
+ <td colspan="5">
|
|
|
+ <table id="newOrderProductTable" class="table table-striped table-bordered table-condensed">
|
|
|
+ <tr>
|
|
|
+ <td rowspan="4" style="width: 295px;height: 125px">
|
|
|
+ <img style="width: 100px;height: 100px" src="${newOrderProduct.image}">
|
|
|
+ <font title="${newOrderProduct.name}">${fns:abbr(newOrderProduct.name,30)}</font>
|
|
|
+ </td>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 单价:¥<fmt:formatNumber type="number" value="${newOrderProduct.price}"
|
|
|
+ pattern="0.00" maxFractionDigits="2"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 折扣 :${newOrderProduct.discount}%
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 折后单价 :¥<span class="discountPrice"><fmt:formatNumber type="number"
|
|
|
+ value="${newOrderProduct.discountPrice}"
|
|
|
+ pattern="0.00"
|
|
|
+ maxFractionDigits="2"/></span>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 数量(赠品):${newOrderProduct.num}(${newOrderProduct.presentNum})
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="width: 275px;">
|
|
|
+ 税率:${newOrderProduct.taxRate}%
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ 税费:¥<span class="addedValueTax"><fmt:formatNumber type="number"
|
|
|
+ value="${newOrderProduct.addedValueTax}"
|
|
|
+ pattern="0.00"
|
|
|
+ maxFractionDigits="2"/></span>
|
|
|
+ </td>
|
|
|
+ <td colspan="2">
|
|
|
+ 总额:¥<fmt:formatNumber type="number" value="${newOrderProduct.shouldPayFee}"
|
|
|
+ pattern="0.00" maxFractionDigits="2"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><font color="red">已发货:<span
|
|
|
+ id="shipped${status.index}${productStatus.index}">${newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore}</span></font>
|
|
|
+ </td>
|
|
|
+ <input type="hidden" id="returning${status.index}${productStatus.index}"
|
|
|
+ value="${newOrderProduct.returningPurchaseProductNum}"/>
|
|
|
+ <td><font color="red"><span>已退货:<span
|
|
|
+ id="returned${status.index}${productStatus.index}">${newOrderProduct.returnedPurchaseProductNum}</span></span></font>
|
|
|
+ </td>
|
|
|
+ <td colspan="4"><font
|
|
|
+ color="red"><span>本次退货:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""}
|
|
|
+ presentNum="${newOrderProduct.presentNum}"
|
|
|
+ id="applicationReturnedNum${status.index}${productStatus.index}"
|
|
|
+ class="refundGoodsInput1 shopOrderInput1 refundGoodsInput shopOrderInput"
|
|
|
+ name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationReturnedNum"
|
|
|
+ value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore - newOrderProduct.returnedPurchaseProductNum)}"
|
|
|
+ oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)"
|
|
|
+ class="input tuihuo" type="text"
|
|
|
+ onchange="setApplicationReturnedNum(${status.index},${productStatus.index})"></span></font>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><font color="red">待发货:<span
|
|
|
+ id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.notOutStore - newOrderProduct.cancelProductNum}</span></font>
|
|
|
+ </td>
|
|
|
+ <td><font color="red">已取消:<span
|
|
|
+ id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.cancelProductNum}</span></font>
|
|
|
+ </td>
|
|
|
+ <td colspan="4"><font
|
|
|
+ color="red"><span>本次取消:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""}
|
|
|
+ id="applicationCancelNum${status.index}${productStatus.index}"
|
|
|
+ class="cancelGoodsInput shopOrderInput"
|
|
|
+ name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationCancelNum"
|
|
|
+ value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.notOutStore - newOrderProduct.cancelProductNum)}"
|
|
|
+ oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)"
|
|
|
+ class="input cancel" type="text"
|
|
|
+ onchange="setApplicationCancelNum(${status.index},${productStatus.index})"></span></font>
|
|
|
+ </td>
|
|
|
+ <form:hidden
|
|
|
+ path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopOrderID"
|
|
|
+ value="${newOrderProduct.shopOrderID}"/>
|
|
|
+ <form:hidden
|
|
|
+ path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].productID"
|
|
|
+ value="${newOrderProduct.productID}"/>
|
|
|
+ <form:hidden
|
|
|
+ path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].orderProductID"
|
|
|
+ value="${newOrderProduct.orderProductID}"/>
|
|
|
+ <form:hidden
|
|
|
+ path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopID"
|
|
|
+ value="${newOrderProduct.shopID}"/>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <c:forEach items="${shopOrder.newOrderProducts}" var="newOrderProduct" varStatus="productStatus">
|
|
|
- <tr>
|
|
|
- <td colspan="5">
|
|
|
- <table id="newOrderProductTable" class="table table-striped table-bordered table-condensed">
|
|
|
- <tr>
|
|
|
- <td rowspan="4" style="width: 295px;height: 125px">
|
|
|
- <img style="width: 100px;height: 100px" src="${newOrderProduct.image}">
|
|
|
- <font title="${newOrderProduct.name}">${fns:abbr(newOrderProduct.name,30)}</font>
|
|
|
- </td>
|
|
|
- <td style="width: 275px;">
|
|
|
- 单价:¥<fmt:formatNumber type="number" value="${newOrderProduct.price}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 折扣 :${newOrderProduct.discount}%
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 折后单价 :¥<span class="discountPrice"><fmt:formatNumber type="number" value="${newOrderProduct.discountPrice}" pattern="0.00" maxFractionDigits="2" /></span>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 数量(赠品):${newOrderProduct.num}(${newOrderProduct.presentNum})
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="width: 275px;">
|
|
|
- 税率:${newOrderProduct.taxRate}%
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- 税费:¥<span class="addedValueTax"><fmt:formatNumber type="number" value="${newOrderProduct.addedValueTax}" pattern="0.00" maxFractionDigits="2" /></span>
|
|
|
- </td>
|
|
|
- <td colspan="2">
|
|
|
- 总额:¥<fmt:formatNumber type="number" value="${newOrderProduct.shouldPayFee}" pattern="0.00" maxFractionDigits="2" />
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td><font color="red">已发货:<span id="shipped${status.index}${productStatus.index}">${newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore}</span></font></td>
|
|
|
- <input type="hidden" id="returning${status.index}${productStatus.index}" value="${newOrderProduct.returningPurchaseProductNum}"/>
|
|
|
- <td><font color="red"><span>已退货:<span id="returned${status.index}${productStatus.index}">${newOrderProduct.returnedPurchaseProductNum}</span></span></font></td>
|
|
|
- <td colspan="4"><font color="red"><span>本次退货:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""} presentNum="${newOrderProduct.presentNum}" id="applicationReturnedNum${status.index}${productStatus.index}" class="refundGoodsInput1 shopOrderInput1 refundGoodsInput shopOrderInput" name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationReturnedNum" value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.num + newOrderProduct.presentNum - newOrderProduct.notOutStore - newOrderProduct.returnedPurchaseProductNum)}" oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)" class="input tuihuo" type="text" onchange="setApplicationReturnedNum(${status.index},${productStatus.index})"></span></font></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td><font color="red">待发货:<span id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.notOutStore - newOrderProduct.cancelProductNum}</span></font></td>
|
|
|
- <td><font color="red">已取消:<span id="toBeShipped${status.index}${productStatus.index}">${newOrderProduct.cancelProductNum}</span></font></td>
|
|
|
- <td colspan="4"><font color="red"><span>本次取消:<input ${newOrderProduct.presentNum>0 or (order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?"readonly":""} id="applicationCancelNum${status.index}${productStatus.index}" class="cancelGoodsInput shopOrderInput" name="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].applicationCancelNum" value="${(order.onlinePayFlag eq 0 and shopOrder.shopID eq 998)?0:(newOrderProduct.notOutStore - newOrderProduct.cancelProductNum)}" oninput="this.value=this.value.replace(/\D/g,'').replace(/^0+(?=\d)/,1)" class="input cancel" type="text" onchange="setApplicationCancelNum(${status.index},${productStatus.index})"></span></font></td>
|
|
|
- <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopOrderID" value="${newOrderProduct.shopOrderID}"/>
|
|
|
- <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].productID" value="${newOrderProduct.productID}"/>
|
|
|
- <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].orderProductID" value="${newOrderProduct.orderProductID}"/>
|
|
|
- <form:hidden path="cmReturnedPurchaseProductList[${status.index}][${productStatus.index}].shopID" value="${newOrderProduct.shopID}"/>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- </table>
|
|
|
- </c:if>
|
|
|
- </c:forEach>
|
|
|
+ </c:forEach>
|
|
|
+ </table>
|
|
|
+ </c:if>
|
|
|
+ </c:forEach>
|
|
|
<div class="form-actions">
|
|
|
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="申 请"/>
|
|
|
+ <input id="btnSubmit" class="btn btn-primary" type="submit" value="申 请"/>
|
|
|
|
|
|
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
|
|
|
</div>
|
|
@@ -670,10 +841,65 @@
|
|
|
<script type="text/javascript" src="${ctxStatic}/modules/bulkpurchase/orderForm.js"></script>
|
|
|
<script type="text/javascript" src="${ctxStatic}/modules/bulkpurchase/stages.js"></script>
|
|
|
<script>
|
|
|
+
|
|
|
+ function changeType(){
|
|
|
+ var refundType = $("#refundType").val();
|
|
|
+ if(1==refundType){
|
|
|
+ var orderStatus = $("#orderStatus").val();
|
|
|
+ var isBuFenFaHuo = $("#isBuFenFaHuo").val();
|
|
|
+ if(isBuFenFaHuo == "true"){
|
|
|
+ $(".shopOrderInput").attr("readonly",true);
|
|
|
+ /*$(".shopOrderInput1").attr("readonly",false);*///设置邮费的可修改
|
|
|
+ };
|
|
|
+
|
|
|
+ //有促销商品订单不可修改
|
|
|
+ if (${isPromotions}){
|
|
|
+ $(".shopOrderInput").attr("readonly",true);
|
|
|
+ }
|
|
|
+
|
|
|
+ //线上全部付款订单不可修改
|
|
|
+ if (${order.receiptStatus == 3 && cmDiscernReceipt.payWay eq 1}){
|
|
|
+ $(".shopOrderInput").attr("readonly",true);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 有优惠不可修改,只能全退
|
|
|
+ if (${order.discountAmount > 0 and order.onlinePayFlag eq 0}){
|
|
|
+ $(".shopOrderInput").attr("readonly",true);
|
|
|
+ }
|
|
|
+
|
|
|
+ //充值订单不可修改
|
|
|
+ if (${order.rechargeGoods != null && (order.rechargeGoods eq 1 || order.rechargeGoods eq 2)}){
|
|
|
+ $(".shopOrderInput").attr("readonly",true);
|
|
|
+ }
|
|
|
+ $("#zdy").hide();
|
|
|
+ $("#spt").show();
|
|
|
+ }
|
|
|
+ if(2==refundType || 3==refundType) {
|
|
|
+ $("input[readonly='readonly']").removeProp("readonly");
|
|
|
+ $("#spt").hide();
|
|
|
+ $("#zdy").show();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function showBankInfo() {
|
|
|
+ if (${!returnOnline}){
|
|
|
+ var obj = document.getElementsByClassName("refundOfflineFee"),
|
|
|
+ blockEle = $('.refund-details-block');
|
|
|
+ if(obj){
|
|
|
+ if(obj[0].checked){
|
|
|
+ //显示银行信息
|
|
|
+ blockEle.show();
|
|
|
+ } else {
|
|
|
+ blockEle.hide();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$(function () {
|
|
|
var orderStatus = $("#orderStatus").val();
|
|
|
var isBuFenFaHuo = $("#isBuFenFaHuo").val();
|
|
|
- debugger
|
|
|
+ var refundType = $("#refundType").val();
|
|
|
if(isBuFenFaHuo == "true"){
|
|
|
$(".shopOrderInput").attr("readonly",true);
|
|
|
/*$(".shopOrderInput1").attr("readonly",false);*///设置邮费的可修改
|
|
@@ -704,6 +930,10 @@
|
|
|
$(".shopOrderInput").attr("readonly",true);
|
|
|
}
|
|
|
|
|
|
+ if(2==refundType || 3==refundType){
|
|
|
+ $("input[readonly='readonly']").removeProp("readonly");
|
|
|
+ }
|
|
|
+
|
|
|
if (${order.rechargeGoods != null && order.rechargeGoods eq 1 && ableUserMoney eq 0}){
|
|
|
alertx("本订单为缴纳订金订单,机构的余额为¥0.00,不能进行退款", function(){
|
|
|
window.location.href = "${ctx}/order/orderList";
|
|
@@ -760,23 +990,23 @@
|
|
|
}
|
|
|
wrapper.parent().append(wrapper.clone());
|
|
|
wrapper.remove();
|
|
|
- $(".conList").each(function(i,ele){
|
|
|
- if($(ele).find("input.input-xlarge").val()){
|
|
|
- $(ele).next().removeClass("hide-pic")
|
|
|
- }
|
|
|
- })
|
|
|
+ $(".conList").each(function(i,ele){
|
|
|
+ if($(ele).find("input.input-xlarge").val()){
|
|
|
+ $(ele).next().removeClass("hide-pic")
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ $(window).on("load", function(){
|
|
|
+ setTimeout(function(){
|
|
|
+ $("#remarkImageBox").find("input.input-xlarge").each(function(i,ele){
|
|
|
+ if($(ele).val()){
|
|
|
+ $(ele).next().find("li").css("z-index","99");
|
|
|
+ $(ele).parents(".conList").find(".cancel-upload").show();
|
|
|
+ $(ele).parents(".conList").next().removeClass("hide-pic")
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },500);
|
|
|
});
|
|
|
- $(window).on("load", function(){
|
|
|
- setTimeout(function(){
|
|
|
- $("#remarkImageBox").find("input.input-xlarge").each(function(i,ele){
|
|
|
- if($(ele).val()){
|
|
|
- $(ele).next().find("li").css("z-index","99");
|
|
|
- $(ele).parents(".conList").find(".cancel-upload").show();
|
|
|
- $(ele).parents(".conList").next().removeClass("hide-pic")
|
|
|
- }
|
|
|
- })
|
|
|
- },500);
|
|
|
- });
|
|
|
|
|
|
//初始化支付方式选中
|
|
|
blockEle = $('.refund-details-block');
|
|
@@ -915,28 +1145,33 @@
|
|
|
}
|
|
|
|
|
|
function setApplicationReturnedNum(a,b){
|
|
|
+ var refundType = $("#refundType").val();
|
|
|
var num = $("#applicationReturnedNum"+a+b).val();
|
|
|
var max = Number($("#shipped"+a+b).html() - $("#returning"+a+b).html() - $("#returned"+a+b).html());
|
|
|
- if(num > max){
|
|
|
- alertx("退货数量不能大于已发货数量(之前已退不算)!");
|
|
|
- $("#applicationReturnedNum"+a+b).val(0)
|
|
|
- }
|
|
|
- if (num !== max && ${returnOnline}){
|
|
|
- alertx("退货数量只能等于已发货数量(之前已退不算)!");
|
|
|
- $("#applicationReturnedNum"+a+b).val(0)
|
|
|
+ if(1==refundType){
|
|
|
+ if(num > max){
|
|
|
+ alertx("退货数量不能大于已发货数量(之前已退不算)!");
|
|
|
+ $("#applicationReturnedNum"+a+b).val(0)
|
|
|
+ }
|
|
|
+ if (num !== max && ${returnOnline}){
|
|
|
+ alertx("退货数量只能等于已发货数量(之前已退不算)!");
|
|
|
+ $("#applicationReturnedNum"+a+b).val(0)
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
};
|
|
|
function setApplicationCancelNum(a,b){
|
|
|
+ var refundType = $("#refundType").val();
|
|
|
var num = $("#applicationCancelNum"+a+b).val();
|
|
|
var max = Number($("#toBeShipped"+a+b).html());
|
|
|
- if(num > max){
|
|
|
- alertx("取消数量不能大于待发数量,请重新填写!");
|
|
|
- $("#applicationCancelNum"+a+b).val(0)
|
|
|
- }
|
|
|
- if (num !== max && ${returnOnline}){
|
|
|
- alertx("取消数量只能等于待发数量,请重新填写!");
|
|
|
- $("#applicationCancelNum"+a+b).val(0)
|
|
|
+ if(1==refundType){
|
|
|
+ if(num > max){
|
|
|
+ alertx("取消数量不能大于待发数量,请重新填写!");
|
|
|
+ $("#applicationCancelNum"+a+b).val(0)
|
|
|
+ }
|
|
|
+ if (num !== max && ${returnOnline}){
|
|
|
+ alertx("取消数量只能等于待发数量,请重新填写!");
|
|
|
+ $("#applicationCancelNum"+a+b).val(0)
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|