Authored by caoyan

自助上架

@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 <bind name="pattern" value="'%' + selfShelvesReq.productName + '%'" /> 33 <bind name="pattern" value="'%' + selfShelvesReq.productName + '%'" />
34 and product_name like #{pattern} 34 and product_name like #{pattern}
35 </if> 35 </if>
36 - <if test="selfShelvesReq.productCode != null and selfShelvesReq.productName != '' "> 36 + <if test="selfShelvesReq.productCode != null and selfShelvesReq.productCode != '' ">
37 and product_code=#{selfShelvesReq.productCode} 37 and product_code=#{selfShelvesReq.productCode}
38 </if> 38 </if>
39 <if test="selfShelvesReq.status != null"> 39 <if test="selfShelvesReq.status != null">
@@ -101,6 +101,7 @@ function updateAudit(id, status){ @@ -101,6 +101,7 @@ function updateAudit(id, status){
101 status : status 101 status : status
102 }, function(data) { 102 }, function(data) {
103 if (data.code == 200) { 103 if (data.code == 200) {
  104 + document.getElementById("btnList").style.display= "none";
104 window.self.$.messager.show({ 105 window.self.$.messager.show({
105 title : "提示", 106 title : "提示",
106 msg : "审核成功!" 107 msg : "审核成功!"
@@ -46,20 +46,20 @@ $(function() { @@ -46,20 +46,20 @@ $(function() {
46 width: 150, 46 width: 150,
47 editable : false, 47 editable : false,
48 data: [ 48 data: [
49 - {"text" : "全部", "value" : -1}  
50 - ,{"text" : "待审核", "value" : 0}  
51 - ,{"text" : "已通过", "value" : 1}  
52 - ,{"text" : "不通过", "value" : 2} 49 + {"text" : "待审核", "value" : 1},
  50 + {"text" : "已通过", "value" : 2},
  51 + {"text" : "不通过", "value" : 3}
53 ] 52 ]
54 }); 53 });
55 54
56 $("#searchBtn").linkbutton({ 55 $("#searchBtn").linkbutton({
57 iconCls : "icon-search", 56 iconCls : "icon-search",
58 onClick : function() { 57 onClick : function() {
  58 + var status = $("#status").myCombobox("getValue")-1;
59 $("#mainListTable").datagrid("load", { 59 $("#mainListTable").datagrid("load", {
60 productName : $("#productName").val(), 60 productName : $("#productName").val(),
61 productCode : $("#productCode").val(), 61 productCode : $("#productCode").val(),
62 - status : $("#status").myCombobox("getValue") ==-1?null:$("#status").myCombobox("getValue") 62 + status : status == -1 ? null : status
63 }); 63 });
64 } 64 }
65 }); 65 });
@@ -68,6 +68,9 @@ $(function() { @@ -68,6 +68,9 @@ $(function() {
68 $("#allBtn").linkbutton({ 68 $("#allBtn").linkbutton({
69 iconCls: "icon-import", 69 iconCls: "icon-import",
70 onClick: function () { 70 onClick: function () {
  71 + $("#productName").textbox('setValue','');
  72 + $("#productCode").textbox('setValue','');
  73 + $("#status").combobox('setValue','');
71 $("#mainListTable").datagrid("load", {}); 74 $("#mainListTable").datagrid("load", {});
72 } 75 }
73 }); 76 });