| | |
| | | window.open('/apex/SI_CsvModel?id='+encodeURI(a),'name','features','replace'); |
| | | } |
| | | function QuoteConfirmJs() { |
| | | debugger |
| | | // body... |
| | | blockme(); |
| | | //SWAG-C5DBAL 【委托】 [紧急]SI询价肖寒无法修改报价单 精琢技术 2021/07/30 start |
| | |
| | | var profileId = '{!$User.profileId}'; |
| | | //获取自定义标签 系统管理员简档 |
| | | var adminId = '{!$Label.ProfileId_SystemAdmin}'; |
| | | //XLIU-CHRD8P【委托】【OBSAP】请给OBSAP简档OBA2_询价管理 SI询价报价单确认权限 fy start |
| | | var adminId2 = '{!$Label.ProfileId_SystemAdmin2}'; |
| | | var flag=true; |
| | | var profileId15=profileId; |
| | | if(profileId&&profileId.length>15){ |
| | | profileId15=profileId.substring(0,15); |
| | | } |
| | | if(adminId2.includes(profileId15)){ |
| | | flag=false; |
| | | }else{ |
| | | flag=true; |
| | | } |
| | | //XLIU-CHRD8P【委托】【OBSAP】请给OBSAP简档OBA2_询价管理 SI询价报价单确认权限 fy end |
| | | //只有系统管理员可以点击 |
| | | if(profileId!=adminId){ |
| | | alert('只有系统管理员有权限确认报价!'); |
| | | if(profileId!=adminId&&flag){ |
| | | alert('只有系统管理员和营业助理有权限确认报价!'); |
| | | unblockUI(); |
| | | }else{ |
| | | QuoteConfirm(); |
| | |
| | | <tr> |
| | | <th style="text-align:right">{!IF(displayFlg,$Label.Total_ListPrice,'')}</th> |
| | | <td style="text-align:right;"><apex:outputText id="Estimation_List_Price" style="display:{!IF(displayFlg, '', 'none')}" value="{0, number, ###,##0.00}"><apex:param value="{!qb.Estimation_List_Price}" /></apex:outputText></td> |
| | | <th style="text-align:right;">{!IF(displayFlg,$Label.Total_Price,'')}</th> |
| | | <td><apex:inputField id="quoTotalPrice" value="{!quo.QuoteTotal_Page__c}" style="text-align:right;" rendered="{!displayFlg}" onchange="quoteTotalPriceAction()"/></td> |
| | | <th style="text-align:right;">{!IF(displayFlg,$Label.Total_Price,'')}</th><!--obsap 经销商1合同金额计算 fy html-disabled="true" --> |
| | | <td><apex:inputField id="quoTotalPrice" value="{!quo.QuoteTotal_Page__c}" style="text-align:right;" rendered="{!displayFlg}" onchange="quoteTotalPriceAction()" html-disabled="true"/></td> |
| | | <th style="text-align:right;">{!IF(displayFlg,$Label.Contact_Price,'')}</th> |
| | | |
| | | <!-- 2018/09/28 CHAN-B4YAB8 经销商单价计算 start --> |
| | |
| | | </center> |
| | | </div> |
| | | </td> |
| | | <!-- SWAG-CKDATG 【委托】【OBSAP-报价委托】报价委托项目改善1 fy start --> |
| | | <tr> |
| | | <th style="text-align:right;width:30px;"> </th> |
| | | <th style="text-align:left;width:50px;">{!$ObjectType.Quote.fields.QuotationChange__c.label}: </th> |
| | | <td style="width:190px;"><apex:inputField id="QuotationChange" value="{!quo.QuotationChange__c}" style="width:80px; text-align:right;" /> |
| | | </td> |
| | | <th style="text-align:left;width:50px;">{!$ObjectType.Quote.fields.MainEngineWithoutMonitor__c.label}: </th> |
| | | <td style="width:500px;"><apex:inputField id="RemarksOnChanges" value="{!quo.MainEngineWithoutMonitor__c}" style="width:450px; text-align:left;" /> |
| | | </td> |
| | | <th style="text-align:right;width:50px;"> |
| | | {!$ObjectType.Quote.fields.Interdepartmental__c.label} |
| | | : </th> |
| | | <td style="width:200px;"><apex:inputField id="Interdepartmental" value="{!quo.Interdepartmental__c}" style="text-align:right;width:30px;" /></td> |
| | | </tr> |
| | | <!-- SWAG-CKDATG 【委托】【OBSAP-报价委托】报价委托项目改善1 fy end --> |
| | | <tr> |
| | | <td> </td> |
| | | </tr> |
| | |
| | | <apex:outputLabel id="indexNo" value="{!IF(s.PageObject.Id__c==null,null,s.lineNo + 1)}" style="width:10px;"/> |
| | | </td> |
| | | <td class="dataCell" style="text-align:center;width:150px;"> |
| | | <apex:inputText id="Assert" style="width:120px;" value="{!s.Asset_Model}" onclick="searchProduct('{!s.lineNo}',this.value)" /> |
| | | <apex:inputText id="Assert" style="width:120px;" value="{!s.Asset_Model}" onclick="searchProduct('{!s.lineNo}',this.value, '')" /> |
| | | </td> |
| | | <td class="dataCell" id="{!Text(cnt-1)}:td_Status__c" style="width:100px;"> |
| | | <apex:outputField style="width:75px;" id="Status__c" value="{!s.PageObject.SFDA_Status__c}"/> |