seimin 1 week ago
parent
commit
97eb7f8430

+ 6 - 2
App.vue

@@ -146,11 +146,11 @@
146 146
   .uni-picker-action-confirm {
147 147
     color: #49b856 !important;
148 148
   }
149
-	
149
+
150 150
 	.selected-item-active{
151 151
 		border-color: #49b856 !important;;
152 152
 	}
153
-	
153
+
154 154
   .footerPadding {
155 155
     padding-bottom: 50rpx !important;
156 156
   }
@@ -163,6 +163,10 @@
163 163
     color: red !important;
164 164
   }
165 165
 
166
+  .green{
167
+    color: #49B856 !important;
168
+  }
169
+
166 170
   .fweight {
167 171
     font-weight: bold !important;
168 172
   }

+ 10 - 10
pages/specimenPackage/checkPage/checkPage.vue

@@ -11,7 +11,7 @@
11 11
         <view class="column" v-for="item in specimenPackageList" :key="item.id">
12 12
           <view class="row bd">
13 13
             <view class="name">{{item.deptName}}</view>
14
-            <view class="value" :class="{ red: item.sacnState === 0 }">{{item.sacnState === 0 ? '未扫描' : '已扫描'}}</view>
14
+            <view class="value" :class="[ item.sacnState === 0 ? 'red' : 'green']">{{item.sacnState === 0 ? '未扫描' : '已扫描'}}</view>
15 15
           </view>
16 16
           <view class="row">
17 17
             <view class="name">{{item.pack_code}}</view>
@@ -24,15 +24,15 @@
24 24
     <view class="foot_btn_spe">
25 25
       <view class="column">
26 26
         <template v-if="!config.drugsEndManual">
27
-          <view :class="[(scanNum == totalNum) ? 'btn' : 'btnW100']" @click="Scanning_again()">继续扫描</view>
28
-          <view class="btn" v-if="scanNum == totalNum" @click="scanCode()">扫一扫核对交接</view>
27
+          <view class="btnW100" v-if="scanNum != totalNum" @click="Scanning_again()">继续扫描</view>
28
+          <view class="btnW100" v-if="scanNum == totalNum" @click="scanCode()">扫一扫交接</view>
29 29
         </template>
30
-        
30
+
31 31
         <!-- 三个按钮-样式 -->
32 32
         <template v-else-if="config.drugsEndManual">
33
-          <view class="btn" v-if="scanNum == totalNum" @click="scanCode()">扫一扫核对交接</view>
34
-          <view class="btn" v-if="scanNum == totalNum" @click="fillInManually(config.drugsEndManual.value)">{{config.drugsEndManual.name}}核对交接</view>
35
-          <view class="btnW100"  @click="Scanning_again()">继续扫描</view>
33
+          <view class="btn" v-if="scanNum == totalNum" @click="scanCode()">扫一扫交接</view>
34
+          <view class="btn" v-if="scanNum == totalNum" @click="fillInManually(config.drugsEndManual.value)">{{config.drugsEndManual.name}}交接</view>
35
+          <view class="btnW100" v-if="scanNum != totalNum"  @click="Scanning_again()">继续扫描</view>
36 36
         </template>
37 37
       </view>
38 38
     </view>
@@ -90,7 +90,7 @@
90 90
       			model:"all"
91 91
       		}
92 92
         };
93
-      
93
+
94 94
         post("/simple/data/fetchDataList/hospitalConfig",postData).then((result) => {
95 95
             if (result.status == 200) {
96 96
       				this.keyArr = []
@@ -450,7 +450,7 @@
450 450
         });
451 451
 
452 452
         Promise.all([info$, config$]).then(result => {
453
-          
453
+
454 454
           let [info, config] = result || [];
455 455
 
456 456
           if(info.state == 200){
@@ -475,7 +475,7 @@
475 475
               title: config.msg || "接口获取数据失败!",
476 476
             });
477 477
           }
478
-          
478
+
479 479
           post(`/nurse/specimen/getSpePackageScanCount`, {endDeptId: this.workOrder.endDepts[0].id}).then((ress) => {
480 480
             uni.hideLoading();
481 481
             if(ress.state == 200){

+ 24 - 10
pages/specimenPackage/createOrder/createOrder.vue

@@ -49,9 +49,9 @@
49 49
     <view class="foot_btn_spe" v-if="config.id">
50 50
       <view class="column">
51 51
         <!-- 需要核对 -->
52
-        <template v-if="config.drugsStartCheck === 1">
52
+        <template v-if="(queryObj.type === 'build' || queryObj.type === 'receive') && (config.drugsCreateSign === 1 || config.drugsReceiveSign === 1) && config.drugsStartCheck === 1">
53 53
           <!-- 两个按钮-样式 设计如此,别BB -->
54
-          <template v-if="(queryObj.type === 'build' || queryObj.type === 'receive') && (config.drugsCreateSign === 1 || config.drugsReceiveSign === 1) && !config.drugsStartManual">
54
+          <template v-if="!config.drugsStartManual">
55 55
             <view class="btn" @click="goIndex()">返回</view>
56 56
             <view class="btn" @click="createOrBuildOrder(undefined, 'scan')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单签到扫一扫</view>
57 57
             <view class="btn" @click="createOrBuildOrder(undefined, 'hand')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1 && config.drugsStartManual">建单签到{{config.drugsStartManual.name}}</view>
@@ -60,7 +60,7 @@
60 60
           </template>
61 61
           
62 62
           <!-- 三个按钮-样式 设计如此,别BB -->
63
-          <template v-else-if="(queryObj.type === 'build' || queryObj.type === 'receive') && (config.drugsCreateSign === 1 || config.drugsReceiveSign === 1) && config.drugsStartManual">
63
+          <template v-else>
64 64
             <view class="btn" @click="createOrBuildOrder(undefined, 'scan')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单签到扫一扫</view>
65 65
             <view class="btn" @click="createOrBuildOrder(undefined, 'hand')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1 && config.drugsStartManual">建单签到{{config.drugsStartManual.name}}</view>
66 66
             <view class="btn" @click="createOrBuildOrder(orderId, 'scan')" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单签到扫一扫</view>
@@ -69,8 +69,8 @@
69 69
           </template>
70 70
         </template>
71 71
         <!-- 不需要核对 -->
72
-        <template  v-if="config.drugsStartCheck !== 1">
73
-          <view class="btn" @click="goIndex()">返回</view>
72
+        <template  v-if="(queryObj.type === 'build' || queryObj.type === 'receive') && config.drugsStartCheck !== 1">
73
+          <view :class="((queryObj.type === 'build' && config.drugsCreateSign === 1) || (queryObj.type === 'receive' && config.drugsReceiveSign === 1)) ? 'btn' : 'btnW100'" @click="goIndex()">返回</view>
74 74
           <view class="btn" @click="createOrBuildOrder()" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单并签到</view>
75 75
           <view class="btn" @click="createOrBuildOrder(orderId)" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单并签到</view>
76 76
         </template>
@@ -481,10 +481,24 @@
481 481
                 uni.hideLoading();
482 482
                 if (ress.state == 200) {
483 483
                   if(ress.data.msg){
484
-                    uni.showToast({
485
-                      icon: "none",
486
-                      title: ress.data.msg || "接口获取数据失败!",
487
-                    });
484
+                    if(ress.data.state == 502){
485
+                      // 工单已建单,返回列表
486
+                      uni.showToast({
487
+                        icon: "none",
488
+                        mask: true,
489
+                        title: ress.data.msg,
490
+                      });
491
+                      setTimeout(() => {
492
+                        uni.redirectTo({
493
+                          url: `/pages/receiptpage/receiptpage`,
494
+                        });
495
+                      },300)
496
+                    }else{
497
+                      uni.showToast({
498
+                        icon: "none",
499
+                        title: ress.data.msg || "接口获取数据失败!",
500
+                      });
501
+                    }
488 502
                   }else{
489 503
                     this.workOrder = {
490 504
                       id: ress.data.orderId,
@@ -523,7 +537,7 @@
523 537
               this.orderId = this.queryObj.orderId;
524 538
               this.config = res.data.taskTypeConfig || {};
525 539
               let tube = res.data.tube || [];
526
-              this.tube = chunk(tube, 3);
540
+              this.tube = chunk(tube, 2);
527 541
             }
528 542
           }else{
529 543
             uni.showToast({