|
@@ -120,7 +120,7 @@
|
120
|
120
|
taskTypeList: [], //任务类型列表
|
121
|
121
|
pickerTitle: "", //一键建单picker的title
|
122
|
122
|
debounceInp: null,
|
123
|
|
- keyword: "",
|
|
123
|
+ keyword1: "",
|
124
|
124
|
searchList: {
|
125
|
125
|
patientList: [],
|
126
|
126
|
specimenList: [],
|
|
@@ -141,6 +141,14 @@
|
141
|
141
|
computed: {
|
142
|
142
|
...mapState("login", ["loginInfo"]),
|
143
|
143
|
...mapState('other', ["deptDisplay"]),
|
|
144
|
+ keyword: {
|
|
145
|
+ get: function() {
|
|
146
|
+ return this.keyword1;
|
|
147
|
+ },
|
|
148
|
+ set: function(newVal) {
|
|
149
|
+ this.keyword1 = newVal.replace(/^2#/, '');
|
|
150
|
+ },
|
|
151
|
+ },
|
144
|
152
|
},
|
145
|
153
|
methods: {
|
146
|
154
|
...mapMutations('other', ['changeQucikCreateOrderType', 'clearPatientBuildData', 'changePatientBuildData']),
|
|
@@ -167,6 +175,7 @@
|
167
|
175
|
//监听输入
|
168
|
176
|
inputChange(event = '') {
|
169
|
177
|
let keyWord = event.detail ? event.detail.value : event;
|
|
178
|
+ keyWord = keyWord.replace(/^2#/, '');
|
170
|
179
|
// 长度小于等于0,返回空数组
|
171
|
180
|
// 长度小于等于4,只搜索床号
|
172
|
181
|
// 长度大于4,搜索患者住院号,患者二维码,标本码,检查单号
|
|
@@ -206,7 +215,7 @@
|
206
|
215
|
this.reachBottom();
|
207
|
216
|
},
|
208
|
217
|
onPullDownRefresh() {
|
209
|
|
- this.inputChange(this.keyword)
|
|
218
|
+ this.inputChange(this.keyword);
|
210
|
219
|
},
|
211
|
220
|
created() {
|
212
|
221
|
this.debounceInp = debounce(this.inputChange, 500);
|
|
@@ -217,7 +226,7 @@
|
217
|
226
|
onLoad(queryParams) {
|
218
|
227
|
this.queryParams = queryParams;
|
219
|
228
|
this.keyword = queryParams.txt;
|
220
|
|
- this.inputChange(queryParams.txt);
|
|
229
|
+ this.inputChange(this.keyword);
|
221
|
230
|
},
|
222
|
231
|
mounted() {
|
223
|
232
|
this.$refs.search.inputVal = this.queryParams.txt;
|