Преглед на файлове

fix:5667【销售订单】多个物品,点击发货单操作,点击提交界面加载后提示新增成功,没法提交成功,只是新增成功报错了一条待发货单记录

mlchen преди 2 седмици
родител
ревизия
f269d206e9

+ 4 - 2
src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

@@ -488,7 +488,9 @@
             this.cancel();
           }
           
-        } catch (error) {}
+        } catch (error) {
+          console.error('提交审批失败', error);
+        }
         this.loading = false;
       },
       async submit1() {
@@ -513,4 +515,4 @@
     }
   };
 </script>
-<style scoped lang="scss"></style>
+<style scoped lang="scss"></style>

+ 16 - 13
src/views/saleManage/saleOrder/invoice/components/addInvoiceDialog.vue

@@ -1172,31 +1172,31 @@
             UpdateSendInformation(commitData)
               .then((res) => {
                 this.loading = false;
-                this.$message.success('修改成功');
                 if (type === 'sub') {
-                  this.sendSubmit(res);
-                  return;
+                  return this.sendSubmit(res);
                 }
+                this.$message.success('修改成功');
                 this.cancel();
                 this.$emit('done');
               })
               .catch((e) => {
-                //this.loading = false;
+                this.loading = false;
+                console.error('修改发货单失败', e);
               });
           } else {
             addSendInformation(commitData)
               .then((res) => {
                 this.loading = false;
-                this.$message.success('新增成功');
                 if (type === 'sub') {
-                  this.sendSubmit(res);
-                  return;
+                  return this.sendSubmit(res);
                 }
+                this.$message.success('新增成功');
                 this.cancel();
                 this.$emit('done');
               })
               .catch((e) => {
-                // this.loading = false;
+                this.loading = false;
+                console.error('新增发货单失败', e);
               });
           }
         } catch (error) {
@@ -1255,11 +1255,14 @@
       },
 
       async specialesubmit(params) {
-        console.log('params~~~~~~', params);
-        await specialSubmit(params.businessId, params);
-        this.$message('提交审核成功');
-        this.processSubmitDialogFlag = false;
-        this.reload();
+        try {
+          await specialSubmit(params.businessId, params);
+          this.$message('提交审核成功');
+          this.processSubmitDialogFlag = false;
+          this.reload();
+        } catch (error) {
+          console.error('提交发货单审核失败', error);
+        }
       },
       reload() {
         this.cancel();

+ 8 - 5
src/views/saleManage/saleOrder/invoice/index.vue

@@ -812,11 +812,14 @@
         });
       },
       async specialesubmit(params) {
-        console.log('params~~~~~~', params);
-        await specialSubmit(params.businessId, params);
-        this.$message('提交审核成功');
-        this.processSubmitDialogFlag = false;
-        this.reload();
+        try {
+          await specialSubmit(params.businessId, params);
+          this.$message('提交审核成功');
+          this.processSubmitDialogFlag = false;
+          this.reload();
+        } catch (error) {
+          console.error('提交发货单审核失败', error);
+        }
       },
       //查看详情
       openorderDetail(row, type, index) {