1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021 |
- <%@ page import="java.util.Date" %>
- <%@ 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;
- }
- .data-title {
- width: 100%;
- display: table;
- }
- .data-title ul li {
- word-break: break-all;
- display: table-cell;
- width: 100px;
- border: 1px solid #000;
- text-align: center;
- height: 35px;
- vertical-align: middle;
- border-right: 0;
- border-bottom: 0
- }
- .data-title ul {
- margin-bottom: 0 !important;
- display: table-row;
- }
- .data-title ul li:last-of-type {
- width: 120px;
- border-right: 1px solid #000000;
- }
- .data-title ul:last-of-type li {
- border-bottom: 1px solid #000000
- }
- .data-title ul li:nth-child(6) {
- width: 80px
- }
- .spileOrder li:nth-of-type(1) {
- position: relative
- }
- .san {
- width: 10px;
- height: 10px;
- border-top: 2px solid #000;
- border-right: 2px solid #000;
- transform: rotate(45deg);
- position: absolute;
- right: -2px;
- top: 50%;
- margin-top: -5px;
- cursor: pointer
- }
- .red-waring {
- margin: 0 !important;
- background-color: #f3f3f3 !important;
- }
- .red-waring li {
- border-color: red !important;
- }
- #biao1 {
- position: absolute;
- left: -9999px;
- top: -9999px;
- z-index: -99;
- width: 1px;
- height: 1px;
- }
- .operation-btn {
- cursor: pointer;
- }
- .operation-block {
- background: #fff;
- position: absolute;
- right: 2px;
- padding: 10px;
- border: 1px solid #666;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- z-index: 999;
- display: none;
- }
- .operation-block a {
- display: block;
- padding: 3px 0;
- }
- .refund-selector {
- width: 150px;
- height: 26px;
- line-height: 26px;
- text-indent: 10px;
- background: #fff;
- display: inline-block;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- border: 1px solid #ccc;
- vertical-align: middle;
- position: relative;
- cursor: pointer;
- }
- .refund-selector ul {
- z-index: 999;
- }
- .refund-selector li {
- width: 100%;
- text-indent: 10px;
- }
- .refund-selector li:hover {
- background: #3875d7;
- color: #fff;
- }
- .refund-arrow {
- display: inline-block;
- width: 18px;
- height: 100%;
- position: absolute;
- right: 0;
- top: 0;
- border-left: 1px solid #aaa;
- border-radius: 0 4px 4px 0;
- background-clip: padding-box;
- background: #eee;
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
- background-image: -webkit-linear-gradient(center bottom, #ccc 0, #eee 60%);
- background-image: -moz-linear-gradient(center bottom, #ccc 0, #eee 60%);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#cccccc', GradientType=0);
- background-image: linear-gradient(top, #ccc 0, #eee 60%);
- }
- .refund-arrow b {
- display: block;
- width: 100%;
- height: 100%;
- background: url('/static/jquery-select2/3.4/select2.png') no-repeat 0 1px;
- }
- .refund-block1, .refund-block2 {
- width: 100%;
- position: absolute;
- background: #fff;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- border: 1px solid #ccc;
- margin: 0;
- color: #666;
- display: none;
- }
- .refund-more {
- position: relative;
- }
- .refund-block1 {
- top: 26px;
- }
- .refund-block2 {
- left: 100%;
- top: 0;
- }
- .refund-selector .refund-more:hover .refund-block2 {
- display: block;
- }
- #searchForm {
- line-height: 40px;
- }
- #searchForm .ul-form {
- overflow: visible;
- }
- #searchForm {
- white-space: nowrap;
- }
- #searchForm label {
- margin-top: 15px;
- }
- .ul-form {
- white-space: nowrap;
- margin-left: -10px !important;
- }
- .ul-form label {
- width: 90px;
- text-align: right;
- }
- .time-space-symbols {
- width: 100px;
- display: inline-block;
- text-align: center;
- }
- #btnSubmit {
- width: 128px;
- margin-left: 152px;
- }
- .select-ele {
- width: 177px;
- }
- #auditBox {
- padding: 20px;
- line-height: 30px
- }
- #auditBox p {
- font-size: 16px;
- margin: 0 0 0 0;
- }
- #auditBox .note-div {
- font-size: 16px;
- }
- .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" src="${ctxStatic}/QRCode/jquery.qrcode.min.js"></script>
- <script type="text/javascript" src="static/common/clipboard.min.js"></script>
- <script type="text/javascript">
- function copyUrl2() {
- var Url2 = document.getElementById("biao1");
- Url2.select(); // 选择对象
- document.execCommand("Copy"); // 执行浏览器复制命令
- // alert("已复制好,可贴粘。");
- }
- $(document).ready(function () {
- var lab = '';
- var val = '';
- var startRefundTime = $('#startRefundTime');
- var endRefundTime = $('#endRefundTime');
- startRefundTime.attr('disabled', 'disabled');
- endRefundTime.attr('disabled', 'disabled');
- startRefundTime.val('');
- endRefundTime.val('');
- switch ('${orderRefundType}') {
- case '':
- lab = '全部';
- val = '';
- break;
- case '0':
- lab = '无';
- val = '0';
- break;
- case '1':
- lab = '全部状态';
- val = '1';
- break;
- case '11':
- lab = '退款(退货)中';
- val = '11';
- break;
- case '12':
- lab = '已完成';
- val = '12';
- startRefundTime.removeAttr('disabled');
- endRefundTime.removeAttr('disabled');
- startRefundTime.val('${startRefundTime}');
- endRefundTime.val('${endRefundTime}');
- break;
- case '13':
- lab = '已取消';
- val = '13';
- break;
- default:
- }
- $("#orderRefundType").val(val);
- $('.refund-val').text(lab);
- $('body').click(function (e) {
- var target = $(e.target),
- opBlockEle = target.siblings('.operation-block');
- if ((target.is('.operation-btn') && opBlockEle.css('display') == 'block') ||
- (!target.is('.operation-block') && !target.is('.operation-btn'))) {
- $('.operation-block').hide();
- } else {
- $('.operation-block').hide();
- opBlockEle.show();
- }
- });
- $('.refund-selector').on('click', function () {
- var block1 = $('.refund-block1');
- if (block1.css('display') === 'none') {
- $('.refund-block1').show();
- }
- });
- $('.refund-options').on('click', function (e) {
- var val = $(this).text();
- $("#orderRefundType").val($(this).data('v'));
- var startRefundTime = $('#startRefundTime');
- var endRefundTime = $('#endRefundTime');
- if ($(this).data('v') == '12') {
- startRefundTime.removeAttr('disabled');
- endRefundTime.removeAttr('disabled');
- } else {
- startRefundTime.attr('disabled', 'disabled');
- endRefundTime.attr('disabled', 'disabled');
- startRefundTime.val('');
- endRefundTime.val('');
- }
- $('.refund-val').text(val);
- $('.refund-block1').hide();
- e.stopPropagation();
- })
- if ($(".operation-block").length > 0) {
- var length = $(".operation-block").length;
- for (var i = 0; i < length; i++) {
- var b = $(".operation-block").get(i);
- if ($(b).html().trim() == '') {
- $(b).hide();
- $(b).prev().hide();
- }
- }
- }
- });
- function page(n, s) {
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- // 二维码分享
- function QRCodewin(orderId, orderNo) {
- var html = '<div style="padding:10px;">订单号:' + orderNo + '' +
- '<div class="code" style="text-align: center;"></div>' +
- '</div>';
- $.jBox(html, {
- title: "订单二维码分享",
- width: $(top.document).width() - 1700,
- height: $(top.document).height() - 1600,
- buttons: {'关闭': true}
- });
- var enCodeRedirectUrl;
- var redirectUrl = '${fns:getConfig('caimei.crm.server')}oauth.action?orderId=' + orderId;
- $.ajax({
- url: "${ctx}/bulkpurchase/contractOrder/enCode",
- data: {"redirectUrl": redirectUrl},
- type: "POST",
- async: false,
- success: function (data) {
- enCodeRedirectUrl = data.enCodeRedirectUrl;
- }
- });
- var shareUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=${fns:getConfig('weixin.appId')}&redirect_uri=' + enCodeRedirectUrl + '&response_type=code&scope=snsapi_base&state=bulkpurchase#wechat_redirect';
- $('.code').qrcode({
- width: 150,
- height: 150,
- text: shareUrl
- });
- }
- // 供应商链接
- function shareShopLink(shopOrderID) {
- var cpTxt = '${fns:getConfig('caimei.crm.server')}supplier/order/shopAuthorizedOrder.rpc?shopOrderID=' + shopOrderID;
- var html = '<div style="padding:10px;">' + cpTxt +
- '<div class="code" style="text-align: center;"></div>' +
- '</div>';
- $('#biao1').val(cpTxt);//设置值
- $.jBox(html, {
- title: "复制以下链接,可分享订单信息",
- width: $(top.document).width() - 1400,
- height: $(top.document).height() - 1600,
- buttons: {'复制': 1, '关闭': true},
- // buttons: { '关闭': true },
- submit: function (v, h, f) {
- if (v == 1) {
- copyUrl2()
- // alert("1")
- // window.clipboardData.setData("text" , cpTxt);
- }
- }
- });
- }
- // 终止备注信息
- function orderRemarkswin(orderStopRemarks) {
- var html = "<div style='padding:10px;'><textarea id='remarks' name='remarks' rows='5' cols='12' readonly='true'>" + orderStopRemarks + "</textarea></div>";
- $.jBox(html, {
- title: "备注",
- width: $(top.document).width() - 1600,
- height: $(top.document).height() - 1600,
- buttons: {'关闭': true}
- });
- }
- // 订单终止弹窗
- function orderStopwin(id, flag) {
- var html = "<div style='padding:10px;'><font color='red'>*</font>备注:<textarea id='remarks' name='remarks' rows='5' cols='12'></textarea></div>";
- var submit = function (v, h, f) {
- if (f.remarks == '') {
- $.jBox.tip("请输入您填写备注信息", 'error', {focusId: "remarks"});
- return false;
- }
- // $.jBox.tip("备注:" + f.remarks);
- location.href = "${ctx}/bulkpurchase/contractOrder/saveOrderStopInfo?id=" + id + "&flag=" + flag + "&orderStopRemarks=" + f.remarks;
- return true;
- };
- $.jBox(html, {title: "确认终止订单?", submit: submit});
- }
- // 未分期确认订单
- function openwin(id, flag) {
- var submit = function (v, h, f) {
- if (v == true) {
- location.href = "${ctx}/bulkpurchase/contractOrder/saveConfirmFlag?id=" + id + "&flag=" + flag;
- }
- return true;// close
- };
- // 自定义按钮
- $.jBox.confirm("客户已确认了吗?", "确认订单", submit, {buttons: {'确认': true, '取消': false}});
- }
- // 分期确认订单
- function stagesOpenwin(id, flag) {
- var submit = function (v, h, f) {
- if (v == true) {
- location.href = "${ctx}/bulkpurchase/contractOrder/saveStagesConfirmFlag?id=" + id + "&flag=" + flag;
- }
- return true;// close
- };
- // 自定义按钮
- $.jBox.confirm("确认此订单可以生成?", "确认订单", submit, {buttons: {'确认': true, '取消': false}});
- }
- //编辑经理折扣
- function modelShow(orderID) {
- top.$.jBox("iframe:${ctx}/order/DiscountFee?orderID=" + orderID, {
- iframeScrolling: 'yes',
- top: 150,
- width: 480,
- height: 300,
- persistent: true,
- title: "编辑经理折扣",
- buttons: {"确认": '1', "取消": '-1'},
- submit: function (v, h, f) {
- //确定
- var $jboxFrame = top.$('#jbox-iframe');
- var $mainFrame = top.$('#mainFrame');
- if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
- var rechargeInfo = $jboxFrame[0].contentWindow.submit();
- var split = rechargeInfo.split(",");
- var payTotalFee = split[0];
- var discountFee = split[1];
- //取值,然后调用后台接口传入参数,最后刷新页面
- if (payTotalFee <= 0) {
- return false;
- }
- $.post("${ctx}/order/saveDiscountFee", {
- 'discountFee': discountFee,
- 'orderID': orderID,
- 'payTotalFee': payTotalFee
- }, function (data) {
- if (true == data.success) {
- refresh();
- $.jBox.tip(data.msg, 'info', {timeout: 1000});
- } else {
- alertx(data.msg, 1000);
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- }
- return true;
- }, loaded: function (h) { //隐藏滚动条
- $(".jbox-content", top.document).css("overflow-y", "hidden");
- }
- });
- }
- //订单商品备注
- function remarks(orderID, shopOrderID) {
- top.$.jBox("iframe:${ctx}/order/cmOrderRemark/remarksView?orderID=" + orderID + "&shopOrderID=" + shopOrderID, {
- iframeScrolling: 'yes',
- top: 150,
- width: 400,
- height: 480,
- persistent: true,
- title: "订单备注信息",
- buttons: {"确认": '1', "关闭": '-1'},
- submit: function (v, h, f) {
- //确定
- var $jboxFrame = top.$('#jbox-iframe');
- var $mainFrame = top.$('#mainFrame');
- if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
- var remarks = $jboxFrame[0].contentWindow.submit();
- // var arr = item.split(",");
- // var remarks = arr[0];
- if ('' == remarks) {
- alertx("备注信息不能为空!!!")
- return false;
- }
- saveRemarks(remarks, orderID, shopOrderID);
- return true;
- }
- return true;
- },
- loaded: function (h) { //隐藏滚动条
- $(".jbox-content", top.document).css("overflow-y", "hidden");
- }
- });
- }
- function saveRemarks(remarks, orderID, shopOrderID) {
- $.post("${ctx}/order/cmOrderRemark/addRemarks", {
- "remarks": remarks, "orderID": orderID, "shopOrderID": shopOrderID
- }, function (data) {
- if (true == data.success) {
- refresh();
- $.jBox.tip(data.msg, 'info');
- } else {
- $.jBox.tip(data.msg, 'error');
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- }
- //修改订单状态弹窗
- function updateOrderStatus(orderId) {
- top.$.jBox("iframe:${ctx}/bulkpurchase/contractOrder/orderStatusEdit?orderId=" + orderId, {
- iframeScrolling: 'yes',
- top: 150,
- width: 400,
- height: 230,
- persistent: true,
- title: "更新订单状态",
- buttons: {"确认修改": '1', "关闭": '-1'},
- submit: function (v, h, f) {
- //确定
- var $jboxFrame = top.$('#jbox-iframe');
- var $mainFrame = top.$('#mainFrame');
- if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
- var item = $jboxFrame[0].contentWindow.submit();
- var arr = item.split(",");
- var orderStatus = arr[0];
- var updateDate = arr[1];
- if (updateDate == "") {
- alertx("时间不能为空!!!")
- return false;
- }
- saveOrderStatus(orderStatus, updateDate, orderId);
- return true;
- }
- return true;
- }
- });
- }
- function saveOrderStatus(orderStatus, updateDate, orderId) {
- $.post("${ctx}/bulkpurchase/contractOrder/saveOrderStatus", {
- 'orderStatus': orderStatus, "updateDate": updateDate, "orderId": orderId
- }, function (data) {
- if (true == data.success) {
- refresh();
- $.jBox.tip(data.msg, 'info');
- } else {
- $.jBox.tip(data.msg, 'error');
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- }
- function refresh() {
- window.location.href = "${ctx}/hehe/new/order/orderList/";
- }
- function checkfun() {
- var orderID = $('#orderID').val();
- var reg = /^[0-9]*$/;
- if (!reg.test(orderID) && orderID.trim() != "") {
- alertx("请输入正确的订单ID!");
- // $('#orderID').val("");
- return false;
- }
- return true;
- }
- //抹平收款
- function collection(orderId) {
- $.post("${ctx}/order/gatheringData", {
- 'orderId': orderId
- }, function (data) {
- if (true == data.success) {
- var html = "<div id='auditBox'>" +
- "<P>确定抹平收款吗?抹平后该订单将变为已收款状态</p>" +
- "<P><span>订单金额:<b>¥" + Number(data.payTotalFee).toFixed(2) + "</b></span></p>" +
- "<P><span>应收金额:<b>¥" + Number(data.payableAmount).toFixed(2) + "</b><span style='color:#FF0000'>(账户余额抵扣: ¥<b>" + Number(data.balancePayFee).toFixed(2) + "</b>)</span></span></p>" +
- "<P><span>已收金额:<b>¥" + Number(data.associateAmount).toFixed(2) + "</b></span></p>" +
- "<div><div class='note-div'><span style='color:#FF0000'>*</span>备注</div></div>" +
- "<textarea name='auditNote' style='width: 100%;min-height:60px;'></textarea>" +
- "<div class='note-div' style='display: none' id='noteError'><span style='color:#FF0000'>请填写备注</span> </div>" +
- "</div>";
- $.jBox(html, {
- title: "确认提示", width: 500, height: 400, buttons: {"确定": '1', "取消": '-1'},
- submit: function (v, h, f) {
- if ('1' == v) {
- var content = document.getElementsByName("auditNote")[0].value;
- if (content == '' || content == null) {
- document.getElementById('noteError').style.display = 'block';
- return false;
- }
- $.post("${ctx}/order/smoothOutCollection", {
- 'orderID': orderId,
- 'balanceAccountsRemark': content
- });
- window.location.href = "${ctx}/order/detail?id=" + orderId;
- }
- }
- });
- } else {
- $.jBox.tip(data.msg, 'error');
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- };
- function orderExport() {
- var searchForm = $("#searchForm");
- searchForm.attr('action', '${ctx}/hehe/new/order/batchExportOrder');
- searchForm.submit();
- searchForm.attr('action', '${ctx}/hehe/new/order/orderList');
- }
- </script>
- </head>
- <body>
- <textarea cols="20" rows="10" id="biao1"></textarea>
- <ul class="nav nav-tabs">
- <li class="active"><a href="${ctx}/hehe/new/order/orderList">订单列表</a></li>
- </ul>
- <sys:message content="${message}"/>
- <form:form id="searchForm" modelAttribute="newOrder" onsubmit="return checkfun()" action="${ctx}/hehe/new/order/orderList"
- 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">
- <div class="flex-wrap">
- <div class="item">
- <label>订单ID:</label>
- <form:input path="orderID" id="orderID" htmlEscape="false" maxlength="30" class="input-medium"/>
- </div>
- <div class="item">
- <label>订单类型:</label>
- <form:select path="collageFlag" class="select-ele input-medium required">
- <form:option value="" label="所有"/>
- <form:option value="0" label="独立订单"/>
- <form:option value="1" label="拼团订单"/>
- </form:select>
- </div>
- <div class="item">
- <label>订单编号:</label>
- <form:input path="orderNo" htmlEscape="false" maxlength="30" class="input-medium"/>
- </div>
- <div class="item">
- <label>买家:</label>
- <form:input path="buyer" maxlength="20" class="input-medium"/>
- </div>
- <div class="item">
- <label>收货人:</label>
- <form:input path="receiver" maxlength="20" class="input-medium"/>
- </div>
- <div class="item">
- <label>订单状态:</label>
- <form:select path="status" class="select-ele input-medium required">
- <form:option value="" label="所有"/>
- <form:options items="${fns:getDictList('order_status')}" itemLabel="label" itemValue="value"
- htmlEscape="false"/>
- </form:select>
- </div>
- <div class="item">
- <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>
- </div>
- <div class="item">
- <label>拼团状态:</label>
- <form:select path="collageStatus" class="select-ele input-medium required">
- <form:option value="" label="所有"/>
- <form:option value="1" label="拼团中"/>
- <form:option value="2" label="已拼成"/>
- </form:select>
- </div>
- <div class="item">
- <label>发货状态:</label>
- <form:select path="sendOutStatus" class="select-ele input-medium required">
- <form:option value="" label="所有"/>
- <form:options items="${fns:getDictList('sendOutStatus')}" itemLabel="label" itemValue="value"
- htmlEscape="false"/>
- </form:select>
- </div>
- <div class="item">
- <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>
- </div>
- <div class="item">
- <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>
- </div>
- <div class="item">
- <label>待审核退款:</label>
- <form:select path="returnedPurchaseStatus" 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="item">
- <label>分销者:</label>
- <form:select path="userID" class="select-ele input-medium required">
- <form:option value="" label="所有"/>
- <form:options items="${heUsers}" itemLabel="name" itemValue="userId" htmlEscape="false"/>
- </form:select>
- </div>
- <div class="item">
- <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});"/>
- 至
- <form:input path="endTime" type="text" maxlength="10" class="input-medium Wdate" value="${endTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
- </div>
- <div class="item">
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" style="margin-left: 20px;"/>
- </div>
- <div class="item">
- <a id="orderExport" class="btn btn-primary" href="javascript:;" onclick="orderExport()" style="width:100px; margin-left: 20px;">订单导出</a>
- </div>
- </div>
- </div>
- </form:form>
- <fmt:formatDate value="<%=new Date()%>" var="currDate" pattern="yyyy-MM-dd"/>
- <fmt:formatDate value="<%=new Date()%>" var="monthFirst" pattern="yyyy-MM-01"/>
- <div class="data-title">
- <ul>
- <li>订单ID</li>
- <li>订单类型</li>
- <li>订单编号</li>
- <li>买家</li>
- <li>收货人</li>
- <li>订单状态</li>
- <li>收款状态</li>
- <li>拼团状态</li>
- <li>付款状态</li>
- <li>发货状态</li>
- <li>退款状态</li>
- <li>待审核退款</li>
- <li>订单金额</li>
- <li>下单时间</li>
- <li>操作</li>
- </ul>
- <c:forEach items="${page.list}" var="order">
- <%--颜色区分分期不分期订单以及终止订单--%>
- <ul class="spileOrder" data-id="${order.orderNo}">
- <li>${order.orderID}</li>
- <li>
- ${order.collageFlag eq 1?'拼团订单':'独立订单'}
- </li>
- <li style="position: relative">${order.orderNo}
- </li>
- <li>
- ${order.buyer}
- </li>
- <li>${order.receiver}</li>
- <li class="sd-li">
- <c:if test="${order.status eq 11 || order.status eq 12 || order.status eq 13 ||order.status eq 21 ||order.status eq 22 ||
- order.status eq 23 || order.status eq 31 ||order.status eq 32 ||order.status eq 33}">
- 交易中<br>(${fns:getDictLabel(order.status,"order_detail_status","" )})
- </c:if>
- <c:if test="${order.status eq 0 || order.status eq 4 || order.status eq 5 || order.status eq 6 || order.status eq 7}">${fns:getDictLabel(order.status,"order_detail_status","" )}</c:if>
- </li>
- <li>
- <c:if test="${order.receiptStatus == 1}">
- <font color="red">待收款</font>
- </c:if>
- <c:if test="${order.receiptStatus == 2}">
- <font color="#ff8c00">部分收款</font>
- </c:if>
- <c:if test="${order.receiptStatus == 3}">
- <font color="green">已收款</font>
- </c:if>
- <br>
- <%--抹平明细--%>
- <c:if test="${order.confirmType eq 1}">
- <c:if test="${order.receiptOrderFlag}">
- 一款多单:少收抹平金额未知
- </c:if>
- <c:if test="${!order.receiptOrderFlag}">
- <font>少收抹平:<br>
- ¥<fmt:formatNumber
- value="${order.payableAmount - (empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount)}"
- pattern="#0.00"/>
- </font>
- </c:if>
- </c:if>
- <c:if test="${order.confirmType eq 2}">
- <c:if test="${order.receiptOrderFlag}">
- 一款多单:多收抹平金额未知
- </c:if>
- <c:if test="${!order.receiptOrderFlag}">
- <font>多收抹平:<br>
- ¥<fmt:formatNumber
- value="${(empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount) - order.payableAmount}"
- pattern="#0.00"/>
- </font>
- </c:if>
- </c:if>
- <c:if test="${order.confirmType eq 3}">
- <c:if test="${order.receiptOrderFlag}">
- 一款多单:多收退余额
- </c:if>
- <c:if test="${!order.receiptOrderFlag}">
- <font>多收退余额 ${order.associationType eq 2 ? "(自动)" : ""}:<br>
- ¥<fmt:formatNumber
- value="${(empty order.returnBalanceAmount ? 0 : order.returnBalanceAmount)}"
- pattern="#0.00"/>
- </font>
- </c:if>
- </c:if>
- </li>
- <li>
- <c:choose>
- <c:when test="${order.collageFlag eq 1 && (order.status eq 31 || order.status eq 32 || order.status eq 33)}">
- <font color="${order.collageStatus eq 1?'red':(order.collageStatus eq 2?'green':'')}">
- ${order.collageStatus eq 1?'拼团中':(order.collageStatus eq 2?'已拼成':'-')}
- </font>
- </c:when>
- <c:otherwise>
- -
- </c:otherwise>
- </c:choose>
- </li>
- <li>
- <c:if test="${order.payStatus == 1}">
- 待付款
- </c:if>
- <c:if test="${order.payStatus == 2}">
- 部分付款
- </c:if>
- <c:if test="${order.payStatus == 3}">
- 已付款
- </c:if>
- </li>
- <li>
- <c:if test="${order.sendOutStatus == 1}">
- <font color="red">待发货</font>
- </c:if>
- <c:if test="${order.sendOutStatus == 2}">
- <font color="##FF9966">部分发货</font>
- </c:if>
- <c:if test="${order.sendOutStatus == 3}">
- <font color="green">已发货</font>
- </c:if>
- </li>
- <li>
- <c:if test="${order.refundType == 1}">
- 部分退款
- </c:if>
- <c:if test="${order.refundType == 2}">
- 已退款
- </c:if>
- <c:if test="${order.refundType ne 1 and order.refundType ne 2 }">
- 无退款
- </c:if>
- </li>
- <li>
- <c:if test="${order.returnedPurchaseStatus == 1}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID.rpc?orderID=${order.orderID}">
- 有
- </a>
- </c:if>
- <c:if test="${order.returnedPurchaseStatus == 0}">
- 无
- </c:if>
- </li>
- <li><fmt:formatNumber value="${order.payTotalFee}" type="currency"/></li>
- <%-- 订单金额 --%>
- <li>${order.orderTime}</li>
- <li class="operation-wrap">
- <a href="${ctx}/hehe/new/order/detail?id=${order.orderID}">查看详情</a>
- <a class="operation-btn">功能</a>
- <div class="operation-block">
- <shiro:hasPermission name="order:order:edit">
- <%--包含订单充值商品就不显示--%>
- <c:if test="${empty order.rechargeGoods}">
- <c:if test="${order.status == 11 || order.status == 12 || order.status == 21 || order.status == 22 || order.status == 31 || order.status == 32}">
- <a href="${ctx}/order/toDeliveryPage?id=${order.orderID}">发货</a>
- </c:if>
- <c:if test="${order.receiptStatus == 2 && order.status != 6 && order.status != 7}">
- <a href="javascript:void(0);" onclick="collection(${order.orderID})">抹平收款</a>
- </c:if>
- </c:if>
- <c:if test="${(order.organizeID == 0 or order.organizeID > 2) && order.status == 11 && order.payStatus == 1}">
- <a href="javascript:void(0);"
- onclick="modelShow('${order.orderID}')">编辑经理折扣</a>
- </c:if>
- </shiro:hasPermission>
- <shiro:hasPermission name="order:order:applyrefound">
- <c:if test="${order.status == 12 || order.status == 13 || order.status == 21 || order.status == 22 || order.status == 23 || order.status == 31 || order.status == 32 || order.status == 33 || order.status == 4 || order.status == 5}">
- <%-- 返佣订单不能申请退款(退货) --%>
- <c:if test="${order.rebateOrder == '0'}">
- <%--如果存在审核收款则不允许申请:1不能申请,其它可以申请--%>
- <c:if test="${order.toAudit eq 1}">
- <%--弹窗提示--%>
- <a href="#" onclick="return alertx('订单存在未审核的收款,暂不能退款。请将收款审核通过后再操作退款。')">申请退款</a>
- </c:if>
- <c:if test="${order.toAudit ne 1}">
- <%--如果存在退款记录在待审核或者审核不通过记录不允许继续退款--%>
- <c:if test="${order.applyReturnedPurchaseFlag eq 1}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/applyRefound.rpc?orderID=${order.orderID}"
- <c:if test="${order.status == 21 || order.status == 22 || order.status == 23}">onclick="return confirmx('部分收款的订单、申请退款只能申请全部退款!', this.href)"
- </c:if>
- >
- 申请退款
- </a>
- </c:if>
- <c:if test="${order.applyReturnedPurchaseFlag ne 1}">
- <font title="存在未处理完的申请,请前往退款列表处理!">申请退款</font>
- </c:if>
- </c:if>
- </c:if>
- </c:if>
- </shiro:hasPermission>
- <shiro:hasPermission name="order:order:edit">
- <c:if test="${order.status == 0 || order.status == 11}">
- <a href="${ctx}/hehe/new/order/cancelOrder?orderID=${order.orderID}"
- onclick="return confirmx('是否取消订单?', this.href)">取消订单</a>
- </c:if>
- <c:if test="${order.status ne 0}">
- <a href="${ctx}/order/printOrder?orderID=${order.orderID}">打印发货单</a>
- </c:if>
- <%--<a href="/">供应商链接</a>--%>
- <a href="${ctx}/order/exportOrder?id=${order.orderID}">订单导出</a>
- <a href="${ctx}/order/cmOrderRemark/remarksViewNew.rpc?orderID=${order.orderID}&source=1&orderType=2">订单备注</a>
- <%--包含订单充值商品就不显示--%>
- <c:if test="${empty order.rechargeGoods}">
- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 21 && order.status ne 6 && order.status ne 4}">
- <a href="${ctx}/order/logisticsDetails?orderID=${order.orderID}&orderType=2">发货记录</a>
- </c:if>
- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 6}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${order.orderID}&from=1">收退款记录
- </a>
- </c:if>
- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 6}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID.rpc?orderID=${order.orderID}">退款(退货)记录
- </a>
- </c:if>
- </c:if>
- </shiro:hasPermission>
- </div>
- </li>
- </ul>
- </c:forEach>
- </div>
- <div class="pagination">${page}</div>
- </body>
- </html>
|