<apex:page extensions="InventoryReportController" standardController="Inventory_Header__c" showHeader="false" sidebar="false" id="allPage" action="{!init}" tabStyle="CheckAllOlympusAsset__tab" applyHtmlTag="false">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<style>
|
.dateFormat {
|
display: none;
|
}
|
.message {
|
width: 1184px;
|
}
|
div#out_Div_L {
|
position: relative;
|
overflow: hidden;
|
width: 660px;
|
}
|
div#out_Div_R {
|
position: relative;
|
overflow: hidden;
|
width: 1200px;
|
margin-left: 660px;
|
}
|
div#in_Div_L {
|
position: relative;
|
width: 745px;
|
height: 451px;
|
}
|
div#in_Div_R {
|
position: relative;
|
overflow: auto;
|
height: 451px;
|
margin-left: 830px;
|
margin-top: -451px;
|
}
|
div#in_Div_L td.dataCellBorder1 {
|
border-width: 0px 0px 1px 1px;
|
}
|
div#in_Div_L td.tdRed {
|
background-color: red;
|
}
|
div#in_Div_L td.tdYellow {
|
background-color: yellow;
|
}
|
div#in_Div_L td.tdGray {
|
background-color: gray;
|
}
|
div#in_Div_L td.tdBlue {
|
background-color: Cyan;
|
}
|
div#in_Div_L td.tdNormal {
|
background-color: none;
|
}
|
div#in_Div_R td.dataCellBorder1 {
|
border-width: 0px 0px 1px 1px;
|
}
|
div#in_Div_R td.tdRed {
|
background-color: red;
|
}
|
div#in_Div_R td.tdYellow {
|
background-color: yellow;
|
}
|
div#in_Div_R td.tdGray {
|
background-color: gray;
|
}
|
div#in_Div_R td.tdBlue {
|
background-color: Cyan;
|
}
|
div#in_Div_R td.tdNormal {
|
background-color: none;
|
}
|
table {
|
margin: 10px 0px;
|
/*float: left;*/
|
table-layout: fixed;
|
border-collapse: collapse;
|
}
|
a {
|
text-decoration: none;
|
}
|
.navigationBarBlock {
|
width: 100%;
|
}
|
.apexp .bPageBlock.apexDefaultPageBlock .pbBody {
|
margin: 0px;
|
}
|
.bPageBlock {
|
border-top: 0px;
|
}
|
.checkButtonStyle input {
|
width: 100%;
|
text-align: left;
|
margin: 2px;
|
}
|
.searchButtonStyle {
|
width: 10%;
|
}
|
.searchButtonStyle input {
|
width: 30%;
|
background-color: #9BC2E6;
|
}
|
.setButtonStyle {
|
width: 8%;
|
}
|
.setButtonStyle input {
|
width: 100%;
|
background-color: #9BC2E6;
|
}
|
.startInventory input {
|
padding: 5px;
|
margin-bottom: 5px;
|
border-radius: 5px;
|
background: #9BC2E6;
|
}
|
.labelStyle {
|
width: 9%;
|
padding: 5px;
|
}
|
.tdStyle-left {
|
/*20220419 ljh HWAG-CAV5WX update */
|
/*width: 16%;*/
|
width: 11%;
|
padding: 5px;
|
text-align: left;
|
}
|
.tdStyle-right {
|
/*20220419 ljh HWAG-CAV5WX update */
|
/*width: 16%;*/
|
width: 22%;
|
padding: 5px;
|
text-align: right;
|
}
|
.blankStyle {
|
width: 3%;
|
}
|
.inputTextStyle {
|
width: 9%;
|
}
|
.inputTextStyle input {
|
width: 90%;
|
}
|
.redStyle {
|
background-color: #F00;
|
}
|
.greyStyle {
|
background-color: #AAA;
|
}
|
.blueStyle {
|
background-color: #9BC2E6;
|
}
|
.yellowStyle {
|
background-color: #FFCC00;
|
}
|
body td.col_Scroll {width:0px; padding:0px; border-width:0px;}
|
.line {
|
margin:20px 0;
|
width:100%;
|
height:1px;
|
border:1px;
|
background-color:black;
|
}
|
.datePicker {
|
width: 300px;
|
height: 200px;
|
}
|
/****************** 页面底部审批流css调整 *******************/
|
.bRelatedList .relatedProcessHistory .extraRow td.actionColumn .actionLink, .bRelatedList .relatedProcessHistory .extraRow td, .bRelatedList .relatedProcessHistory .extraRow th {
|
color: gray;
|
}
|
.bPageBlock .list {
|
width: auto;
|
}
|
/****************** 页面底部审批流css调整 *******************/
|
.test-textarea {
|
/*width: 100%;*/
|
margin-left: auto;
|
margin-right: auto;
|
padding: 3px;
|
outline: 0;
|
border: 1px solid #ccc;
|
font-size: 12px;
|
word-wrap: break-word;
|
overflow-x: hidden;
|
overflow-y: auto;
|
-webkit-user-modify: read-write-plaintext-only;
|
/*border-radius: 4px;*/
|
font-size: 100%;
|
border-top: black 2px solid;
|
border-left: black 2px solid;
|
border-right: black 2px solid;
|
border-bottom: black 2px solid;
|
}
|
/****************** 必填项标红 *******************/
|
.requiredInput {
|
position: relative;
|
height: 100%;
|
}
|
.requiredBlock {
|
background-color: #c00;
|
position: absolute;
|
left: -4px;
|
width: 3px;
|
top: 1px;
|
bottom: 1px;
|
}
|
</style>
|
<style type="text/css" media="print">
|
.hiddenPrint{display:none !important;}
|
.showPrint{display:block !important;}
|
</style>
|
<script type="text/javascript">
|
var loginUserId = '{!JSENCODE($User.Id)}';
|
// var loginUserName = '{!JSENCODE($User.Username)}';
|
var loginUserName = '{!JSENCODE($User.LastName)}' + ' ' + '{!JSENCODE($User.FirstName)}';
|
// 保存并提交审批 /保存
|
function savejs(savetype) {
|
if (savetype == '0') { // 保存
|
if (confirm("是否确认保存?")) {
|
j$(savetype).prop("disabled", true);
|
saveSubmit(savetype);
|
}
|
} else { // 保存并提交审批
|
// 如果提交人变化,提示先保存
|
var newSubmitPerson = document.getElementById('allPage:allForm:searchBlock:ivsubmitPIC').value;
|
if ('{!submitPersonName}' != newSubmitPerson) {
|
alert("提交人已变化,请先保存。");
|
} else {
|
if ('{!ihObj.InventorySubmit_PIC__c}' && '{!ihObj.InventoryCheck_PIC__c}'
|
&& '{!ihObj.InventorySubmit_PIC__c}' == loginUserId) {
|
if (confirm("您即将保存并提交审批,请确认。")) {
|
j$(savetype).prop("disabled", true);
|
saveSubmit(savetype);
|
}
|
} else if ('{!ihObj.InventorySubmit_PIC__c}' != loginUserId) {
|
alert("只有盘点报告提交人可以提交。");
|
return;
|
} else {
|
alert("盘点报告提交人或确认人不能为空, 请先保存。");
|
return;
|
}
|
}
|
}
|
}
|
// 查看明细
|
function inventory_details() {
|
if('{!isConsum}'=='true') {
|
window.open("ConsumInventoryReportDetail?ivt_headId={!ihObj.Id}", "ConsumInventoryReportDetail");
|
}
|
else {
|
window.open("InventoryReportDetail?ivt_headId={!ihObj.Id}", "InventoryReportDetail");
|
}
|
}
|
// 填写遗失报告书
|
function inventory_lost_report() {
|
window.open("InventoryLostReport?lhid={!ihObj.Id}", "InventoryLostReport");
|
}
|
// 维修记录
|
function weixiu_report() {
|
window.open("{!$Label.Environment_Url}{!weixiuReportId}?pv1={!ihId}");
|
}
|
// 出借记录
|
function chujie_report() {
|
window.open("{!$Label.Environment_Url}{!chujieReportId}?pv1={!ihId}");
|
}
|
// 丢失记录
|
function diushi_report() {
|
window.open("{!$Label.Environment_Url}{!diushiReportId}?pv1={!ihId}");
|
}
|
<!--20210525 you 1650 start-->
|
// 调拨出借记录
|
function transfer_chujie_report() {
|
window.open("{!$Label.Environment_Url}{!transferchujieReportId}?pv1={!ihId}");
|
}
|
// 调拨遗失记录
|
function transfer_diushi_report() {
|
window.open("{!$Label.Environment_Url}{!transferdiushiReportId}?pv1={!ihId}");
|
}
|
<!--20210525 you 1650 end-->
|
// 耗材出借记录
|
function consum_chujie_report() {
|
window.open("{!$Label.Environment_Url}{!consumChujieReportId}?pv1={!ihId}");
|
}
|
// 耗材消耗记录
|
function consum_xiaohao_report() {
|
window.open("{!$Label.Environment_Url}{!consumXiaohaoReportId}?pv1={!ihId}");
|
}
|
|
</script>
|
|
<apex:form id="allForm">
|
<apex:actionFunction name="saveSubmit" action="{!saveSubmit}" rerender="allForm, process" oncomplete="unblockUI();">
|
<apex:param value="" name="saveType"/>
|
</apex:actionFunction>
|
<apex:pageBlock id="searchBlock">
|
<apex:outputPanel id="RightArea" layout="block" style="margin:0 20%">
|
<apex:outputPanel id="message">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
<div style="margin-top: 1%" class="startInventory">
|
<apex:commandButton styleClass="hiddenPrint" value="保存并提交审批" id="submitData"
|
rerender="allForm" oncomplete="unblockUI();" onclick="savejs('1'); return false;"
|
rendered="{!canDoFlg}" />
|
<apex:commandButton rendered="{!!isConsum}" styleClass="hiddenPrint" value="填写遗失报告书" rerender="allForm" onclick="inventory_lost_report();return false;" />
|
<apex:commandButton styleClass="hiddenPrint" value="保存" id="saveData" style="margin-left: 25%;"
|
rerender="allForm" oncomplete="unblockUI();" onclick="savejs('0'); return false;"
|
rendered="{!canDoFlg}" />
|
</div>
|
<p style="margin:10px auto; width:100%; text-align: center; font-weight:bold; font-size:22px;">OCSM医疗备品管理中心{!IF(isConsum,'耗材','备品')}盘点报告书</p>
|
<table class="inventoryReportTable" style="width: 50%;">
|
<tr>
|
<td class="labelStyle">盘点部门/分公司:</td>
|
<td class="labelStyle">{!inventoryDepartment}</td>
|
</tr>
|
<tr>
|
<td class="labelStyle">盘点报告书编号:</td>
|
<td class="labelStyle" style="color: blue">{!ihObj.Name}</td>
|
</tr>
|
<tr>
|
<td class="labelStyle">提交报告日期:</td>
|
<td class="labelStyle">
|
<apex:outputText id="ivSubmitDate" value="{0,date,yyyy'/'MM'/'dd}">
|
<apex:param value="{!ihObj.Inventory_Submit_Date__c}" />
|
</apex:outputText>
|
</td>
|
</tr>
|
</table>
|
<hr class="line" />
|
<table class="inventoryReportTable">
|
<tr>
|
<td class="labelStyle">盘点地点:</td>
|
<td class="labelStyle">
|
<apex:outputText id="ivLocation" value="{!ihObj.Internal_asset_location__c}" />
|
</td>
|
<td class="labelStyle">开始盘点时间:</td>
|
<td class="labelStyle">
|
<apex:outputText id="ivDate" value="{0,date,yyyy'/'MM'/'dd}">
|
<apex:param value="{!ihObj.Inventory_Start_Date__c}" />
|
</apex:outputText>
|
</td>
|
</tr>
|
<tr>
|
<td class="labelStyle">盘点时间From:</td>
|
<td class="labelStyle">
|
<apex:inputField id="ivDateFrom" value="{!ihObj.Inventory_Date_From__c}"
|
required="{!DESC_RW1['Inventory_Date_From__c'] == 'wm'}" />
|
</td>
|
<td class="labelStyle">盘点时间To:</td>
|
<td class="labelStyle">
|
<apex:inputField id="ivDateTo" value="{!ihObj.Inventory_Date_To__c}"
|
required="{!DESC_RW1['Inventory_Date_To__c'] == 'wm'}" />
|
</td>
|
</tr>
|
<tr>
|
<td class="labelStyle">盘点人员:</td>
|
<td class="labelStyle" colspan="3">
|
<apex:inputField id="ivPIC" style="width: 100%;" value="{!ihObj.Inventory_Persons__c}"
|
required="{!DESC_RW1['Inventory_Persons__c'] == 'wm'}" />
|
</td>
|
</tr>
|
</table>
|
<hr class="line" />
|
<table class="inventoryReportTable" width="100%" >
|
<tr>
|
<td class="tdStyle-left">盘点报告提交人:</td>
|
<td class="tdStyle-left">
|
<apex:inputField id="ivsubmitPIC" value="{!ihObj.InventorySubmit_PIC__c}"
|
required="{!DESC_RW1['InventorySubmit_PIC__c'] == 'wm'}" >
|
<script>
|
if( document.getElementById('allPage:allForm:searchBlock:ivsubmitPIC_mlktp')){
|
document.getElementById('allPage:allForm:searchBlock:ivsubmitPIC_mlktp').style.display="none" ;
|
}
|
</script>
|
</apex:inputField>
|
</td>
|
<td class="tdStyle-right">职位:</td>
|
<td class="tdStyle-left">
|
<apex:outputText id="ivsubmitPICPost" value="{!ihObj.InventorySubmit_PIC__r.Post__c}" />
|
</td>
|
</tr>
|
<tr>
|
<td class="tdStyle-left">盘点报告确认人:</td>
|
<td class="tdStyle-left">
|
<apex:inputField id="ivcheckPIC" value="{!ihObj.InventoryCheck_PIC__c}"
|
required="{!DESC_RW1['InventoryCheck_PIC__c'] == 'wm'}" >
|
<script>
|
if( document.getElementById('allPage:allForm:searchBlock:ivcheckPIC_mlktp')){
|
document.getElementById('allPage:allForm:searchBlock:ivcheckPIC_mlktp').style.display="none" ;
|
}
|
</script>
|
</apex:inputField>
|
</td>
|
<td class="tdStyle-right">职位:</td>
|
<td class="tdStyle-left">
|
<apex:outputText id="ivcheckPICPost" value="{!ihObj.InventoryCheck_PIC__r.Post__c}" />
|
</td>
|
</tr>
|
</table>
|
<table class="inventoryReportTable" width="100%">
|
<tr>
|
<td class="tdStyle-right">CL6 经理级(审批):</td>
|
<td class="tdStyle-left">
|
<apex:outputText id="ivconfirmJingli" value="{!ihObj.Jingli_Equipment__r.Name}" />
|
</td>
|
<td class="tdStyle-right">CL5 总监级(审批):</td>
|
<td class="tdStyle-left">
|
<apex:outputText id="ivconfirmBuzhang" value="{!ihObj.Buzhang_Equipment__r.Name}" />
|
</td>
|
<td class="tdStyle-right">CL4 高级总监(审批):</td>
|
<td class="tdStyle-left">
|
<apex:outputText id="ivconfirmZongjian" value="{!ihObj.Zongjian_Equipment__r.Name}" />
|
</td>
|
</tr>
|
</table>
|
<hr class="line" />
|
<div class="startInventory">
|
<apex:outputPanel rendered="{!!isConsum}">
|
<!-- 备品盘点 -->
|
<apex:commandButton styleClass="hiddenPrint" value="备品盘点表" onclick="inventory_details(); return false;" />
|
<apex:commandButton styleClass="hiddenPrint" value="备品维修记录" onclick="weixiu_report(); return false;" />
|
<apex:commandButton styleClass="hiddenPrint" value="备品出借记录" onclick="chujie_report(); return false;" />
|
<apex:commandButton styleClass="hiddenPrint" value="备品调拨记录" onclick="transfer_chujie_report(); return false;" />
|
<apex:commandButton styleClass="hiddenPrint" value="备品出借遗失记录" onclick="diushi_report(); return false;" />
|
<!--20210525 you 1650 start-->
|
<apex:commandButton styleClass="hiddenPrint" value="备品调拨遗失记录" onclick="transfer_diushi_report(); return false;" />
|
<!--20210525 you 1650 end-->
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!isConsum}">
|
<!-- 耗材盘点 -->
|
<apex:commandButton styleClass="hiddenPrint" value="耗材盘点表" onclick="inventory_details(); return false;" />
|
<apex:commandButton styleClass="hiddenPrint" value="耗材出借记录" onclick="consum_chujie_report(); return false;" />
|
<apex:commandButton styleClass="hiddenPrint" value="耗材消耗记录" onclick="consum_xiaohao_report(); return false;" />
|
</apex:outputPanel>
|
</div>
|
<apex:outputPanel id="InventoryResult">
|
<table style="{!IF(isConsum,'display: none;','')}" class="inventoryReportTable" border="1px">
|
<tr>
|
<th class="labelStyle">固定资产</th>
|
<th class="labelStyle">在库(含待报废)</th>
|
<th class="labelStyle">维修中</th>
|
<th class="labelStyle">出借中</th>
|
<th class="labelStyle">调拨中</th>
|
<th class="labelStyle">遗失</th>
|
<th class="labelStyle">合计</th>
|
</tr>
|
<apex:repeat var="yy" value="{!yAxis}">
|
<tr>
|
<th class='labelStyle'>{!yy}</th>
|
<apex:repeat var="xx" value="{!xAxis}">
|
<td class="labelStyle">
|
<apex:outputPanel styleClass="labelStyle" layout="none">
|
{!fixAssetMap[xx+yy]}
|
</apex:outputPanel>
|
</td>
|
</apex:repeat>
|
</tr>
|
</apex:repeat>
|
</table>
|
<table style="{!IF(isConsum,'display: none;','')}" class="inventoryReportTable" border="1px" >
|
<tr>
|
<th class="labelStyle">非固定资产</th>
|
<th class="labelStyle">在库(含待报废)</th>
|
<th class="labelStyle">维修中</th>
|
<th class="labelStyle">出借中</th>
|
<th class="labelStyle">调拨中</th>
|
<th class="labelStyle">遗失</th>
|
<th class="labelStyle">合计</th>
|
</tr>
|
<apex:repeat var="yy" value="{!yAxis}">
|
<tr>
|
<th class='labelStyle'>{!yy}</th>
|
<apex:repeat var="xx" value="{!xAxis}">
|
<td class="labelStyle">
|
<apex:outputPanel styleClass="labelStyle" layout="none">
|
{!unfixAssetMap[xx+yy]}
|
</apex:outputPanel>
|
</td>
|
</apex:repeat>
|
</tr>
|
</apex:repeat>
|
|
</table>
|
<table style="{!IF(!isConsum,'display: none;','')}" class="inventoryReportTable" border="1px" >
|
<tr>
|
<th class="labelStyle">耗材</th>
|
<th class="labelStyle">在库(含过期和待报废)</th>
|
<th class="labelStyle">出借中</th>
|
<th class="labelStyle">已消耗</th>
|
<th class="labelStyle">合计</th>
|
</tr>
|
<apex:repeat var="yy" value="{!yAxis}">
|
<tr>
|
<th class='labelStyle'>{!yy}</th>
|
<apex:repeat var="xx" value="{!xAxis}">
|
<td class="labelStyle">
|
<apex:outputPanel styleClass="labelStyle" layout="none">
|
{!consumAssetMap[xx+yy]}
|
</apex:outputPanel>
|
</td>
|
</apex:repeat>
|
</tr>
|
</apex:repeat>
|
</table>
|
<apex:outputPanel rendered="{!isConsum}">
|
[耗材消耗记录报表]显示内容为上次盘点至本次盘点之间消耗的明细。
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!NOT(isConsum)}">
|
[备品出借遗失记录报表]显示内容为上次盘点至本次盘点之间断念的明细。
|
[备品调拨遗失记录报表]显示内容为上次盘点至本次盘点之间断念的明细。
|
</apex:outputPanel>
|
|
<hr style="margin:20px 0 0 0; height:1px; border:0px;"/>
|
<apex:outputPanel styleClass="labelStyle">盘点差异具体情况说明:</apex:outputPanel>
|
<br />
|
<br />
|
<div class="test-textarea showPrint" id="ivtDifferenceDetail"
|
style="min-height: 150px; display: none;" contenteditable="true"
|
oninput="document.getElementById('allPage:allForm:searchBlock:RightArea:ivtDifferenceDetail').value = this.innerHTML;" >
|
{!ihObj.IvtDifference_Detail__c}
|
</div>
|
<apex:inputField styleClass="hiddenPrint" style="width: 100%;"
|
id="ivtDifferenceDetail" required="{!DESC_RW1['IvtDifference_Detail__c'] == 'wm'}"
|
value="{!ihObj.IvtDifference_Detail__c}"
|
onchange="document.getElementById('ivtDifferenceDetail').innerHTML = this.value;"/>
|
<hr class="line" />
|
<apex:outputPanel styleClass="labelStyle">差异资产部门处理意见:</apex:outputPanel>
|
<br />
|
<br />
|
<div class="test-textarea showPrint" id="ivtDifferenceComment"
|
style="min-height: 150px; display: none;" contenteditable="true"
|
oninput="document.getElementById('allPage:allForm:searchBlock:RightArea:ivtDifferenceComment').value = this.innerHTML;"
|
required="{!DESC_RW1['IvtDifference_Comment__c'] == 'wm'}">
|
{!ihObj.IvtDifference_Comment__c}
|
</div>
|
<apex:inputField styleClass="hiddenPrint" style="width: 100%;"
|
id="ivtDifferenceComment" required="{!DESC_RW1['IvtDifference_Comment__c'] == 'wm'}"
|
value="{!ihObj.IvtDifference_Comment__c}"
|
onchange="document.getElementById('ivtDifferenceComment').innerHTML = this.value;"/>
|
<hr class="line"/>
|
<p styleClass="labelStyle">盘点报告审阅人:</p>
|
<table class="inventoryReportTable" style="margin-bottom: 20px; width: 100%;">
|
<apex:repeat var="reportDetail" value="{!drdList}">
|
<tr>
|
<td class='tdStyle-right'>审批人:</td>
|
<td class='tdStyle-left'>{!reportDetail.actor}</td>
|
<td class='tdStyle-right'>备注:</td>
|
<td class='tdStyle-left'>{!reportDetail.comment}</td>
|
<td class='tdStyle-right'>审批结果:</td>
|
<td class='tdStyle-left'>{!reportDetail.stepStatus}</td>
|
</tr>
|
</apex:repeat>
|
</table>
|
<hr class="line" style="margin-top: 50px;" />
|
</apex:outputPanel>
|
</apex:outputPanel>
|
</apex:pageBlock>
|
</apex:form>
|
<apex:outputPanel styleClass="hiddenPrint" id="process">
|
<apex:relatedList list="ProcessSteps" ></apex:relatedList>
|
</apex:outputPanel>
|
</apex:page>
|