|
@@ -17,6 +17,11 @@
|
|
.table-bg thead th{background-color: #e2f6ff;}
|
|
.table-bg thead th{background-color: #e2f6ff;}
|
|
.update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
|
|
.update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
|
|
.my-order{left: 0px;cursor:pointer; position: absolute;border-bottom: 1px solid rgb(255, 255, 255);float: left;width: 110px;height: 36px;}
|
|
.my-order{left: 0px;cursor:pointer; position: absolute;border-bottom: 1px solid rgb(255, 255, 255);float: left;width: 110px;height: 36px;}
|
|
|
|
+
|
|
|
|
+ .radio-box input[type=radio]{position: relative;-webkit-appearance: none;appearance: none;cursor: pointer;width: 17px;height: 17px;border: 1px solid #333;border-radius: 50%;}
|
|
|
|
+ .radio-box input[type=radio]:focus {outline: none;}
|
|
|
|
+ .radio-box input[type=radio]:checked{background: #fff;}
|
|
|
|
+ .radio-box input[type=radio]:checked:after {content: '';position: absolute;width: 11px;height: 11px;left: 2px;top: 2px;background: #333;border-radius: 50%;}
|
|
</style>
|
|
</style>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
@@ -244,7 +249,7 @@
|
|
<a class="allocation_logistics_target" style="text-decoration:none;display: none" href="javascript:void(0);" title="分配物流" onclick="distribution_express(${order.salesId!''})">
|
|
<a class="allocation_logistics_target" style="text-decoration:none;display: none" href="javascript:void(0);" title="分配物流" onclick="distribution_express(${order.salesId!''})">
|
|
<i class="Hui-iconfont"></i>
|
|
<i class="Hui-iconfont"></i>
|
|
</a>
|
|
</a>
|
|
- <a class="notice_distribution_target" style="text-decoration:none;display: none" href="javascript:void(0);" title="通知配货" onclick="noticeOneOrderSend(${order.salesId})">
|
|
|
|
|
|
+ <a class="notice_distribution_target" style="text-decoration:none;display: none" href="javascript:void(0);" title="通知配货" onclick="chooseWarehouse(${order.salesId})">
|
|
<i class="Hui-iconfont"></i>
|
|
<i class="Hui-iconfont"></i>
|
|
</a>
|
|
</a>
|
|
<a class="manual_ship_target" style="text-decoration:none;display: none" href="javascript:void(0);" title="手动发货" onclick="distribution_postFirm('手动发货','${path}/admin/await_send/to_manual_delivery?salesId=${order.salesId}','570','450');">
|
|
<a class="manual_ship_target" style="text-decoration:none;display: none" href="javascript:void(0);" title="手动发货" onclick="distribution_postFirm('手动发货','${path}/admin/await_send/to_manual_delivery?salesId=${order.salesId}','570','450');">
|
|
@@ -280,14 +285,33 @@
|
|
<div style="float: left;margin-top: 20px;">
|
|
<div style="float: left;margin-top: 20px;">
|
|
<button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" id="" onclick="confirmOrder()">确认订单</button>
|
|
<button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" id="" onclick="confirmOrder()">确认订单</button>
|
|
<button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" id="" onclick="distribution_express(null)">分配物流</button>
|
|
<button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" id="" onclick="distribution_express(null)">分配物流</button>
|
|
- <button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" id="" onclick="noticeDistribution()">通知配货</button>
|
|
|
|
|
|
+ <button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" id="" onclick="chooseWarehouse(null)">通知配货</button>
|
|
<button type="button" onClick="upFiles2();" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;">上传发货信息</button>
|
|
<button type="button" onClick="upFiles2();" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;">上传发货信息</button>
|
|
<button onClick="downloadOrderPage();" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" type="button" title="下载订单">下载订单</button>
|
|
<button onClick="downloadOrderPage();" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" type="button" title="下载订单">下载订单</button>
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+<div style="display: none">
|
|
|
|
+<div id="warehouse">
|
|
|
|
+ <div class="row cl" style="width: 500px;height: 200px;margin-left: 35px;">
|
|
|
|
+ <div style="background-color: #7f9db9;margin-left: 10px;width: 200px;height: 150px;float:left;margin-left: 60px;">
|
|
|
|
+ <div class="radio-box" style="margin: 10px">
|
|
|
|
+ <input type="radio" id="warehouseId-1" name="warehouseId" value="1" checked>
|
|
|
|
+ <label for="warehouseId-1"><strong>正常销售仓库</strong></label><br>
|
|
|
|
+ <span>正常的销售订单,以及含有非优尼雅生产的产品订单</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radioDiv" style="background-color: #7f9db9;margin-left: 10px;width: 200px;height: 150px;float:left;">
|
|
|
|
+ <div class="radio-box" style="margin: 10px">
|
|
|
|
+ <input type="radio" id="warehouseId-2" name="warehouseId" value="2" >
|
|
|
|
+ <label for="warehouseId-2"><strong>售后订单仓库</strong></label><br>
|
|
|
|
+ <span>WaterO净水机产品维修,选择售后仓库</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+</div>
|
|
<tfoot>
|
|
<tfoot>
|
|
<#include "/base/page_util.ftl">
|
|
<#include "/base/page_util.ftl">
|
|
<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
|
|
@@ -296,6 +320,16 @@
|
|
<script type="text/plain" id="upload_ue"></script>
|
|
<script type="text/plain" id="upload_ue"></script>
|
|
</tfoot>
|
|
</tfoot>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
|
+ $(document).on('click', ".radio-box", function() {
|
|
|
|
+ $(this).find("input").get(0).checked=true;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $('.skin-minimal input').iCheck({
|
|
|
|
+ checkboxClass: 'icheckbox-blue',
|
|
|
|
+ radioClass: 'iradio-blue',
|
|
|
|
+ increaseArea: '20%'
|
|
|
|
+ });
|
|
|
|
+
|
|
/*判断上传类型 1:上传excel推送订单 2:下载订单 2:上传efast物流信息excel */
|
|
/*判断上传类型 1:上传excel推送订单 2:下载订单 2:上传efast物流信息excel */
|
|
var editorType;
|
|
var editorType;
|
|
var _editor;
|
|
var _editor;
|
|
@@ -372,13 +406,40 @@
|
|
layer_show(title,url,w,h);
|
|
layer_show(title,url,w,h);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ function chooseWarehouse(id) {
|
|
|
|
+ layer.open({
|
|
|
|
+ type: 1
|
|
|
|
+ , title: "选择仓库" //不显示标题栏
|
|
|
|
+ , closeBtn: false
|
|
|
|
+ , area: ['600px', '300px']
|
|
|
|
+ , shade: 0.8
|
|
|
|
+ , id: 'LAY_layuipro' //设定一个id,防止重复弹出
|
|
|
|
+ , btn: ['确认', '取消']
|
|
|
|
+ , btnAlign: 'c'
|
|
|
|
+ , moveType: 1 //拖拽模式,0或者1
|
|
|
|
+ , content: $('#warehouse').html()
|
|
|
|
+ ,yes: function(index){
|
|
|
|
+ var warehouseId = $('input:radio[name="warehouseId"]:checked').val();
|
|
|
|
+ layer.close(index);
|
|
|
|
+ if(id == null){
|
|
|
|
+ noticeDistribution(warehouseId);
|
|
|
|
+ }else{
|
|
|
|
+ noticeOneOrderSend(id,warehouseId)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
/* 通知配货 */
|
|
/* 通知配货 */
|
|
- function noticeOneOrderSend(id) {
|
|
|
|
|
|
+ function noticeOneOrderSend(id,warehouseId) {
|
|
$.ajax({
|
|
$.ajax({
|
|
type:'POST',
|
|
type:'POST',
|
|
url: '${path}/admin/salesOrder/notice_distribution',
|
|
url: '${path}/admin/salesOrder/notice_distribution',
|
|
data:{
|
|
data:{
|
|
- "salesOrderIds" : id
|
|
|
|
|
|
+ "salesOrderIds" : id,
|
|
|
|
+ "warehouseId" : warehouseId
|
|
},
|
|
},
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
success:function(res) {
|
|
success:function(res) {
|
|
@@ -527,7 +588,7 @@
|
|
/**
|
|
/**
|
|
* 通知配货
|
|
* 通知配货
|
|
*/
|
|
*/
|
|
- function noticeDistribution() {
|
|
|
|
|
|
+ function noticeDistribution(warehouseId) {
|
|
var index = layer.load(1, {
|
|
var index = layer.load(1, {
|
|
shade: [0.5,'#fff'] //0.1透明度的白色背景
|
|
shade: [0.5,'#fff'] //0.1透明度的白色背景
|
|
});
|
|
});
|
|
@@ -546,7 +607,8 @@
|
|
type:'POST',
|
|
type:'POST',
|
|
url: '${path}/admin/salesOrder/notice_distribution',
|
|
url: '${path}/admin/salesOrder/notice_distribution',
|
|
data:{
|
|
data:{
|
|
- "salesOrderIds" : salesOrderIds
|
|
|
|
|
|
+ "salesOrderIds" : salesOrderIds,
|
|
|
|
+ "warehouseId" : warehouseId
|
|
},
|
|
},
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
success:function(res) {
|
|
success:function(res) {
|