From ebcd50857251111620caa1712c36d2561a07f765 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@prec-tech.com>
Date: 星期四, 27 四月 2023 17:43:53 +0800
Subject: [PATCH] 备品借出 耗材申请
---
force-app/main/default/pages/RentalAgencyReceived.page | 691 ++++++++++++++++++++++++++++----------------------------
1 files changed, 346 insertions(+), 345 deletions(-)
diff --git a/force-app/main/default/pages/RentalAgencyReceived.page b/force-app/main/default/pages/RentalAgencyReceived.page
index 1152ee6..f2cbd46 100644
--- a/force-app/main/default/pages/RentalAgencyReceived.page
+++ b/force-app/main/default/pages/RentalAgencyReceived.page
@@ -1,361 +1,362 @@
-<apex:page controller="RentalAgencyReceivedController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鍔炰簨澶勬瑺鍝佺‘璁�">
- <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
- <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
- <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
- <apex:includeScript value="{!URLFOR($Resource.instascan)}"/>
- <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
-<style type="text/css">
- .hideDropdown select{
- display: none
- }
- .modal {
- display:none;
- position: fixed; /* Stay in place */
- z-index: 10; /* Sit on top */
- left: 0;
- top: 0;
- width: 100%; /* Full width */
- height: 100%; /* Full height */
- overflow: auto; /* Enable scroll if needed */
- background-color: rgb(0,0,0); /* Fallback color */
- background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
- }
-
- /* Modal Content/Box */
- .modal-content {
- background-color: #fefefe;
- margin-left: 6px;
- margin-top: 100px;
- padding: 20px;
- border: 1px solid #888;
- right: 5%;
- position: absolute;
- width: 200px;
- }
- table.list td{
- width:100px;
- border-width: 1px;
- }
- table.list td.col_chk {
- width:30px;
- }
- body .pbBody table.list tr.headerRow td, body .pbBody table.list tr.headerRow th {
- border-width: 1px;
- }
- .col_stockin {
- position: relative;
- display: inline-block;
- border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
- }
-
- /* Tooltip text */
- .col_stockin .tooltiptext {
- visibility: hidden;
- width: 200px;
- /*background-color: #fefdba;*/
- /*color: #fff;*/
- text-align: center;
- padding: 5px 0;
- border-radius: 6px;
-
- /* Position the tooltip text - see examples below! */
- position: absolute;
- z-index: 1;
- }
-
- /* Show the tooltip text when you mouse over the tooltip container */
- .col_stockin:hover .tooltiptext {
- visibility: visible;
- }
-</style>
-<script type="text/javascript">
-function checkMessage() {
- if (j$(escapeVfId('allPage:allForm:done_flg')).val() == 'true') {
- alert("淇濆瓨鎴愬姛");
- }
-}
-function filljsQR(qrcode) {
- if(!qrcode) return;
- // blockme();
- if(scanType == 1){
- j$("input[name$='SlipNo']").val(qrcode);
- }
- else{
- scanAndCheck(qrcode);
- }
- j$("#scanedqr").append("<li>"+qrcode+"</li>");
- j$("#scanedqr").animate({ scrollTop: j$("#scanedqr").prop("scrollHeight")}, 1000);
- // unblockUI();
-}
-
-function checkAll() {
- var checked = j$("input#checker").prop('checked')
- j$("table#tableData_L td.col_chk input[type=checkbox]:enabled:visible").each(function(){
- this.checked = checked;
- })
- if(checked) {
- // blockme();
- checkAllOK();
- }
-}
-var globalChecked = false;
-function checkGlobal() {
- globalChecked = !globalChecked;
- j$("table#tableData_L td.col_chk input[type=checkbox]:enabled:visible").each(function(){
- this.checked = globalChecked;
- })
- j$("input#checker").prop('checked', globalChecked);
- if(globalChecked) {
- // blockme();
- checkAllOK();
- }
-}
-function checkAllOK() {
- j$("#tableData_L td.col_chk input[name=qrcode]").each(function() {
- scanAndCheck(this.value);
- })
-}
-// 娆犲搧纭鍜宑ds杩炲姩
-function changeCDS(lostResult, follow) {
- var cds = j$(lostResult).parent().parent().find('td.col_cds select');
- if(lostResult.value == 'OK'){
- if(!lostResult.disabled) {
- cds.prop('disabled', false);
+<!-- 20230427 zq <apex:page controller="RentalAgencyReceivedController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鍔炰簨澶勬瑺鍝佺‘璁�"> -->
+ <apex:page lightningStylesheets = "true" controller="RentalAgencyReceivedController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鍔炰簨澶勬瑺鍝佺‘璁�">
+ <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
+ <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
+ <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
+ <apex:includeScript value="{!URLFOR($Resource.instascan)}"/>
+ <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
+ <style type="text/css">
+ .hideDropdown select{
+ display: none
}
- if(lostResult.value == 'OK' && follow) {
- cds.val('OK');
+ .modal {
+ display:none;
+ position: fixed; /* Stay in place */
+ z-index: 10; /* Sit on top */
+ left: 0;
+ top: 0;
+ width: 100%; /* Full width */
+ height: 100%; /* Full height */
+ overflow: auto; /* Enable scroll if needed */
+ background-color: rgb(0,0,0); /* Fallback color */
+ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
+ }
+
+ /* Modal Content/Box */
+ .modal-content {
+ background-color: #fefefe;
+ margin-left: 6px;
+ margin-top: 100px;
+ padding: 20px;
+ border: 1px solid #888;
+ right: 5%;
+ position: absolute;
+ width: 200px;
+ }
+ table.list td{
+ width:100px;
+ border-width: 1px;
+ }
+ table.list td.col_chk {
+ width:30px;
+ }
+ body .pbBody table.list tr.headerRow td, body .pbBody table.list tr.headerRow th {
+ border-width: 1px;
+ }
+ .col_stockin {
+ position: relative;
+ display: inline-block;
+ border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
+ }
+
+ /* Tooltip text */
+ .col_stockin .tooltiptext {
+ visibility: hidden;
+ width: 200px;
+ /*background-color: #fefdba;*/
+ /*color: #fff;*/
+ text-align: center;
+ padding: 5px 0;
+ border-radius: 6px;
+
+ /* Position the tooltip text - see examples below! */
+ position: absolute;
+ z-index: 1;
+ }
+
+ /* Show the tooltip text when you mouse over the tooltip container */
+ .col_stockin:hover .tooltiptext {
+ visibility: visible;
+ }
+ </style>
+ <script type="text/javascript">
+ function checkMessage() {
+ if (j$(escapeVfId('allPage:allForm:done_flg')).val() == 'true') {
+ alert("淇濆瓨鎴愬姛");
}
}
- else {
- cds.val('');
- cds.prop('disabled', true);
+ function filljsQR(qrcode) {
+ if(!qrcode) return;
+ // blockme();
+ if(scanType == 1){
+ j$("input[name$='SlipNo']").val(qrcode);
+ }
+ else{
+ scanAndCheck(qrcode);
+ }
+ j$("#scanedqr").append("<li>"+qrcode+"</li>");
+ j$("#scanedqr").animate({ scrollTop: j$("#scanedqr").prop("scrollHeight")}, 1000);
+ // unblockUI();
}
-}
-// 淇敼閫夋嫨椤规椂琛岄鑷姩鎵撳嬀
-function checkLine(raesId) {
- j$("td[name=" + raesId + "]").children("input:enabled:visible")[0].checked=true;
-}
-// 鎵爜鍚庢暣涓竴瑙堜笅鍏ㄩ儴OK
-function scanAndCheck(qrcode) {
- var raesId = j$("input[name='qrcode'][value='" + qrcode + "']").parent().attr('name');
- if(raesId == undefined) {
- alert("璁惧涓嶅瓨鍦紒");
- return;
+
+ function checkAll() {
+ var checked = j$("input#checker").prop('checked')
+ j$("table#tableData_L td.col_chk input[type=checkbox]:enabled:visible").each(function(){
+ this.checked = checked;
+ })
+ if(checked) {
+ // blockme();
+ checkAllOK();
+ }
}
- // 鍙搷浣滅殑涓嬫媺妗嗛�塐K
- j$("#tableData_L tr").each(function() {
- if(j$(this).find('td.col_chk').attr('name') == raesId) {
- j$(this).find('td select:enabled:visible').val('OK');
- }
- })
- // cds杩炲姩OK
- j$('td.col_lost select').each(function(){
- changeCDS(this, true);
- })
- // 琛岄鎵撳嬀
- checkLine(raesId);
-}
-
-</script>
-<div id="myModal" class="modal">
- <!-- Modal content -->
- <div class="modal-content">
- <span class="close" onclick="stopScan()">×</span>
- <p>鎵弿涓�</p>
- <p>Code:<input type="text" id="qrcode"/></p>
- <video playsinline="true" id="preview" style="width: 100%;z-index: 11;transform: scaleX(-1);margin-top: 10px;"></video>
- 鎵爜灞ュ巻锛�
- <ul id="scanedqr" style="list-style-type: none; text-align: center;padding: 0;width: 100%; height: 100px; overflow: auto">
- </ul>
- </div>
-</div>
-<apex:form id="allForm" styleclass="pbBody">
- <apex:actionFunction name="changeStep" rerender="allForm" oncomplete="unblockUI();"/>
- <apex:actionFunction name="redirectPag" action="{!redirectPag}"/>
- <apex:inputHidden value="{!done_flg}" id="done_flg"/>
-
- <apex:pageBlock id="searchBlock" tabStyle="Report" title="鍔炰簨澶勬瑺鍝佺‘璁�">
- <apex:pageBlockButtons location="top">
- 鍥炲簱
- <apex:selectList size="1" value="{!stepName}" onchange="blockme();changeStep();">
- <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
- <apex:selectOption itemValue="娆犲搧纭&CDS" itemLabel="娆犲搧纭&CDS"/>
- <apex:selectOption itemValue="鍥炲簱纭" itemLabel="鍥炲簱纭"/>
- </apex:selectList>
- <apex:commandButton value="鎵竴鎵�" onclick="qrscan(0);return false;" disabled="{!readOnly || stepName == '' }"/>
- <apex:commandButton value="鍏ㄩ��/鍙栨秷鍏ㄩ��" onclick="checkGlobal(); return false;" disabled="{!readOnly}"/>
- <apex:commandButton value="娆犲搧纭&CDS" action="{!lostAndCDS}" onclick="blockme()" disabled="{!readOnly || stepName != '娆犲搧纭&CDS' }" reRender="allForm" oncomplete="unblockUI();checkMessage();"/>
- <apex:commandButton value="鍥炲簱" action="{!stockup}" onclick="blockme();" rerender="allForm" disabled="{! !stockupActive || stepName != '鍥炲簱纭'}" oncomplete="unblockUI();checkMessage();"/>
- </apex:pageBlockButtons>
- 娆犲搧纭
- <apex:selectList size="1" value="{!lostResult}">
- <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
- <apex:selectOption itemValue="OK" itemLabel="OK"/>
- <apex:selectOption itemValue="娆犲搧" itemLabel="娆犲搧"/>
- </apex:selectList>
- CDS缁撴灉
- <apex:selectList size="1" value="{!cdsResult}">
- <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
- <apex:selectOption itemValue="OK" itemLabel="OK"/>
- </apex:selectList>
-
- <apex:commandButton value="妫�绱�" onclick="blockme();" action="{!filter}" reRender="allForm" oncomplete="unblockUI();"/>
- <apex:commandButton value="娓呴櫎" onclick="blockme();" action="{!clearFilter}" reRender="allForm" oncomplete="unblockUI();"/>
- </apex:pageBlock>
- <apex:outputPanel id="message">
- <apex:pageMessages />
- </apex:outputPanel>
- <div id="out_Div_L">
- <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableHeader_L">
- <tr class="headerRow" height="30px">
- <td class="col_chk" align="center">
- 鍏ㄩ��<input type='checkbox' onClick='checkAll();' id="checker"/>
- </td>
- <td>鍨嬪彿</td>
- <td>鍥哄畾璧勪骇缂栧彿(Key)</td>
- <td>鏈鸿韩缂栧彿</td>
- <td style="{!IF(stepName='娆犲搧纭&CDS','background-color: #cfeef9','')}">娆犲搧纭</td>
- <td style="{!IF(stepName='娆犲搧纭&CDS','background-color: #cfeef9','')}">CDS</td>
- <!-- <td style="width: 110px;" class="onetoone"> 涓�瀵逛竴涓讳綋 </td> -->
- <td style="{!IF(stepName='鍥炲簱纭','background-color: #cfeef9','')}">鍥炲簱纭</td>
- </tr>
- </table>
+ var globalChecked = false;
+ function checkGlobal() {
+ globalChecked = !globalChecked;
+ j$("table#tableData_L td.col_chk input[type=checkbox]:enabled:visible").each(function(){
+ this.checked = globalChecked;
+ })
+ j$("input#checker").prop('checked', globalChecked);
+ if(globalChecked) {
+ // blockme();
+ checkAllOK();
+ }
+ }
+ function checkAllOK() {
+ j$("#tableData_L td.col_chk input[name=qrcode]").each(function() {
+ scanAndCheck(this.value);
+ })
+ }
+ // 娆犲搧纭鍜宑ds杩炲姩
+ function changeCDS(lostResult, follow) {
+ var cds = j$(lostResult).parent().parent().find('td.col_cds select');
+ if(lostResult.value == 'OK'){
+ if(!lostResult.disabled) {
+ cds.prop('disabled', false);
+ }
+ if(lostResult.value == 'OK' && follow) {
+ cds.val('OK');
+ }
+ }
+ else {
+ cds.val('');
+ cds.prop('disabled', true);
+ }
+ }
+ // 淇敼閫夋嫨椤规椂琛岄鑷姩鎵撳嬀
+ function checkLine(raesId) {
+ j$("td[name=" + raesId + "]").children("input:enabled:visible")[0].checked=true;
+ }
+ // 鎵爜鍚庢暣涓竴瑙堜笅鍏ㄩ儴OK
+ function scanAndCheck(qrcode) {
+ var raesId = j$("input[name='qrcode'][value='" + qrcode + "']").parent().attr('name');
+ if(raesId == undefined) {
+ alert("璁惧涓嶅瓨鍦紒");
+ return;
+ }
+ // 鍙搷浣滅殑涓嬫媺妗嗛�塐K
+ j$("#tableData_L tr").each(function() {
+ if(j$(this).find('td.col_chk').attr('name') == raesId) {
+ j$(this).find('td select:enabled:visible').val('OK');
+ }
+ })
+ // cds杩炲姩OK
+ j$('td.col_lost select').each(function(){
+ changeCDS(this, true);
+ })
+ // 琛岄鎵撳嬀
+ checkLine(raesId);
+ }
+
+ </script>
+ <div id="myModal" class="modal">
+ <!-- Modal content -->
+ <div class="modal-content">
+ <span class="close" onclick="stopScan()">×</span>
+ <p>鎵弿涓�</p>
+ <p>Code:<input type="text" id="qrcode"/></p>
+ <video playsinline="true" id="preview" style="width: 100%;z-index: 11;transform: scaleX(-1);margin-top: 10px;"></video>
+ 鎵爜灞ュ巻锛�
+ <ul id="scanedqr" style="list-style-type: none; text-align: center;padding: 0;width: 100%; height: 100px; overflow: auto">
+ </ul>
+ </div>
</div>
- <apex:outputPanel id="detail">
- <div id="in_Div_L">
- <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableData_L">
- <apex:variable value="{!0}" var="Cnt" />
- <apex:repeat id="dataline_L" value="{!esdList}" var="esdInfo">
- <tr class="" id="tableData_L_{!Cnt}" style="{!IF(esdInfo.hidden,'display: none','')}">
- <td class="dataCellBorder1 col_chk" align="center" name="{!esdInfo.rec.Rental_Apply_Equipment_Set__c}">
- <apex:inputCheckbox styleClass="rowchkcls" value="{!esdInfo.checked}" rendered="{!esdInfo.rec.Is_Body__c}"
- id="rowCheck"
- onchange="if(this.checked) {scanAndCheck('{!esdInfo.rec.Fixture_QRCode_F__c}');}"/>
- <input type="hidden" name="qrcode" value="{!esdInfo.rec.Fixture_QRCode_F__c}"/>
- </td>
- <td>{!esdInfo.rec.Fixture_Model_No__c}</td>
- <td>{!esdInfo.rec.Internal_Asset_number_c__c}</td>
- <td>{!esdInfo.rec.SerialNumber_F__c}</td>
- <td class="col_lost" style="{!IF(stepName='娆犲搧纭&CDS','background-color: #cfeef9','')}">
- <apex:selectList size="1" value="{!esdInfo.lostFinished}" disabled="{!!esdInfo.editable || stepName!='娆犲搧纭&CDS' || esdInfo.rec.Arrival_in_wh__c}"
- onchange="changeCDS(this, true);checkLine('{!esdInfo.rec.Rental_Apply_Equipment_Set__c}');">
- <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
- <apex:selectOption itemValue="OK" itemLabel="OK"/>
- <apex:selectOption itemValue="娆犲搧" itemLabel="娆犲搧"/>
- </apex:selectList>
- </td>
- <td class="col_cds" style="{!IF(stepName='娆犲搧纭&CDS','background-color: #cfeef9','')}">
- <apex:selectList size="1" value="{!esdInfo.cdsFinished}" disabled="{!!esdInfo.editable || stepName!='娆犲搧纭&CDS' || esdInfo.rec.Arrival_in_wh__c}"
- onchange="checkLine('{!esdInfo.rec.Rental_Apply_Equipment_Set__c}');">
- <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
- <apex:selectOption itemValue="OK" itemLabel="OK"/>
- </apex:selectList>
- </td>
- <td class="col_stockin" style="{!IF(stepName='鍥炲簱纭','background-color: #cfeef9','')}">
- <apex:selectList size="1" value="{!esdInfo.rec.Arrival_wh_Result_Agency__c}"
- disabled="{!NOT(esdInfo.editable && stepName=='鍥炲簱纭' && esdInfo.cdsFinished=='OK' && esdInfo.canChangeResult)}"
- onchange="checkLine('{!esdInfo.rec.Rental_Apply_Equipment_Set__c}');">
- <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
- <apex:selectOption itemValue="OK" itemLabel="OK"/>
- <apex:selectOption itemValue="绉昏嚦鎶ュ簾鍖�" itemLabel="绉昏嚦鎶ュ簾鍖�"/>
- <apex:selectOption itemValue="寰呬慨鐞�" itemLabel="寰呬慨鐞�"/>
- </apex:selectList>
- <span class="tooltiptext">{!esdInfo.errorInfo}</span>
- </td>
- </tr>
- <apex:variable value="{!Cnt+1}" var="Cnt" />
- </apex:repeat>
+ <apex:form id="allForm" styleclass="pbBody">
+ <apex:actionFunction name="changeStep" rerender="allForm" oncomplete="unblockUI();"/>
+ <apex:actionFunction name="redirectPag" action="{!redirectPag}"/>
+ <apex:inputHidden value="{!done_flg}" id="done_flg"/>
+
+ <apex:pageBlock id="searchBlock" tabStyle="Report" title="鍔炰簨澶勬瑺鍝佺‘璁�">
+ <apex:pageBlockButtons location="top">
+ 鍥炲簱
+ <apex:selectList size="1" value="{!stepName}" onchange="blockme();changeStep();">
+ <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
+ <apex:selectOption itemValue="娆犲搧纭&CDS" itemLabel="娆犲搧纭&CDS"/>
+ <apex:selectOption itemValue="鍥炲簱纭" itemLabel="鍥炲簱纭"/>
+ </apex:selectList>
+ <apex:commandButton value="鎵竴鎵�" onclick="qrscan(0);return false;" disabled="{!readOnly || stepName == '' }"/>
+ <apex:commandButton value="鍏ㄩ��/鍙栨秷鍏ㄩ��" onclick="checkGlobal(); return false;" disabled="{!readOnly}"/>
+ <apex:commandButton value="娆犲搧纭&CDS" action="{!lostAndCDS}" onclick="blockme()" disabled="{!readOnly || stepName != '娆犲搧纭&CDS' }" reRender="allForm" oncomplete="unblockUI();checkMessage();"/>
+ <apex:commandButton value="鍥炲簱" action="{!stockup}" onclick="blockme();" rerender="allForm" disabled="{! !stockupActive || stepName != '鍥炲簱纭'}" oncomplete="unblockUI();checkMessage();"/>
+ </apex:pageBlockButtons>
+ 娆犲搧纭
+ <apex:selectList size="1" value="{!lostResult}">
+ <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
+ <apex:selectOption itemValue="OK" itemLabel="OK"/>
+ <apex:selectOption itemValue="娆犲搧" itemLabel="娆犲搧"/>
+ </apex:selectList>
+ CDS缁撴灉
+ <apex:selectList size="1" value="{!cdsResult}">
+ <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
+ <apex:selectOption itemValue="OK" itemLabel="OK"/>
+ </apex:selectList>
+
+ <apex:commandButton value="妫�绱�" onclick="blockme();" action="{!filter}" reRender="allForm" oncomplete="unblockUI();"/>
+ <apex:commandButton value="娓呴櫎" onclick="blockme();" action="{!clearFilter}" reRender="allForm" oncomplete="unblockUI();"/>
+ </apex:pageBlock>
+ <apex:outputPanel id="message">
+ <apex:pageMessages />
+ </apex:outputPanel>
+ <div id="out_Div_L">
+ <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableHeader_L">
+ <tr class="headerRow" height="30px">
+ <td class="col_chk" align="center">
+ 鍏ㄩ��<input type='checkbox' onClick='checkAll();' id="checker"/>
+ </td>
+ <td>鍨嬪彿</td>
+ <td>鍥哄畾璧勪骇缂栧彿(Key)</td>
+ <td>鏈鸿韩缂栧彿</td>
+ <td style="{!IF(stepName='娆犲搧纭&CDS','background-color: #cfeef9','')}">娆犲搧纭</td>
+ <td style="{!IF(stepName='娆犲搧纭&CDS','background-color: #cfeef9','')}">CDS</td>
+ <!-- <td style="width: 110px;" class="onetoone"> 涓�瀵逛竴涓讳綋 </td> -->
+ <td style="{!IF(stepName='鍥炲簱纭','background-color: #cfeef9','')}">鍥炲簱纭</td>
+ </tr>
</table>
</div>
- </apex:outputPanel>
- <apex:outputPanel id="checEventFrame">
- <script>
- j$('td.col_lost select').each(function(){
- changeCDS(this, false);
- })
- </script>
- </apex:outputPanel>
-</apex:form>
-<script type="text/javascript">
- var standalone = window.navigator.standalone,
- userAgent = window.navigator.userAgent.toLowerCase(),
- safari = /safari/.test( userAgent ),
- ios = /iphone|ipod|ipad/.test( userAgent ),
- ver = '';
- if (ios) {
- ver = (navigator.userAgent).match(/OS (\d)?\d_\d(_\d)?/i)[0].split('_')[0].replace("OS ","");
+ <apex:outputPanel id="detail">
+ <div id="in_Div_L">
+ <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableData_L">
+ <apex:variable value="{!0}" var="Cnt" />
+ <apex:repeat id="dataline_L" value="{!esdList}" var="esdInfo">
+ <tr class="" id="tableData_L_{!Cnt}" style="{!IF(esdInfo.hidden,'display: none','')}">
+ <td class="dataCellBorder1 col_chk" align="center" name="{!esdInfo.rec.Rental_Apply_Equipment_Set__c}">
+ <apex:inputCheckbox styleClass="rowchkcls" value="{!esdInfo.checked}" rendered="{!esdInfo.rec.Is_Body__c}"
+ id="rowCheck"
+ onchange="if(this.checked) {scanAndCheck('{!esdInfo.rec.Fixture_QRCode_F__c}');}"/>
+ <input type="hidden" name="qrcode" value="{!esdInfo.rec.Fixture_QRCode_F__c}"/>
+ </td>
+ <td>{!esdInfo.rec.Fixture_Model_No__c}</td>
+ <td>{!esdInfo.rec.Internal_Asset_number_c__c}</td>
+ <td>{!esdInfo.rec.SerialNumber_F__c}</td>
+ <td class="col_lost" style="{!IF(stepName='娆犲搧纭&CDS','background-color: #cfeef9','')}">
+ <apex:selectList size="1" value="{!esdInfo.lostFinished}" disabled="{!!esdInfo.editable || stepName!='娆犲搧纭&CDS' || esdInfo.rec.Arrival_in_wh__c}"
+ onchange="changeCDS(this, true);checkLine('{!esdInfo.rec.Rental_Apply_Equipment_Set__c}');">
+ <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
+ <apex:selectOption itemValue="OK" itemLabel="OK"/>
+ <apex:selectOption itemValue="娆犲搧" itemLabel="娆犲搧"/>
+ </apex:selectList>
+ </td>
+ <td class="col_cds" style="{!IF(stepName='娆犲搧纭&CDS','background-color: #cfeef9','')}">
+ <apex:selectList size="1" value="{!esdInfo.cdsFinished}" disabled="{!!esdInfo.editable || stepName!='娆犲搧纭&CDS' || esdInfo.rec.Arrival_in_wh__c}"
+ onchange="checkLine('{!esdInfo.rec.Rental_Apply_Equipment_Set__c}');">
+ <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
+ <apex:selectOption itemValue="OK" itemLabel="OK"/>
+ </apex:selectList>
+ </td>
+ <td class="col_stockin" style="{!IF(stepName='鍥炲簱纭','background-color: #cfeef9','')}">
+ <apex:selectList size="1" value="{!esdInfo.rec.Arrival_wh_Result_Agency__c}"
+ disabled="{!NOT(esdInfo.editable && stepName=='鍥炲簱纭' && esdInfo.cdsFinished=='OK' && esdInfo.canChangeResult)}"
+ onchange="checkLine('{!esdInfo.rec.Rental_Apply_Equipment_Set__c}');">
+ <apex:selectOption itemValue="" itemLabel="--鏃�--"/>
+ <apex:selectOption itemValue="OK" itemLabel="OK"/>
+ <apex:selectOption itemValue="绉昏嚦鎶ュ簾鍖�" itemLabel="绉昏嚦鎶ュ簾鍖�"/>
+ <apex:selectOption itemValue="寰呬慨鐞�" itemLabel="寰呬慨鐞�"/>
+ </apex:selectList>
+ <span class="tooltiptext">{!esdInfo.errorInfo}</span>
+ </td>
+ </tr>
+ <apex:variable value="{!Cnt+1}" var="Cnt" />
+ </apex:repeat>
+ </table>
+ </div>
+ </apex:outputPanel>
+ <apex:outputPanel id="checEventFrame">
+ <script>
+ j$('td.col_lost select').each(function(){
+ changeCDS(this, false);
+ })
+ </script>
+ </apex:outputPanel>
+ </apex:form>
+ <script type="text/javascript">
+ var standalone = window.navigator.standalone,
+ userAgent = window.navigator.userAgent.toLowerCase(),
+ safari = /safari/.test( userAgent ),
+ ios = /iphone|ipod|ipad/.test( userAgent ),
+ ver = '';
+ if (ios) {
+ ver = (navigator.userAgent).match(/OS (\d)?\d_\d(_\d)?/i)[0].split('_')[0].replace("OS ","");
+ }
+
+ let scanner = new Instascan.Scanner({ video: document.getElementById('preview'), scanPeriod: 5 ,mirror: false});
+ scanner.addListener('scan', function (content) {
+ filljsQR(content);
+ });
+
+ function qrscan(stype) {
+ scanType = stype;
+ if (!standalone && !safari && ios) {
+ window.location.href="sfqr://scan";
+ } else {
+ j$(".modal").show();
+ Instascan.Camera.getCameras().then(function (cameras) {
+ if (cameras.length > 0) {
+ if (ver >= 13) {
+ scanner.start(cameras[1]);
+ } else {
+ scanner.start(cameras[0]);
+ }
+ } else {
+ console.error('No cameras found.');
+ }
+ }).catch(function (e) {
+ console.error(e);
+ });
+ }
}
-
- let scanner = new Instascan.Scanner({ video: document.getElementById('preview'), scanPeriod: 5 ,mirror: false});
- scanner.addListener('scan', function (content) {
- filljsQR(content);
- });
-
- function qrscan(stype) {
- scanType = stype;
- if (!standalone && !safari && ios) {
- window.location.href="sfqr://scan";
- } else {
- j$(".modal").show();
- Instascan.Camera.getCameras().then(function (cameras) {
- if (cameras.length > 0) {
- if (ver >= 13) {
- scanner.start(cameras[1]);
- } else {
- scanner.start(cameras[0]);
- }
- } else {
- console.error('No cameras found.');
- }
- }).catch(function (e) {
- console.error(e);
+
+ function stopScan() {
+ scanner.stop().then(function () {
+ j$(".modal").hide();
});
+ j$("#scanedqr").children().remove();
}
- }
-
- function stopScan() {
- scanner.stop().then(function () {
- j$(".modal").hide();
+ j$(document).ready(function(){
+ j$( '#qrcode' ).unbind();
+ j$( '#qrcode' ).keypress( function ( e ) {
+ if ( e.which == 13 ) {
+ filljsQR(j$( '#qrcode' ).val());
+ return false;
+ }
+ });
});
- j$("#scanedqr").children().remove();
- }
- j$(document).ready(function(){
- j$( '#qrcode' ).unbind();
- j$( '#qrcode' ).keypress( function ( e ) {
- if ( e.which == 13 ) {
- filljsQR(j$( '#qrcode' ).val());
- return false;
- }
- });
- });
-
- //wangweipeng 2021/09/01 SFDC-C4H4BM start
- window.onload = function popupWarn(){
- hintNoReceiptForm();
- }
-
- //濡傛灉鏄粠鍗曪紝骞朵笖浠庡崟娌℃湁涓婁紶绛炬敹鍗曪紝閭d箞寮瑰嚭涓�涓彁绀烘
- function hintNoReceiptForm(){
- var isImportReceiptForm = {!isImportReceiptForm};
- if(isImportReceiptForm){
- var hintContent = '';
- var isAdvocateFollow = {!isAdvocateFollow};
- if(isAdvocateFollow){
- hintContent = '鐢宠鍗曞皻鏈笂浼犵鏀跺崟锛屾槸鍚︾户缁�';
- }else{
- hintContent = '涓诲崟灏氭湭涓婁紶绛炬敹鍗曪紝鏄惁缁х画';
- }
- if(!confirm(hintContent)){
- //鍒ゆ柇鏄惁鏄痯ad绔�
- if (!standalone && !safari && ios) {
- //涓婁竴姝�
- window.history.back(-1);
+
+ //wangweipeng 2021/09/01 SFDC-C4H4BM start
+ window.onload = function popupWarn(){
+ hintNoReceiptForm();
+ }
+
+ //濡傛灉鏄粠鍗曪紝骞朵笖浠庡崟娌℃湁涓婁紶绛炬敹鍗曪紝閭d箞寮瑰嚭涓�涓彁绀烘
+ function hintNoReceiptForm(){
+ var isImportReceiptForm = {!isImportReceiptForm};
+ if(isImportReceiptForm){
+ var hintContent = '';
+ var isAdvocateFollow = {!isAdvocateFollow};
+ if(isAdvocateFollow){
+ hintContent = '鐢宠鍗曞皻鏈笂浼犵鏀跺崟锛屾槸鍚︾户缁�';
}else{
- redirectPag();
+ hintContent = '涓诲崟灏氭湭涓婁紶绛炬敹鍗曪紝鏄惁缁х画';
+ }
+ if(!confirm(hintContent)){
+ //鍒ゆ柇鏄惁鏄痯ad绔�
+ if (!standalone && !safari && ios) {
+ //涓婁竴姝�
+ window.history.back(-1);
+ }else{
+ redirectPag();
+ }
}
}
}
- }
- //wangweipeng 2021/09/01 SFDC-C4H4BM end
-</script>
-</apex:page>
\ No newline at end of file
+ //wangweipeng 2021/09/01 SFDC-C4H4BM end
+ </script>
+ </apex:page>
\ No newline at end of file
--
Gitblit v1.9.1