浏览代码

修改接口参数

seimin 3 年之前
父节点
当前提交
cd56cb2fa7
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      pages/scanning_B/scanning_B.vue

+ 6 - 0
pages/scanning_B/scanning_B.vue

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