Browse Source

fix: 上传实重修改

lyc 4 weeks ago
parent
commit
9b2c4d0ef3
2 changed files with 11 additions and 19 deletions
  1. 1 1
      src/api/order.js
  2. 10 18
      src/views/orders/batchImportWeight.vue

+ 1 - 1
src/api/order.js

@@ -204,7 +204,7 @@ export function _GetDetail(groupId) {
 export function _UpdateSupplementaryGroup(GroupId) {
   return request({
     url: '/order/UpdateSupplementaryGroup',
-    method: 'get',
+    method: 'post',
     params: { GroupId }
   })
 }

+ 10 - 18
src/views/orders/batchImportWeight.vue

@@ -392,7 +392,7 @@ export default {
         const TrackingNumber = arrItem[0];
         const ActiveWeight = arrItem[1];
         const Fee = arrItem[2];
-        if (TrackingNumber && ActiveWeight && Fee) {
+        if (TrackingNumber && ActiveWeight && Number(Fee) >= 0 ) {
           result.push({
             TrackingNumber,
             ActiveWeight,
@@ -636,23 +636,15 @@ export default {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning',
-        beforeClose: (action, instance, done) => {
-          if (action === 'confirm') {
-            instance.confirmButtonLoading = true;
-            _UpdateSupplementaryGroup(row.Id).then(() => {
-              this.$message({
-                type: 'success',
-                message: '操作成功'
-              });
-              done();
-              that.initSaveNewFeeList()
-            }).finally(() => {
-              instance.confirmButtonLoading = false;
-            })
-          } else {
-            done();
-          }
-        }
+      }).then(() => {
+        _UpdateSupplementaryGroup(row.Id).then(() => {
+          this.$message({
+            type: 'success',
+            message: '操作成功'
+          });
+          that.initSaveNewFeeList()
+        }).finally(() => {
+        })
       })
     },
     // 明细分页-前度