瀏覽代碼

售后管理

cz 1 年之前
父節點
當前提交
aeb7a9ce85
共有 1 個文件被更改,包括 21 次插入14 次删除
  1. 21 14
      src/views/salesMange/salesMange/afterSales/index.vue

+ 21 - 14
src/views/salesMange/salesMange/afterSales/index.vue

@@ -878,23 +878,30 @@ const handleClickStatus = (row) => {
   proxy
     .post("/afterSalesRecords/page", { afterSalesDetailId: row.id })
     .then((res) => {
-      recordList.value = res.rows;
-      openRecord.value = true;
-      let ids = recordList.value.map((x) => x.id);
-      proxy
-        .post("/fileInfo/getList", {
-          businessIdList: ids,
-        })
-        .then((fileObj) => {
-          for (let i = 0; i < recordList.value.length; i++) {
-            const e = recordList.value[i];
-            for (const key in fileObj) {
-              if (e.id === key) {
-                e.fileList = fileObj[key] || [];
+      if (res.rows && res.rows.length > 0) {
+        recordList.value = res.rows;
+        openRecord.value = true;
+        let ids = recordList.value.map((x) => x.id);
+        proxy
+          .post("/fileInfo/getList", {
+            businessIdList: ids,
+          })
+          .then((fileObj) => {
+            for (let i = 0; i < recordList.value.length; i++) {
+              const e = recordList.value[i];
+              for (const key in fileObj) {
+                if (e.id === key) {
+                  e.fileList = fileObj[key] || [];
+                }
               }
             }
-          }
+          });
+      } else {
+        ElMessage({
+          message: "暂无跟进记录",
+          type: "info",
         });
+      }
     });
 };
 const openFile = (path) => {