Browse Source

海运进出口 空运进出口 生成账单和撤销账单加上loading

Qukatie 6 days ago
parent
commit
eb649eca96

+ 16 - 0
src/views/iosBasicData/AirtransportExport/bills/assembly/feecenter.vue

@@ -2369,12 +2369,20 @@ export default {
                 teamId: this.assemblyForm.teamId,
                 teamId: this.assemblyForm.teamId,
                 teamName: this.assemblyForm.teamName
                 teamName: this.assemblyForm.teamName
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsGenerateBill(obj).then(res => {
             finaccbillsGenerateBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 撤销账单接口
         // 撤销账单接口
@@ -2382,12 +2390,20 @@ export default {
             const obj = {
             const obj = {
                 feeCenterList: list,
                 feeCenterList: list,
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsRevokeBill(obj).then(res => {
             finaccbillsRevokeBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 一键编辑
         // 一键编辑

+ 16 - 0
src/views/iosBasicData/AirtransportImport/bills/assembly/feecenter.vue

@@ -2391,12 +2391,20 @@ export default {
                 teamId: this.assemblyForm.teamId,
                 teamId: this.assemblyForm.teamId,
                 teamName: this.assemblyForm.teamName
                 teamName: this.assemblyForm.teamName
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsGenerateBill(obj).then(res => {
             finaccbillsGenerateBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 撤销账单接口
         // 撤销账单接口
@@ -2404,12 +2412,20 @@ export default {
             const obj = {
             const obj = {
                 feeCenterList: list,
                 feeCenterList: list,
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsRevokeBill(obj).then(res => {
             finaccbillsRevokeBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 一键编辑
         // 一键编辑

+ 16 - 0
src/views/iosBasicData/OceanFreightImport/bills/assembly/feecenter.vue

@@ -2811,12 +2811,20 @@ export default {
                 teamId: this.assemblyForm.teamId,
                 teamId: this.assemblyForm.teamId,
                 teamName: this.assemblyForm.teamName
                 teamName: this.assemblyForm.teamName
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsGenerateBill(obj).then(res => {
             finaccbillsGenerateBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 撤销账单接口
         // 撤销账单接口
@@ -2824,12 +2832,20 @@ export default {
             const obj = {
             const obj = {
                 feeCenterList: list,
                 feeCenterList: list,
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsRevokeBill(obj).then(res => {
             finaccbillsRevokeBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 一键编辑
         // 一键编辑

+ 16 - 0
src/views/iosBasicData/SeafreightExportF/bills/assembly/feecenter.vue

@@ -2976,12 +2976,20 @@ export default {
                 teamId: this.assemblyForm.teamId,
                 teamId: this.assemblyForm.teamId,
                 teamName: this.assemblyForm.teamName
                 teamName: this.assemblyForm.teamName
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsGenerateBill(obj).then(res => {
             finaccbillsGenerateBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 撤销账单接口
         // 撤销账单接口
@@ -2989,12 +2997,20 @@ export default {
             const obj = {
             const obj = {
                 feeCenterList: list,
                 feeCenterList: list,
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsRevokeBill(obj).then(res => {
             finaccbillsRevokeBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 一键编辑
         // 一键编辑

+ 16 - 0
src/views/iosBasicData/reportClose/AEreportClose/assembly/feecenter.vue

@@ -2077,12 +2077,20 @@ export default {
                 teamId: this.assemblyForm.teamId,
                 teamId: this.assemblyForm.teamId,
                 teamName: this.assemblyForm.teamName
                 teamName: this.assemblyForm.teamName
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsGenerateBill(obj).then(res => {
             finaccbillsGenerateBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 撤销账单接口
         // 撤销账单接口
@@ -2090,12 +2098,20 @@ export default {
             const obj = {
             const obj = {
                 feeCenterList: list,
                 feeCenterList: list,
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsRevokeBill(obj).then(res => {
             finaccbillsRevokeBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 一键编辑
         // 一键编辑

+ 16 - 0
src/views/iosBasicData/reportClose/AIreportClose/assembly/feecenter.vue

@@ -2078,12 +2078,20 @@ export default {
                 teamId: this.assemblyForm.teamId,
                 teamId: this.assemblyForm.teamId,
                 teamName: this.assemblyForm.teamName
                 teamName: this.assemblyForm.teamName
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsGenerateBill(obj).then(res => {
             finaccbillsGenerateBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 撤销账单接口
         // 撤销账单接口
@@ -2091,12 +2099,20 @@ export default {
             const obj = {
             const obj = {
                 feeCenterList: list,
                 feeCenterList: list,
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsRevokeBill(obj).then(res => {
             finaccbillsRevokeBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 一键编辑
         // 一键编辑

+ 16 - 0
src/views/iosBasicData/reportClose/SEreportClose/assembly/feecenter.vue

@@ -2079,12 +2079,20 @@ export default {
                 teamId: this.assemblyForm.teamId,
                 teamId: this.assemblyForm.teamId,
                 teamName: this.assemblyForm.teamName
                 teamName: this.assemblyForm.teamName
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsGenerateBill(obj).then(res => {
             finaccbillsGenerateBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 撤销账单接口
         // 撤销账单接口
@@ -2092,12 +2100,20 @@ export default {
             const obj = {
             const obj = {
                 feeCenterList: list,
                 feeCenterList: list,
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsRevokeBill(obj).then(res => {
             finaccbillsRevokeBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 一键编辑
         // 一键编辑

+ 16 - 0
src/views/iosBasicData/reportClose/SIreportClose/assembly/feecenter.vue

@@ -2075,12 +2075,20 @@ export default {
                 teamId: this.assemblyForm.teamId,
                 teamId: this.assemblyForm.teamId,
                 teamName: this.assemblyForm.teamName
                 teamName: this.assemblyForm.teamName
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsGenerateBill(obj).then(res => {
             finaccbillsGenerateBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 撤销账单接口
         // 撤销账单接口
@@ -2088,12 +2096,20 @@ export default {
             const obj = {
             const obj = {
                 feeCenterList: list,
                 feeCenterList: list,
             }
             }
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
             finaccbillsRevokeBill(obj).then(res => {
             finaccbillsRevokeBill(obj).then(res => {
                 this.$message({
                 this.$message({
                     type: "success",
                     type: "success",
                     message: "操作成功!"
                     message: "操作成功!"
                 });
                 });
                 this.$emit('billsDetailfun')
                 this.$emit('billsDetailfun')
+            }).finally(() => {
+                loading.close()
             })
             })
         },
         },
         // 一键编辑
         // 一键编辑