Browse Source

增加遮罩

zcb 4 years ago
parent
commit
3fcbf6554f
29 changed files with 206 additions and 44 deletions
  1. 1 0
      eccs-biz/src/main/java/com/emato/biz/controller/mall/MallInveMngController.java
  2. 3 1
      eccs-biz/src/main/java/com/emato/biz/service/impl/MallInveMngServiceImpl.java
  3. 1 1
      eccs-biz/src/main/java/com/emato/biz/service/impl/MallShopInveMngServiceImpl.java
  4. 2 2
      eccs-biz/src/main/java/com/emato/biz/service/impl/OWareAdjustmentOrderServiceImpl.java
  5. 1 1
      eccs-biz/src/main/java/com/emato/biz/service/impl/OWbInveMngServiceImpl.java
  6. 1 1
      eccs-biz/src/main/java/com/emato/biz/service/impl/OWbInveReceiptGoodsServiceImpl.java
  7. 1 1
      eccs-biz/src/main/java/com/emato/biz/service/impl/OWbMerchShopInServiceImpl.java
  8. 1 1
      eccs-biz/src/main/java/com/emato/biz/service/impl/OWbMerchShopInveServiceImpl.java
  9. 1 1
      eccs-biz/src/main/java/com/emato/biz/service/impl/OWbMerchShopMoveRecordServiceImpl.java
  10. 1 1
      eccs-biz/src/main/java/com/emato/biz/service/impl/OWbMerchShopOutServiceImpl.java
  11. 9 2
      eccs-ui/src/api/mall/mallinvemng.js
  12. 9 2
      eccs-ui/src/api/mall/mallshopmng.js
  13. 18 4
      eccs-ui/src/api/warehouse/adjustmentorder.js
  14. 9 2
      eccs-ui/src/api/warehouse/invemng.js
  15. 9 2
      eccs-ui/src/api/warehouse/invereceiptgoods.js
  16. 10 2
      eccs-ui/src/api/warehouse/shopin.js
  17. 9 2
      eccs-ui/src/api/warehouse/shopinve.js
  18. 10 2
      eccs-ui/src/api/warehouse/shopmoverecord.js
  19. 10 2
      eccs-ui/src/api/warehouse/shopout.js
  20. 14 3
      eccs-ui/src/views/mall/mallinvemng/index.vue
  21. 11 2
      eccs-ui/src/views/mall/mallshopinvemng/index.vue
  22. 1 1
      eccs-ui/src/views/system/role/index.vue
  23. 20 2
      eccs-ui/src/views/warehouse/adjustmentorder/index.vue
  24. 9 1
      eccs-ui/src/views/warehouse/invemng/index.vue
  25. 9 1
      eccs-ui/src/views/warehouse/invereceiptgoods/index.vue
  26. 9 1
      eccs-ui/src/views/warehouse/shopin/index.vue
  27. 9 1
      eccs-ui/src/views/warehouse/shopinve/index.vue
  28. 9 1
      eccs-ui/src/views/warehouse/shopmoverecord/index.vue
  29. 9 1
      eccs-ui/src/views/warehouse/shopout/index.vue

+ 1 - 0
eccs-biz/src/main/java/com/emato/biz/controller/mall/MallInveMngController.java

@@ -110,6 +110,7 @@ public class MallInveMngController extends BaseController
     {
 
 
+//        return toAjax(1);
         return toAjax(mallInveMngService.pullKmallInveMng());
     }
 

+ 3 - 1
eccs-biz/src/main/java/com/emato/biz/service/impl/MallInveMngServiceImpl.java

@@ -108,6 +108,8 @@ public class MallInveMngServiceImpl implements IMallInveMngService
     @Transactional
     public int pullKmallInveMng() {
 
+
+
         Integer page = 0;
         Integer pageSize = 1000;
         int resultCode = pullMallInveMng(page, pageSize);
@@ -116,7 +118,7 @@ public class MallInveMngServiceImpl implements IMallInveMngService
             resultCode = pullMallInveMng(page, pageSize);
         }
 
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullMallInveMng(Integer page, Integer pageSize) {

+ 1 - 1
eccs-biz/src/main/java/com/emato/biz/service/impl/MallShopInveMngServiceImpl.java

@@ -117,7 +117,7 @@ public class MallShopInveMngServiceImpl implements IMallShopInveMngService
             resultCode = pullKmallStoreInveMng(page, pageSize);
         }
 
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullKmallStoreInveMng(Integer page, Integer pageSize) {

+ 2 - 2
eccs-biz/src/main/java/com/emato/biz/service/impl/OWareAdjustmentOrderServiceImpl.java

@@ -122,7 +122,7 @@ public class OWareAdjustmentOrderServiceImpl implements IOWareAdjustmentOrderSer
             page = page + 1;
             resultCode = pullAdjustmentOrder(merchSn, page, querySize);
         }
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullAdjustmentOrder(String merchSn, int page, Integer querySize) {
@@ -214,7 +214,7 @@ public class OWareAdjustmentOrderServiceImpl implements IOWareAdjustmentOrderSer
             }
         }
 
-        return resultCode;
+        return resultCode==0?1:resultCode;
 
     }
 

+ 1 - 1
eccs-biz/src/main/java/com/emato/biz/service/impl/OWbInveMngServiceImpl.java

@@ -125,7 +125,7 @@ public class OWbInveMngServiceImpl implements IOWbInveMngService
             page = page + 1;
             resultCode = pullInveMngFromOms(merchSn, page, querySize);
         }
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullInveMngFromOms(String merchSn, int page, Integer querySize) {

+ 1 - 1
eccs-biz/src/main/java/com/emato/biz/service/impl/OWbInveReceiptGoodsServiceImpl.java

@@ -121,7 +121,7 @@ public class OWbInveReceiptGoodsServiceImpl implements IOWbInveReceiptGoodsServi
             page = page + 1;
             resultCode = pullReceiptGoods(merchSn, page, querySize);
         }
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullReceiptGoods(String merchSn, int page, Integer querySize) {

+ 1 - 1
eccs-biz/src/main/java/com/emato/biz/service/impl/OWbMerchShopInServiceImpl.java

@@ -119,7 +119,7 @@ public class OWbMerchShopInServiceImpl implements IOWbMerchShopInService
             page = page + 1;
             resultCode = pullShopInRecord(merchSn, page, querySize);
         }
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullShopInRecord(String merchSn, int page, Integer querySize) {

+ 1 - 1
eccs-biz/src/main/java/com/emato/biz/service/impl/OWbMerchShopInveServiceImpl.java

@@ -118,7 +118,7 @@ public class OWbMerchShopInveServiceImpl implements IOWbMerchShopInveService
             page = page + 1;
             resultCode = pullStoreInveMngFromOms(merchSn, page, querySize);
         }
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullStoreInveMngFromOms(String merchSn, int page, Integer querySize) {

+ 1 - 1
eccs-biz/src/main/java/com/emato/biz/service/impl/OWbMerchShopMoveRecordServiceImpl.java

@@ -121,7 +121,7 @@ public class OWbMerchShopMoveRecordServiceImpl implements IOWbMerchShopMoveRecor
             page = page + 1;
             resultCode = pullShopInRecord(merchSn, page, querySize);
         }
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullShopInRecord(String merchSn, int page, Integer querySize) {

+ 1 - 1
eccs-biz/src/main/java/com/emato/biz/service/impl/OWbMerchShopOutServiceImpl.java

@@ -120,7 +120,7 @@ public class OWbMerchShopOutServiceImpl implements IOWbMerchShopOutService
             page = page + 1;
             resultCode = pullShopOutRecord(merchSn, page, querySize);
         }
-        return resultCode;
+        return resultCode==0?1:resultCode;
     }
 
     private int pullShopOutRecord(String merchSn, int page, Integer querySize) {

+ 9 - 2
eccs-ui/src/api/mall/mallinvemng.js

@@ -53,10 +53,17 @@ export function exportMallinvemng(query) {
 }
 
 // 拉取kmall的所有商品数据
-export function pullKmallInvemng(query) {
+export function pullKmallInvemng(query,loading,_this) {
   return request({
     url: '/biz/mallinvemng/pullKmallInveMng',
     method: 'POST',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
 }

+ 9 - 2
eccs-ui/src/api/mall/mallshopmng.js

@@ -54,10 +54,17 @@ export function exportMallshopmng(query) {
 
 pullKmallStoreInvemng
 // 拉取kmall的所有商品数据
-export function pullKmallStoreInvemng(query) {
+export function pullKmallStoreInvemng(query,loading,_this) {
   return request({
     url: '/biz/mallshopmng/pullKmallStoreInveMng',
     method: 'POST',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
 }

+ 18 - 4
eccs-ui/src/api/warehouse/adjustmentorder.js

@@ -53,18 +53,32 @@ export function exportAdjustmentorder(query) {
 }
 
 // 拉取结转记录
-export function pullAdjustmentorder(query) {
+export function pullAdjustmentorder(query,loading,_this) {
   return request({
     url: '/biz/adjustmentorder/pullAdjustmentOrder',
     method: 'post',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
 }
 
 // 拉取结转明细
-export function pullAdjustmentorderDetail(adjustmentOrderSn) {
+export function pullAdjustmentorderDetail(adjustmentOrderSn,loading,_this) {
   return request({
     url: '/biz/adjustmentorder/pullAdjustmentorderDetail/' + adjustmentOrderSn,
-    method: 'post'
+    method: 'post',
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
 }

+ 9 - 2
eccs-ui/src/api/warehouse/invemng.js

@@ -53,10 +53,17 @@ export function exportInvemng(query) {
 }
 
 // 导出库存管理,wms入库回传时,增加库存数
-export function pullInvemng(query) {
+export function pullInvemng(query,loading,_this) {
   return request({
     url: '/biz/invemng/pullInveMng',
     method: 'post',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
 }

+ 9 - 2
eccs-ui/src/api/warehouse/invereceiptgoods.js

@@ -53,10 +53,17 @@ export function exportInvereceiptgoods(query) {
 }
 
 // 导出库存管理,wms入库回传时,增加库存数
-export function pullInveReceiptGoods(query) {
+export function pullInveReceiptGoods(query,loading,_this) {
   return request({
     url: '/biz/invereceiptgoods/pullReceiptGoods',
     method: 'post',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
 }

+ 10 - 2
eccs-ui/src/api/warehouse/shopin.js

@@ -53,10 +53,18 @@ export function exportShopin(query) {
 }
 
 // 拉取门店进货记录
-export function pullShopInRecord(query) {
+export function pullShopInRecord(query,loading,_this) {
   return request({
     url: '/biz/shopin/pullShopInRecord',
     method: 'post',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
+
 }

+ 9 - 2
eccs-ui/src/api/warehouse/shopinve.js

@@ -53,10 +53,17 @@ export function exportShopinve(query) {
 }
 
 // 拉取库存
-export function pullStoreInvemng(query) {
+export function pullStoreInvemng(query,loading,_this) {
   return request({
     url: '/biz/shopinve/pullStoreInveMng',
     method: 'post',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
 }

+ 10 - 2
eccs-ui/src/api/warehouse/shopmoverecord.js

@@ -53,10 +53,18 @@ export function exportShopmoverecord(query) {
 }
 
 // 拉取门店转移记录
-export function pullShopMoveRecord(query) {
+export function pullShopMoveRecord(query,loading,_this) {
   return request({
     url: '/biz/shopmoverecord/pullShopMoveRecord',
     method: 'post',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
+
   })
 }

+ 10 - 2
eccs-ui/src/api/warehouse/shopout.js

@@ -52,10 +52,18 @@ export function exportShopout(query) {
   })
 }
 // 拉取门店出场记录
-export function pullShopOutRecord(query) {
+export function pullShopOutRecord(query,loading,_this) {
   return request({
     url: '/biz/shopout/pullShopOutRecord',
     method: 'post',
-    params: query
+    params: query,
+    timeout: 3600 * 1000
+  }).then(function (response) {
+    loading.close();
+    _this.$alert("拉取成功...");
+  }).catch(function () {
+    loading.close();
+    _this.$alert("拉取异常...");
   })
+
 }

+ 14 - 3
eccs-ui/src/views/mall/mallinvemng/index.vue

@@ -410,13 +410,24 @@ export default {
     /** 拉取按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
-      this.$confirm('是否确认拉取保税仓所有库存?', "警告", {
+
+      const _this=this
+      // 添加遮罩
+      this.$confirm('是否确认拉取电商所有库存?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
-      }).then(function() {
-        return pullKmallInvemng(queryParams);
+      }).then(()=> {
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullKmallInvemng(queryParams,loading,_this);
+
       })
+
     }
   }
 };

+ 11 - 2
eccs-ui/src/views/mall/mallshopinvemng/index.vue

@@ -454,12 +454,21 @@ export default {
     /** 拉取按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
-      this.$confirm('是否确认拉取保税仓所有库存?', "警告", {
+      const _this=this
+      // 添加遮罩
+
+      this.$confirm('是否确认拉取电商门店所有库存?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullKmallStoreInvemng(queryParams);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullKmallStoreInvemng(queryParams,loading,_this);
       })
     }
   }

+ 1 - 1
eccs-ui/src/views/system/role/index.vue

@@ -592,4 +592,4 @@ export default {
     }
   }
 };
-</script>
+</script>

+ 20 - 2
eccs-ui/src/views/warehouse/adjustmentorder/index.vue

@@ -89,6 +89,7 @@
           type="warning"
           icon="el-icon-download"
           size="mini"
+          :disabled="single"
           @click="handlePullDetail"
           v-hasPermi="['biz:adjustmentorder:pulldetail']"
         >拉取结转明细</el-button>
@@ -385,23 +386,40 @@ export default {
     /** 拉取记录按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
+      // 添加遮罩
+      const _this=this
       this.$confirm('是否确认导出所有库存内调结转出入库记录数据项?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullAdjustmentorder(queryParams);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullAdjustmentorder(queryParams,loading,_this);
       })
     },
     /** 拉取明细按钮操作 */
     handlePullDetail(row) {
       const adjustmentOrderSns = row.adjustmentOrderSn || this.ids;
+
+      // 添加遮罩
+      const _this=this
       this.$confirm('是否确认导出所有库存内调结转出入库记录数据项?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullAdjustmentorderDetail(adjustmentOrderSns);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullAdjustmentorderDetail(adjustmentOrderSns,loading,_this);
       })
     }
   }

+ 9 - 1
eccs-ui/src/views/warehouse/invemng/index.vue

@@ -466,12 +466,20 @@ export default {
     /** 拉取按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
+      // 添加遮罩
+      const _this=this
       this.$confirm('是否确认拉取保税仓所有库存?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullInvemng(queryParams);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullInvemng(queryParams,loading,_this);
       })
     }
   }

+ 9 - 1
eccs-ui/src/views/warehouse/invereceiptgoods/index.vue

@@ -366,12 +366,20 @@ export default {
     /** 拉取按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
+      // 添加遮罩
+      const _this=this
       this.$confirm('是否确认拉取保税仓所有库存?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullInveReceiptGoods(queryParams);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullInveReceiptGoods(queryParams,loading,_this);
       })
     }
   }

+ 9 - 1
eccs-ui/src/views/warehouse/shopin/index.vue

@@ -422,12 +422,20 @@ export default {
     /** 拉取按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
+      // 添加遮罩
+      const _this=this
       this.$confirm('是否确认拉取保税仓所有库存?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullShopInRecord(queryParams);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullShopInRecord(queryParams,loading,_this);
       })
     }
   }

+ 9 - 1
eccs-ui/src/views/warehouse/shopinve/index.vue

@@ -508,12 +508,20 @@ export default {
     /** 拉取按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
+      // 添加遮罩
+      const _this=this
       this.$confirm('是否确认拉取保税仓所有库存?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullStoreInvemng(queryParams);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullStoreInvemng(queryParams,loading,_this);
       })
     }
   }

+ 9 - 1
eccs-ui/src/views/warehouse/shopmoverecord/index.vue

@@ -419,12 +419,20 @@ export default {
     /** 拉取按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
+      // 添加遮罩
+      const _this=this
       this.$confirm('是否确认拉取保税仓所有库存?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullShopMoveRecord(queryParams);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullShopMoveRecord(queryParams,loading,_this);
       })
     }
   }

+ 9 - 1
eccs-ui/src/views/warehouse/shopout/index.vue

@@ -408,12 +408,20 @@ export default {
     /** 拉取按钮操作 */
     handlePull() {
       const queryParams = this.queryParams;
+      // 添加遮罩
+      const _this=this
       this.$confirm('是否确认拉取门店出场记录?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
       }).then(function() {
-        return pullShopOutRecord(queryParams);
+        const loading = _this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+        return pullShopOutRecord(queryParams,loading,_this);
       })
     }
   }