seimin hace 2 años
padre
commit
53aef2daaf

+ 1 - 1
main.js

@@ -12,7 +12,7 @@ import {
12 12
 Vue.prototype.$request = request
13 13
 
14 14
 Vue.config.productionTip = false
15
-console.info('v1.0.6')
15
+console.info('v1.0.7')
16 16
 
17 17
 App.mpType = 'app'
18 18
 

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
2 2
     "name" : "医疗服务中心转运系统",
3 3
     "appid" : "__UNI__FEB1B1E",
4 4
     "description" : "医疗服务中心转运系统",
5
-    "versionName" : "1.0.6",
6
-    "versionCode" : 106,
5
+    "versionName" : "1.0.7",
6
+    "versionCode" : 107,
7 7
     "transformPx" : false,
8 8
     "app-plus" : {
9 9
         /* 5+App特有相关 */

+ 5 - 2
pages/index/index.vue

@@ -119,7 +119,8 @@
119 119
       uni.$on('scancodedate', data => {
120 120
         let code = data.code || '';
121 121
         // 过滤
122
-        code = code.replace(/^2#/, '')
122
+        code = code.replace(/^2#/, '');
123
+        code = code.replace(/^r2#/, '');
123 124
         uni.navigateTo({
124 125
           url: `/pages/search/search?txt=${code}`,
125 126
         })
@@ -155,7 +156,9 @@
155 156
           return this.searchText1;
156 157
         },
157 158
         set: function(newVal) {
158
-          this.searchText1 = newVal.replace(/^2#/, '');
159
+          newVal = newVal.replace(/^2#/, '');
160
+          newVal = newVal.replace(/^r2#/, '');
161
+          this.searchText1 = newVal;
159 162
           if (this.searchText1 && this.flag) {
160 163
             this.flag = false;
161 164
             uni.navigateTo({

+ 14 - 0
pages/patientBuildConfirm/patientBuildConfirm.vue

@@ -150,6 +150,13 @@
150 150
                       skin: "toast",
151 151
                       icon: "error",
152 152
                       content: data.msg || "创建失败",
153
+                      btns:[{
154
+                        click:()=>{
155
+                          uni.navigateTo({
156
+                            url: '/pages/patientList/patientList'
157
+                          })
158
+                        }
159
+                      }]
153 160
                     });
154 161
                   }
155 162
                 });
@@ -261,6 +268,13 @@
261 268
                 skin: "toast",
262 269
                 icon: "error",
263 270
                 content: data.msg || "创建失败",
271
+                btns:[{
272
+                  click:()=>{
273
+                    uni.navigateTo({
274
+                      url: '/pages/patientList/patientList'
275
+                    })
276
+                  }
277
+                }]
264 278
               });
265 279
             }
266 280
           });

+ 4 - 1
pages/search/search.vue

@@ -146,7 +146,9 @@
146 146
           return this.keyword1;
147 147
         },
148 148
         set: function(newVal) {
149
-          this.keyword1 = newVal.replace(/^2#/, '');
149
+          newVal = newVal.replace(/^2#/, '');
150
+          newVal = newVal.replace(/^r2#/, '');
151
+          this.keyword1 = newVal;
150 152
         },
151 153
       },
152 154
     },
@@ -176,6 +178,7 @@
176 178
       inputChange(event = '') {
177 179
         let keyWord = event.detail ? event.detail.value : event;
178 180
         keyWord = keyWord.replace(/^2#/, '');
181
+        keyWord = keyWord.replace(/^r2#/, '');
179 182
         // 长度小于等于0,返回空数组
180 183
         // 长度小于等于4,只搜索床号
181 184
         // 长度大于4,搜索患者住院号,患者二维码,标本码,检查单号