|
|
|
@ -915,9 +915,12 @@
|
|
|
|
|
<div class="row divCss8">
|
|
|
|
|
<div class="form-group"><input id="fileUrlInp" hidden/>
|
|
|
|
|
<label class="col-sm-3 control-label">标题:</label>
|
|
|
|
|
<div class="col-sm-7">
|
|
|
|
|
<input type="text" class="input-sm form-control" id="inpTitle" name="inpTitle">
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<span class="form-inline"><input type="text" class="input-sm form-control" style="width: 65%;" id="inpTitle" name="inpTitle"><input readonly style="width: 35%;" type="text" class="input-sm form-control" id="inpNoB" name="inpNoB"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<%-- <div class="col-sm-4" text-align="left">
|
|
|
|
|
-
|
|
|
|
|
</div>--%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row divCss8">
|
|
|
|
@ -933,7 +936,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row divCss8">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">页码:</label>
|
|
|
|
|
<label class="col-sm-3 control-label">序号:</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<input type="number" class="input-sm form-control" id="pageNumber" name="pageNumber">
|
|
|
|
|
</div>
|
|
|
|
@ -1911,6 +1914,7 @@
|
|
|
|
|
formData.append('masterID', $("#idLab").html());
|
|
|
|
|
formData.append('assortID', $("#inpType").val());
|
|
|
|
|
formData.append('title', $("#inpTitle").val());
|
|
|
|
|
|
|
|
|
|
if ($("#pageNumber").val() < 1) {
|
|
|
|
|
$("#pageNumber").val(1);
|
|
|
|
|
}
|
|
|
|
@ -2500,12 +2504,12 @@
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
language: "zh-CN"
|
|
|
|
|
});
|
|
|
|
|
var currDate=getCurrDate();
|
|
|
|
|
/*var currDate=getCurrDate();
|
|
|
|
|
var currDate30=getCurrDay30();
|
|
|
|
|
$('#startDateTo').val(currDate30);
|
|
|
|
|
$('#endDateTo').val(currDate);
|
|
|
|
|
$('#startDateTo2').val(currDate30);
|
|
|
|
|
$('#endDateTo2').val(currDate);
|
|
|
|
|
$('#endDateTo2').val(currDate);*/
|
|
|
|
|
|
|
|
|
|
function getDept() {
|
|
|
|
|
//获取科室列表
|
|
|
|
@ -4269,6 +4273,15 @@
|
|
|
|
|
field: 'title',
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var a="";
|
|
|
|
|
if(row.inpNo!=null && row.inpNo!=""){
|
|
|
|
|
a=value+row.inpNo;
|
|
|
|
|
}else{
|
|
|
|
|
a=value;
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '上传时间',
|
|
|
|
@ -4363,18 +4376,23 @@
|
|
|
|
|
}, events: {
|
|
|
|
|
'click .editInfo': function (e, value, row, index) {
|
|
|
|
|
//判断是否包含类型
|
|
|
|
|
var assortIDFlag=assortIdArr.indexOf(row.assortId);
|
|
|
|
|
var assortIDFlag=0;
|
|
|
|
|
if(assortIdArr!=null && assortIdArr!=""){
|
|
|
|
|
assortIDFlag=assortIdArr.indexOf(row.assortId);
|
|
|
|
|
}
|
|
|
|
|
//console.log(row.assortId+"======"+assortIDFlag);
|
|
|
|
|
//console.log(row);
|
|
|
|
|
if (row.pdfPath != null && row.pdfPath != "") {
|
|
|
|
|
//console.log("===:" + row.pdfPath.indexOf(row.assortId + ".pdf") != -1);
|
|
|
|
|
if (row.pdfPath.indexOf(row.assortId + ".pdf") != -1) {
|
|
|
|
|
$("#upPdfDiv").hide();
|
|
|
|
|
//判断该分段类是否存在,如果存在禁止修改,如果不存在则显示可修改项
|
|
|
|
|
if(assortIDFlag!=-1) {
|
|
|
|
|
$("#inpType").attr("disabled", "true");
|
|
|
|
|
}else{
|
|
|
|
|
toastr.warning("分段类不存在,需修改类!");
|
|
|
|
|
if(assortIDFlag==-1) {
|
|
|
|
|
toastr.warning("分段类不存在,需修改类!");
|
|
|
|
|
}
|
|
|
|
|
/*else{
|
|
|
|
|
$("#inpType").attr("disabled", "true");
|
|
|
|
|
}*/
|
|
|
|
|
} else {
|
|
|
|
|
$("#upPdfDiv").show();
|
|
|
|
|
$("#inpType").removeAttr("disabled");
|
|
|
|
@ -4387,18 +4405,27 @@
|
|
|
|
|
$("#addFile").show();
|
|
|
|
|
} else {
|
|
|
|
|
$("#addFile").hide();
|
|
|
|
|
if(assortIDFlag!=-1) {
|
|
|
|
|
$("#inpType").attr("disabled", "true");
|
|
|
|
|
}else{
|
|
|
|
|
if(assortIDFlag==-1) {
|
|
|
|
|
toastr.warning("分段类不存在,需修改类!");
|
|
|
|
|
}
|
|
|
|
|
/*else{
|
|
|
|
|
$("#inpType").attr("disabled", "true");
|
|
|
|
|
}*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//同步
|
|
|
|
|
$("#inpId").val(row.id);
|
|
|
|
|
$("#inpTitle").val(row.title);
|
|
|
|
|
$("#inpNoB").val("_"+row.inpNo);
|
|
|
|
|
if(row.assortId!=null && row.assortId!="" && assortIDFlag!=-1){
|
|
|
|
|
$("#inpType").val(row.assortId);
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if(row.inpNo!=null &&row.inpNo!=""){
|
|
|
|
|
$("#inpNoB").show();
|
|
|
|
|
}else{
|
|
|
|
|
$("#inpNoB").hide();
|
|
|
|
|
}
|
|
|
|
|
$("#inpSource").val(row.source);
|
|
|
|
|
$("#inpFlag").val(row.flag);
|
|
|
|
@ -4909,6 +4936,7 @@
|
|
|
|
|
beforeClick: function (treeId, treeNode) {
|
|
|
|
|
$('#table2').bootstrapTable('uncheckAll');
|
|
|
|
|
$("#assortId").html(treeNode.id);
|
|
|
|
|
|
|
|
|
|
$("#source").html("");
|
|
|
|
|
//查询之后重新从第一页算起
|
|
|
|
|
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
|
|
|
|
|