seimin 1 month ago
parent
commit
97eb7f8430

+ 6 - 2
App.vue

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

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

@@ -11,7 +11,7 @@
11
         <view class="column" v-for="item in specimenPackageList" :key="item.id">
11
         <view class="column" v-for="item in specimenPackageList" :key="item.id">
12
           <view class="row bd">
12
           <view class="row bd">
13
             <view class="name">{{item.deptName}}</view>
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
           </view>
15
           </view>
16
           <view class="row">
16
           <view class="row">
17
             <view class="name">{{item.pack_code}}</view>
17
             <view class="name">{{item.pack_code}}</view>
@@ -24,15 +24,15 @@
24
     <view class="foot_btn_spe">
24
     <view class="foot_btn_spe">
25
       <view class="column">
25
       <view class="column">
26
         <template v-if="!config.drugsEndManual">
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
         </template>
29
         </template>
30
-        
30
+
31
         <!-- 三个按钮-样式 -->
31
         <!-- 三个按钮-样式 -->
32
         <template v-else-if="config.drugsEndManual">
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
         </template>
36
         </template>
37
       </view>
37
       </view>
38
     </view>
38
     </view>
@@ -90,7 +90,7 @@
90
       			model:"all"
90
       			model:"all"
91
       		}
91
       		}
92
         };
92
         };
93
-      
93
+
94
         post("/simple/data/fetchDataList/hospitalConfig",postData).then((result) => {
94
         post("/simple/data/fetchDataList/hospitalConfig",postData).then((result) => {
95
             if (result.status == 200) {
95
             if (result.status == 200) {
96
       				this.keyArr = []
96
       				this.keyArr = []
@@ -450,7 +450,7 @@
450
         });
450
         });
451
 
451
 
452
         Promise.all([info$, config$]).then(result => {
452
         Promise.all([info$, config$]).then(result => {
453
-          
453
+
454
           let [info, config] = result || [];
454
           let [info, config] = result || [];
455
 
455
 
456
           if(info.state == 200){
456
           if(info.state == 200){
@@ -475,7 +475,7 @@
475
               title: config.msg || "接口获取数据失败!",
475
               title: config.msg || "接口获取数据失败!",
476
             });
476
             });
477
           }
477
           }
478
-          
478
+
479
           post(`/nurse/specimen/getSpePackageScanCount`, {endDeptId: this.workOrder.endDepts[0].id}).then((ress) => {
479
           post(`/nurse/specimen/getSpePackageScanCount`, {endDeptId: this.workOrder.endDepts[0].id}).then((ress) => {
480
             uni.hideLoading();
480
             uni.hideLoading();
481
             if(ress.state == 200){
481
             if(ress.state == 200){

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

@@ -49,9 +49,9 @@
49
     <view class="foot_btn_spe" v-if="config.id">
49
     <view class="foot_btn_spe" v-if="config.id">
50
       <view class="column">
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
           <!-- 两个按钮-样式 设计如此,别BB -->
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
             <view class="btn" @click="goIndex()">返回</view>
55
             <view class="btn" @click="goIndex()">返回</view>
56
             <view class="btn" @click="createOrBuildOrder(undefined, 'scan')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单签到扫一扫</view>
56
             <view class="btn" @click="createOrBuildOrder(undefined, 'scan')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单签到扫一扫</view>
57
             <view class="btn" @click="createOrBuildOrder(undefined, 'hand')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1 && config.drugsStartManual">建单签到{{config.drugsStartManual.name}}</view>
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
           </template>
60
           </template>
61
           
61
           
62
           <!-- 三个按钮-样式 设计如此,别BB -->
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
             <view class="btn" @click="createOrBuildOrder(undefined, 'scan')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单签到扫一扫</view>
64
             <view class="btn" @click="createOrBuildOrder(undefined, 'scan')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单签到扫一扫</view>
65
             <view class="btn" @click="createOrBuildOrder(undefined, 'hand')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1 && config.drugsStartManual">建单签到{{config.drugsStartManual.name}}</view>
65
             <view class="btn" @click="createOrBuildOrder(undefined, 'hand')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1 && config.drugsStartManual">建单签到{{config.drugsStartManual.name}}</view>
66
             <view class="btn" @click="createOrBuildOrder(orderId, 'scan')" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单签到扫一扫</view>
66
             <view class="btn" @click="createOrBuildOrder(orderId, 'scan')" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单签到扫一扫</view>
@@ -69,8 +69,8 @@
69
           </template>
69
           </template>
70
         </template>
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
           <view class="btn" @click="createOrBuildOrder()" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单并签到</view>
74
           <view class="btn" @click="createOrBuildOrder()" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单并签到</view>
75
           <view class="btn" @click="createOrBuildOrder(orderId)" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单并签到</view>
75
           <view class="btn" @click="createOrBuildOrder(orderId)" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单并签到</view>
76
         </template>
76
         </template>
@@ -481,10 +481,24 @@
481
                 uni.hideLoading();
481
                 uni.hideLoading();
482
                 if (ress.state == 200) {
482
                 if (ress.state == 200) {
483
                   if(ress.data.msg){
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
                   }else{
502
                   }else{
489
                     this.workOrder = {
503
                     this.workOrder = {
490
                       id: ress.data.orderId,
504
                       id: ress.data.orderId,
@@ -523,7 +537,7 @@
523
               this.orderId = this.queryObj.orderId;
537
               this.orderId = this.queryObj.orderId;
524
               this.config = res.data.taskTypeConfig || {};
538
               this.config = res.data.taskTypeConfig || {};
525
               let tube = res.data.tube || [];
539
               let tube = res.data.tube || [];
526
-              this.tube = chunk(tube, 3);
540
+              this.tube = chunk(tube, 2);
527
             }
541
             }
528
           }else{
542
           }else{
529
             uni.showToast({
543
             uni.showToast({