Authored by mali

库存管理

@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 <script src="/ufoPlatform/js/ajaxfileupload.js"></script> 7 <script src="/ufoPlatform/js/ajaxfileupload.js"></script>
8 </head> 8 </head>
9 <body class="easyui-layout" fit="true"> 9 <body class="easyui-layout" fit="true">
10 -<div region="north" style="height: 230px"> 10 +<div region="north" style="height: 138px">
11 <script> 11 <script>
12 document.write(addHead('库存详情', '')); 12 document.write(addHead('库存详情', ''));
13 </script> 13 </script>
@@ -143,8 +143,11 @@ @@ -143,8 +143,11 @@
143 width: 120, 143 width: 120,
144 align: "center", 144 align: "center",
145 formatter: function (value, rowData) { 145 formatter: function (value, rowData) {
146 - var str = "<a role='edit' dataId='" + rowData.skup + "' style='margin-left:10px'>取消售卖</a>";  
147 - return str; 146 + if (rowData.status == 1) {
  147 + return "<a role='edit' dataId='" + rowData.skup + "' style='margin-left:10px'>取消售卖</a>";
  148 + } else {
  149 + return '';
  150 + }
148 } 151 }
149 }]], 152 }]],
150 cache: false, 153 cache: false,
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 <script src="/ufoPlatform/js/ajaxfileupload.js"></script> 7 <script src="/ufoPlatform/js/ajaxfileupload.js"></script>
8 </head> 8 </head>
9 <body class="easyui-layout" fit="true"> 9 <body class="easyui-layout" fit="true">
10 -<div region="north" style="height: 230px"> 10 +<div region="north" style="height: 190px">
11 <script> 11 <script>
12 document.write(addHead('商品库存信息', '')); 12 document.write(addHead('商品库存信息', ''));
13 </script> 13 </script>
@@ -90,27 +90,39 @@ @@ -90,27 +90,39 @@
90 }, { 90 }, {
91 title: "商品名称", 91 title: "商品名称",
92 field: "productName", 92 field: "productName",
93 - width: 80, 93 + width: 100,
94 align: "center", 94 align: "center",
95 }, { 95 }, {
96 title: "品牌", 96 title: "品牌",
97 field: "brandName", 97 field: "brandName",
98 - width: 100, 98 + width: 60,
99 align: "center" 99 align: "center"
100 }, { 100 }, {
101 title: "最低价", 101 title: "最低价",
102 field: "currentPrice", 102 field: "currentPrice",
103 - width: 80,  
104 - align: "center" 103 + width: 40,
  104 + align: "center",
  105 + formatter: function (value, rowData) {
  106 + if (value) {
  107 + return value;
  108 + }
  109 + return '--';
  110 + }
105 }, { 111 }, {
106 title: "可售库存", 112 title: "可售库存",
107 field: "storage", 113 field: "storage",
108 - width: 200,  
109 - align: "center" 114 + width: 20,
  115 + align: "center",
  116 + formatter: function (value, rowData) {
  117 + if (value) {
  118 + return value;
  119 + }
  120 + return 0;
  121 + }
110 }, { 122 }, {
111 title: "操作", 123 title: "操作",
112 field: "operations", 124 field: "operations",
113 - width: 120, 125 + width: 40,
114 align: "center", 126 align: "center",
115 formatter: function (value, rowData) { 127 formatter: function (value, rowData) {
116 var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px'>库存详情</a>"; 128 var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px'>库存详情</a>";