|
@@ -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 () {
|
|
@@ -173,7 +173,7 @@
|
|
|
}
|
|
|
|
|
|
function showBankInfo() {
|
|
|
- if (${!returnOnline}){
|
|
|
+ if (${!returnOnline}){
|
|
|
var obj = document.getElementsByClassName("refundOfflineFee"),
|
|
|
blockEle = $('.refund-details-block');
|
|
|
if(obj){
|
|
@@ -266,15 +266,15 @@
|
|
|
<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>
|
|
|
+ <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>
|
|
@@ -287,12 +287,12 @@
|
|
|
${returnTime}
|
|
|
</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>
|
|
|
+ <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>
|
|
@@ -339,11 +339,11 @@
|
|
|
<from:input path="refundOfflineFee" onkeyup="num(this)" placeholder="¥0.00" value="${empty cmReturnedPurchase.refundOfflineFee?'':(cmReturnedPurchase.refundOfflineFee)}"></from:input>
|
|
|
<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"/>
|
|
|
+ <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>
|
|
|
- <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>
|
|
@@ -355,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>账户类型:
|
|
@@ -515,199 +515,199 @@
|
|
|
</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>
|
|
|
- <td>
|
|
|
- 供应商:${shopOrder.shopName}
|
|
|
+ <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>
|
|
|
</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.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>
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- </table>
|
|
|
- </c:if>
|
|
|
+ </c:forEach>
|
|
|
</table>
|
|
|
+ </c:if>
|
|
|
+ </table>
|
|
|
<%--默认状态代码--%>
|
|
|
<c:if test="${shopOrder.defaultStatus}">
|
|
|
<table id="shopOrderTable${status.index}"
|
|
@@ -826,11 +826,12 @@
|
|
|
</table>
|
|
|
</td>
|
|
|
</tr>
|
|
|
-
|
|
|
+ </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>
|
|
@@ -989,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');
|