|
@@ -55,6 +55,10 @@ $(function () {
|
|
|
$('#inputId').val(row.employeeCode);
|
|
|
}
|
|
|
});
|
|
|
+ if ($('#inputNameSearch').val().length == 0) {
|
|
|
+ $('#inputId').val("");
|
|
|
+ $('#inputNameSearch').val("");
|
|
|
+ }
|
|
|
});
|
|
|
$('#manufactoryNameSearch').on('input focus', function (e) {
|
|
|
showManufactoryPopover({
|
|
@@ -67,6 +71,28 @@ $(function () {
|
|
|
$('#manufactoryNameSearch').val(row.name);
|
|
|
}
|
|
|
});
|
|
|
+ if ($('#manufactoryNameSearch').val().length == 0) {
|
|
|
+ $('#manuCode').val("");
|
|
|
+ $('#manufactoryNameSearch').val("");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ initSearchList('<div id="supplyPopoverContent"><table id="tb_table_supply"></table></div>',
|
|
|
+ 'supplyNameSearch', 300, 250);
|
|
|
+ $('#supplyNameSearch').on('input focus', function (e) {
|
|
|
+ showSupplyPopover({
|
|
|
+ data: {
|
|
|
+ searchText: $("#supplyNameSearch").val() == "" ? null : $("#supplyNameSearch").val(),
|
|
|
+ },
|
|
|
+ onClickRow: function (row, $element) {
|
|
|
+ $('#supplyNameSearch').webuiPopover('hide');
|
|
|
+ $('#supplyCode').val(row['code']);
|
|
|
+ $('#supplyNameSearch').val(row['name']);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if ($('#supplyNameSearch').val().length == 0) {
|
|
|
+ $('#supplyCode').val("");
|
|
|
+ $('#supplyNameSearch').val("");
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -77,8 +103,10 @@ function resetSearch() {
|
|
|
$("#codeSearch").val(null);
|
|
|
$("#serialSearch").val(null);
|
|
|
$("#manuCode").val(null);
|
|
|
+ $("#supplyCode").val(null);
|
|
|
$("#inputId").val(null);
|
|
|
$("#manufactoryNameSearch").val(null);
|
|
|
+ $("#supplyNameSearch").val(null);
|
|
|
$("#yfInNoSearch").val(null);
|
|
|
$("#searchTextDrug").val(null);
|
|
|
$("#inputNameSearch").val(null);
|
|
@@ -117,7 +145,8 @@ function getAll() {
|
|
|
rowNum: 10,
|
|
|
rowList: [10, 20, 30],
|
|
|
pager: 'pager',
|
|
|
- colNames: ['组', '药品编码', '药品名', '规格', '旧库存', '入库量', '零售价', '购入总价', '入库单号', '入库日期', '入库人', '效期', '生产厂家', '生产批号', '备注'],
|
|
|
+ colNames: ['组', '药品编码', '药品名', '规格', '旧库存', '入库量', '零售价', '购入总价', '入库单号',
|
|
|
+ '入库日期', '入库人','验收状态', '验收人', '效期', '生产厂家', '生产批号', '供应商'],
|
|
|
colModel: [
|
|
|
{name: 'inTypeName', index: 'inTypeName', width: 100, align: 'center'},
|
|
|
{name: 'chargeCode', index: 'chargeCode', width: 100, align: 'center'},
|
|
@@ -128,31 +157,42 @@ function getAll() {
|
|
|
}
|
|
|
return cellvalue
|
|
|
}},
|
|
|
- {name: 'specification', index: 'specification', width: 120},
|
|
|
- {name: 'stockAmount', index: 'stockAmount', width: 100, align: 'center'},
|
|
|
- {name: 'buyAmt', index: 'buyAmt', width: 100, align: 'center'},
|
|
|
- {name: 'packRetprice', index: 'packRetprice', width: 100, align: 'center'},
|
|
|
+ {name: 'specification', index: 'specification', width: 100},
|
|
|
+ {name: 'stockAmount', index: 'stockAmount', width: 70, align: 'center'},
|
|
|
+ {name: 'buyAmt', index: 'buyAmt', width: 70, align: 'center'},
|
|
|
+ {name: 'packRetprice', index: 'packRetprice', width: 70, align: 'center'},
|
|
|
{
|
|
|
name: 'buyTotalPrice',
|
|
|
index: 'buyTotalPrice',
|
|
|
- width: 100,
|
|
|
+ width: 70,
|
|
|
align: 'center',
|
|
|
formatter: function (cellvalue, options, rowObject) {
|
|
|
return rowObject.buyPrice*rowObject.buyAmt
|
|
|
}},
|
|
|
{name: 'inDocuNo', index: 'inDocuNo', width: 100, align: 'center'},
|
|
|
{name: 'inDate', index: 'inDate', formatter: 'date', width: 100, align: 'center'},
|
|
|
- {name: 'inputName', index: 'inputName', width: 80, align: 'center',
|
|
|
+ {name: 'inputName', index: 'inputName', width: 70, align: 'center',
|
|
|
formatter: function (cellvalue, options, rowObject) {
|
|
|
if (isYk) {
|
|
|
return rowObject.checkerName
|
|
|
}
|
|
|
return cellvalue
|
|
|
}},
|
|
|
+ {name: 'yszt', index: 'yszt', width: 70, align: 'center',
|
|
|
+ formatter: function (cellvalue, options, rowObject) {
|
|
|
+ return '合格'
|
|
|
+ }},
|
|
|
+ {name: 'ysName', index: 'ysName', width: 70, align: 'center',
|
|
|
+ formatter: function (cellvalue, options, rowObject) {
|
|
|
+ if (isYk) {
|
|
|
+ return rowObject.checkerName
|
|
|
+ }
|
|
|
+ return rowObject.inputName
|
|
|
+ }},
|
|
|
{name: 'effDate', index: 'effDate', formatter: 'date', width: 100, align: 'center'},
|
|
|
{name: 'manufactoryName', index: 'manufactoryName', width: 150},
|
|
|
{name: 'manuNo', index: 'manuNo', width: 100},
|
|
|
- {name: 'inComment', index: 'inComment', width: 150}
|
|
|
+ {name: 'supplyName', index: 'supplyName', width: 150}
|
|
|
],
|
|
|
jsonReader: {
|
|
|
root: "data", page: "page", total: "total",
|
|
@@ -188,6 +228,7 @@ function getAll() {
|
|
|
'chargeCode': $("#codeSearch").val(),
|
|
|
'serial': $("#serialSearch").val(),
|
|
|
'manuCode': $("#manuCode").val(),
|
|
|
+ 'supplyCode': $("#supplyCode").val(),
|
|
|
'inputId': $("#inputId").val(),
|
|
|
'inDocuNo': $("#yfInNoSearch").val(),
|
|
|
'inType': $("#inTypeSearch").val(),
|