|
|
@@ -22,7 +22,7 @@ function initTable() {
|
|
|
$("#tb_table").jqGrid({
|
|
|
datatype: 'json',
|
|
|
mtype: 'get',
|
|
|
- url: '/thmz/getAllZyAdtward',
|
|
|
+ url: '/thmz/getDeptByClassCode',
|
|
|
loadBeforeSend: function (jqXHR) {
|
|
|
jqXHR.setRequestHeader("Authorization", 'Bearer ' + localStorage.getItem("token"));
|
|
|
jqXHR.setRequestHeader("Accept", 'application/json');
|
|
|
@@ -32,19 +32,22 @@ function initTable() {
|
|
|
XMLHttpRequest.setRequestHeader("Authorization", 'Bearer ' + localStorage.getItem("token"));
|
|
|
}
|
|
|
},
|
|
|
+ postData: {
|
|
|
+ classCode: "1,2"
|
|
|
+ },
|
|
|
styleUI: 'Bootstrap',
|
|
|
viewrecords: true,
|
|
|
autowidth: true,
|
|
|
rowNum: -1,//取消分页
|
|
|
height: screen.height*0.6,
|
|
|
multiselect:true,
|
|
|
- caption: '住院科室',
|
|
|
+ caption: '科室',
|
|
|
shrinkToFit:false,
|
|
|
loadonce:true, //一次加载全部数据到客户端,由客户端进行排序。
|
|
|
colNames: ['编码','名称'],
|
|
|
colModel: [
|
|
|
- {name: 'deptCode', index: 'deptCode',width:100,align:'center'},
|
|
|
- {name: 'deptName', index: 'deptName',width:200}
|
|
|
+ {name: 'code', index: 'code',width:100,align:'center'},
|
|
|
+ {name: 'name', index: 'name',width:200}
|
|
|
],
|
|
|
jsonReader: {
|
|
|
root: "data", repeatitems: false
|
|
|
@@ -118,8 +121,8 @@ function initYpZdDept() {
|
|
|
let temp = eval('(' + '{ "'+cellname+'": "'+value+'"}' + ')');
|
|
|
temp.chargeCode = record.chargeCode;
|
|
|
let selRowId = $("#tb_table").jqGrid('getGridParam','selrow');
|
|
|
- let deptCode = $("#tb_table").jqGrid('getCell',selRowId,'deptCode');
|
|
|
- temp.deptCode = deptCode;
|
|
|
+ let code = $("#tb_table").jqGrid('getCell',selRowId,'code');
|
|
|
+ temp.deptCode = code;
|
|
|
return temp
|
|
|
},
|
|
|
afterSubmitCell (serverresponse, rowid, cellname, value, iRow, iCol){
|
|
|
@@ -152,13 +155,13 @@ function initYpZdDept() {
|
|
|
*/
|
|
|
function initYpZdDeptParam(){
|
|
|
let selRowId = $("#tb_table").jqGrid('getGridParam','selrow');
|
|
|
- let deptCode = $("#tb_table").jqGrid('getCell',selRowId,'deptCode');
|
|
|
- if(!deptCode){
|
|
|
- deptCode = null;
|
|
|
+ let code = $("#tb_table").jqGrid('getCell',selRowId,'code');
|
|
|
+ if(!code){
|
|
|
+ code = null;
|
|
|
}
|
|
|
let tem = {
|
|
|
searchText: $("#searchText").val(),
|
|
|
- deptCode: deptCode,
|
|
|
+ deptCode: code,
|
|
|
groupNo: pharmacyGroupNo
|
|
|
}
|
|
|
return tem
|