| | |
| | | width: 9%; |
| | | } |
| | | .inputTextStyle input { |
| | | width: 90%; |
| | | width: 96%; |
| | | } |
| | | .inputTextStyle select { |
| | | width: 95%; |
| | |
| | | } |
| | | .startInventoryButtonStyle { |
| | | margin-left: 15%; |
| | | width: 12%; |
| | | width: 11%; |
| | | } |
| | | .labelStyle { |
| | | width: 9%; |
| | |
| | | width: 9%; |
| | | } |
| | | .inputTextStyle input { |
| | | width: 90%; |
| | | width: 96%; |
| | | } |
| | | .inputTextStyle select { |
| | | width: 95%; |
| | |
| | | j$('.inventoryResultsTable').hide(); |
| | | } else { |
| | | if (hasChange == false) { |
| | | j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).removeClass('overlay'); |
| | | /*j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).removeClass('overlay'); |
| | | j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).hide(); |
| | | j$('.inventoryResultsTable').show(); |
| | | j$('#descdiv').show(); |
| | | j$('#descdiv').show();*/ |
| | | doInit(); |
| | | } else { |
| | | j$.confirm({ |
| | | title: '确认', |
| | |
| | | useBootstrap: false, |
| | | buttons: { |
| | | OK: function () { |
| | | j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).removeClass('overlay'); |
| | | /*j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).removeClass('overlay'); |
| | | j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).hide(); |
| | | j$('.inventoryResultsTable').show(); |
| | | j$('#descdiv').show(); |
| | | j$('#descdiv').show();*/ |
| | | doInit(); |
| | | }, |
| | | cancel: { |
| | | text: '取消', // With spaces and symbols |
| | |
| | | </div> |
| | | |
| | | </div> |
| | | <apex:actionFunction name="doInit" action="{!init}" rerender="recordBlock" onComplete="unblockUI()" /> |
| | | <apex:actionFunction name="startInventory" action="{!startInventory}" rerender="allForm" onComplete="unblockUI()" /> |
| | | <!-- update by rentx 20210827 start 耗材盘点方案 --> |
| | | <!-- <apex:actionFunction name="searchBtnFunc" action="{!searchBtn}" rerender="allForm" onComplete="unblockUI();changeFullScreen(true);" /> --> |
| | |
| | | </table> |
| | | </apex:pageBlock> |
| | | </apex:outputPanel> --> |
| | | |
| | | <!-- <apex:outputPanel layout="block" style="width: 14%; float: left;"> |
| | | <apex:pageBlock mode="maindetail"> |
| | | <table style='width:140px;height: 120px'> |
| | | <tr><td class="checkButtonStyle"><apex:commandButton value="盘点" rendered="{!!inventoryBlueFlag}" onclick="location.href='/apex/InventoryResultRecord'; return false"/></td></tr> |
| | | <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="盘点" rendered="{!inventoryBlueFlag}"/></td></tr> |
| | | <tr><td class="checkButtonStyle"><apex:commandButton value="备品盘点报告" rendered="{!!rentBlueFlag}" onclick="location.href='{!$Page.InventoryReport}'; return false" /></td></tr> |
| | | <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="备品盘点报告" rendered="{!rentBlueFlag}"/></td></tr> |
| | | <tr><td class="checkButtonStyle"><apex:commandButton value="耗材盘点报告" rendered="{!!consumBlueFlag}" onclick="location.href='{!$Page.InventoryReport}?isConsum=true'; return false" /></td></tr> |
| | | <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="耗材盘点报告" rendered="{!consumBlueFlag}"/></td></tr> |
| | | <tr><td></td></tr> |
| | | </table> |
| | | </apex:pageBlock> |
| | | </apex:outputPanel> --> |
| | | <!-- 右侧检索区 --> |
| | | <apex:outputPanel layout="block"> |
| | | <apex:pageBlock mode="maindetail" id="maindetailId"> |
| | |
| | | <tr> |
| | | <td></td> |
| | | <td colspan="10"> |
| | | <input class="startInventoryButtonStyle blueStyle" style="margin-left: 0" type="button" value="开始盘点" onclick="startjs(this);return false;" /> |
| | | <input class="startInventoryButtonStyle blueStyle" style="margin-left: 2px" type="button" value="开始盘点" onclick="startjs(this);return false;" /> |
| | | </td> |
| | | </tr> |
| | | <!-- <tr> |
| | |
| | | </div> --> |
| | | </td> |
| | | </tr> |
| | | <tr><td style="height: 23px;"></td></tr> |
| | | <tr> |
| | | <td class="labelStyle">盘亏/盘盈</td> |
| | | <td class="inputTextStyle"> |
| | |
| | | <td class="blankStyle"> |
| | | </td> |
| | | <td class="blankStyle"></td> |
| | | <td class="blankStyle"></td> |
| | | <td class="blankStyle"> |
| | | <!-- 20230912 ljh start --> |
| | | <!-- <td class="searchButtonStyle"> --> |
| | | <td width="11%"> |
| | | <!-- 20230912 ljh end --> |
| | | <div style="display: table-cell; width: 143px"> |
| | | <apex:commandButton action="{!showResult}" value="显示盘点结果" reRender="allForm" onclick="blockme()" oncomplete="unblockUI()" rendered="{!canDoFlg}"/> |
| | | </div> |
| | | </td> |
| | | <td class="searchButtonStyle" colspan="2"> |
| | | <div style="display: table-cell; width: 80px"> |
| | |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr><td height="23px"></td></tr> |
| | | <tr style="{!IF(bieCunFangDi=='上海 备品中心' || hasConsumAsset,'','display: none;')}"> |
| | | <td class="labelStyle">备品类别</td> |
| | | <td class="inputTextStyle"> |
| | |
| | | <apex:param value="{!consumInventoryHeader.Inventory_Start_Date__c}"></apex:param> |
| | | </apex:outputtext> |
| | | </div> |
| | | <apex:outputPanel id="message2" layout="block" style="width: 530px"> |
| | | <apex:outputPanel id="message2" layout="block" style="width: 100%"> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <div class="searchButtonStyle1" id="scanAction_div"> |
| | | <!-- 耗材追溯方案 检索耗材时 修改"扫描"为"pad扫描" --> |
| | | <div style="display: table-cell; width: 100px"> |
| | | <div style="display: table-cell; width: 18%;"> |
| | | <apex:commandButton value="iPad扫描" rendered="{!assetCategory == '耗材' && bieCunFangDi == '上海 备品中心'}" onclick="qrsacn();return false"/> |
| | | <apex:commandButton value="扫描" rendered="{!!(assetCategory == '耗材' && bieCunFangDi == '上海 备品中心') }" onclick="qrsacn();return false"/> |
| | | </div> |
| | | <div style="display: table-cell; width: 80px"><apex:commandButton value="保存" onclick="savejs();return false"/></div> |
| | | <div style="display: table-cell; width: 80px"><apex:commandButton value="返回" onclick="changeFullScreen(false); return false"/></div> |
| | | <div style="display: table-cell; width: 13%;"><apex:commandButton value="保存" onclick="savejs();return false"/></div> |
| | | <div style="display: table-cell; width: 13%;"><apex:commandButton value="返回" onclick="changeFullScreen(false); return false"/></div> |
| | | |
| | | <!-- 耗材追溯方案 添加 "码枪扫描"输入框 add by rentx 20210911 start --> |
| | | <apex:outputText rendered="{!assetCategory == '耗材' && bieCunFangDi = '上海 备品中心'}"> |
| | | <div style="display: table-cell; width: 80px"> |
| | | <div style="display: table-cell; width: 19%;"> |
| | | <apex:commandButton onclick="document.getElementById('maqCode').focus();return false" value="码枪扫描" /> |
| | | </div> |
| | | <div style="display: table-cell; width: 500px" > |
| | | <input value="" autofocus="autofocus" id="maqCode" width="100%" style="background-color: #ffffff" onkeypress="return onKeyPress(event)" /> |
| | | <input value="" autofocus="autofocus" id="maqCode" width="100%" style="background-color: #ffffff;height: 32px;" onkeypress="return onKeyPress(event)" /> |
| | | </div> |
| | | <!-- <div style="display: table-cell;" > |
| | | <div style="float: left;display: table-cell;" class="btn" >码枪扫描 </div> |
| | |
| | | <!-- 耗材追溯方案 添加 "码枪扫描"输入框 add by rentx 20210911 end --> |
| | | |
| | | </div> |
| | | <table border="1px" style="width: 510px;" > |
| | | <table border="1px" style="width: 95%;" > |
| | | <tr> |
| | | <td class="labelStyle" style="width: 130px;">型号</td> |
| | | <td class="labelStyle" style="width: 60px;">机身号</td> |
| | | <apex:outputText rendered="{!angecylookrole}"> <!-- 1650--><td class="labelStyle" style="width: 60px;">货架号</td></apex:outputText> |
| | | <td class="labelStyle" style="width: 90px;">所在地区(本部)</td> |
| | | <td class="labelStyle" style="width: 60px;">货区</td> |
| | | <td class="labelStyle" style="width: 60px;">在库数量</td> |
| | | <td class="labelStyle" style="width: 60px;">盘点结果</td> |
| | | <td class="labelStyle" style="width: 40px;">盘盈</td> |
| | | <td class="labelStyle" style="width: 40px;">盘亏</td> |
| | | <td class="labelStyle">型号</td> |
| | | <td class="labelStyle">机身号</td> |
| | | <apex:outputText rendered="{!angecylookrole}"> <!-- 1650--><td class="labelStyle">货架号</td></apex:outputText> |
| | | <td class="labelStyle">所在地区(本部)</td> |
| | | <td class="labelStyle">货区</td> |
| | | <td class="labelStyle">在库数量</td> |
| | | <td class="labelStyle">盘点结果</td> |
| | | <td class="labelStyle">盘盈</td> |
| | | <td class="labelStyle">盘亏</td> |
| | | <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230801 by lc Start --> |
| | | <apex:outputText rendered="{!assetCategory!='备品'}"><td class="labelStyle" style="width: 60px;">有效期至</td></apex:outputText> |
| | | <apex:outputText rendered="{!assetCategory!='备品'}"><td class="labelStyle" style="width: 50px;">效期</td></apex:outputText> |
| | | <td class="labelStyle" style="width: 50px;">外观</td> |
| | | <td class="labelStyle" style="width: 50px;">包装</td> |
| | | <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230801 by lc End --> |
| | | </tr> |
| | | <apex:repeat value="{!inventoryDetailList}" var="ivDetail" id="inventroyRow"> |
| | | <tr class="{!IF(assetCategory!='耗材','displayRow','hiddenRow')}"> |
| | |
| | | <td class="labelStyle"> |
| | | <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '个体管理' && ivDetail.Asset_Status__c != '冻结'}"> |
| | | <apex:inputField onchange="hasChangeFunc()" html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-accsessary="{!ivDetail.OneToOne_Accsessary__c}" html-data-main="{!ivDetail.OneToOne_Body__c}" html-data-mid="{!ivDetail.Main_Asset__c}" |
| | | html-disabled="true" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '冻结'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 40px"/> |
| | | html-disabled="true" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '冻结'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 80%"/> |
| | | <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '个体管理'}"> |
| | | <br/> |
| | | <button onclick="lostGeTi(this);return false;">手动</button> |
| | |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '数量管理' || ivDetail.Asset_Status__c == '冻结'}"> |
| | | <apex:inputField onchange="hasChangeFunc()" html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-accsessary="{!ivDetail.OneToOne_Accsessary__c}" html-data-main="{!ivDetail.OneToOne_Body__c}" html-data-mid="{!ivDetail.Main_Asset__c}" |
| | | html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '冻结'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 40px" /> |
| | | html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '冻结'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 80%" /> |
| | | </apex:outputPanel> |
| | | </td> |
| | | <td class="labelStyle"><apex:outputPanel rendered="{!ivDetail.Inventory_Count__c != null && ivDetail.Inventory_Count__c - ivDetail.Amount__c > 0}">{!ivDetail.Inventory_Count__c - ivDetail.Amount__c}</apex:outputPanel></td> |
| | | <td class="labelStyle"><apex:outputPanel rendered="{!ivDetail.Inventory_Count__c != null && ivDetail.Amount__c - ivDetail.Inventory_Count__c > 0}">{!ivDetail.Amount__c - ivDetail.Inventory_Count__c}</apex:outputPanel></td> |
| | | <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230801 by lc Start --> |
| | | <td class="labelStyle"><apex:inputField value="{!ivDetail.Appearance_Check_Result__c}" style="width: 50px" /></td> |
| | | <td class="labelStyle"><apex:inputField value="{!ivDetail.Package_Check_Result__c}" style="width: 50px" /></td> |
| | | <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230801 by lc End --> |
| | | </tr> |
| | | </apex:repeat> |
| | | <apex:repeat value="{!consumInventoryDetailList}" var="ivDetail" id="consumInventroyRow"> |
| | |
| | | <td class="labelStyle"> |
| | | <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '个体管理' && ivDetail.Asset_Status__c != '冻结'}"> |
| | | <apex:inputField onchange="hasChangeFunc()" html-data-accsessary="false" html-data-barcode="{!ivDetail.Barcode__c}" html-data-ProductSerialNo="{!ivDetail.Asset__r.Product_Serial_No__c}" html-data-salesdepartment="{!ivDetail.Salesdepartment__c}" |
| | | html-disabled="true" html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '冻结'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 40px"/> |
| | | html-disabled="true" html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '冻结'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 80%"/> |
| | | <!-- add by rentx 20210823 start 耗材盘点时记录code --> |
| | | <apex:inputHidden value="{!ivDetail.HCCodes__c}" /> |
| | | <!-- add by rentx 20210823 start 耗材盘点时记录code --> |
| | |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '数量管理' || ivDetail.Asset_Status__c == '冻结'}"> |
| | | <apex:inputField onchange="hasChangeFunc()" html-data-accsessary="false" html-data-barcode="{!ivDetail.Barcode__c}" html-data-ProductSerialNo="{!ivDetail.Asset__r.Product_Serial_No__c}" html-data-salesdepartment="{!ivDetail.Salesdepartment__c}" |
| | | html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '冻结'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 40px" /> |
| | | html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '冻结'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 80%" /> |
| | | <!-- add by rentx 20210819 start --> |
| | | <apex:inputHidden value="{!ivDetail.HCCodes__c}" /> |
| | | <!-- add by rentx 20210819 start --> |
| | |
| | | </td> |
| | | <td class="labelStyle"><apex:outputPanel rendered="{!ivDetail.Inventory_Count__c != null && ivDetail.Inventory_Count__c - ivDetail.Amount__c > 0}">{!ivDetail.Inventory_Count__c - ivDetail.Amount__c}</apex:outputPanel></td> |
| | | <td class="labelStyle"><apex:outputPanel rendered="{!ivDetail.Inventory_Count__c != null && ivDetail.Amount__c - ivDetail.Inventory_Count__c > 0}">{!ivDetail.Amount__c - ivDetail.Inventory_Count__c}</apex:outputPanel></td> |
| | | <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230801 by lc Start --> |
| | | <td class="labelStyle"> |
| | | <apex:outputtext value="{0, date, yyyyMMdd}"> |
| | | <apex:param value="{!ivDetail.Consumable_Guaranteen_end__c}" /> |
| | | </apex:outputtext> |
| | | </td> |
| | | <td class="labelStyle"><apex:inputField value="{!ivDetail.Expiration_Check_Result__c}" style="width: 50px" /></td> |
| | | <td class="labelStyle"><apex:inputField value="{!ivDetail.Appearance_Check_Result__c}" style="width: 50px" /></td> |
| | | <td class="labelStyle"><apex:inputField value="{!ivDetail.Package_Check_Result__c}" style="width: 50px" /></td> |
| | | <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230801 by lc End --> |
| | | </tr> |
| | | </apex:repeat> |
| | | </table> |