Selaa lähdekoodia

修改接口参数

seimin 2 vuotta sitten
vanhempi
commit
cd56cb2fa7
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      pages/scanning_B/scanning_B.vue

+ 6 - 0
pages/scanning_B/scanning_B.vue

@@ -55,6 +55,7 @@
55 55
           disjunctor: false,
56 56
         },
57 57
         currentCode: "",
58
+        type: "", //类型,orderSign|buildAndOrderSign
58 59
       };
59 60
     },
60 61
     methods: {
@@ -69,6 +70,9 @@
69 70
         let postData = {
70 71
           ids,
71 72
         };
73
+        if (this.type === 'orderSign') {
74
+          postData.specimenOrderSign = [10086]; //破坏性,必须扫标本
75
+        }
72 76
         if (accountObj) {
73 77
           postData.handover = [accountObj.accountId];
74 78
         }
@@ -102,6 +106,7 @@
102 106
       },
103 107
       // 执行工单
104 108
       orderSign(workOrder) {
109
+        this.type = 'orderSign';
105 110
         uni.showLoading({
106 111
           title: "加载中",
107 112
           mask: true,
@@ -138,6 +143,7 @@
138 143
       },
139 144
       // 建单并签到
140 145
       buildAndOrderSign(speId) {
146
+        this.type = 'buildAndOrderSign';
141 147
         uni.showLoading({
142 148
           title: "加载中",
143 149
           mask: true,