From 15791f058aef8363b7bc690f49325e8fa1241287 Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期一, 29 五月 2023 16:32:13 +0800
Subject: [PATCH] 目标录入页面修改

---
 force-app/main/default/pages/SetPersonalProductTarget.page |   65 +++++++++++++++++++++++---------
 1 files changed, 47 insertions(+), 18 deletions(-)

diff --git a/force-app/main/default/pages/SetPersonalProductTarget.page b/force-app/main/default/pages/SetPersonalProductTarget.page
index 9d8b487..24ecf1a 100644
--- a/force-app/main/default/pages/SetPersonalProductTarget.page
+++ b/force-app/main/default/pages/SetPersonalProductTarget.page
@@ -1,4 +1,4 @@
-<apex:page id="allPage" showHeader="false" sidebar="false" Controller="SetPersonalProductTargetController" action="{!init}">
+<apex:page id="allPage" showHeader="false" sidebar="false" Controller="SetPersonalProductTargetController" action="{!init}" lightningStylesheets="true">
 <head>
 <title>鎷呭綋鑰呴噸鐐逛骇鍝佺洰鏍囪瀹�</title>
 <!-- 2018骞�7鏈�25鏃� SWAG-B2Z344 by 寮犵帀灞�
@@ -8,6 +8,34 @@
 <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
 <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 <style type="text/css">
+
+
+
+     body input[type="text"], .slds-vf-scope input[type="text"] {
+        padding: 0;
+    }
+    table > tbody > tr > th, .slds-vf-scope .listViewport table > tr > td, .slds-vf-scope .listViewport table > tr > th {
+        padding: .2rem;
+    }
+    body .bPageBlock.apexDefaultPageBlock {
+        border-top: 2px solid #cfc1c1;
+    }
+    
+    
+    #crossTable th ,#topTable th, #topTable ,#bodyTable{
+        border-right: 1px solid #c9c9c9;
+    }
+    
+    #leftTable , #crossTable {
+        border-left: 1px solid #c9c9c9;
+    }
+
+    #leftTable,#bodyTable {
+        border-bottom: 1px solid #c9c9c9;
+    }
+
+
+
 .StandLeft{
 
 }
@@ -139,7 +167,7 @@
     // 2018骞�7鏈�6鏃� SWAG-AZHBH7  娣诲姞UpdateJs 璋冪敤Apex 涓璘pdate鍑芥暟 by 寮犵帀灞�
 function UpdateJs() {
     blockme_dark();
-    if (window.confirm('纭畾瑕佸弽搴斿埌鐩爣鍚楋紵')) {
+    if (window.confirm('纭畾瑕佸弽鏄犲埌鐩爣鍚楋紵')) {
         Update();
     } else {
         unblockUI();
@@ -244,7 +272,7 @@
 }
 //CHAN-BDQBLX  20210129 ljh end 
 /*****************************/
-var heightAjustment = 160;
+var heightAjustment = 180;
 var widthAjustment = 15;
 function windowResize() {
     blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:headBlock')).height() - j$('div#MessageBlock').height() - heightAjustment;
@@ -394,7 +422,7 @@
             <apex:outputPanel id="popupBox" layout="block">
                 <input type="file" id="file_input" name="attFile" accept=".csv" /><br/>
                 <center>
-                    <apex:commandButton value="纭" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" />
+                    <apex:commandButton value="纭" onclick="remoteLocationPost(); return false;" style="width: 20%; " />
                     <apex:commandButton value="鍙栨秷" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" />
                 </center>
             </apex:outputPanel>
@@ -416,32 +444,32 @@
         <table id="ButtonTable" border="0" >
             <tr>
                 <td>
-                    鏈儴&nbsp;<apex:selectList value="{!salesDpt}" size="1" style="width:120px;" disabled="{!!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)}" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList>&nbsp;&nbsp;&nbsp;
-                    鐪�&nbsp;<apex:inputField id="province" value="{!loginUser.Province__c}" style="width:90px;" onchange="searchByProvinceJs();return false;"></apex:inputField>&nbsp;&nbsp;&nbsp;
+                    鏈儴 <apex:selectList value="{!salesDpt}" size="1" style="width:120px;" disabled="{!!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)}" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList>   
+                    鐪� <apex:inputField id="province" value="{!loginUser.Province__c}" style="width:90px;" onchange="searchByProvinceJs();return false;"></apex:inputField>   
                 <script type="text/javascript">
                     var isadmin = {!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)};
                     if (!isadmin) {
                         j$(escapeVfId('allPage:allForm:headBlock:province')).attr("disabled",true);
                     }
                 </script>
-                    鑱岀&nbsp;<apex:selectList id="jobCategory" value="{!loginUser.Job_Category__c}" size="1" style="width:80px;" onchange="searchByFilterJs();return false;">
+                    鑱岀 <apex:selectList id="jobCategory" value="{!loginUser.Job_Category__c}" size="1" style="width:80px;" onchange="searchByFilterJs();return false;">
                         <apex:selectOptions value="{!userJobCategorys}"/>
-                    </apex:selectList>&nbsp;&nbsp;&nbsp;
-                    {!$ObjectType.User.fields.Consumable_sales__c.Label}&nbsp;<apex:inputField value="{!loginUser.Consumable_sales__c}" style="width:80px;" onchange="searchByFilterJs();return false;"></apex:inputField>&nbsp;&nbsp;&nbsp;
-                    浜у搧鎷呭綋&nbsp;
+                    </apex:selectList>   
+                    {!$ObjectType.User.fields.Consumable_sales__c.Label} <apex:inputField value="{!loginUser.Consumable_sales__c}" style="width:80px;" onchange="searchByFilterJs();return false;"></apex:inputField>   
+                    浜у搧鎷呭綋 
                     <apex:selectList value="{!productUser}" size="1" style="width:100px;" onchange="searchByFilterJs();return false;">
                         <apex:selectOptions value="{!productUserOptions}"/>
-                    </apex:selectList>&nbsp;&nbsp;&nbsp;
-                    <!-- xiongyl閲嶇偣浜у搧&nbsp;
+                    </apex:selectList>   
+                    <!-- xiongyl閲嶇偣浜у搧 
                     <apex:selectList value="{!opp.Important_Key_product_category__c}" id="impKey" size="1" style="width:280px;" onchange="searchByImpKeyJs();return false;">
                         <apex:selectOptions value="{!impProductOptions}"/>
-                    </apex:selectList>&nbsp;&nbsp;&nbsp;!-->
-                    <apex:inputCheckBox id="checkAll" value="{!checkAll}" onchange="searchByFilterJs(); false;"/><apex:outputLabel value="缁忕悊浠ヤ笅" for="checkAll"/>&nbsp;&nbsp;&nbsp;
+                    </apex:selectList>   !-->
+                    <apex:inputCheckBox id="checkAll" value="{!checkAll}" onchange="searchByFilterJs(); false;"/><apex:outputLabel value="缁忕悊浠ヤ笅" for="checkAll"/>   
                     <input type="hidden" id="targetCategory" value="{!target_category}"/>
                     <input type="hidden" id="titileSize" value="{titileSize}"/>
                 </td>
                 <td align="right" width="10%">
-                    <apex:commandButton value="鍙嶅簲鍒扮洰鏍�" rerender="dummy" onclick="UpdateJs();return false;" rendered="{!Not(isPast)}"/>
+                    <apex:commandButton value="鍙嶆槧鍒扮洰鏍�" rerender="dummy" onclick="UpdateJs();return false;" rendered="{!Not(isPast)}"/>
                 </td>
                 <!--CHAN-BDQBLX  20210129 ljh start -->
                 <td>
@@ -511,7 +539,7 @@
                 </table>
         </div>
           <div id="out_Div">
-         <table  class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" border="0"  cellspacing="0" cellpadding="0" id="topTable">
+         <table  class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;width:100%;" border="0"  cellspacing="0" cellpadding="0" id="topTable">
               <thead>
                 <tr class="headerRow" id="header_R">
                     <apex:repeat value="{!opportunity_category}" var="oc" id="opportunityCategoryRepeat_R_2">
@@ -536,8 +564,9 @@
             </tbody>
             </table>
         </div>
+        <div style="clear:both;height:0px;"></div>
         <div id="in_Div_L" >
-            <table class="list" style="border-bottom-width: 0px;table-layout:fixed;" border="0"  cellspacing="0" cellpadding="0" id="leftTable">
+            <table class="list" style="table-layout:fixed;"  cellspacing="0" cellpadding="0" id="leftTable">
                     <apex:variable value="{!1}" var="cnt" />
                     <apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat_L">
                     <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" id="dataRow_L">
@@ -557,7 +586,7 @@
         </div>
       
         <div id="in_Div">
-        <table  class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" border="0"  cellspacing="0" cellpadding="0" id="bodyTable">
+        <table  class="list" style="border-collapse: collapse;table-layout:fixed;"  cellspacing="0" cellpadding="0" id="bodyTable">
             
             <tbody>
                  </tbody>

--
Gitblit v1.9.1