|
@@ -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) => {
|