Browse Source

其他临床服务终点科室备注

seimin 1 year ago
parent
commit
8b6f2f423d

+ 16 - 4
components/smallScreen/smallScreen.vue

@@ -354,11 +354,11 @@
354 354
             if (result.state == 200 || result.state == 201) {
355 355
               if (result.account) {
356 356
                 if (type == 1) {
357
-                  this.nextDeptOrder_ss(this.currentData, {
357
+                  this.isOpenTransportationProcessRemarks(this.currentData, {
358 358
                     account: result.account,
359 359
                     accountName: result.name,
360 360
                     accountId: result.id,
361
-                  });
361
+                  }, 'nextDeptOrder_ss');
362 362
                 } else if (type == 2) {
363 363
                   this.nextDeptOrder_s(this.currentData, {
364 364
                     account: result.account,
@@ -368,7 +368,7 @@
368 368
                 }
369 369
               } else {
370 370
                 if (type == 1) {
371
-                  this.nextDeptOrder_ss(this.currentData);
371
+                  this.isOpenTransportationProcessRemarks(this.currentData, undefined, 'nextDeptOrder_ss');
372 372
                 } else if (type == 2) {
373 373
                   this.nextDeptOrder_s(this.currentData);
374 374
                 }
@@ -443,7 +443,7 @@
443 443
           associationTypeValue !== "specimen" &&
444 444
           associationTypeValue !== "specimenPlan"
445 445
         ) {
446
-          this.nextDeptOrder_ss(this.currentData, data);
446
+          this.isOpenTransportationProcessRemarks(this.currentData, data, 'nextDeptOrder_ss');
447 447
         }
448 448
       },
449 449
       // 填写交接人账号-取消
@@ -457,6 +457,18 @@
457 457
           disjunctor: true,
458 458
         }
459 459
       },
460
+      // 其他临床服务-运输过程-终点科室是否开通备注填写
461
+      isOpenTransportationProcessRemarks(data, accountObj, funName){
462
+        const tasktype = data.taskType;
463
+        console.log(tasktype, data);
464
+        if(tasktype.associationType.value === 'other' && tasktype.carryingCourses[1].logSwitch && data.gdState.value == 5){
465
+          uni.navigateTo({
466
+            url: `../../pages/transportationProcessRemarks/transportationProcessRemarks?data=${data ? encodeURIComponent(JSON.stringify(data)) : ''}&accountObj=${accountObj ? encodeURIComponent(JSON.stringify(accountObj)) : ''}&currentCode=${this.currentCode}&funName=${funName}&actions=${this.actions ? encodeURIComponent(JSON.stringify(this.actions)) : ''}&imageValue=${this.imageValue ? encodeURIComponent(JSON.stringify(this.imageValue)) : ''}`
467
+          })
468
+        }else{
469
+          this[funName](data, accountObj);
470
+        }
471
+      },
460 472
     },
461 473
     components: {
462 474
       selectAccount

+ 7 - 0
pages.json

@@ -413,6 +413,13 @@
413 413
           "titleNView": false
414 414
         }
415 415
       }
416
+    }, {
417
+      "path": "pages/transportationProcessRemarks/transportationProcessRemarks",
418
+      "style": {
419
+        "h5": {
420
+          "titleNView": false
421
+        }
422
+      }
416 423
     }
417 424
   ],
418 425
   "globalStyle": {

+ 16 - 225
pages/otherCompleteOrder/otherCompleteOrder.vue

@@ -34,6 +34,7 @@
34 34
 </template>
35 35
 
36 36
 <script>
37
+  import * as commonFun from '../../tools/commonFun.js';
37 38
   import {
38 39
     pathUrl
39 40
   } from "../../tools/photograph.js";
@@ -70,108 +71,18 @@
70 71
       };
71 72
     },
72 73
     methods: {
73
-      // 完成工单
74
-      postWorkerOrder(data, accountObj){
75
-        let isKs = 0;
76
-        let ids = [];
77
-        let id = data.id;
78
-        ids.push(id);
79
-        let list = {
80
-          code: "",
81
-          ids: ids,
82
-        };
83
-        let code = "";
84
-        let type = "";
85
-        let gdStateValue = data.gdState.value; //工单状态value
86
-        let associationTypeValue = data.taskType.associationType.value; //关联类型value
87
-        
88
-        // 其他临床服务,并且工单状态是待到达||工单状态待送达
89
-        if (
90
-          (associationTypeValue == "other" &&
91
-            gdStateValue == "4") ||
92
-          gdStateValue == "5"
93
-        ) {
94
-          code = this.currentCode;
95
-          type = "orderSign/" + code;
96
-          list = {
97
-            ids
98
-          };
99
-          if (accountObj) {
100
-            list.handover = [accountObj.accountId];
101
-          }
102
-          isKs = 1;
103
-        }
104
-        post("/workerOrder/" + type, list).then((res) => {
105
-          console.log(res);
106
-          uni.hideLoading();
107
-          if (res) {
108
-            if (res.status == 200) {
109
-              if (
110
-                gdStateValue == "4" &&
111
-                associationTypeValue == "other"
112
-              ) {
113
-                uni.navigateTo({
114
-                  url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
115
-                });
116
-              }
117
-              if (gdStateValue == "5") {
118
-                uni.navigateTo({
119
-                  url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
120
-                });
121
-              }
122
-            } else {
123
-              uni.navigateTo({
124
-                url: `../../pages/scanning_Result/scanning_Result?type=${
125
-                associationTypeValue
126
-              }&type1=${res.type}&id=${data.id}&status=600&msg=${
127
-                res.msg
128
-              }&isKs=${isKs}&model=${encodeURIComponent(
129
-                JSON.stringify(res)
130
-              )}&qrcode=${this.currentCode}`,
131
-              });
132
-            }
133
-          } else {
134
-            uni.navigateTo({
135
-              url: `../../pages/scanning_Result/scanning_Result?id=${data.id}&status=600&msg=扫码失败!请扫描正确的二维码!&isKs=${isKs}&qrcode=${this.currentCode}`,
136
-            });
137
-          }
138
-        });
139
-      },
140
-      // 如果不是静配,药配,标本配送,标本轮巡
141
-      // 科室签到(小扫描)-拍照
142
-      nextDeptOrder_ss(data, accountObj) {
143
-        console.log(this.currentCode);
144
-        if (this.currentCode) {
145
-          // 动作
146
-          let actions = this.actions.filter(v => v.checked);
147
-          let actionRemarks = actions.map(v => v.name).toString();
148
-          uni.showLoading({
149
-            title: "加载中",
150
-            mask: true,
151
-          });
152
-          if(actionRemarks){
153
-            post("/workerOrder/addOtherRemarks", {
154
-              orderId: data.id,
155
-              actionRemarks: actionRemarks,
156
-            }).then((result1) => {
157
-              if(result1.state == 200){
158
-                this.postWorkerOrder(data, accountObj);
159
-              }else{
160
-                uni.hideLoading();
161
-                uni.showToast({
162
-                  icon: "none",
163
-                  title: "请求失败!",
164
-                });
165
-              }
166
-            });
167
-          }else{
168
-            this.postWorkerOrder(data, accountObj);
169
-          }
74
+      // 其他临床服务-运输过程-终点科室是否开通备注填写
75
+      isOpenTransportationProcessRemarks(data, accountObj, funName){
76
+        const tasktype = data.taskType;
77
+        console.log(tasktype, data);
78
+        if(tasktype.associationType.value === 'other' && tasktype.carryingCourses[1].logSwitch && data.gdState.value == 5){
79
+          uni.navigateTo({
80
+            url: `../../pages/transportationProcessRemarks/transportationProcessRemarks?data=${data ? encodeURIComponent(JSON.stringify(data)) : ''}&accountObj=${accountObj ? encodeURIComponent(JSON.stringify(accountObj)) : ''}&currentCode=${this.currentCode}&funName=${funName}&actions=${this.actions ? encodeURIComponent(JSON.stringify(this.actions)) : ''}&imageValue=${this.imageValue ? encodeURIComponent(JSON.stringify(this.imageValue)) : ''}`
81
+          })
170 82
         }else{
171
-          uni.hideLoading();
83
+          commonFun[funName](this, data, accountObj);
172 84
         }
173 85
       },
174
-      
175 86
       // 填写交接人账号-确认
176 87
       hosOk(data) {
177 88
         console.log(data);
@@ -215,13 +126,13 @@
215 126
         let associationTypeValue = this.currentData.taskType.associationType.value;
216 127
         console.log(associationTypeValue)
217 128
         if(this.actionPhotoSwitch && this.actionConfirmSwitch){
218
-          this.uploadToOther(this.currentData, data, 'end');
129
+          this.isOpenTransportationProcessRemarks(this.currentData, data, 'uploadToOther');
219 130
         }else if(this.actionConfirmSwitch){
220 131
           // 动作
221
-          this.nextDeptOrder_ss(this.currentData, data, 'end');
132
+          this.isOpenTransportationProcessRemarks(this.currentData, data, 'nextDeptOrder_ss');
222 133
         }else if(this.actionPhotoSwitch){
223 134
           // 拍照
224
-          this.uploadToOther(this.currentData, data, 'end');
135
+          this.isOpenTransportationProcessRemarks(this.currentData, data, 'uploadToOther');
225 136
         }
226 137
       },
227 138
       // 填写交接人账号-取消
@@ -283,13 +194,13 @@
283 194
             }
284 195
             
285 196
             if(this.actionPhotoSwitch && this.actionConfirmSwitch){
286
-              this.uploadToOther(data, accountObj, type);
197
+              this.isOpenTransportationProcessRemarks(data, accountObj, 'uploadToOther');
287 198
             }else if(this.actionConfirmSwitch){
288 199
               // 动作
289
-              this.nextDeptOrder_ss(data, accountObj, type);
200
+              this.isOpenTransportationProcessRemarks(data, accountObj, 'nextDeptOrder_ss');
290 201
             }else if(this.actionPhotoSwitch){
291 202
               // 拍照
292
-              this.uploadToOther(data, accountObj, type);
203
+              this.isOpenTransportationProcessRemarks(data, accountObj, 'uploadToOther');
293 204
             }
294 205
           } else if (result.state == '0000') {
295 206
             uni.hideLoading();
@@ -303,126 +214,6 @@
303 214
           }
304 215
         });
305 216
       },
306
-      // 完成工单
307
-      uploadToOther(data, accountObj, type){
308
-        let imageValue = this.imageValue;
309
-        // 完成工单
310
-        post('/workerOrder/findRecordInfoByOrderId', {
311
-          orderId: this.orderId,
312
-          gdOperate: 22,
313
-        }).then(result => {
314
-          if (result.state == 200) {
315
-            uni.showLoading({
316
-              mask: true,
317
-              title: '加载中'
318
-            });
319
-            let n = 0;
320
-            //#ifdef H5
321
-            imageValue.forEach((v) => {
322
-              // 图片上传 start
323
-              console.log("压缩前");
324
-              let canvasWidth = v.image.width; //图片原始长宽
325
-              let canvasHeight = v.image.height;
326
-              let img = new Image();
327
-              img.src = v.path;
328
-              let canvas = document.createElement("canvas");
329
-              let ctx = canvas.getContext("2d");
330
-              canvas.width = canvasWidth;
331
-              canvas.height = canvasHeight;
332
-              ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight);
333
-              canvas.toBlob(
334
-                (fileSrc) => {
335
-                  let tp = window.URL.createObjectURL(fileSrc);
336
-                  console.log("压缩后");
337
-                  n++;
338
-                  uni.uploadFile({
339
-                    url: pathUrl +
340
-                      "/common/common/uploadAttachment/orderEndPhoto/" +
341
-                      this.orderId +
342
-                      "/" + result.recordId,
343
-                    filePath: tp,
344
-                    name: "file",
345
-                    formData: {
346
-                      filename: v.name,
347
-                    },
348
-                    success: (uploadFileRes) => {
349
-                      console.log(uploadFileRes);
350
-                      if (--n === 0) {
351
-                        this.nextDeptOrder_ss(data, accountObj, type);
352
-                      }
353
-                    },
354
-                    fail: (err) => {
355
-                      n--;
356
-                      console.error(err);
357
-                      uni.showToast({
358
-                        icon: "none",
359
-                        title: "上传失败",
360
-                        duration: 2000,
361
-                      });
362
-                    },
363
-                  });
364
-                },
365
-                "image/jpeg",
366
-                0.1
367
-              );
368
-              // 图片上传 end
369
-            });
370
-            //#endif
371
-            //#ifdef APP-PLUS
372
-            imageValue.forEach((v) => {
373
-              // 图片上传 start
374
-              uni.compressImage({
375
-                src: v.path,
376
-                quality: 30,
377
-                success: (res) => {
378
-                  console.log('压缩前', res)
379
-                  let tp = res.tempFilePath;
380
-                  console.log("压缩后");
381
-                  n++;
382
-                  uni.uploadFile({
383
-                    url: pathUrl +
384
-                      "/common/common/uploadAttachment/orderEndPhoto/" +
385
-                      this.orderId +
386
-                      "/" + result.recordId,
387
-                    filePath: tp,
388
-                    name: "file",
389
-                    formData: {
390
-                      filename: v.name,
391
-                    },
392
-                    success: (uploadFileRes) => {
393
-                      console.log(uploadFileRes);
394
-                      if (--n === 0) {
395
-                        this.nextDeptOrder_ss(data, accountObj, type);
396
-                      }
397
-                    },
398
-                    fail: (err) => {
399
-                      n--;
400
-                      console.error(err);
401
-                      uni.showToast({
402
-                        icon: "none",
403
-                        title: "上传失败",
404
-                        duration: 2000,
405
-                      });
406
-                    },
407
-                  });
408
-                },
409
-                fail: function () {
410
-                  uni.hideLoading();
411
-                  uni.showToast({
412
-                    icon: 'none',
413
-                    title: '上传失败',
414
-                    duration: 2000
415
-                  });
416
-                }
417
-              })
418
-              // 图片上传 end
419
-            });
420
-            //#endif
421
-          }else{
422
-            uni.hideLoading();
423
-          }
424
-        })
425
-      },
426 217
       // 返回
427 218
       goBack() {
428 219
         uni.navigateBack();

+ 128 - 0
pages/transportationProcessRemarks/transportationProcessRemarks.vue

@@ -0,0 +1,128 @@
1
+<template>
2
+  <view class="transportationProcessRemarks">
3
+    <view class="uni-list-cell">
4
+      <view class="uni-list-cell-left">
5
+        备注:
6
+      </view>
7
+      <view class="uni-list-cell-db">
8
+        <textarea maxlength="100" class="textarea" v-model="logRemarks" :placeholder="logPrompts" />
9
+      </view>
10
+    </view>
11
+    <view class="uni-list-cell" v-if="customRemarks.length">
12
+      <view class="uni-list-cell-left">
13
+        快捷输入:
14
+      </view>
15
+      <view class="uni-list-cell-db">
16
+        <span class="addRemarks" v-for="(item, i) of customRemarks" :key="i" @click="addRemarks(item)">【{{ item }}】</span>
17
+      </view>
18
+    </view>
19
+    <view class="foot_btn_spe">
20
+      <view class="btn1" @click="postWorkerOrder()">完成工单</view>
21
+      <view class="btn3" @click="goBack">返回</view>
22
+    </view>
23
+  </view>
24
+</template>
25
+
26
+<script>
27
+  import * as commonFun from '../../tools/commonFun.js';
28
+  import {
29
+    get,
30
+    post,
31
+    webHandle
32
+  } from "../../http/http.js";
33
+  export default {
34
+    data() {
35
+      return {
36
+        currentCode: '', //当前拍照使用的科室二维码
37
+        options: {},
38
+        logRemarks: '',
39
+        logPrompts: '',
40
+        customRemarks: [],
41
+        //动作列表
42
+        actions: [],
43
+        //图片列表
44
+        imageValue: [],
45
+      };
46
+    },
47
+    methods:{
48
+      // 返回
49
+      goBack() {
50
+        uni.navigateBack();
51
+      },
52
+      // 添加备注
53
+      addRemarks(item) {
54
+        this.logRemarks += item;
55
+      },
56
+      // 完成工单
57
+      postWorkerOrder(){
58
+        if(!this.logRemarks.trim()){
59
+          uni.showToast({
60
+            icon: "none",
61
+            title: "请填写备注!",
62
+          });
63
+          return;
64
+        }
65
+        let data = this.options.data;
66
+        let accountObj = this.options.accountObj;
67
+        console.log(commonFun)
68
+        commonFun[this.options.funName](this, this.options.data, this.options.accountObj);
69
+      },
70
+    },
71
+    onLoad(options) {
72
+      uni.hideLoading();
73
+      options.data && (options.data = JSON.parse(options.data));
74
+      options.accountObj && (options.accountObj = JSON.parse(options.accountObj));
75
+      options.actions && (options.actions = JSON.parse(options.actions));
76
+      options.imageValue && (options.imageValue = JSON.parse(options.imageValue));
77
+      this.options = options;
78
+      console.log(options);
79
+      // 待送达
80
+      if(options.data.taskType.associationType.value == 'other' && options.data.gdState.value == 5){
81
+        let carryingCourses = options.data.taskType.carryingCourses[1];
82
+        this.logPrompts = carryingCourses.logPrompts || "请填写备注,不超过100个字符";
83
+        this.customRemarks = carryingCourses.logRemarks ? carryingCourses.logRemarks.split("$") : [];
84
+        this.currentCode = options.currentCode;
85
+        this.actions = options.actions;
86
+        this.imageValue = options.imageValue;
87
+      }
88
+    }
89
+  }
90
+</script>
91
+
92
+<style lang="less" scoped>
93
+.transportationProcessRemarks{
94
+  padding: 16rpx;
95
+  .textarea{
96
+    width: 100%;
97
+    border: 2rpx solid #d9d9d9;
98
+  }
99
+  .foot_btn_spe {
100
+    width: 100%;
101
+    position: fixed;
102
+    bottom: 30rpx;
103
+    left: 0;
104
+    line-height: 88rpx;
105
+    height: 88rpx;
106
+    text-align: center;
107
+    display: flex;
108
+    justify-content: space-between;
109
+    flex-wrap: wrap;
110
+  
111
+    &::after {
112
+      content: '';
113
+      flex: 1;
114
+    }
115
+  
116
+    view {
117
+      height: 88rpx;
118
+      width: 48%;
119
+      margin: 0 1%;
120
+      background-image: linear-gradient(to right, #72c172, #3bb197);
121
+      color: #fff;
122
+      border-radius: 8rpx;
123
+      font-size: 32rpx;
124
+      margin-top: 16rpx;
125
+    }
126
+  }
127
+}
128
+</style>

+ 235 - 0
tools/commonFun.js

@@ -0,0 +1,235 @@
1
+import { get, post } from '../http/http.js'
2
+import { pathUrl } from "../tools/photograph.js";
3
+
4
+// 如果不是静配,药配,标本配送,标本轮巡
5
+// 科室签到(小扫描)-拍照
6
+export function nextDeptOrder_ss(_this, data, accountObj) {
7
+  uni.showLoading({
8
+    title: "加载中",
9
+    mask: true,
10
+  });
11
+  _this.actions = _this.actions || [];
12
+  console.log(_this.currentCode);
13
+  if (_this.currentCode) {
14
+    // 动作
15
+    let actions = _this.actions.filter(v => v.checked);
16
+    let actionRemarks = actions.map(v => v.name).toString();
17
+    if(actionRemarks){
18
+      post("/workerOrder/addOtherRemarks", {
19
+        orderId: data.id,
20
+        actionRemarks: actionRemarks,
21
+      }).then((result1) => {
22
+        if(result1.state == 200){
23
+          postWorkerOrder(_this, data, accountObj);
24
+        }else{
25
+          uni.hideLoading();
26
+          uni.showToast({
27
+            icon: "none",
28
+            title: "请求失败!",
29
+          });
30
+        }
31
+      });
32
+    }else{
33
+      postWorkerOrder(_this, data, accountObj);
34
+    }
35
+  }else{
36
+    uni.hideLoading();
37
+  }
38
+}
39
+
40
+// 完成工单
41
+export function uploadToOther(_this, data, accountObj){
42
+  uni.showLoading({
43
+    mask: true,
44
+    title: '加载中'
45
+  });
46
+  _this.imageValue = _this.imageValue || [];
47
+  let imageValue = _this.imageValue;
48
+  // 完成工单
49
+  post('/workerOrder/findRecordInfoByOrderId', {
50
+    orderId: data.id,
51
+    gdOperate: 22,
52
+  }).then(result => {
53
+    if (result.state == 200) {
54
+      let n = 0;
55
+      //#ifdef H5
56
+      imageValue.forEach((v) => {
57
+        // 图片上传 start
58
+        console.log("压缩前");
59
+        let canvasWidth = v.image.width; //图片原始长宽
60
+        let canvasHeight = v.image.height;
61
+        let img = new Image();
62
+        img.src = v.path;
63
+        let canvas = document.createElement("canvas");
64
+        let ctx = canvas.getContext("2d");
65
+        canvas.width = canvasWidth;
66
+        canvas.height = canvasHeight;
67
+        ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight);
68
+        canvas.toBlob(
69
+          (fileSrc) => {
70
+            let tp = window.URL.createObjectURL(fileSrc);
71
+            console.log("压缩后");
72
+            n++;
73
+            uni.uploadFile({
74
+              url: pathUrl +
75
+                "/common/common/uploadAttachment/orderEndPhoto/" +
76
+                data.id +
77
+                "/" + result.recordId,
78
+              filePath: tp,
79
+              name: "file",
80
+              formData: {
81
+                filename: v.name,
82
+              },
83
+              success: (uploadFileRes) => {
84
+                console.log(uploadFileRes);
85
+                if (--n === 0) {
86
+                  nextDeptOrder_ss(_this, data, accountObj);
87
+                }
88
+              },
89
+              fail: (err) => {
90
+                n--;
91
+                console.error(err);
92
+                uni.showToast({
93
+                  icon: "none",
94
+                  title: "上传失败",
95
+                  duration: 2000,
96
+                });
97
+              },
98
+            });
99
+          },
100
+          "image/jpeg",
101
+          0.1
102
+        );
103
+        // 图片上传 end
104
+      });
105
+      //#endif
106
+      //#ifdef APP-PLUS
107
+      imageValue.forEach((v) => {
108
+        // 图片上传 start
109
+        uni.compressImage({
110
+          src: v.path,
111
+          quality: 30,
112
+          success: (res) => {
113
+            console.log('压缩前', res)
114
+            let tp = res.tempFilePath;
115
+            console.log("压缩后");
116
+            n++;
117
+            uni.uploadFile({
118
+              url: pathUrl +
119
+                "/common/common/uploadAttachment/orderEndPhoto/" +
120
+                data.id +
121
+                "/" + result.recordId,
122
+              filePath: tp,
123
+              name: "file",
124
+              formData: {
125
+                filename: v.name,
126
+              },
127
+              success: (uploadFileRes) => {
128
+                console.log(uploadFileRes);
129
+                if (--n === 0) {
130
+                  nextDeptOrder_ss(_this, data, accountObj);
131
+                }
132
+              },
133
+              fail: (err) => {
134
+                n--;
135
+                console.error(err);
136
+                uni.showToast({
137
+                  icon: "none",
138
+                  title: "上传失败",
139
+                  duration: 2000,
140
+                });
141
+              },
142
+            });
143
+          },
144
+          fail: function () {
145
+            uni.hideLoading();
146
+            uni.showToast({
147
+              icon: 'none',
148
+              title: '上传失败',
149
+              duration: 2000
150
+            });
151
+          }
152
+        })
153
+        // 图片上传 end
154
+      });
155
+      //#endif
156
+    }else{
157
+      uni.hideLoading();
158
+    }
159
+  })
160
+}
161
+
162
+// 完成工单
163
+export function postWorkerOrder(_this, data, accountObj){
164
+  uni.showLoading({
165
+    title: "加载中",
166
+    mask: true,
167
+  });
168
+  let isKs = 0;
169
+  let ids = [];
170
+  let id = data.id;
171
+  ids.push(id);
172
+  let list = {
173
+    code: "",
174
+    ids: ids,
175
+  };
176
+  let code = "";
177
+  let type = "";
178
+  let gdStateValue = data.gdState.value; //工单状态value
179
+  let associationTypeValue = data.taskType.associationType.value; //关联类型value
180
+  
181
+  // 其他临床服务,并且工单状态是待到达||工单状态待送达
182
+  if (
183
+    (associationTypeValue == "other" &&
184
+      gdStateValue == "4") ||
185
+    gdStateValue == "5"
186
+  ) {
187
+    code = _this.currentCode;
188
+    type = "orderSign/" + code;
189
+    list = {
190
+      ids
191
+    };
192
+    if (accountObj) {
193
+      list.handover = [accountObj.accountId];
194
+    }
195
+    if (_this.logRemarks) {
196
+      list.logRemarks = _this.logRemarks;
197
+    }
198
+    isKs = 1;
199
+  }
200
+  post("/workerOrder/" + type, list).then((res) => {
201
+    console.log(res);
202
+    uni.hideLoading();
203
+    if (res) {
204
+      if (res.status == 200) {
205
+        if (
206
+          gdStateValue == "4" &&
207
+          associationTypeValue == "other"
208
+        ) {
209
+          uni.navigateTo({
210
+            url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
211
+          });
212
+        }
213
+        if (gdStateValue == "5") {
214
+          uni.navigateTo({
215
+            url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
216
+          });
217
+        }
218
+      } else {
219
+        uni.navigateTo({
220
+          url: `../../pages/scanning_Result/scanning_Result?type=${
221
+          associationTypeValue
222
+        }&type1=${res.type}&id=${data.id}&status=600&msg=${
223
+          res.msg
224
+        }&isKs=${isKs}&model=${encodeURIComponent(
225
+          JSON.stringify(res)
226
+        )}&qrcode=${_this.currentCode}`,
227
+        });
228
+      }
229
+    } else {
230
+      uni.navigateTo({
231
+        url: `../../pages/scanning_Result/scanning_Result?id=${data.id}&status=600&msg=扫码失败!请扫描正确的二维码!&isKs=${isKs}&qrcode=${_this.currentCode}`,
232
+      });
233
+    }
234
+  });
235
+}