浏览代码

BUG修复

seimin 3 年之前
父节点
当前提交
a00f81595c
共有 2 个文件被更改,包括 718 次插入862 次删除
  1. 706 861
      pages/scanning_code/scanning_code.vue
  2. 12 1
      pages/scanning_djEnd/scanning_djEnd.vue

文件差异内容过多而无法显示
+ 706 - 861
pages/scanning_code/scanning_code.vue


+ 12 - 1
pages/scanning_djEnd/scanning_djEnd.vue

@@ -171,7 +171,6 @@
171
     methods: {
171
     methods: {
172
       // 确定
172
       // 确定
173
       ok() {
173
       ok() {
174
-        this.models.disjunctor = false;
175
         if (this.modelFlag === "complete") {
174
         if (this.modelFlag === "complete") {
176
           //完成扫描
175
           //完成扫描
177
           let postType = "";
176
           let postType = "";
@@ -184,7 +183,13 @@
184
             type: this.queryObj.type1,
183
             type: this.queryObj.type1,
185
             ids: this.wcId,
184
             ids: this.wcId,
186
           };
185
           };
186
+          uni.showLoading({
187
+            title: '加载中',
188
+            mask: true,
189
+          });
187
           post("/workerOrder/" + postType, data).then((res) => {
190
           post("/workerOrder/" + postType, data).then((res) => {
191
+            uni.hideLoading();
192
+            this.models.disjunctor = false;
188
             if (res.status == 200) {
193
             if (res.status == 200) {
189
               uni.reLaunch({
194
               uni.reLaunch({
190
                 url: "../receiptpage/receiptpage",
195
                 url: "../receiptpage/receiptpage",
@@ -199,7 +204,13 @@
199
         } else if (this.modelFlag === "complete1") {
204
         } else if (this.modelFlag === "complete1") {
200
           //1对1标本完成工单
205
           //1对1标本完成工单
201
           let ids = this.wcId;
206
           let ids = this.wcId;
207
+          uni.showLoading({
208
+            title: '加载中',
209
+            mask: true,
210
+          });
202
           post("/workerOrder/finishSpeOrder", ids).then((res) => {
211
           post("/workerOrder/finishSpeOrder", ids).then((res) => {
212
+            uni.hideLoading();
213
+            this.models.disjunctor = false;
203
             if (res.status == 200) {
214
             if (res.status == 200) {
204
               uni.reLaunch({
215
               uni.reLaunch({
205
                 url: "../receiptpage/receiptpage",
216
                 url: "../receiptpage/receiptpage",