瀏覽代碼

病历号可以输入中文

luolei 5 年之前
父節點
當前提交
8c6a01d3d3
共有 2 個文件被更改,包括 12 次插入5 次删除
  1. 2 4
      src/components/Login.vue
  2. 10 1
      src/components/Symptom.vue

+ 2 - 4
src/components/Login.vue

@@ -39,7 +39,6 @@
           :maxlength="type==103?11:type==101?18:type==102?20:type==104?9:30"
           v-model="value"
           @input="changeVal"
-          :type="type==101||type==104?'text':'tel'"
           class="input"
           type="text"
           :placeholder="'请输入'+name"
@@ -244,11 +243,10 @@ export default {
       this.patName = e.target.value.replace(/[`~!@#$%^&)(*_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,'')
     },
     changeVal() {
-      // document.activeElement.scrollIntoViewIfNeeded(true);
       const { type, value } = this;
-      if (type == 102 || type == 103) {
+      if (type == 103) {
         this.value = value.replace(/[^\d]/g, "");
-      } else if (type == 101 || type == 104) {
+      } else if (type == 102 || type == 101 || type == 104) {
         this.value = value.replace(/[^\w\.\/]/ig, "");
       }
     },

+ 10 - 1
src/components/Symptom.vue

@@ -379,8 +379,17 @@ export default {
     deletSymp(item, index) {
       this.delIndex = index;
       this.questId = item.questionId || item.id || item.conceptId;
+
       if (this.chooseSymp.length == 1) {
-        this.delText = "是否删除该信息?<br/>删除后将重新填写预问诊流程 <br/>(已填内容将清除)"
+        if(item.idx != 1){
+          this.delText = "是否删除该信息?<br/>删除后将重新填写预问诊流程 <br/>"
+        }else{
+          this.delText = "是否删除该信息?<br/>删除后将重新填写预问诊流程 <br/>(已填内容将清除)"
+        }
+      }else{
+        if(item.idx != 1){
+          this.delText = "是否删除该信息?"
+        }
       }
       this.showToast = true;
       $(".btscroll").css({'position':'fixed'})