123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
- <html>
- <head>
- <title>订单财务信息</title>
- <meta name="decorator" content="default"/>
- <style type="text/css">
- .table th {
- text-align: center
- }
- .table td {
- text-align: center
- }
- #searchForm {
- white-space: nowrap
- }
- .pay-wrapper {
- padding: 0 10px
- }
- .pay-list-item {
- margin-bottom: 30px
- }
- .pay-table th {
- background: #f9f9f9 !important;
- }
- .pay-table tr.t2 td {
- background: #f2fbff !important;
- }
- .pay-table tr.t2 th {
- background: #e9f3f7 !important;
- }
- .pay-table tr.t1 th {
- background: #eee !important
- }
- .pay-table td {
- background: #fff !important
- }
- .pay-table .item0 {
- padding: 0;
- margin: 0;
- font-size: 12px;
- }
- input[type="checkbox"]::before {
- content: '\a0';
- display: inline-block;
- vertical-align: .2em;
- width: .8em;
- height: .8em;
- margin-right: .2em;
- border-radius: .2em;
- text-indent: .15em;
- line-height: .65
- }
- #select-all {
- width: 70px;
- height: 30px;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- background: #fff;
- border: 1px solid #ddd;
- margin-bottom: 10px
- }
- #select-all:active {
- background: #3daae9;
- color: #fff
- }
- .pay-more-func {
- float: right;
- color: #2fa4e7;
- cursor: pointer
- }
- .pay-more-func span:first-child {
- margin-right: 6px
- }
- .pay-more-func span:hover {
- color: #7aa9c3
- }
- .mask {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- background: rgba(0, 0, 0, 0.7);
- display: none
- }
- .revise-popup-content, .tips-popup-content {
- width: 40%;
- height: auto;
- padding-bottom: 30px;
- background: #fff;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%)
- }
- .revise-popup-content {
- width: 450px;
- height: 360px;
- overflow-y: scroll;
- padding: 0 15px 30px 15px
- }
- .tips-popup-content {
- width: 30%
- }
- .tips-popup-content p {
- text-align: center;
- padding: 80px;
- font-size: 20px
- }
- .revise-popup-content h4, .tips-popup-content h4 {
- padding-left: 10px;
- height: 40px;
- line-height: 40px;
- border-bottom: 1px solid #eee;
- margin-bottom: 20px
- }
- .revise-popup-content div {
- margin-top: 7px;
- text-align: center
- }
- .revise-popup-content label {
- width: 70px;
- text-align: right;
- vertical-align: text-bottom
- }
- .revise-popup-content button {
- width: 80px;
- height: 30px;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px
- }
- .revise-popup-content > div:nth-of-type(4) > span:first-child {
- margin-left: -104px
- }
- .revise-popup-content > div:nth-of-type(4) > span:last-child {
- margin-left: 30px
- }
- .revise-popup-content > div:nth-of-type(4) > span span {
- margin-left: 10px
- }
- .revise-popup-content > div:last-child {
- text-align: center;
- margin-top: 20px
- }
- .revise-popup-content input {
- width: 100px;
- margin-bottom: 0px
- }
- .popup-cfm-btn, .tips-cfm-btn {
- background: #3daae9;
- color: #fff;
- border: none
- }
- .tips-cfm-btn {
- width: 100px;
- height: 40px;
- margin: auto;
- display: block;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px
- }
- .popup-cancel-btn {
- background: #fff;
- color: #555;
- border: 1px solid #ddd;
- margin-left: 20px
- }
- .popup-tips {
- color: red;
- display: none
- }
- #close-btn, #close-btn1 {
- top: 8px;
- right: 10px;
- width: 18px;
- position: absolute;
- cursor: pointer
- }
- .tips-input-wrapper {
- width: 100px
- }
- .reset-btn {
- background: #fff;
- color: #555;
- border: 1px solid #ddd;
- margin-right: 20px
- }
- .pay-status {
- height: 40px;
- line-height: 40px;
- display: block
- }
- .form-search label {
- width: 80px;
- text-align: left;
- margin-top: 12px
- }
- .remark-textarea {
- width: 95%;
- height: 100px;
- resize: none
- }
- .remark-title {
- text-align: left !important
- }
- .remark-title span {
- color: red
- }
- .ul-form {
- white-space: nowrap;
- margin-left: -10px !important
- }
- .ul-form label {
- width: 90px;
- text-align: left;
- margin-top: 15px
- }
- .time-space-symbols {
- width: 100px;
- display: inline-block;
- text-align: center
- }
- #btnSubmit {
- width: 128px;
- margin-left: 435px
- }
- .pay-status label {
- margin-left: 0
- }
- .pay-status label:first-child {
- margin-left: 10px
- }
- .zeroCost .message {
- display: none;
- position: absolute;
- background: #FFF;
- white-space: nowrap;
- border: 1px solid black;
- }
- .zeroCost:hover .message {
- display: inline-block;
- color: black;
- padding: 5px;
- margin-left: 10px;
- }
- .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 () {
- });
- function page(n, s) {
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li class="active tab-li"><a href="${ctx}/shopOrder/checkPaymentOrder">订单财务信息</a></li>
- </ul>
- <form:form id="searchForm" onsubmit="submitFunc()" modelAttribute="newOrder"
- action="${ctx}/shopOrder/checkPaymentOrder" method="post" class="breadcrumb form-search">
- <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
- <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
- <div class="ul-form">
- <label>子订单ID:</label>
- <form:input path="shopOrderIDs" htmlEscape="false" onkeyup="onlynum(this)" maxlength="8" class="input-medium"/>
- <label>子订单编号:</label>
- <form:input path="shopOrderNo" htmlEscape="false" maxlength="20" class="input-medium"/>
- <label>订单ID:</label>
- <form:input path="orderID" htmlEscape="false" onkeyup="onlynum(this)" maxlength="8" class="input-medium"/>
- <label>订单编号:</label>
- <form:input path="orderNo" htmlEscape="false" maxlength="20" class="input-medium"/><br>
- <label>供应商:</label>
- <form:input path="shopName" htmlEscape="false" maxlength="20" class="input-medium"/>
- <label>机构:</label>
- <form:input path="clubName" htmlEscape="false" maxlength="20" class="input-medium"/>
- <label class="control-label">下单时间:</label>
- <form:input path="startTime" type="text" maxlength="10" class="input-medium Wdate" value="${startTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
- <span class="time-space-symbols">至</span>
- <form:input path="endTime" type="text" maxlength="10" class="input-medium Wdate" value="${endTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
- <div class="pay-status">
- <label>收款状态:</label>
- <form:select path="receiptStatus" class="select-ele input-medium required">
- <form:option value="" label="所有"/>
- <form:options items="${fns:getDictList('receiptStatus')}" itemLabel="label" itemValue="value"
- htmlEscape="false"/>
- </form:select>
- <label>付款状态:</label>
- <form:select path="payStatus" class="select-ele input-medium required">
- <form:option value="" label="所有"/>
- <form:options items="${fns:getDictList('payStatus')}" itemLabel="label" itemValue="value"
- htmlEscape="false"/>
- </form:select>
- <label>退款状态:</label>
- <form:select path="refundType" class="select-ele input-medium required">
- <form:option value="" label="所有"/>
- <form:option value="0" label="无退款"/>
- <form:option value="1" label="部分退款"/>
- <form:option value="2" label="已退款"/>
- </form:select>
- <label>返佣订单:</label>
- <form:select path="rebateOrder" class="select-ele input-medium required">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="是"/>
- <form:option value="0" label="否"/>
- </form:select>
- </div>
- <div class="pay-status">
- <label>组织:</label>
- <form:select path="organizeID" class="select-ele input-medium required">
- <form:option value="" label="请选择"/>
- <form:option value="0" label="采美"/>
- <form:option value="9999" label="呵呵商城"/>
- <c:forEach items="${organizeList}" var="organize" varStatus="index">
- <form:option value="${organize.id}" label="${organize.organizeName}"/>
- </c:forEach>
- </form:select>
- <label>结算状态:</label>
- <form:select path="settleStatus" class="select-ele input-medium required">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="未结算"/>
- <form:option value="2" label="部分结算"/>
- <form:option value="3" label="已结算"/>
- </form:select>
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- </div>
- <div class="clearfix"></div>
- </div>
- </form:form>
- <sys:message content="${message}"/>
- <div class="pay-wrapper">
- <c:forEach items="${page.list}" var="s" varStatus="sIndex">
- <div class="pay-list-item">
- <table class="table table-striped table-bordered table-condensed pay-table">
- <tr class="t1">
- <th class="item0">序号</th>
- <th colspan="2">母订单编号(ID)</th>
- <th>下单时间</th>
- <th>订单金额</th>
- <th>订单状态</th>
- <th>收款状态</th>
- <th>应收金额</th>
- <th>已收金额</th>
- <th>付款状态</th>
- <th>应付金额</th>
- <th>已付金额</th>
- <th>退款状态</th>
- <th>退款金额</th>
- <th colspan="2">机构</th>
- <th>优惠券</th>
- <th>经理折扣</th>
- <th>机构运费</th>
- <th>是否返佣</th>
- </tr>
- <tr>
- <td rowspan="0" class="item0">${(page.pageNo-1)*page.pageSize+sIndex.index+1}</td>
- <td colspan="2">${s.orderNo}(${s.orderID})</td>
- <td>${s.orderTime}</td>
- <td><fmt:formatNumber value="${s.payTotalFee}" type="number" pattern="#,##0.00"/></td>
- <td>
- <c:if test="${s.status eq 11 || s.status eq 12 || s.status eq 13 ||s.status eq 21 ||s.status eq 22 ||
- s.status eq 23 || s.status eq 31 ||s.status eq 32 ||s.status eq 33}">交易中<br>(${fns:getDictLabel(s.status,"order_detail_status","" )})</c:if>
- <c:if test="${s.status eq 0 || s.status eq 4 || s.status eq 5 || s.status eq 6 || s.status eq 7}">${fns:getDictLabel(s.status,"order_detail_status","" )}</c:if>
- </td>
- <td>
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
- style="text-decoration: underline">
- <c:if test="${s.receiptStatus == 1}">
- <font color="red">待收款</font>
- </c:if>
- <c:if test="${s.receiptStatus == 2}">
- <font color="#ff8c00">部分收款</font>
- </c:if>
- <c:if test="${s.receiptStatus == 3}">
- <font color="green">已收款</font>
- </c:if>
- <c:if test="${s.receiptStatus == 4}">
- ----
- </c:if>
- </a>
- </td>
- <td>
- <fmt:formatNumber value="${s.payableAmount}" type="number" pattern="#,##0.00"/>
- (余额抵扣:<fmt:formatNumber value="${s.balancePayFee}" type="number" pattern="#,##0.00"/>)
- </td>
- <td>
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
- style="text-decoration: underline">
- <c:if test="${s.alreadyReceipt eq '----'}">
- ${s.alreadyReceipt}
- </c:if>
- <c:if test="${s.alreadyReceipt ne '----'}">
- <fmt:formatNumber value="${s.alreadyReceipt}" type="number" pattern="#,##0.00"/>
- </c:if>
- </a>
- </td>
- <td>
- <c:if test="${s.payStatus == 1 || empty s.payStatus || s.payStatus == 0}"><font
- color="red">待付款</font></c:if>
- <c:if test="${s.payStatus == 2}"><font color="#ff8c00">部分付款</font></c:if>
- <c:if test="${s.payStatus == 3}"><font color="green">已付款</font>
- <c:if test="${s.zeroCostFlag eq 1}">
- <a href="javascript:;" class="zeroCost"><span><img src="/static/images/info.jpg"
- style="width: 15px;margin-bottom: 4px"></span>
- <div class="message">
- <span>商品成本为0,直接置为已付款,无需付款供应商</span>
- </div>
- </a>
- </c:if>
- </c:if>
- <c:if test="${s.payStatus == 4}">----</c:if>
- </td>
- <td><fmt:formatNumber value="${s.shouldPayShopAmount}" type="number" pattern="#,##0.00"/></td>
- <td>
- <c:if test="${s.paid eq '----'}">
- ${s.alreadyReceipt}
- </c:if>
- <c:if test="${s.paid ne '----'}">
- <fmt:formatNumber value="${s.paid}" type="number" pattern="#,##0.00"/>
- </c:if>
- </td>
- <td>
- <c:if test="${s.refundType == 1}">
- <font>部分退款</font>
- </c:if>
- <c:if test="${s.refundType == 2}">
- <font>已退款</font>
- </c:if>
- <c:if test="${s.refundType != 1 && s.refundType != 2}">
- <font>无退款</font>
- </c:if>
- </td>
- <td><fmt:formatNumber value="${s.returnValue}" type="number" pattern="#,##0.00"/></td>
- <td colspan="2">
- <c:if test="${s.organizeID == '1'}">
- <span class="org-note">星范</span>
- </c:if>
- ${s.clubName}
- <c:if test="${s.orderType eq 2}">
- <font color="red">(呵呵商城)</font>
- </c:if>
- <c:if test="${s.organizeID == 3}">
- </c:if>
- </td>
- <td>
- ${s.couponAmount}
- </td>
- <td><fmt:formatNumber value="${s.discountFee}" type="number" pattern="#,##0.00"/></td>
- <td>
- <c:if test="${s.freight == 0}">
- 包邮
- </c:if>
- <c:if test="${s.freight == -1}">
- 到付
- </c:if>
- <c:if test="${s.freight == -2}">
- 仪器到付-产品包邮
- </c:if>
- <c:if test="${s.freight != -1 && s.freight != 0 && s.freight != -2}">
- <fmt:formatNumber value="${s.freight}" type="currency"/>
- <c:if test="${s.returnedFreightFlag eq true}"><font color="red">(已退)</font></c:if>
- </c:if>
- </td>
- <td>
- <c:if test="${s.rebateOrder == '1'}">是</c:if>
- <c:if test="${s.rebateOrder == '0'}">否</c:if>
- </td>
- </tr>
- <c:forEach items="${s.newShopOrders}" var="so" varStatus="soIndex">
- <tr class="t2">
- <th colspan="3">子订单编号(ID)</th>
- <th colspan="3">供应商</th>
- <th colspan="2">商品费</th>
- <th colspan="2">已付供应商</th>
- <th>供应商退款</th>
- <th colspan="2">应付供应商</th>
- <th colspan="3">应付税费</th>
- <th>供应商运费</th>
- <th>付第三方</th>
- <th>成本类型</th>
- </tr>
- <tr class="t2">
- <td colspan="3">${so.shopOrderNo}(${so.shopOrderID})</td>
- <td colspan="3">${so.shopName}</td>
- <td colspan="2" class="product-fee"><fmt:formatNumber value="${so.shopProductAmount}"
- type="number" pattern="#,##0.00"/></td>
- <td colspan="2"><fmt:formatNumber value="${so.payedShopAmount}" type="number"
- pattern="#,##0.00"/></td>
- <td>
- <c:if test="${so.refundAmount > 0}">
- <fmt:formatNumber value="${so.refundAmount}" type="number" pattern="#,##0.00"/>
- </c:if>
- </td>
- <td colspan="2">
- <c:if test="${so.differenceType ne 1 && so.differenceType ne 2 }">
- <font color="#E15616"><fmt:formatNumber value="${so.shouldPayShopAmount}" type="number"
- pattern="#,##0.00"/></font>
- </c:if>
- <%--1少付2多付--%>
- <c:if test="${so.differenceType eq 1 && so.differencePrice > 0}">
- <font color="black">${so.shouldPayShopAmount+so.differencePrice}</font><font color="red">(原应付:${so.shouldPayShopAmount},已补差价:${so.differencePrice})</font>
- </c:if>
- <c:if test="${so.differenceType eq 2 && so.differencePrice > 0}">
- <font color="black">${so.shouldPayShopAmount-so.differencePrice}</font><font color="red">(原应付:${so.shouldPayShopAmount},已退差价:${so.differencePrice})</font>
- </c:if>
- </td>
- <td colspan="3"><fmt:formatNumber value="${so.shopTaxFee}" type="number"
- pattern="#,##0.00"/></td>
- <td class="product-freight"><fmt:formatNumber value="${so.shopPostFee}" type="number"
- pattern="#,##0.00"/></td>
- <td><fmt:formatNumber value="${so.shopOtherFee}" type="number" pattern="#,##0.00"/></td>
- <td><c:if test="${empty so.costType || so.costType == '1'}">固定成本</c:if><c:if
- test="${so.costType == '2'}">比例成本</c:if></td>
- </tr>
- <tr>
- <th colspan="3">商品名</th>
- <th>规格</th>
- <th>数量<%--(赠品)--%></th>
- <th>退货</th>
- <th colspan="2">单价</th>
- <th colspan="3">机构税率 / 单税费 / 总税费</th>
- <th colspan="2">总价</th>
- <th colspan="3">供应商税率 / 单税费 / 总税费</th>
- <th>成本(单)</th>
- <th colspan="2">成本(总)</th>
- </tr>
- <c:forEach items="${so.newOrderProducts}" var="p" varStatus="pIndex">
- <tr class="pay-product-item">
- <td colspan="3" class="product-name">
- <c:if test="${p.productType eq 1}"><font color="red">协商赠品:</font></c:if>
- <c:if test="${p.productType eq 2}"><font color="red">促销赠品:</font></c:if>
- ${p.name}
- </td>
- <td style="width:80px;">${p.unit}</td>
- <td class="p-num" data-num="${p.num + p.presentNum}">
- ${p.num}
- <c:if test="${p.presentNum > 0}">(赠:${p.presentNum})</c:if>
- </td>
- <td><font color="${p.returnedNum>0?'red':''}">${p.returnedNum}</font></td>
- <td colspan="2"><fmt:formatNumber value="${empty p.touchPrice?p.discountPrice:p.touchPrice}"
- type="number" pattern="#,##0.00"/>
- <c:if test="${p.includedTax != null and p.includedTax != '' and p.includedTax ne 2}">
- <label style="color: red">
- (${p.includedTax eq 1?'含税':(p.invoiceType eq 1 or p.invoiceType eq 2)?'不含税-能开票':'不含税-不能开票'})
- </label>
- </c:if>
- </td>
- <td>${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'---':empty p.taxRate?0.0:p.taxRate}${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'':'%'}</td>
- <td>${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))?'---': empty p.addedValueTax ?0.00:p.addedValueTax}</td>
- <td><c:choose>
- <c:when test="${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))}">
- ---
- </c:when>
- <c:otherwise>
- <fmt:formatNumber
- value="${empty p.totalAddedValueTax ?0.00:(p.addedValueTax * (p.num+p.presentNum-p.returnedNum))}"
- type="number" pattern="#,##0.00"/>
- </c:otherwise>
- </c:choose></td>
- <td colspan="2"><fmt:formatNumber
- value="${((empty p.touchPrice?p.discountPrice:p.touchPrice) + p.addedValueTax)*(p.num+p.presentNum-p.returnedNum)}"
- type="number" pattern="#,##0.00"/></td>
- <td>${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'---':empty p.supplierTaxRate?0.0:p.supplierTaxRate}${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'':'%'}</td>
- <td>${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))?'---': empty p.singleShouldPayTotalTax ?0.00:p.singleShouldPayTotalTax}</td>
- <td><c:choose>
- <c:when test="${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))}">
- ---
- </c:when>
- <c:otherwise>
- <fmt:formatNumber
- value="${empty p.shouldPayTotalTax ?0.00:(p.singleShouldPayTotalTax * (p.num+p.presentNum-p.returnedNum))}"
- type="number" pattern="#,##0.00"/>
- </c:otherwise>
- </c:choose></td>
- <td><fmt:formatNumber value="${p.costPrice}" type="number" pattern="#,##0.00"/></td>
- <td colspan="2"><fmt:formatNumber
- value="${p.costPrice * (p.num + p.presentNum - p.returnedNum)}" type="number"
- pattern="#,##0.00"/></td>
- </tr>
- </c:forEach>
- </c:forEach>
- </table>
- <div style="float:right">
- <c:if test="${s.settleRecordNum>0}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toSettleRecord?orderID=${s.orderID}">佣金结算记录</a>
- </c:if>
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord?orderID=${s.orderID}&from=3">收付款记录</a>
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID?orderID=${s.orderID}&from=3">用户退款/货记录</a>
- <a href="${ctx}/shopOrder/refundRecord?orderID=${s.orderID}">供应商退/付款记录</a>
- </div>
- </div>
- </c:forEach>
- </div>
- <div class="pagination">${page}</div>
- <script>
- (function () {
- var payTableEle = $('.pay-table'),
- payProductEle = $('.pay-product-item');
- var getCheckedArr = sessionStorage.getItem('checkedIndexArr'),
- allCheckedEle = $('.pay-all-status');
- if (getCheckedArr) {
- getCheckedArr = JSON.parse(getCheckedArr);
- if (getCheckedArr.length > 0) {
- allCheckedEle.prop('checked', false);
- $.each(getCheckedArr, function (index, value) {
- $('.pay-checkbox').eq(value).prop('checked', true);
- })
- } else {
- allCheckedEle.prop('checked', true);
- }
- } else {
- allCheckedEle.prop('checked', true);
- }
- $('.tab-li').on('click', function () {
- if (getCheckedArr) {
- sessionStorage.removeItem('checkedIndexArr');
- }
- })
- function renderPopup(p, f, t, th, s, ps, plist) {
- if (plist == '') {
- $('.div-table tr:gt(0)').remove();
- return;
- }
- var tsize = plist.size(),
- str = '';
- for (var i = 0; i < tsize; i++) {
- var current = $(plist.get(i));
- str += '<tr>' +
- '<td>' + current.find('.p-name').text() + '</td>' +
- '<td class="tips-input-wrapper">' +
- '<input type="number" data-num=' + current.find('.p-num').attr('data-num') + ' data-copid=' + current.find('.p-copId').attr('value') + ' data-ov=' + current.find('.p-costprice').text().replace(',', '') + ' value=' + current.find('.p-costprice').text().replace(',', '') + ' class="modify-product-costprice">' +
- '</td>' +
- '<td class="tips-input-wrapper">' +
- '<input type="number" data-num=' + current.find('.p-num').attr('data-num') + ' data-ov=' + current.find('.p-taxes').text().replace(',', '') + ' value=' + current.find('.p-taxes').text().replace(',', '') + ' class="modify-product-taxes">' +
- '</td>' +
- '</tr>';
- }
- $('.div-table').append(str);
- }
- function showTips1(content) {
- var block = $('.popup-tips');
- block.text(content);
- block.show();
- }
- function btnToGrey() {
- $('.popup-cfm-btn').css({'background': '#ddd', 'color': '#555'});
- $('.popup-cfm-btn').attr('disabled', true);
- }
- function btnToNormal() {
- $('.popup-cfm-btn').css({'background': '#3daae9', 'color': '#fff'});
- $('.popup-cfm-btn').attr('disabled', false);
- }
- function showTips(text) {
- $('.tips-popup p').text(text);
- $('.tips-popup').show();
- }
- function toZero(thisEle) {
- if (Number(thisEle.val()) < 0) {
- thisEle.val(0);
- }
- }
- //恢复默认值
- $('.reset-btn').on('click', function () {
- var elements = $('.modify-product-costprice,#div-freight,.modify-product-taxes,#div-third-party-fee,#proportional');
- elements.each(function () {
- $(this).attr('value', $(this).attr('data-ov'));
- });
- validAndAdd();
- });
- $('#close-btn, .popup-cancel-btn').on('click', function () {
- $('.revise-popup').hide();
- renderPopup('', '', '', '', '', '', '');
- })
- $("#popup-product-fee").on("input propertychange", function () {
- toZero($(this));
- renderSupplierFee();
- })
- $("#popup-freight").on("input propertychange", function () {
- toZero($(this));
- renderSupplierFee();
- })
- $("#popup-taxes").on("input propertychange", function () {
- toZero($(this));
- renderSupplierFee();
- })
- $("#popup-third-party").on("input propertychange", function () {
- toZero($(this));
- if (!$(this).text().trim()) {
- showTips1('');
- $('.popup-tips').hide();
- btnToNormal();
- }
- });
- $('#close-btn1').on('click', function () {
- $('.tips-popup').hide();
- });
- $('body').on('input propertychange', '.modify-product-costprice', function () {
- validAndAdd();
- });
- $('body').on('input propertychange', '#div-freight', function () {
- validAndAdd();
- });
- $('body').on('input propertychange', '.modify-product-taxes', function () {
- validAndAdd();
- });
- $('body').on('input propertychange', '#div-third-party-fee', function () {
- validAndAdd();
- });
- $('body').on('input propertychange', '#proportional', function () {
- validAndAdd();
- });
- // $('#myTab a:first').tab('show');
- $('#myTab a').click(function (e) {
- e.preventDefault();
- var parentLi = $(this).closest('li'),
- index = parentLi.index(),
- reviseContentEle = $('.revise-content');
- parentLi.addClass('active').siblings().removeClass('active');
- reviseContentEle.eq(index).show().siblings('.revise-content').hide();
- if ($('#li-fixed-cost,#li-proportional-cost').length == 2) {
- validAndAdd();
- }
- })
- $('.pay-all-status').on('click', function () {
- var thisStatus = $(this).prop('checked');
- if (thisStatus) {
- $('.pay-other-status').prop('checked', false);
- }
- })
- $('.pay-other-status').on('click', function () {
- var thisStatus = $(this).prop('checked');
- if (thisStatus) {
- $('.pay-all-status').prop('checked', false);
- }
- })
- /*$('.pay-table').each(function () {
- var productFee = $(this).find('.product-fee');
- var index = 0,
- fee = 0;
- productFee.each(function () {
- fee += Number($(this).text());
- $(this).attr('data-index', index);
- if (index === 0) {
- $(this).attr('rowspan', 0);
- } else {
- $(this).remove();
- }
- index++;
- });
- productFee.text(fee);
- })*/
- })()
- /**
- * @param obj
- * jquery控制input只能输入数字
- */
- function onlynum(obj) {
- obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
- }
- function submitFunc() {
- var checkedArr = [];
- $('.pay-checkbox').each(function (index) {
- var thisStatus = $(this).prop('checked');
- if (thisStatus) {
- checkedArr.push(index);
- }
- })
- if (checkedArr.length > 0) {
- sessionStorage.setItem('checkedIndexArr', JSON.stringify(checkedArr));
- } else {
- sessionStorage.setItem('checkedIndexArr', []);
- }
- }
- </script>
- </body>
- </html>
|