完善录音时长功能
This commit is contained in:
@@ -1756,11 +1756,6 @@ const _sfc_main = {
|
||||
const seconds = String(date.getSeconds()).padStart(2, "0");
|
||||
formattedTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
||||
}
|
||||
let durationValue = null;
|
||||
if (item.duration !== null && item.duration !== void 0 && item.duration !== "") {
|
||||
const numDuration = Number(item.duration);
|
||||
durationValue = isNaN(numDuration) ? null : numDuration;
|
||||
}
|
||||
return {
|
||||
id: item.id,
|
||||
title: `${item.salesName || ""}的服务记录`,
|
||||
@@ -1769,8 +1764,6 @@ const _sfc_main = {
|
||||
customerName: item.customerName || "",
|
||||
recordingName: item.recordingName || "",
|
||||
// 记录名称
|
||||
duration: durationValue,
|
||||
// 录音时长(分钟),数字类型,null 表示无数据
|
||||
// 保留原始数据,用于详情页
|
||||
rawData: item
|
||||
};
|
||||
@@ -1788,7 +1781,7 @@ const _sfc_main = {
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/furniture_customer/furniture_customer.vue:2472", "获取服务记录失败:", error);
|
||||
common_vendor.index.__f__("error", "at pages/furniture_customer/furniture_customer.vue:2464", "获取服务记录失败:", error);
|
||||
common_vendor.index.showToast({
|
||||
title: `获取服务记录失败: ${error.errMsg || error.message || "未知错误"}`,
|
||||
icon: "none",
|
||||
|
||||
Reference in New Issue
Block a user