Authored by caoyan

订单管理

... ... @@ -85,7 +85,7 @@
<select id="selectByCondition" resultMap="BaseResultMap" parameterType="com.yoho.order.model.BuyerOrderReq">
select a.*
from buyer_order a
<if test="(buyerOrderReq.productId != null) or (buyerOrderReq.storageId != null) or (buyerOrderReq.skup != null)">
<if test="(buyerOrderReq.depotNo != null) or (buyerOrderReq.productId != null) or (buyerOrderReq.storageId != null) or (buyerOrderReq.skup != null)">
LEFT JOIN buyer_order_goods b
ON( b.order_code=a.order_code)
LEFT JOIN seller_order_goods c
... ...
... ... @@ -10,11 +10,11 @@
<script>
document.write(addHead('鉴定中心', '列表管理'));
</script>
<div style="margin-left:1200px">
<select id="depotNo" style="width:70px;">
<option value="1" selected>北京</option>
<div style="width:1280px;">
<select id="depotNo" class="easyui-combobox" style="width:70px;">
<option value="1">北京</option>
<option value="2">南京</option>
</select>
</select>
</div>
<div id="tt" class="easyui-tabs">
<div title="待鉴定" style="padding:20px;display:none;">
... ... @@ -97,11 +97,13 @@
</div>
<script>
$(function() {
$("#depotNo").combobox({
onchange : function(newValue, oldValue){
onChange : function(newValue, oldValue){
var depotNo = $("#depotNo").combobox("getValue");
alert(depotNo);
$("#orderListTable").datagrid("load", {
statusStr : "2,3",
depotNo : depotNo
});
}
});
... ... @@ -118,7 +120,7 @@ $(function() {
skup : $("#skup_0").val(),
sellerWaybillCode : $("#sellerWaybillCode_0").val(),
mobile : $("#mobile_0").val(),
depotNo : $("#depotNo").myCombobox("getValue")
depotNo : $("#depotNo").combobox("getValue")
});
}
});
... ... @@ -134,7 +136,8 @@ $(function() {
storageId : $("#sku_1").val(),
skup : $("#skup_1").val(),
sellerWaybillCode : $("#sellerWaybillCode_1").val(),
mobile : $("#mobile_1").val()
mobile : $("#mobile_1").val(),
depotNo : $("#depotNo").combobox("getValue")
});
}
})
... ... @@ -164,6 +167,7 @@ $(function() {
$("#skup_0").textbox('setValue','');
$("#orderListTable").datagrid("load", {
statusStr: "2,3",
depotNo: $("#depotNo").combobox("getValue")
});
}
});
... ... @@ -181,6 +185,7 @@ $(function() {
$("#skup_1").textbox('setValue','');
$("#orderListTable").datagrid("load", {
statusStr: "4,13",
depotNo: $("#depotNo").combobox("getValue")
});
}
});
... ... @@ -195,7 +200,8 @@ function getToBeJudgedList(){
url: contextPath + "/buyerOrder/queryOrderList",
method: 'POST',
queryParams: {
statusStr: "2,3"
statusStr: "2,3",
depotNo: $("#depotNo").combobox("getValue")
},
loadFilter: function (data) {
var temp = defaultLoadFilter(data);
... ... @@ -314,7 +320,6 @@ function getToBeJudgedList(){
}
function getAlreadyJudgedList(){
var depotNo = $("#depotNo").myCombobox("getValue");
$("#orderListTable").myDatagrid({
fit: true,
fitColumns: true,
... ... @@ -323,7 +328,7 @@ function getAlreadyJudgedList(){
method: 'POST',
queryParams: {
statusStr: "4,13",
depotNo: depotNo
depotNo: $("#depotNo").combobox("getValue")
},
loadFilter: function (data) {
var temp = defaultLoadFilter(data);
... ...