浏览代码

血制品接单并签到添加合并工单提示

maotao 1 年之前
父节点
当前提交
6aead7af97
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      pages/scanning_blood/scanning_blood.vue

+ 4 - 2
pages/scanning_blood/scanning_blood.vue

@@ -142,6 +142,7 @@
142
         if (!this.gotoFlag) {
142
         if (!this.gotoFlag) {
143
           return;
143
           return;
144
         }
144
         }
145
+				this.gotoFlag = false;
145
 				let content = null
146
 				let content = null
146
 				if(this.configs.sendingMergeOrder && 
147
 				if(this.configs.sendingMergeOrder && 
147
 					this.configs.sendingMergeOrder==1 && 
148
 					this.configs.sendingMergeOrder==1 && 
@@ -150,7 +151,6 @@
150
 				}else{
151
 				}else{
151
 					content = "请确认是否接单并签到?"
152
 					content = "请确认是否接单并签到?"
152
 				}
153
 				}
153
-        this.gotoFlag = false;
154
         uni.showModal({
154
         uni.showModal({
155
           title: "提示",
155
           title: "提示",
156
           content: content,
156
           content: content,
@@ -180,6 +180,7 @@
180
                 }
180
                 }
181
               });
181
               });
182
             } else if (result.cancel) {
182
             } else if (result.cancel) {
183
+							this.gotoFlag = true;
183
               console.log("用户点击取消");
184
               console.log("用户点击取消");
184
             }
185
             }
185
           },
186
           },
@@ -219,6 +220,7 @@
219
                 }
220
                 }
220
               });
221
               });
221
             } else if (result.cancel) {
222
             } else if (result.cancel) {
223
+							this.gotoFlag = true;
222
               console.log("用户点击取消");
224
               console.log("用户点击取消");
223
             }
225
             }
224
           },
226
           },
@@ -322,6 +324,7 @@
322
       this.gotoFlag = true;
324
       this.gotoFlag = true;
323
     },
325
     },
324
     onLoad(options) {
326
     onLoad(options) {
327
+			this.hosId = uni.getStorageSync('userData').user.currentHospital.id;
325
       console.log(options);
328
       console.log(options);
326
       this.options = options;
329
       this.options = options;
327
       if (this.options.qrcode) {
330
       if (this.options.qrcode) {
@@ -338,7 +341,6 @@
338
       // #endif
341
       // #endif
339
     },
342
     },
340
 		created(){
343
 		created(){
341
-		  this.hosId = uni.getStorageSync('userData').user.currentHospital.id;
342
 		}
344
 		}
343
   };
345
   };
344
 </script>
346
 </script>