浏览代码

去掉列搜索和排序功能(不实用)

hsh 3 月之前
父节点
当前提交
ecf910e4b3
共有 1 个文件被更改,包括 13 次插入13 次删除
  1. 13 13
      src/main/resources/static/js/yf/yf_inventory.js

+ 13 - 13
src/main/resources/static/js/yf/yf_inventory.js

@@ -212,38 +212,38 @@ function initTbAdd() {
         loadonce:true,//如果为ture则数据只从服务器端抓取一次,之后所有操作都是在客户端执行,翻页功能会被禁用
         colNames: ['货位号','编码','药品名称','规格','单价', '账存数量', '实盘数量', '盈亏数量', '盈亏金额','盘点单号','盘点时间', '生产厂商','序号','药房编码','拼音编码'],
         colModel: [
-            {name: 'location', index: 'location',align:'center',width:100,classes:'exclHide', searchoptions:{sopt:['cn','eq','ne','lt','le','gt','ge','nc']}},
-            {name: 'chargeCode', index: 'chargeCode',align:'center',width:100, searchoptions:{sopt:['cn','eq','nc']},
+            {name: 'location', index: 'location',align:'center',width:100,sortable: false,classes:'exclHide', searchoptions:{sopt:['cn','eq','ne','lt','le','gt','ge','nc']}},
+            {name: 'chargeCode', index: 'chargeCode',align:'center',width:100,sortable: false, searchoptions:{sopt:['cn','eq','nc']},
                 formatter:function(cellvalue, options, rowObject){
                     return ' '+cellvalue;
                 }},
-            {name: 'name', index: 'name',align:'left',width:180, searchoptions:{sopt:['cn','eq','nc']}},
-            {name: 'specification', index: 'specification',width:140, searchoptions:{sopt:['cn','eq','nc']}},
-            {name: 'packRetprice', index: 'packRetprice',align:'center',width:100, searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},classes:'exclHide'},
-            {name: 'stockAmount', index: 'stockAmount',align:'center',width:100, searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},
+            {name: 'name', index: 'name',align:'left',width:180,sortable: false, searchoptions:{sopt:['cn','eq','nc']}},
+            {name: 'specification', index: 'specification',width:140,sortable: false, searchoptions:{sopt:['cn','eq','nc']}},
+            {name: 'packRetprice', index: 'packRetprice',align:'center',width:100,sortable: false, searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},classes:'exclHide'},
+            {name: 'stockAmount', index: 'stockAmount',align:'center',width:100,sortable: false, searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},
                 formatter:function(cellvalue, options, rowObject){
                     return keepTwoDecimal(cellvalue)
                 }},
-            {name: 'currStockAmount', index: 'currStockAmount',align:'center',width:100,editable : true,edittype:'text',searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},
+            {name: 'currStockAmount', index: 'currStockAmount',align:'center',width:100,sortable: false,editable : true,edittype:'text',searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},
                 editrules: {edithidden:true,number:true,minValue:0},
                 formatter:function(cellvalue, options, rowObject){
                     $("#tb_add").jqGrid('setCell',options.rowId,'profitLossprofitLoss',parseFloat(rowObject.currStockAmount-rowObject.stockAmount));
                     $("#tb_add").jqGrid('setCell',options.rowId,'profitLossprofitMoney',parseFloat((rowObject.currStockAmount-rowObject.stockAmount)*rowObject.packRetprice));
                     return cellvalue==null?keepTwoDecimal(rowObject.stockAmount):keepTwoDecimal(cellvalue)
                 }},
-            {name: 'profitLossprofitLoss', index: 'profitLossprofitLoss',align:'center',width:100,searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},
+            {name: 'profitLossprofitLoss', index: 'profitLossprofitLoss',align:'center',width:100,sortable: false,searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},
                 formatter:function(cellvalue, options, rowObject){
                     return cellvalue==null?0:keepTwoDecimal(cellvalue)
                 },classes:'exclHide'},
-            {name: 'profitLossprofitMoney', index: 'profitLossprofitMoney',align:'center',width:100,searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},
+            {name: 'profitLossprofitMoney', index: 'profitLossprofitMoney',align:'center',width:100,sortable: false,searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},
                 formatter:function(cellvalue, options, rowObject){
                     return cellvalue==null?0:keepTwoDecimal(cellvalue)
                 },classes:'exclHide'},
-            {name: 'drawNo', index: 'drawNo',align:'center',width:120,searchoptions:{sopt:['eq']},classes:'exclHide'},
-            {name: 'outDate', index: 'outDate',align:'center',width:120,searchoptions:{sopt:['eq']},formatter:function(cellvalue, options, rowObject){
+            {name: 'drawNo', index: 'drawNo',align:'center',width:120,sortable: false,searchoptions:{sopt:['eq']},classes:'exclHide'},
+            {name: 'outDate', index: 'outDate',align:'center',width:120,sortable: false,searchoptions:{sopt:['eq']},formatter:function(cellvalue, options, rowObject){
                     return format(cellvalue,"yyyy-MM-dd")
                 },classes:'exclHide'},
-            {name: 'manufactoryName', index: 'manufactoryName',width:180, searchoptions:{sopt:['cn','eq','nc']}},
+            {name: 'manufactoryName', index: 'manufactoryName',width:180,sortable: false, searchoptions:{sopt:['cn','eq','nc']}},
             {name: 'serial', index: 'serial',align:'center',width:100,hidden:true,classes:'exclHide'},
             {name: 'groupNo', index: 'groupNo',align:'center',width:100,hidden:true,classes:'exclHide'},
             {name: 'pyCode', index: 'pyCode',align:'center',width:100,hidden:true,classes:'exclHide'}
@@ -273,7 +273,7 @@ function initTbAdd() {
             }
         }
     });
-    $("#tb_add").jqGrid('filterToolbar',{searchOperators : true});
+    // $("#tb_add").jqGrid('filterToolbar',{searchOperators : true});
 }
 
 /**