| | |
| | | function saveJs(){ |
| | | save(); |
| | | } |
| | | // //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start |
| | | // function checkPartSupplyFinishDateJs(){ |
| | | // var today = new Date(); |
| | | // var todayNew = today.toLocaleDateString(); |
| | | // var check; |
| | | // var num = 100000; |
| | | // for (var i = 0; i < 100; i++) { |
| | | // check = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:'+i+':consumablesCountproRowCheckbox')).attr('checked'); |
| | | // if (check == 'checked'){ |
| | | // num = i; |
| | | // } |
| | | // } |
| | | // if (num != 100000){ |
| | | // var partSupplyFinishDate = new Date(j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + num + ':partSupplyFinishDate')).value()); |
| | | // if (partSupplyFinishDate != 'Invalid Date'){ |
| | | // var partSupplyFinishDateNew = partSupplyFinishDate.toLocaleDateString(); |
| | | // if (partSupplyFinishDateNew > todayNew){ |
| | | // alert('预计'+ partSupplyFinishDateNew +'零件即将停产,请送修前与工厂及RC联络'); |
| | | // } |
| | | // if (partSupplyFinishDateNew <= todayNew){ |
| | | // alert('该型号零件已经停产,有特殊需求,请送修前与工厂RC联络'); |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | // //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 end |
| | | |
| | | function ClearJs(){ |
| | | blockme(); |
| | |
| | | </apex:actionFunction> |
| | | <apex:actionFunction name="save" action="{!save}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter();SumCompute()"> |
| | | </apex:actionFunction> |
| | | |
| | | |
| | | <apex:outputPanel id="allPanel"> |
| | | <apex:pageBlock id="allBlock"> |
| | |
| | | <!-- <td> |
| | | <apex:commandButton onclick="saveJs();" value="确定" rerender="dummy" /> |
| | | </td> --> |
| | | |
| | | |
| | | </tr> |
| | | <!-- <td> |
| | |
| | | |
| | | <th>选择</th> |
| | | <th>保有设备名称</th> |
| | | <th>状态</th> |
| | | <!-- 20220927 ljh XLIU-CJN62G update start--> |
| | | <!-- <th>状态</th> --> |
| | | |
| | | <th>机身编码</th> |
| | | <th>设备型号</th> |
| | | <!-- <th>信息来源</th> --> |
| | | <th>集中管理库存</th> |
| | | <th>医院</th> |
| | | <th>战略科室</th> |
| | | <th>科室</th> |
| | | <th>发货日</th> |
| | | <th>多年保修期至</th> |
| | | <th>最近一期维修合同结束日</th> |
| | | <!-- <th>集中管理库存</th> --> |
| | | <!-- 20220927 ljh XLIU-CJN62G update end--> |
| | | </tr> |
| | | <apex:repeat value="{!choiceAssetInfoRecordsview}" var="records" id="ConsumableorderdetailsTable"> |
| | | <tr class="dataRow"> |
| | | <td> |
| | | <!-- <apex:inputCheckbox value="{!records.check}" onclick="CheckSize(this);" id="consumablesCountproRowCheckbox" onchange="checkPartSupplyFinishDateJs(); return false;" disabled="{!!records.canSelect}"/> --> |
| | | <apex:inputCheckbox value="{!records.check}" onclick="CheckSize(this);" id="consumablesCountproRowCheckbox" disabled="{!!records.canSelect}"/> |
| | | </td> |
| | | |
| | |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Name}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <!-- <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Status}"/> |
| | | </td> |
| | | </td> --> |
| | | |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.SerialNumber}"/> |
| | | </td> |
| | | <!-- <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Product2.Asset_Model_No__c}"/> |
| | | </td> --> |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Information_From__c}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Ji_Zhong_Guan_Li_Ku_Cun__c}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Hospital__r.Name}"/> |
| | |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Account.Name}"/> |
| | | </td> |
| | | <!-- <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Product2.Asset_Model_No__c}"/> |
| | | </td> --> |
| | | <td class="dataCell"> |
| | | <apex:outputField value="{!records.ast.Posting_Date__c}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <apex:outputField value="{!records.ast.Extend_Gurantee_DateTo__c}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <apex:outputField value="{!records.ast.CurrentContract_End_Date__c}"/> |
| | | </td> |
| | | <!--XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start --> |
| | | <!-- <td> |
| | | <apex:inputField value="{!records.ast.PartSupplyFinishDate__c}" id="partSupplyFinishDate" style="display: none" showDatePicker="false"/> |
| | | </td> --> |
| | | <!--XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 end --> |
| | | |
| | | </tr> |
| | | </apex:repeat> |
| | | </table> |