From 01f207d979d6be17c8cdec293feab48828c0ec3e Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期五, 08 四月 2022 14:22:52 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG

---
 force-app/main/default/pages/SearchVisitor.page |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/pages/SearchVisitor.page b/force-app/main/default/pages/SearchVisitor.page
index c5aeee8..d754bb0 100644
--- a/force-app/main/default/pages/SearchVisitor.page
+++ b/force-app/main/default/pages/SearchVisitor.page
@@ -8,6 +8,10 @@
     <!-- 20220217 Li Jun for PIPL End -->
     <script type="text/javascript">
         AWSService.sfSessionId = '{!GETSESSIONID()}';
+        //鍍忓尰鐢熷尯鍒�(鑱屽姟)涓嬫媺鍒楄〃鍔犲叆****
+        // var o = new Option();
+        // o.text = '****';
+        // document.getElementById('Page:mainForm:idSearchVisitor:updateContactDoctorDivision').add(o);
         function addContact(){
             window.opener.showModal();
             
@@ -188,6 +192,10 @@
                 let y=window.event.y; 
                 createDiv.style.left=x;  
                 createDiv.style.top=y;  
+                createDiv.style.marginLeft='20px';
+                createDiv.style.marginTop='-40px';
+                createDiv.style.height='80px';  
+            	createDiv.style.width='120px';
                 createDiv.style.background = "#dddddd";
                 createDiv.style.position = "absolute";
                 parentNode.appendChild(createDiv);  
@@ -269,6 +277,8 @@
             return JSON.stringify([{
                 lastName : document.getElementById("Page:mainForm:idSearchVisitor:updateContactLastName").value,
                 phone : document.getElementById("Page:mainForm:idSearchVisitor:updateContactPhone").value,
+                type : document.getElementById("Page:mainForm:idSearchVisitor:updateContactType").value,
+                doctorDivision1 : document.getElementById("Page:mainForm:idSearchVisitor:updateContactDoctorDivision").value,
                 dataId:selectedAwsDataId
             }]);
         }
@@ -280,6 +290,19 @@
                 return;
             }
             blockme();
+            let es = document.getElementsByTagName('select')
+            for(let ei in es){
+                let e = es[ei];
+                for(let opi in e.options){
+                    let op = e.options[opi];
+                    if(!op)continue;
+                    if(op.value == "*****" && op.selected){
+                        unblockUI();
+                        alert('涓嬫媺妗嗕笉鑳戒富鍔ㄩ�夋嫨瀵嗘枃閫夐」')
+                        return;
+                    }
+                }
+            }
             ProcessPIForAWS({},GetEditObj());
         }
         function Trans(){

--
Gitblit v1.9.1