unknown
2023-08-24 ddb0231ef7c5cf2bad9d3f1afc2f733674ad38a5
force-app/main/default/pages/ReceivingNoteStockInRequest.page
@@ -1,10 +1,11 @@
<apex:page controller="ReceivingNoteStockInRequestController" showHeader="false" action="{!init}" id="allPage">
<apex:page controller="ReceivingNoteStockInRequestController" showHeader="false" action="{!init}" id="allPage" lightningStylesheets="true">
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <apex:stylesheet value="{!URLFOR($Resource.ReceivingNotePageCss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.ReceivingNotePageJS)}"/>
    <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
    <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
    <apex:form id="allForm">
        <style>
            table.headTable td   {
@@ -27,6 +28,9 @@
            }
            td.newed {
                color: #f00 !important;
            }
            .input90{
                width: 90%;
            }
        </style>
<script type="text/javascript">
@@ -152,7 +156,7 @@
                            </td>
                        </tr>
                    </table>
                    <table class="searchTable">
                    <table class="searchTable" style="margin-bottom: 5px; margin-top: 5px;">
                        <tr>
                            <td>
                                收货状态:
@@ -189,57 +193,53 @@
                    <table class="searchTable" style="width:100%">
                        <tr>
                            <td>
                            <td style="padding-top:5px;">
                                <!-- 所在地区(本部) -->
                                {!$ObjectType.Asset.fields.Salesdepartment__c.label}
                                <apex:inputField id="appSalesdepartment" value="{!pageB.assetInput.Salesdepartment__c}"/>
                                <!-- lightning改造   zyh   start -->
                                <br />
                                <!-- <apex:inputField id="appSalesdepartment" value="{!pageB.assetInput.Salesdepartment__c}"/> -->
                                <apex:inputField style="width:180px;" id="appSalesdepartment" value="{!pageB.assetInput.Salesdepartment__c}"/>
                                <!-- lightning改造   zyh   end -->
                            </td>
                            <td>
                            <td style="padding-top:5px;">
                                <!-- 所在地区(省) -->
                                {!$ObjectType.Asset.fields.SalesProvince__c.label}
                                <apex:inputField id="appSalesProvince" value="{!pageB.assetInput.SalesProvince__c}"/>
                                <!-- lightning改造   zyh   start -->
                                <br />
                                <!-- <apex:inputField id="appSalesProvince" value="{!pageB.assetInput.SalesProvince__c}"/> -->
                                <apex:inputField style="width:180px;" id="appSalesProvince" value="{!pageB.assetInput.SalesProvince__c}"/>
                                <!-- lightning改造   zyh   end -->
                            </td>
                            <td>
                            <td style="padding-top:5px;">
                                <span>
                                    <!-- 产品分类(GI/SP) -->
                                    {!$ObjectType.Asset.fields.Product_category__c.label}:
                                    <apex:inputField id="appProduct_category" value="{!pageB.assetInput.Product_category__c}"/>
                                    <!-- lightning改造   zyh   start -->
                                    <br />
                                    <!-- <apex:inputField id="appProduct_category" value="{!pageB.assetInput.Product_category__c}"/> -->
                                    <apex:inputField style="width:180px;" id="appProduct_category" value="{!pageB.assetInput.Product_category__c}"/>
                                    <!-- lightning改造   zyh   end -->
                                </span>
                            </td>
                            <td>
                            <td style="padding-top:5px;">
                                <span>
                                    <!-- 备品分类 -->
                                    {!$ObjectType.Asset.fields.Equipment_Type__c.label}:
                                    <apex:inputField id="appEquipment_Type" value="{!pageB.assetInput.Equipment_Type__c}"/>
                                    <!-- lightning改造   zyh   start -->
                                    <br />
                                    <!-- <apex:inputField id="appEquipment_Type" value="{!pageB.assetInput.Equipment_Type__c}"/> -->
                                    <apex:inputField style="width:180px;" id="appEquipment_Type" value="{!pageB.assetInput.Equipment_Type__c}"/>
                                    <!-- lightning改造   zyh   end -->
                                </span>
                            </td>
                            <td>
                                <span>
                                    <!-- 管理种类 -->
                                    {!$ObjectType.Asset.fields.Manage_type__c.label}:
                                    <apex:inputField id="appManage_type" value="{!pageB.assetInput.Manage_type__c}"/>
                                </span>
                            </td>
                            <td>
                                <span>
                                    <!-- 无机身号码设备 -->
                                    {!$ObjectType.Asset.fields.unknow_serial_NO_product__c.label}:
                                    <apex:inputField id="appunknow_serial_NO_product" value="{!pageB.assetInput.unknow_serial_NO_product__c}"/>
                                </span>
                            </td>
                            <td>
                                <span>
                                    <!-- 备品用途附属品 -->
                                    {!$ObjectType.Asset.fields.Loaner_accsessary__c.label}:
                                    <apex:inputField id="appLoaner_accsessary" value="{!pageB.assetInput.Loaner_accsessary__c}"/>
                                </span>
                            </td>
                            <td>
                            <td rowspan="2">
                                <span style="margin-left: 10px;">
                                    <apex:commandButton value="编辑" onclick="blockme();" action="{!changeFixModel}" reRender="allForm" oncomplete="unblockUI();windowResize();"/>
                                    <apex:commandButton style="margin-top: 10px;" value="编辑" onclick="blockme();" action="{!changeFixModel}" reRender="allForm" oncomplete="unblockUI();windowResize();"/>
                                </span>
                                <span style="margin-left: 10px;">
                                    <apex:commandButton value="适用" onclick="applyJs();return false;"/>
                                    <apex:commandButton style="margin-top: 10px;" value="适用" onclick="applyJs();return false;"/>
                                    <script type="text/javascript">
                                    // 适用按钮
                                    function applyJs() {
@@ -488,19 +488,57 @@
                                    <apex:commandButton value="选择配套" action="{!selectRNS}"/>
                                </span> -->
                                <span style="margin-left: 10px;">
                                    <apex:commandButton value="保存" action="{!saveRecord}"/>
                                    <apex:commandButton style="margin-top: 10px;" value="保存" action="{!saveRecord}"/>
                                </span>
                                <span style="margin-left: 10px;">
                                    <apex:commandButton value="驳回" action="{!reject}"/>
                                    <apex:commandButton style="margin-top: 10px;" value="驳回" action="{!reject}"/>
                                </span>
                                <!-- lightning改造   zyh   start -->
                                <br />
                                <!-- lightning改造   zyh   end -->
                                <span style="margin-left: 10px;">
                                    <apex:commandButton style="margin-top: 10px;" value="入库指示" action="{!inStockRequest}"/>
                                </span>
                                <span style="margin-left: 10px;">
                                    <apex:commandButton value="入库指示" action="{!inStockRequest}"/>
                                    <apex:commandButton style="margin-top: 10px;" value="打印收货清单" onclick="window.open('/apex/ReceivingNotePDF?rnid={!parId}');return false;"/>
                                </span>
                                <span style="margin-left: 10px;">
                                    <apex:commandButton value="打印收货清单" onclick="window.open('/apex/ReceivingNotePDF?rnid={!parId}');return false;"/>
                                    <apex:commandButton style="margin-top: 10px;" value="返回" onclick="window.close();"/>
                                </span>
                                <span style="margin-left: 10px;">
                                    <apex:commandButton value="返回" onclick="window.close();"/>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-top:5px;">
                                <span>
                                    <!-- 管理种类 -->
                                    {!$ObjectType.Asset.fields.Manage_type__c.label}:
                                    <!-- lightning改造   zyh   start -->
                                    <br />
                                    <!-- <apex:inputField id="appManage_type" value="{!pageB.assetInput.Manage_type__c}"/> -->
                                    <apex:inputField style="width:180px;" id="appManage_type" value="{!pageB.assetInput.Manage_type__c}"/>
                                    <!-- lightning改造   zyh   end -->
                                </span>
                            </td>
                            <td style="padding-top:5px;">
                                <span>
                                    <!-- 无机身号码设备 -->
                                    {!$ObjectType.Asset.fields.unknow_serial_NO_product__c.label}:
                                    <!-- lightning改造   zyh   start -->
                                    <br />
                                    <!-- <apex:inputField id="appunknow_serial_NO_product" value="{!pageB.assetInput.unknow_serial_NO_product__c}"/> -->
                                    <apex:inputField style="width:180px;" id="appunknow_serial_NO_product" value="{!pageB.assetInput.unknow_serial_NO_product__c}"/>
                                    <!-- lightning改造   zyh   end -->
                                </span>
                            </td>
                            <td style="padding-top:5px;">
                                <span>
                                    <!-- 备品用途附属品 -->
                                    {!$ObjectType.Asset.fields.Loaner_accsessary__c.label}:
                                    <!-- lightning改造   zyh   start -->
                                    <br />
                                    <!-- <apex:inputField id="appLoaner_accsessary" value="{!pageB.assetInput.Loaner_accsessary__c}"/> -->
                                    <apex:inputField style="width:180px;" id="appLoaner_accsessary" value="{!pageB.assetInput.Loaner_accsessary__c}"/>
                                    <!-- lightning改造   zyh   end -->
                                </span>
                            </td>
                        </tr>
@@ -594,7 +632,7 @@
                        <apex:repeat value="{!inputFieldList}" var="info" id="inputField">
                            <td class="dataCellBorder1 intf {!info.value} col_{!info.value} {!IF(var.rnd['Change_Point__c']=='删除','deleted',IF(var.rnd['Change_Point__c']!=NULL,'newed',''))}" align="center">
                                <apex:outputPanel rendered="{!(contains(var.canChangeField, info.value) || var.canChangeField == '') && !contains(var.canNotChangeField, info.value) && pageB.fixMode && var.canChange && var.rnd['Change_Point__c']!='删除'}">
                                    <apex:inputField value="{!var.rnd[info.value]}" onchange="setChangeFlg('{!var.lineNo}')"/>
                                    <apex:inputField value="{!var.rnd[info.value]}" onchange="setChangeFlg('{!var.lineNo}')" styleClass="input90"/>
                                </apex:outputPanel>
                                <apex:outputPanel rendered="{!NOT((contains(var.canChangeField, info.value) || var.canChangeField == '') && !contains(var.canNotChangeField, info.value) && pageB.fixMode && var.canChange && var.rnd['Change_Point__c']!='删除')}">
                                    <apex:outputField value="{!var.rnd[info.value]}"/>