seimin 1 år sedan
förälder
incheckning
798067e92f
2 ändrade filer med 24 tillägg och 13 borttagningar
  1. 23 12
      pages/receipt_infopage/receipt_infopage.vue
  2. 1 1
      pages/receiptpage/receiptpage.vue

+ 23 - 12
pages/receipt_infopage/receipt_infopage.vue

@@ -194,6 +194,7 @@
194 194
           <text class="text1">陪检方式</text>
195 195
           <text class="text2">{{ infoDATA.inspectScore.inspectMode }}</text>
196 196
         </view>
197
+        
197 198
         <view class="page_item_foot_text"
198 199
           v-if="(infoDATA.taskType.associationType.value == 'inspect' || infoDATA.taskType.associationType.value == 'patientTransport') && infoDATA.inspectUsers">
199 200
           <text class="text1">陪检人员</text>
@@ -204,6 +205,17 @@
204 205
           <text class="text1">陪检人数</text>
205 206
           <text class="text2">{{ infoDATA.inspectUsersNum }}</text>
206 207
         </view>
208
+        
209
+        <view class="page_item_foot_text"
210
+          v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.inspectUsers">
211
+          <text class="text1">执行人员</text>
212
+          <text class="text2">{{ infoDATA.inspectUsers }}</text>
213
+        </view>
214
+        <view class="page_item_foot_text"
215
+          v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.inspectUsersNum">
216
+          <text class="text1">执行人数</text>
217
+          <text class="text2">{{ infoDATA.inspectUsersNum }}</text>
218
+        </view>
207 219
       </view>
208 220
       <!-- 药包 -->
209 221
       <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'drugsBag'">
@@ -397,7 +409,7 @@
397 409
       <view class="btn3" @click="toDrugBatches(infoDATA.drugs.batchNo)" v-if="infoDATA.taskType.associationType.value == 'drugsBag' && taskTypeConfig.drugsBatchInfo == 1" hover-class="seimin-btn-hover">药品批次</view>
398 410
       <view class="btn3" @click="viewBlood(infoDATA)" v-if="infoDATA.taskType.associationType.value == 'ordinary' && infoDATA.taskType.ordinaryField.value == 'blood'" hover-class="seimin-btn-hover">查看血制品</view>
399 411
       <view class="btn3" @click="additionalUser(infoDATA)" v-if="(infoDATA.taskType.associationType.value == 'inspect' || infoDATA.taskType.associationType.value == 'patientTransport') && infoDATA.worker && infoDATA.worker.id && multiplayerMode === 1" hover-class="seimin-btn-hover">追加陪检人员</view>
400
-      <view class="btn3" @click="additionalUser(infoDATA)" v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.worker && infoDATA.worker.id && clinicalMultiplayerMode === 1" hover-class="seimin-btn-hover">追加执行人员</view>
412
+      <view class="btn3" @click="additionalUser(infoDATA)" v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.worker && infoDATA.worker.id && clinicalMultiplayerMode === 1 && clinicalTaskIdsFlag" hover-class="seimin-btn-hover">追加执行人员</view>
401 413
     </view>
402 414
     <!-- 弹窗 -->
403 415
     <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
@@ -441,6 +453,7 @@
441 453
         currentData: {}, //当前小扫描的工单对象
442 454
         multiplayerMode: 0,
443 455
         clinicalMultiplayerMode: 0,
456
+        clinicalTaskIdsFlag: false,
444 457
         hosId: uni.getStorageSync('userData').user.currentHospital.id,
445 458
         SMFlag:true,
446 459
         actualDelivery: 0,
@@ -1347,30 +1360,28 @@
1347 1360
         });
1348 1361
       },
1349 1362
       // 获取临床服务页面控制开关
1350
-      getTaskOtherConfig(){
1363
+      getTaskOtherConfig(options){
1351 1364
         post("/simple/data/fetchDataList/taskTypeConfig", {
1352 1365
             "idx": 0,
1353 1366
             "sum": 10,
1354 1367
             "taskTypeConfig": {
1355
-                "taskTypeDTO": {
1356
-                    "hosId": {
1357
-                        "id": this.hosId
1358
-                    },
1359
-                    "associationType": {
1360
-                        "key": "association_types",
1361
-                        "value": "other"
1362
-                    }
1363
-                }
1368
+                "hosId": this.hosId,
1369
+                "associationType": options.associationTypeId,
1364 1370
             }
1365 1371
         }).then((result) => {
1366 1372
           if (result.status == 200) {
1367 1373
             if(result.list && result.list[0]){
1368 1374
               this.clinicalMultiplayerMode = result.list[0].clinicalMultiplayerMode;
1375
+              let clinicalTaskIds = result.list[0].clinicalTaskIds ? result.list[0].clinicalTaskIds.split(',') : [] ;
1376
+              this.clinicalTaskIdsFlag = clinicalTaskIds.includes(options.taskTypeId);
1377
+              console.log(clinicalTaskIds, options.taskTypeId)
1369 1378
             }else{
1370 1379
               this.clinicalMultiplayerMode = 0;
1380
+              this.clinicalTaskIdsFlag = false;
1371 1381
             }
1372 1382
           } else {
1373 1383
             this.clinicalMultiplayerMode = 0;
1384
+            this.clinicalTaskIdsFlag = false;
1374 1385
           }
1375 1386
         });
1376 1387
       }
@@ -1395,7 +1406,7 @@
1395 1406
       ) {
1396 1407
         this.getTaskConfig();
1397 1408
       }else if(options.associationTypeValue == 'other'){
1398
-        this.getTaskOtherConfig();
1409
+        this.getTaskOtherConfig(options);
1399 1410
       }
1400 1411
       // 创建动画
1401 1412
       this.animation = uni.createAnimation({

+ 1 - 1
pages/receiptpage/receiptpage.vue

@@ -1149,7 +1149,7 @@
1149 1149
       itemInfo(workOrder) {
1150 1150
         console.log(workOrder);
1151 1151
         uni.navigateTo({
1152
-          url: `../receipt_infopage/receipt_infopage?id=${workOrder.id}&associationTypeValue=${workOrder.taskType.associationType.value}`,
1152
+          url: `../receipt_infopage/receipt_infopage?id=${workOrder.id}&associationTypeValue=${workOrder.taskType.associationType.value}&associationTypeId=${workOrder.taskType.associationType.id}&taskTypeId=${workOrder.taskType.id}`,
1153 1153
         });
1154 1154
       },
1155 1155
       //抢单后知道了