Kaynağa Gözat

独立填写单占位符医生患者同步有无

zhouna 6 yıl önce
ebeveyn
işleme
c8032fbeec
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      src/components/preTreat/PubSelect.vue

+ 3 - 2
src/components/preTreat/PubSelect.vue

@@ -213,9 +213,9 @@
         }
         const maps = {0:'${input_输入}',1:'${number_输入}'};
         const key = this.focusName;
-        this.rows[i][key] = this.rows[i][key]+maps[type];
+        this.rows[i].name = this.rows[i].name+maps[type];
+        this.rows[i].description = this.rows[i].description+maps[type];
         this.disableBtn = true;
-        //this.rows[i].description = this.rows[i].description+maps[type];
       },
       handleExclu(){
         const i = this.focusOn;
@@ -253,6 +253,7 @@
         if(hasPlace&&this.disableBtn==false){
           this.disableBtn = true;
         }else if(!hasPlace&&this.disableBtn==true){
+          this.rows[i][isName?'description':'name'] = this.rows[i][isName?'description':'name'].replace(/(\$\{number_\S*?\})|(\$\{input_\S*?\})/g,'');
           this.disableBtn = false;
         }
         if(pureName.length > 30) {