Index: ssts-web/src/main/webapp/dx-disinfectsystem/js/deliveryPlanApplication/deliveryPlanApplication.js
===================================================================
diff -u
--- ssts-web/src/main/webapp/dx-disinfectsystem/js/deliveryPlanApplication/deliveryPlanApplication.js (revision 0)
+++ ssts-web/src/main/webapp/dx-disinfectsystem/js/deliveryPlanApplication/deliveryPlanApplication.js (revision 24414)
@@ -0,0 +1,422 @@
+$(function(){
+
+var time="2018-08-05 12:30";
+var jindu = "
";
+var caozuo ="";
+var mleft = $(window).height() - 150;
+var mright= $(window).height() - 180;
+$("#invoice-middle").collapse();
+// 发货计划deliverGoods
+
+// 发货计划deliverGoods end
+// 申请物品明细
+// 申请物品明细 end
+
+// 主表
+ var deliverGoodsPlanTableData =new Array();
+ var deliverGoodsPlanHeaderColumns = [
+ {
+ checkbox:true,
+ visible:true
+ },
+ {
+ title : '紧急度',
+ field : 'urgency',
+ align : 'center',
+ sortable: true
+ },
+ {
+ title : '科室',
+ field : 'depart',
+ align : 'center',
+ formatter: function (value,row,index)
+ {
+ var handle="";
+ handle +='';
+ handle += row.depart;
+ handle += '';
+ return handle;
+ },
+ },
+ {
+ title : '备注',
+ field : 'remark',
+ align : 'center'
+ }
+ ];
+
+// for(var i=0; i<=100;i++)
+// {
+// deliverGoodsPlanTableData.push({
+// singleSelect: 'checkbox',
+// urgencyDegree: '不急',
+// administrativeOffice: 南山消毒室',
+// remarks :'手工清洗',
+//
+// });
+// }
+// //
+ var MLTInitTable = function(url){
+ $('#mainView-left-table').bootstrapTable("destroy");
+ $('#mainView-left-table').bootstrapTable({
+ url:url,
+ method:'post',//请求方式
+
+ singleSelect : true,
+ striped: true, //是否显示行间隔色
+ cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+ pagination: false, //是否显示分页(*)
+ sortable: true, //是否启用排序
+ sortOrder: "asc", //排序方式
+ // queryParams: oTableInit.queryParams,//传递参数(*)
+
+ sidePagination: "server",//服务端分页
+ contentType: "application/x-www-form-urlencoded",//请求数据内容格式 默认是 application/json 自己根据格式自行服务端处理
+ dataType: "json",//期待返回数据类型
+ pageNumber:1, //初始化加载第一页,默认第一页
+ pageSize: 15, //每页的记录行数(*)
+ pageList: [10, 25, 50, 100], //可供选择的每页的行数(*)
+ search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+ strictSearch: true,
+ showColumns: true, //是否显示所有的列
+ showRefresh: false, //是否显示刷新按钮
+ minimumCountColumns: 1, //最少允许的列数
+ clickToSelect: true, //是否启用点击选中行
+ height: mleft, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度
+ uniqueId: "id", //每一行的唯一标识,一般为主键列
+ // showToggle:true, //是否显示详细视图和列表视图的切换按钮
+ cardView: false, //是否显示详细视图
+ detailView: false, //是否显示父子表
+ exportDataType: "selected", //导出checkbox选中的行数
+
+ removeByUniqueId:1,
+ columns: deliverGoodsPlanHeaderColumns,
+ //data: deliverGoodsPlanTableData
+ });
+ }//http://rap2api.taobao.org/app/mock/85153
+ MLTInitTable("/disinfectSystem/invoicePlan/invoicePlanController/getDepartInvoiePlansByDepartCodes.mhtml");
+// 主表 end
+//申请物品明细
+var applyInforTableData =new Array();
+ var applyInforHeaderColumns = [
+
+ {
+ title : '申请的物品',
+ field : 'applyGoods',
+ align : 'center',
+ sortable: true
+ },
+ {
+ title : '待发',
+ field : 'dueOut',
+ align : 'center'
+ },
+ {
+ title : '加急',
+ field : 'urgent',
+ align : 'center'
+ }
+ ];
+
+ for(var i=0; i<=100;i++)
+ {
+ applyInforTableData.push({
+ applyGoods: '不急',
+ dueOut: '南山消毒室',
+ urgent:'手工清洗',
+
+ });
+ }
+//
+$('#mainView-right-table').bootstrapTable({
+
+ striped: true, //是否显示行间隔色
+ cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+ pagination: false, //是否显示分页(*)
+ sortable: true, //是否启用排序
+ sortOrder: "asc", //排序方式
+ // queryParams: oTableInit.queryParams,//传递参数(*)
+ sidePagination: "client", //分页方式:client客户端分页,server服务端分页(*)
+
+ pageNumber:1, //初始化加载第一页,默认第一页
+ pageSize: 15, //每页的记录行数(*)
+ pageList: [10, 25, 50, 100], //可供选择的每页的行数(*)
+ search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+ strictSearch: true,
+ showColumns: false, //是否显示所有的列
+ showRefresh: false, //是否显示刷新按钮
+ minimumCountColumns: 2, //最少允许的列数
+ clickToSelect: true, //是否启用点击选中行
+ height: mright, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度
+ uniqueId: "id", //每一行的唯一标识,一般为主键列
+ // showToggle:true, //是否显示详细视图和列表视图的切换按钮
+ cardView: false, //是否显示详细视图
+ detailView: false, //是否显示父子表
+ removeByUniqueId:1,
+ columns: applyInforHeaderColumns,
+ data: applyInforTableData
+ });
+//申请物品明细 end
+// 发货单left
+ var invoiceTableData =new Array();
+ var invoiceHeaderColumns = [
+
+ {
+ title : '条码',
+ field : 'code',
+ align : 'center',
+ sortable: true
+ },
+ {
+ title : '物品名称',
+ field : 'goodsName',
+ align : 'center'
+ },
+ {
+ title : '批次/灭菌日期',
+ field : 'time',
+ align : 'center'
+ },
+ {
+ title : '单价',
+ field : 'price',
+ align : 'center'
+ },
+ {
+ title : '数量',
+ field : 'count',
+ align : 'center'
+ }
+
+ ,
+ {
+ title : '删除',
+ field : 'deletehref',
+ align : 'center'
+ }
+ ];
+
+ for(var i=0; i<=100;i++)
+ {
+ invoiceTableData.push({
+
+ code: 123456,
+ goodsName: '手术刀',
+ time: time,
+ price: '¥12,00',
+ count: 20,
+ deletehref: ''
+ });
+ }
+//
+ $('#invoice').bootstrapTable({
+
+ striped: true, //是否显示行间隔色
+ cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+ pagination: false, //是否显示分页(*)
+ sortable: true, //是否启用排序
+ sortOrder: "asc", //排序方式
+ // queryParams: oTableInit.queryParams,//传递参数(*)
+ sidePagination: "client", //分页方式:client客户端分页,server服务端分页(*)
+ pageNumber:1, //初始化加载第一页,默认第一页
+ pageSize: 15, //每页的记录行数(*)
+ pageList: [10, 25, 50, 100], //可供选择的每页的行数(*)
+ search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+ strictSearch: true,
+ showColumns: false, //是否显示所有的列
+ showRefresh: false, //是否显示刷新按钮
+ minimumCountColumns: 2, //最少允许的列数
+ clickToSelect: true, //是否启用点击选中行
+ height: 245, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度
+ uniqueId: "id", //每一行的唯一标识,一般为主键列
+ // showToggle:true, //是否显示详细视图和列表视图的切换按钮
+ cardView: false, //是否显示详细视图
+ detailView: false, //是否显示父子表
+ removeByUniqueId:1,
+ columns: invoiceHeaderColumns,
+ data: invoiceTableData
+ });
+// 发货单left end
+// 发货单明细
+var invoiceInfoTableData =new Array();
+ var invoiceInfoHeaderColumns = [
+
+ {
+ title : '条码',
+ field : 'code',
+ align : 'center',
+ sortable: true
+ },
+ {
+ title : '物品名称',
+ field : 'goodsName',
+ align : 'center'
+ },
+ {
+ title : '批次/灭菌日期',
+ field : 'time',
+ align : 'center'
+ },
+ {
+ title : '单价',
+ field : 'price',
+ align : 'center'
+ },
+ {
+ title : '数量',
+ field : 'count',
+ align : 'center'
+ },
+ {
+ title : '删除',
+ field : 'deletehref',
+ align : 'center'
+ }
+ ];
+
+ for(var i=0; i<=100;i++)
+ {
+ invoiceInfoTableData.push({
+ code: '123456',
+ goodsName: '手术刀',
+ time: time,
+ price: '¥12,00',
+ count: 20,
+ deletehref: ''
+
+ });
+ }
+
+//
+$('#invoiceInfo').bootstrapTable({
+
+ striped: true, //是否显示行间隔色
+ cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+ pagination: false, //是否显示分页(*)
+ sortable: true, //是否启用排序
+ sortOrder: "asc", //排序方式
+ // queryParams: oTableInit.queryParams,//传递参数(*)
+ sidePagination: "client", //分页方式:client客户端分页,server服务端分页(*)
+ pageNumber:1, //初始化加载第一页,默认第一页
+ pageSize: 15, //每页的记录行数(*)
+ pageList: [10, 25, 50, 100], //可供选择的每页的行数(*)
+ search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+ strictSearch: true,
+ showColumns: false, //是否显示所有的列
+ showRefresh: false, //是否显示刷新按钮
+ minimumCountColumns: 2, //最少允许的列数
+ clickToSelect: true, //是否启用点击选中行
+ height: 180, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度
+ uniqueId: "id", //每一行的唯一标识,一般为主键列
+ // showToggle:true, //是否显示详细视图和列表视图的切换按钮
+ cardView: false, //是否显示详细视图
+ detailView: false, //是否显示父子表
+ removeByUniqueId:1,
+ columns: invoiceInfoHeaderColumns,
+ data: invoiceInfoTableData
+ });
+// 发货单明细 end
+// 发货单物品明细
+ var goodsDetailedTableData =new Array();
+ var goodsDetailedHeaderColumns = [
+
+ {
+ title : '条码',
+ field : 'code',
+ align : 'center',
+ sortable: true
+ },
+ {
+ title : '物品名称',
+ field : 'goodsName',
+ align : 'center'
+ },
+ {
+ title : '批次/灭菌日期',
+ field : 'time',
+ align : 'center'
+ },
+ {
+ title : '单价',
+ field : 'price',
+ align : 'center'
+ },
+ {
+ title : '数量',
+ field : 'count',
+ align : 'center'
+ },
+ {
+ title : '删除',
+ field : 'deletehref',
+ align : 'center'
+ }
+ ];
+
+ for(var i=0; i<=100;i++)
+ {
+ goodsDetailedTableData.push({
+ code: '123456',
+ goodsName: '手术刀',
+ time: time,
+ price: '¥12,00',
+ count: 20,
+ deletehref: ''
+
+ });
+ }
+//
+ $('#goodsDetailed').bootstrapTable({
+
+ striped: true, //是否显示行间隔色
+ cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+ pagination: false, //是否显示分页(*)
+ sortable: true, //是否启用排序
+ sortOrder: "asc", //排序方式
+ // queryParams: oTableInit.queryParams,//传递参数(*)
+ sidePagination: "client", //分页方式:client客户端分页,server服务端分页(*)
+ pageNumber:1, //初始化加载第一页,默认第一页
+ pageSize: 15, //每页的记录行数(*)
+ pageList: [10, 25, 50, 100], //可供选择的每页的行数(*)
+ search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+ strictSearch: true,
+ showColumns: false, //是否显示所有的列
+ showRefresh: false, //是否显示刷新按钮
+ minimumCountColumns: 2, //最少允许的列数
+ clickToSelect: true, //是否启用点击选中行
+ height: 180, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度
+ uniqueId: "id", //每一行的唯一标识,一般为主键列
+ // showToggle:true, //是否显示详细视图和列表视图的切换按钮
+ cardView: false, //是否显示详细视图
+ detailView: false, //是否显示父子表
+ removeByUniqueId:1,
+ columns: goodsDetailedHeaderColumns,
+ data: goodsDetailedTableData
+ });
+// 发货单物品明细 end
+//
+ // 清洗器械
+
+ //器械报损明细 end
+ //
+ $(window).resize(function () {
+ $("#mainView-left-table").bootstrapTable('resetView', {
+ height: $(window).height() - 180
+ }); });
+ $(window).resize(function () {
+ $("#mainView-right-table").bootstrapTable('resetView', {
+ height: $(window).height() - 180
+ }); });
+ $(".mainView-left-table .fixed-table-toolbar").append($(".mainView-left-title"));
+ // $(window).resize(function () {
+ // $("#mainView-right-table").bootstrapTable('resetView');
+
+ // });
+
+ // $(window).resize(function () {
+ // $("#addCleanUpdate-top-tools").bootstrapTable('resetView');
+
+ // });
+
+ });
\ No newline at end of file