Index: ssts-web/src/main/webapp/dx-disinfectsystem/js/washingApplication/inputPrint.js =================================================================== diff -u -r24519 -r24543 --- ssts-web/src/main/webapp/dx-disinfectsystem/js/washingApplication/inputPrint.js (.../inputPrint.js) (revision 24519) +++ ssts-web/src/main/webapp/dx-disinfectsystem/js/washingApplication/inputPrint.js (.../inputPrint.js) (revision 24543) @@ -12,7 +12,7 @@ { if(obhi[i].barcode==obid) { - console.log("aaaaa"); + //console.log("aaaaa"); } else { @@ -101,7 +101,7 @@ showRefresh: false, //是否显示刷新按钮 minimumCountColumns: 2, //最少允许的列数 clickToSelect: true, //是否启用点击选中行 - // height: 185, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度 + height: 185, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度 //uniqueId: "id", //每一行的唯一标识,一般为主键列 // showToggle:true, //是否显示详细视图和列表视图的切换按钮 cardView: false, //是否显示详细视图 @@ -156,35 +156,46 @@ $(function(){ uBaskets(); - //报损下拉框 - var dataList = [ - { id: 0, text: 'ljiong.com(老囧博客)' }, - { id: 1, text: 'Ants(蚂蚁)' }, - { id: 2, text: 'can you speak javascript(你能讲JavaScript嘛)' }, - { id: 3, text: 'vae(许嵩)' }, - { id: 4, text: 'Badminton(羽毛球)' } - ]; - $("#instrumentName").select2({ -// data: dataList, -// placeholder:'请选择',//默认文字提示 -// language: "zh-CN",//汉化 -// allowClear: true//允许清空 - ajax: { - url: 'http://rap2api.taobao.org/app/mock/85153/disinfectSystem/baseData/materialDefinitionController/getMaterialDefinitionDataForDamage.mhtml', - data: function (params) { - var query = { - search: params._root_.displayName, - page: params.page || 1 - } - // Query parameters will be ?search=[term]&page=[page] - return query; +//添加报损的材料输入框 + $("#instrumentName").select2({ + language: "zh-CN",//汉化 + placeholder:'请选择',//默认文字提示 + minimumInputLength:1, + maximumSelectionLength:10, + ajax:{ + url: "/disinfectSystem/baseData/materialDefinitionController/getMaterialDefinitionDataForDamage.mhtml", + contentType:"application/json",//"application/x-www-form-urlencoded", + type: "get", + delay:2000, + data: function(params){ + return { //JSON.stringify() + spell:params.term,//search + title:params.term, + limit:100, + page: params.page||1, + offset: (params.page||1)*100 + }; + }, + processResults: function(data,params){ + data = JSON.parse(data); + var res=[]; + for(var i=0; i'+row.serialNumber+''; - }, - }, + title : '流水号', + field : 'serialNumber', + align : 'center', + sortable: true, + formatter: function (value,row,index){ + return ''+row.serialNumber+''; + }, + }, { title : '操作员', field : 'operator', @@ -70,7 +72,6 @@ ws += ""; return ws; } - }, }, { @@ -79,27 +80,25 @@ align : 'center', sortable: true }, - { - title : '结束时间', - field : 'endDateStr', - align : 'center', - sortable: true + { + title : '结束时间', + field : 'endDateStr', + align : 'center', + sortable: true }, + { + title : '操作', + field : 'cycleCounter', + align : 'center', + formatter: function(value,row,index) { - title : '操作', - field : 'cycleCounter', - align : 'center', - //onclick="ClickName('+row.id+')" - formatter: function(value,row,index) - { - //return ""; - return ""; - }, + return ""; + }, }, { - title : '清洗参数', - field : 'washDataAmount', - align : 'center' + title : '清洗参数', + field : 'washDataAmount', + align : 'center' }, { title : '清洗总数', @@ -214,8 +213,8 @@ }; - console.log("pageSize:"+temp.pageSize); - console.log("pageNumber:"+temp.pageNumber); + //console.log("pageSize:"+temp.pageSize); + //console.log("pageNumber:"+temp.pageNumber); return {gridParams:JSON.stringify(temp)}; } @@ -228,38 +227,37 @@ { var instrumentInfoTableData =new Array(); var instrumentInfoTableHeaderColumns = [ - { + { title : '材料名称', field : 'packageName', align : 'center', - - }, - { + }, + { title : '数量名称', field : 'materialName', align : 'center', sortable: true - }, - { + }, + { title : '是否可拆', field : 'badCount', align : 'center', - }, - { - title : '清洗方式', + }, + { + title : '清洗方式', field : 'supplementMan', align : 'center', - }, - { - title : '清洗质量检查关注点', + }, + { + title : '清洗质量检查关注点', field : 'supplementCount', align : 'center', - }, - { - title : '功能检查', + }, + { + title : '功能检查', field : 'supplementTime', align : 'center', - } + } ]; for(var i=0; i<=100;i++) @@ -316,7 +314,6 @@ title : '名称', field : 'instrumentName', align : 'center', - }, { title : '数量', @@ -328,7 +325,6 @@ title : '操作', field : 'handle', align : 'center', - } ]; @@ -379,42 +375,42 @@ //器械报损明细 var instrumentDamageReportTableData =new Array(); var instrumentDamageReportTableHeaderColumns = [ - { - title : '包名称', - field : 'packageName', - align : 'center', - - }, - { - title : '材料名称', - field : 'materialName', - align : 'center', - sortable: true - }, - { - title : '损坏数量', - field : 'badCount', - align : 'center', - }, - { - title : '补充人', - field : 'supplementMan', - align : 'center', - }, - { - title : '补充数量', - field : 'supplementCount', - align : 'center', - }, - { - title : '补充时间', - field : 'supplementTime', - align : 'center', - },{ - title : '删除', - field : 'deleteHadle', - align : 'center', - } + { + title : '包名称', + field : 'packageName', + align : 'center', + }, + { + title : '材料名称', + field : 'materialName', + align : 'center', + sortable: true + }, + { + title : '损坏数量', + field : 'badCount', + align : 'center', + }, + { + title : '补充人', + field : 'supplementMan', + align : 'center', + }, + { + title : '补充数量', + field : 'supplementCount', + align : 'center', + }, + { + title : '补充时间', + field : 'supplementTime', + align : 'center', + }, + { + title : '删除', + field : 'deleteHadle', + align : 'center', + } ]; for(var i=0; i<=100;i++) @@ -482,59 +478,59 @@ // responseHandler: function(res){ // return res.attributes.data; // }, - columns: [ - - { - title : '名称', - field : 'name', - align : 'center', - sortable: true - }, - { - title : '数量', - field : 'amount', - align : 'center', - sortable: true - }, - { - title : '条形码', - field : 'barcode', - align : 'center', - sortable: true - }, - { - title : '操作', - field : 'handle', - align : 'center', - formatter: function(value,row,index){ - return ""; - }, - }, - { - title : '责任人', - field : 'personInCharge', - align : 'center', - - }, - { - title : '回收科室', - field : 'recyclingDept', - align : 'center', - - }, - { - title : '回收时间', - field : 'recyclingTime', - align : 'center', - - } - - ] , - onExpandRow: function(index, row, $detail) { - oTableInit.InitSubTable(index, row, $detail) - } + columns: [ + { + title : '名称', + field : 'name', + align : 'center', + sortable: true + }, + { + title : '数量', + field : 'amount', + align : 'center', + sortable: true + }, + { + title : '条形码', + field : 'barcode', + align : 'center', + sortable: true + }, + { + title : '操作', + field : 'handle', + align : 'center', + formatter: function(value,row,index){ + return ""; + }, + }, + { + title : '责任人', + field : 'personInCharge', + align : 'center', + + }, + { + title : '回收科室', + field : 'recyclingDept', + align : 'center', + + }, + { + title : '回收时间', + field : 'recyclingTime', + align : 'center', + + } + ] , + + onExpandRow: function(index, row, $detail) { + oTableInit.InitSubTable(index, row, $detail) + } }); + oTableInit.InitSubTable=function (index,row,$detail){ console.log(index) var cur_table = $detail.html('
').find('table');