Index: ssts-web/src/main/webapp/dx-disinfectsystem/js/deliveryPlanApplication/inputPrint.js
===================================================================
diff -u -r24482 -r24538
--- ssts-web/src/main/webapp/dx-disinfectsystem/js/deliveryPlanApplication/inputPrint.js (.../inputPrint.js) (revision 24482)
+++ ssts-web/src/main/webapp/dx-disinfectsystem/js/deliveryPlanApplication/inputPrint.js (.../inputPrint.js) (revision 24538)
@@ -1,13 +1,189 @@
+// 发货单left
+function invoiceTable(invoiceData)
+{
+ var invoiceHeaderColumns = [
+ {
+ title : '条码',
+ field : 'barcode',
+ align : 'center',
+ sortable: true
+ },
+ {
+ title : '物品名称',
+ field : 'name',
+ align : 'center'
+ },
+ {
+ title : '批次/灭菌日期',
+ field : 'endDate',
+ align : 'center'
+ },
+ {
+ title : '单价',
+ field : 'price',
+ align : 'center'
+ },
+ {
+ title : '数量',
+ field : 'storage',
+ align : 'center'
+ } ,
+ {
+ title : '删除',
+ field : 'deletehref',
+ align : 'center',
+ formatter: function(value,row,index){
+ return "";
+ },
+ }
+ ];
+ $('#invoice').bootstrapTable("destroy");
+ $('#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: invoiceData
+ });
+}
+// 发货单left end
+function addInvoiceDelete(getBarcode)
+{
+ console.log("print now");
+ var aidHide = JSON.parse($('#deliveryCode').val());
+ var aidGet = getBarcode.replace("aid","");
+ aidGet = parseInt(aidGet);
+
+ var fu = [];
+ for(var i=0; i';
- handle += row.depart;
- handle += '';
- return handle;
- },
+ title : '科室',
+ field : 'depart',
+ align : 'center',
+ formatter: function (value,row,index)
+ {
+ var handle="";
+ handle +='';
+ handle += row.depart;
+ handle += '';
+ return handle;
+ },
},
{
title : '备注',
- field : 'remark',
- align : 'center'
+ field : 'remark',
+ align : 'center'
}
- ];
-
-// for(var i=0; i<=100;i++)
-// {
-// deliverGoodsPlanTableData.push({
-// singleSelect: 'checkbox',
-// urgencyDegree: '不急',
-// administrativeOffice: 南山消毒室',
-// remarks :'手工清洗',
-//
-// });
-// }
-// //
- var MLTInitTable = function(url){
+ ];
+
+ var MLTInitTable = function(url){
$('#mainView-left-table').bootstrapTable("destroy");
$('#mainView-left-table').bootstrapTable({
url:url,
@@ -98,36 +87,35 @@
MLTInitTable("/disinfectSystem/invoicePlan/invoicePlanController/getDepartInvoiePlansByDepartCodes.mhtml");
// 主表 end
//申请物品明细
-var applyInforTableData =new Array();
+ var applyInforTableData =new Array();
var applyInforHeaderColumns = [
-
- {
- title : '申请的物品',
- field : 'applyGoods',
- align : 'center',
- sortable: true
- },
- {
+ {
+ title : '申请的物品',
+ field : 'applyGoods',
+ align : 'center',
+ sortable: true
+ },
+ {
title : '待发',
- field : 'dueOut',
- align : 'center'
- },
- {
+ field : 'dueOut',
+ align : 'center'
+ },
+ {
title : '加急',
- field : 'urgent',
- align : 'center'
- }
- ];
+ field : 'urgent',
+ align : 'center'
+ }
+ ];
- for(var i=0; i<=100;i++)
- {
- applyInforTableData.push({
- applyGoods: '不急',
- dueOut: '南山消毒室',
- urgent:'手工清洗',
-
- });
- }
+ for(var i=0; i<=100;i++)
+ {
+ applyInforTableData.push({
+ applyGoods: '不急',
+ dueOut: '南山消毒室',
+ urgent:'手工清洗',
+
+ });
+ }
//
$('#mainView-right-table').bootstrapTable({
@@ -158,135 +146,55 @@
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 : 'code',
+ align : 'center',
+ sortable: true
+ },
+ {
title : '物品名称',
- field : 'goodsName',
- align : 'center'
- },
- {
+ field : 'goodsName',
+ align : 'center'
+ },
+ {
title : '批次/灭菌日期',
- field : 'time',
- align : 'center'
- },
- {
+ field : 'time',
+ align : 'center'
+ },
+ {
title : '单价',
- field : 'price',
- align : 'center'
- },
- {
+ field : 'price',
+ align : 'center'
+ },
+ {
title : '数量',
- field : 'count',
- align : 'center'
- },
- {
+ 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: ''
-
- });
+ 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({
@@ -296,76 +204,78 @@
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
+
+ // 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'
- }
- ];
+ 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: ''
-
- });
- }
+ for(var i=0; i<=100;i++)
+ {
+ goodsDetailedTableData.push({
+ code: '123456',
+ goodsName: '手术刀',
+ time: time,
+ price: '¥12,00',
+ count: 20,
+ deletehref: ''
+
+ });
+ }
//
$('#goodsDetailed').bootstrapTable({
@@ -374,25 +284,27 @@
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
+
+ // 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
//
@@ -409,14 +321,9 @@
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
+ });
+