瀏覽代碼

完成工单按钮重复点击BUG

seimin 3 年之前
父節點
當前提交
e1cc2c6265
共有 2 個文件被更改,包括 6 次插入8 次删除
  1. 3 4
      pages/scanning_code/scanning_code.vue
  2. 3 4
      pages/scanning_djEnd/scanning_djEnd.vue

+ 3 - 4
pages/scanning_code/scanning_code.vue

@@ -577,6 +577,7 @@
577
       },
577
       },
578
       // 确定
578
       // 确定
579
       ok() {
579
       ok() {
580
+        this.models.disjunctor = false;
580
         if (this.modelFlag == "complete1") {
581
         if (this.modelFlag == "complete1") {
581
           //一对多完成扫描
582
           //一对多完成扫描
582
           let ids = [];
583
           let ids = [];
@@ -590,13 +591,12 @@
590
             mask: true,
591
             mask: true,
591
           });
592
           });
592
           post("/workerOrder/finishSpes", data).then((res) => {
593
           post("/workerOrder/finishSpes", data).then((res) => {
593
-            uni.hideLoading();
594
-            this.models.disjunctor = false;
595
             if (res.status == 200) {
594
             if (res.status == 200) {
596
               uni.reLaunch({
595
               uni.reLaunch({
597
                 url: "../receiptpage/receiptpage",
596
                 url: "../receiptpage/receiptpage",
598
               });
597
               });
599
             } else {
598
             } else {
599
+              uni.hideLoading();
600
               uni.showToast({
600
               uni.showToast({
601
                 icon: "none",
601
                 icon: "none",
602
                 title: "请求失败!",
602
                 title: "请求失败!",
@@ -612,13 +612,12 @@
612
             mask: true,
612
             mask: true,
613
           });
613
           });
614
           post("/workerOrder/finishSpeOrder", ids).then((res) => {
614
           post("/workerOrder/finishSpeOrder", ids).then((res) => {
615
-            uni.hideLoading();
616
-            this.models.disjunctor = false;
617
             if (res.status == 200) {
615
             if (res.status == 200) {
618
               uni.reLaunch({
616
               uni.reLaunch({
619
                 url: "../receiptpage/receiptpage",
617
                 url: "../receiptpage/receiptpage",
620
               });
618
               });
621
             } else {
619
             } else {
620
+              uni.hideLoading();
622
               uni.showToast({
621
               uni.showToast({
623
                 icon: "none",
622
                 icon: "none",
624
                 title: "请求失败!",
623
                 title: "请求失败!",

+ 3 - 4
pages/scanning_djEnd/scanning_djEnd.vue

@@ -171,6 +171,7 @@
171
     methods: {
171
     methods: {
172
       // 确定
172
       // 确定
173
       ok() {
173
       ok() {
174
+        this.models.disjunctor = false;
174
         if (this.modelFlag === "complete") {
175
         if (this.modelFlag === "complete") {
175
           //完成扫描
176
           //完成扫描
176
           let postType = "";
177
           let postType = "";
@@ -188,13 +189,12 @@
188
             mask: true,
189
             mask: true,
189
           });
190
           });
190
           post("/workerOrder/" + postType, data).then((res) => {
191
           post("/workerOrder/" + postType, data).then((res) => {
191
-            uni.hideLoading();
192
-            this.models.disjunctor = false;
193
             if (res.status == 200) {
192
             if (res.status == 200) {
194
               uni.reLaunch({
193
               uni.reLaunch({
195
                 url: "../receiptpage/receiptpage",
194
                 url: "../receiptpage/receiptpage",
196
               });
195
               });
197
             } else {
196
             } else {
197
+              uni.hideLoading();
198
               uni.showToast({
198
               uni.showToast({
199
                 icon: "none",
199
                 icon: "none",
200
                 title: "请求失败!",
200
                 title: "请求失败!",
@@ -209,13 +209,12 @@
209
             mask: true,
209
             mask: true,
210
           });
210
           });
211
           post("/workerOrder/finishSpeOrder", ids).then((res) => {
211
           post("/workerOrder/finishSpeOrder", ids).then((res) => {
212
-            uni.hideLoading();
213
-            this.models.disjunctor = false;
214
             if (res.status == 200) {
212
             if (res.status == 200) {
215
               uni.reLaunch({
213
               uni.reLaunch({
216
                 url: "../receiptpage/receiptpage",
214
                 url: "../receiptpage/receiptpage",
217
               });
215
               });
218
             } else {
216
             } else {
217
+              uni.hideLoading();
219
               uni.showToast({
218
               uni.showToast({
220
                 icon: "none",
219
                 icon: "none",
221
                 title: "请求失败!",
220
                 title: "请求失败!",