Browse Source

2.检查列表中如果是急查,则建单时候自动标记为紧急工单

seimin 3 years ago
parent
commit
16b47b2df0

+ 15 - 1
pages/inspectList/inspectList.vue

@@ -74,7 +74,8 @@
74
                 </view>
74
                 </view>
75
                 <view>
75
                 <view>
76
                   <text class="p_title">是否紧急:</text>
76
                   <text class="p_title">是否紧急:</text>
77
-                  <text class="p_info">{{(item.priority==='1'||item.priority===1)?'是':'否'}}</text>
77
+                  <text class="p_info"
78
+                    :class="{red:item.priority==='1'||item.priority===1}">{{(item.priority==='1'||item.priority===1)?'是':'否'}}</text>
78
                 </view>
79
                 </view>
79
               </view>
80
               </view>
80
             </view>
81
             </view>
@@ -268,6 +269,15 @@
268
                   workerStartOrderFlag: 1,
269
                   workerStartOrderFlag: 1,
269
                 },
270
                 },
270
               };
271
               };
272
+              //根据检查的紧急度加急
273
+              if (this.jdItem.priority === 1 || this.jdItem.priority === '1') {
274
+                postData.workOrder["urgentDetails"] = {
275
+                  checkStatus: {
276
+                    id: 329
277
+                  },
278
+                  urgentReason: '系统根据检查信息,自动进行加急',
279
+                };
280
+              }
271
               post("/api/startOrder", postData).then((res) => {
281
               post("/api/startOrder", postData).then((res) => {
272
                 uni.hideLoading();
282
                 uni.hideLoading();
273
                 let msg = res.msg;
283
                 let msg = res.msg;
@@ -686,6 +696,10 @@
686
 
696
 
687
                 .p_info {
697
                 .p_info {
688
                   flex: 1;
698
                   flex: 1;
699
+
700
+                  &.red {
701
+                    color: red;
702
+                  }
689
                 }
703
                 }
690
 
704
 
691
                 .num {
705
                 .num {

+ 4 - 2
pages/patientInformationInfo/patientInformationInfo.vue

@@ -30,7 +30,7 @@
30
           }}</text></view>
30
           }}</text></view>
31
         <view class="page_item_info_title">预约时间:<text>{{ item.yyTime || "-" }}</text></view>
31
         <view class="page_item_info_title">预约时间:<text>{{ item.yyTime || "-" }}</text></view>
32
         <view class="page_item_info_title">预约叫号:<text>{{ item.reservationNumber || "-" }}</text></view>
32
         <view class="page_item_info_title">预约叫号:<text>{{ item.reservationNumber || "-" }}</text></view>
33
-        <view class="page_item_info_title">是否紧急:<text>{{ (item.priority===1||item.priority==='1')?'是':'否' }}</text>
33
+        <view class="page_item_info_title">是否紧急:<text :class="{red:item.priority===1||item.priority==='1'}">{{ (item.priority===1||item.priority==='1')?'是':'否' }}</text>
34
         </view>
34
         </view>
35
       </view>
35
       </view>
36
     </view>
36
     </view>
@@ -92,7 +92,6 @@
92
 <style lang="less">
92
 <style lang="less">
93
   .patientInformationInfo {
93
   .patientInformationInfo {
94
     padding: 0 20rpx;
94
     padding: 0 20rpx;
95
-    overflow: hidden;
96
 
95
 
97
     .zwsj {
96
     .zwsj {
98
       text-align: center;
97
       text-align: center;
@@ -187,6 +186,9 @@
187
 
186
 
188
           text {
187
           text {
189
             font-weight: normal;
188
             font-weight: normal;
189
+            &.red{
190
+              color: red;
191
+            }
190
           }
192
           }
191
         }
193
         }
192
       }
194
       }