|
@@ -592,7 +592,7 @@
|
|
|
<a id="applyShopOtherFee" href="${ctx}/order/cmPayShop/shopOtherFeeForm?shopOrderId=${s.shopOrderID}">付第三方申请</a>
|
|
|
<c:if test="${s.paying ne '1' and s.payStatus eq '1' and !s.modifyPayable}">
|
|
|
<shiro:hasPermission name="order:cmPayShop:modifyPay">
|
|
|
- <a id="applypayWay" href="${ctx}/shopOrder/toChangePayShopAmount?shopOrderID=${s.shopOrderID}">修改成本</a>
|
|
|
+ <a onclick="applypayWay(${s.shopReceiptStatus},${s.payWay})" href="${ctx}/shopOrder/toChangePayShopAmount?shopOrderID=${s.shopOrderID}">修改成本</a>
|
|
|
</shiro:hasPermission>
|
|
|
</c:if>
|
|
|
<c:if test="${(s.modifyPayable and s.paying ne '1') || s.payStatus eq '2'}">
|
|
@@ -693,6 +693,10 @@
|
|
|
<div class="pagination">${page}</div>
|
|
|
|
|
|
<script>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
(function () {
|
|
|
var payTableEle = $('.pay-table'),
|
|
|
payProductEle = $('.pay-product-item');
|
|
@@ -899,21 +903,17 @@
|
|
|
window.location.href = '${ctx}/order/cmPayShop/applyEdit' + params;
|
|
|
});
|
|
|
|
|
|
- //付第三方
|
|
|
-
|
|
|
- $('#applypayWay').on('click', function () {
|
|
|
-
|
|
|
- var shopReceiptStatus=$('#shopReceiptStatus').val();
|
|
|
- var payWay=$('#payWay').val();
|
|
|
+ //线上支付的子订单不能直接修改成本
|
|
|
+ function applypayWay(shopReceiptStatus,payWay) {
|
|
|
console.log(payWay)
|
|
|
- debugger
|
|
|
console.log(shopReceiptStatus)
|
|
|
-
|
|
|
- if (payWay == 1 && shopReceiptStatus==2) {
|
|
|
- alertx('线上支付的子订单不能直接修改成本!');
|
|
|
+ if (payWay == 1 && shopReceiptStatus==2) {
|
|
|
+ alertx('线上支付的子订单不能直接修改成本!')
|
|
|
return false;
|
|
|
- }
|
|
|
- });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
$('#applyShopOtherFee').on('click', function () {
|
|
|
if (checked.length > 1) {
|