瀏覽代碼

仓储费计算

wengyuwen 4 年之前
父節點
當前提交
9859c73995
共有 1 個文件被更改,包括 15 次插入10 次删除
  1. 15 10
      src/views/warehouseBusiness/storageFeeCalculation/index.vue

+ 15 - 10
src/views/warehouseBusiness/storageFeeCalculation/index.vue

@@ -1545,17 +1545,22 @@
       },
       handleExportItems() {
         const fIds = this.form.fId
-        this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning",
-        })
-          .then(function () {
-            return exportWarehousebillsitems(fIds);
+        if(fIds !== null){
+          this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
           })
-          .then((response) => {
-            this.download(response.msg);
-          });
+            .then(function () {
+              return exportWarehousebillsitems(fIds);
+            })
+            .then((response) => {
+              this.download(response.msg);
+            });
+        }else{
+          this.$message("请先保存")
+        }
+
       },
       deleteRow(index, rows) {
         rows.splice(index, 1);