|
|
@@ -15934,7 +15934,7 @@ This will fail in production.`);
|
|
|
search: ""
|
|
|
});
|
|
|
const handleSearch = () => {
|
|
|
- formatAppLog("log", "at pages/index/audit/express-order.vue:45", "查询:", form.value.search);
|
|
|
+ formatAppLog("log", "at pages/index/audit/express-order.vue:46", "查询:", form.value.search);
|
|
|
uni.$u.http.get("/app/orderinfo/getOrderInfoForCheck", {
|
|
|
params: {
|
|
|
...form.value
|
|
|
@@ -15946,13 +15946,8 @@ This will fail in production.`);
|
|
|
url: `/pages/index/detail/index?id=${res2.data.orderId}`
|
|
|
});
|
|
|
} else {
|
|
|
- if (res2.code == 500) {
|
|
|
- let text = form.value.search + "订单不存在";
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
- } else {
|
|
|
- uni.$u.toast(res2.msg);
|
|
|
- uni.$u.ttsModule.speak(res2.msg);
|
|
|
- }
|
|
|
+ let text = form.value.search + res2.msg;
|
|
|
+ uni.$u.ttsModule.speak(text);
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
@@ -16554,6 +16549,7 @@ This will fail in production.`);
|
|
|
uni.$u.toast("保存成功");
|
|
|
uni.$u.ttsModule.speak("保存成功");
|
|
|
showModal.value = false;
|
|
|
+ getOrderDetail();
|
|
|
} else {
|
|
|
uni.$u.toast(res2.msg);
|
|
|
}
|
|
|
@@ -16614,7 +16610,7 @@ This will fail in production.`);
|
|
|
vue.createElementVNode(
|
|
|
"text",
|
|
|
{ class: "content" },
|
|
|
- vue.toDisplayString($props.detail.expectMoney),
|
|
|
+ vue.toDisplayString($props.detail.finalMoney),
|
|
|
1
|
|
|
/* TEXT */
|
|
|
)
|
|
|
@@ -16907,6 +16903,11 @@ This will fail in production.`);
|
|
|
}, {
|
|
|
default: vue.withCtx(() => [
|
|
|
vue.createElementVNode("view", { class: "log-container" }, [
|
|
|
+ vue.createElementVNode("view", { class: "log-header" }, [
|
|
|
+ vue.createElementVNode("text", null, "描述"),
|
|
|
+ vue.createElementVNode("text", null, "操作人"),
|
|
|
+ vue.createElementVNode("text", null, "时间")
|
|
|
+ ]),
|
|
|
(vue.openBlock(true), vue.createElementBlock(
|
|
|
vue.Fragment,
|
|
|
null,
|
|
|
@@ -16916,23 +16917,23 @@ This will fail in production.`);
|
|
|
key: index2
|
|
|
}, [
|
|
|
vue.createElementVNode(
|
|
|
- "view",
|
|
|
+ "text",
|
|
|
{ class: "log-item-content" },
|
|
|
- vue.toDisplayString(log.content),
|
|
|
+ vue.toDisplayString(log.statusName),
|
|
|
1
|
|
|
/* TEXT */
|
|
|
),
|
|
|
vue.createElementVNode(
|
|
|
- "view",
|
|
|
- { class: "log-item-name common-text" },
|
|
|
- "操作人:" + vue.toDisplayString(log.createName),
|
|
|
+ "text",
|
|
|
+ { class: "log-item-name" },
|
|
|
+ vue.toDisplayString(log.createName),
|
|
|
1
|
|
|
/* TEXT */
|
|
|
),
|
|
|
vue.createElementVNode(
|
|
|
- "view",
|
|
|
- { class: "log-item-time common-text" },
|
|
|
- "操作时间:" + vue.toDisplayString(log.createTime),
|
|
|
+ "text",
|
|
|
+ { class: "log-item-time" },
|
|
|
+ vue.toDisplayString(log.createTime),
|
|
|
1
|
|
|
/* TEXT */
|
|
|
)
|
|
|
@@ -17710,32 +17711,42 @@ This will fail in production.`);
|
|
|
const goodBooks = { title: "良好", list: [], backgroundColor: "#81b337", id: "good" };
|
|
|
const otherBooks = [];
|
|
|
const allFirstLetter = [];
|
|
|
+ const handleBookCategorization = (book) => {
|
|
|
+ let firstLetter;
|
|
|
+ const char = book.bookName.charAt(0);
|
|
|
+ if (/^[A-Za-z]$/.test(char)) {
|
|
|
+ firstLetter = char.toUpperCase();
|
|
|
+ } else if (/^[\u4E00-\u9FA5]$/.test(char)) {
|
|
|
+ firstLetter = toPinyin.chineseToInitials(toPinyin.chineseToPinYin(char));
|
|
|
+ } else {
|
|
|
+ firstLetter = char;
|
|
|
+ }
|
|
|
+ let bool = otherBooks.some((item) => item.title == firstLetter);
|
|
|
+ if (!bool) {
|
|
|
+ otherBooks.push({ id: firstLetter, title: firstLetter, list: [{ ...book }] });
|
|
|
+ allFirstLetter.push(firstLetter);
|
|
|
+ emit2("get-all-firstLetter", allFirstLetter);
|
|
|
+ } else {
|
|
|
+ otherBooks.find((item) => item.title == firstLetter).list.push(book);
|
|
|
+ }
|
|
|
+ };
|
|
|
list.forEach((book) => {
|
|
|
- var _a, _b;
|
|
|
+ var _a, _b, _c;
|
|
|
+ formatAppLog("log", "at pages/index/detail/components/BookInfo.vue:106", book, "book");
|
|
|
book.goodNum = ((_a = book.auditCommentList) == null ? void 0 : _a.filter((v) => v.sts == 1).length) || 0;
|
|
|
book.badNum = ((_b = book.auditCommentList) == null ? void 0 : _b.filter((v) => v.sts == 3).length) || 0;
|
|
|
- if (book.badNum > 0) {
|
|
|
- poorBooks.list.push(book);
|
|
|
- } else if (book.goodNum > 0) {
|
|
|
- goodBooks.list.push(book);
|
|
|
- } else {
|
|
|
- let firstLetter;
|
|
|
- const char = book.bookName.charAt(0);
|
|
|
- if (/^[A-Za-z]$/.test(char)) {
|
|
|
- firstLetter = char.toUpperCase();
|
|
|
- } else if (/^[\u4E00-\u9FA5]$/.test(char)) {
|
|
|
- firstLetter = toPinyin.chineseToInitials(toPinyin.chineseToPinYin(char));
|
|
|
- } else {
|
|
|
- firstLetter = char;
|
|
|
- }
|
|
|
- let bool = otherBooks.some((item) => item.title == firstLetter);
|
|
|
- if (!bool) {
|
|
|
- otherBooks.push({ id: firstLetter, title: firstLetter, list: [{ ...book }] });
|
|
|
- allFirstLetter.push(firstLetter);
|
|
|
- emit2("get-all-firstLetter", allFirstLetter);
|
|
|
+ const totalAudited = ((_c = book.auditCommentList) == null ? void 0 : _c.filter((v) => v.sts !== 0).length) || 0;
|
|
|
+ const isFullyAudited = totalAudited === book.num;
|
|
|
+ if (isFullyAudited) {
|
|
|
+ if (book.auditCommentList.some((v) => v.sts === 3)) {
|
|
|
+ poorBooks.list.push(book);
|
|
|
+ } else if (book.auditCommentList.every((v) => v.sts === 1)) {
|
|
|
+ goodBooks.list.push(book);
|
|
|
} else {
|
|
|
- otherBooks.find((item) => item.title == firstLetter).list.push(book);
|
|
|
+ handleBookCategorization(book);
|
|
|
}
|
|
|
+ } else {
|
|
|
+ handleBookCategorization(book);
|
|
|
}
|
|
|
});
|
|
|
return { poorBooks, goodBooks, otherBooks };
|
|
|
@@ -17746,6 +17757,7 @@ This will fail in production.`);
|
|
|
let poor = poorBooks.list.length > 0 ? poorBooks : {};
|
|
|
let good = goodBooks.list.length > 0 ? goodBooks : {};
|
|
|
formatList.value = [...otherBooks, poor, good];
|
|
|
+ formatAppLog("log", "at pages/index/detail/components/BookInfo.vue:139", formatList.value, "xxxxx");
|
|
|
}, { immediate: true, deep: true });
|
|
|
const __returned__ = { props: props2, emit: emit2, auditNum, handleBookClick, getAuditCateNum, formatBookList, formatList, ref: vue.ref, watch: vue.watch, computed: vue.computed, BookItem: BookItem$2, get toPinyin() {
|
|
|
return toPinyin;
|
|
|
@@ -18292,26 +18304,18 @@ This will fail in production.`);
|
|
|
});
|
|
|
}
|
|
|
function handleConfirm() {
|
|
|
- uni.showModal({
|
|
|
- title: "提示",
|
|
|
- content: "是否确认收货?",
|
|
|
- success: (res2) => {
|
|
|
- if (res2.confirm) {
|
|
|
- uni.showLoading({ title: "加载中...", mask: true });
|
|
|
- uni.$u.http.post("/app/orderinfo/confirmOrder", {
|
|
|
- searchType: 1,
|
|
|
- "search": orderDetail.value.orderId
|
|
|
- }).then((res3) => {
|
|
|
- if (res3.code == 200) {
|
|
|
- uni.showToast({ title: "确认收货成功", icon: "none" });
|
|
|
- uni.$u.ttsModule.speak("确认收货成功");
|
|
|
- getOrderDetail();
|
|
|
- }
|
|
|
- }).finally(() => {
|
|
|
- uni.hideLoading();
|
|
|
- });
|
|
|
- }
|
|
|
+ uni.showLoading({ title: "加载中...", mask: true });
|
|
|
+ uni.$u.http.post("/app/orderinfo/confirmOrder", {
|
|
|
+ searchType: 1,
|
|
|
+ "search": orderDetail.value.orderId
|
|
|
+ }).then((res2) => {
|
|
|
+ if (res2.code == 200) {
|
|
|
+ uni.showToast({ title: "确认收货成功", icon: "none" });
|
|
|
+ uni.$u.ttsModule.speak("确认收货成功");
|
|
|
+ getOrderDetail2();
|
|
|
}
|
|
|
+ }).finally(() => {
|
|
|
+ uni.hideLoading();
|
|
|
});
|
|
|
}
|
|
|
function handleComplete() {
|
|
|
@@ -18339,7 +18343,7 @@ This will fail in production.`);
|
|
|
}
|
|
|
}
|
|
|
const orderDetail = vue.ref({ status: 0 });
|
|
|
- function getOrderDetail() {
|
|
|
+ function getOrderDetail2() {
|
|
|
if (!orderId.value)
|
|
|
return;
|
|
|
uni.showLoading({
|
|
|
@@ -18406,10 +18410,10 @@ This will fail in production.`);
|
|
|
return;
|
|
|
}
|
|
|
let isbns = orderDetail.value.detailVoList.map((item) => item.isbn);
|
|
|
- formatAppLog("log", "at pages/index/detail/index.vue:262", isbns.includes(isbn), "isbns");
|
|
|
+ formatAppLog("log", "at pages/index/detail/index.vue:254", isbns.includes(isbn), "isbns");
|
|
|
if (isbns.includes(isbn)) {
|
|
|
let book = orderDetail.value.detailVoList.find((item) => item.isbn == isbn);
|
|
|
- formatAppLog("log", "at pages/index/detail/index.vue:266", orderDetail.value.detailVoList, book, "book");
|
|
|
+ formatAppLog("log", "at pages/index/detail/index.vue:258", orderDetail.value.detailVoList, book, "book");
|
|
|
if (book.auditCommentList.every((item) => item.sts == 1)) {
|
|
|
let text = `${isbn}已审核为良好`;
|
|
|
return uni.$u.ttsModule.speak(text);
|
|
|
@@ -18435,7 +18439,7 @@ This will fail in production.`);
|
|
|
function handleScanCode() {
|
|
|
uni.scanCode({
|
|
|
success: (res2) => {
|
|
|
- formatAppLog("log", "at pages/index/detail/index.vue:298", typeof res2.result, "res");
|
|
|
+ formatAppLog("log", "at pages/index/detail/index.vue:290", typeof res2.result, "res");
|
|
|
res2.result && handleScan(res2.result);
|
|
|
}
|
|
|
});
|
|
|
@@ -18445,7 +18449,7 @@ This will fail in production.`);
|
|
|
const type2 = vue.ref(1);
|
|
|
onLoad((option) => {
|
|
|
orderId.value = option.id;
|
|
|
- getOrderDetail();
|
|
|
+ getOrderDetail2();
|
|
|
isOnLoad.value = true;
|
|
|
type2.value = option.type || 1;
|
|
|
uni.removeStorageSync("scannedBooks");
|
|
|
@@ -18456,9 +18460,9 @@ This will fail in production.`);
|
|
|
});
|
|
|
});
|
|
|
onShow(() => {
|
|
|
- getOrderDetail();
|
|
|
+ getOrderDetail2();
|
|
|
});
|
|
|
- const __returned__ = { showAuditorSelector, selectedAuditor, handleAuditorSelected, toView, scrollToView, scrollToTop, handleBindCode, list, current, handleSectionChange, allLetters, onGetAllFirstLetter, handleLogisticsConfirm, handleConfirm, handleComplete, orderDetail, getOrderDetail, checkIsbn, handleScan, handleScanCode, orderId, isOnLoad, type: type2, ref: vue.ref, get onLoad() {
|
|
|
+ const __returned__ = { showAuditorSelector, selectedAuditor, handleAuditorSelected, toView, scrollToView, scrollToTop, handleBindCode, list, current, handleSectionChange, allLetters, onGetAllFirstLetter, handleLogisticsConfirm, handleConfirm, handleComplete, orderDetail, getOrderDetail: getOrderDetail2, checkIsbn, handleScan, handleScanCode, orderId, isOnLoad, type: type2, ref: vue.ref, get onLoad() {
|
|
|
return onLoad;
|
|
|
}, get onShow() {
|
|
|
return onShow;
|
|
|
@@ -18836,61 +18840,50 @@ This will fail in production.`);
|
|
|
};
|
|
|
const scannedBooks = vue.ref([]);
|
|
|
function checkIsbn(isbn) {
|
|
|
- let reg = /(?:[0-9]+\-?){9}[0-9X]|(?:978|979)\-?(?:[0-9]+\-?){10}/;
|
|
|
- if (reg.test(isbn)) {
|
|
|
+ const isbn13Regex = /^(?:97[89]-?\d{1,5}-?\d{1,7}-?\d{1,6}-?\d)$/;
|
|
|
+ if (isbn13Regex.test(isbn)) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
function handleScan(isbn) {
|
|
|
- var _a, _b, _c;
|
|
|
+ var _a, _b;
|
|
|
if (!checkIsbn(isbn)) {
|
|
|
let text = `不是正确的ISBN码`;
|
|
|
uni.$u.ttsModule.speak(text);
|
|
|
return;
|
|
|
}
|
|
|
let isbns = orderDetail.value.detailVoList.map((item) => item.isbn);
|
|
|
- orderDetail.value.totalNum;
|
|
|
if (isbns.includes(isbn)) {
|
|
|
let book = orderDetail.value.detailVoList.find((item) => item.isbn == isbn);
|
|
|
- if (book.num == ((_a = book.auditCommentList) == null ? void 0 : _a.length)) {
|
|
|
+ if (((_a = book.auditCommentList) == null ? void 0 : _a.length) > 0) {
|
|
|
let text = "";
|
|
|
if (book.auditCommentList.every((item) => item.sts == 1)) {
|
|
|
text = `${isbn}已审核为良好`;
|
|
|
uni.$u.ttsModule.speak(text);
|
|
|
return;
|
|
|
- } else {
|
|
|
- text = `${isbn}已审核为极差`;
|
|
|
- scannedBooks.value.push(isbn);
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
- uni.setStorageSync("scannedBooks", scannedBooks.value);
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/index/detail/batch-audit?orderId=${orderId.value}`
|
|
|
- });
|
|
|
}
|
|
|
- } else {
|
|
|
- let hasAuditNum = ((_b = book.auditCommentList) == null ? void 0 : _b.length) || 0;
|
|
|
- let notAuditNum = book.num - hasAuditNum;
|
|
|
- let poorNum = ((_c = book.auditCommentList) == null ? void 0 : _c.filter((item) => item.sts == 3).length) || 0;
|
|
|
+ book.auditCommentList.filter((item) => item.sts !== 0).length || 0;
|
|
|
+ let notAuditNum = book.auditCommentList.filter((item) => item.sts === 0).length || 0;
|
|
|
+ let poorNum = ((_b = book.auditCommentList) == null ? void 0 : _b.filter((item) => item.sts == 3).length) || 0;
|
|
|
let scannedNum = scannedBooks.value.filter((item) => item == isbn).length || 0;
|
|
|
if (scannedNum >= notAuditNum + poorNum) {
|
|
|
- let text = `${isbn}已超出订单中的数量`;
|
|
|
- return uni.$u.ttsModule.speak(text);
|
|
|
+ let text2 = `${isbn}已超出订单中的数量`;
|
|
|
+ return uni.$u.ttsModule.speak(text2);
|
|
|
} else {
|
|
|
if (book.suit == 1) {
|
|
|
- let text = `${isbn}请注意套装书是否齐全`;
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
+ let text2 = `${isbn}请注意套装书是否齐全`;
|
|
|
+ uni.$u.ttsModule.speak(text2);
|
|
|
}
|
|
|
if (book.bookWarn == 1) {
|
|
|
- let text = `请注意${isbn}需要取出`;
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
+ let text2 = `请注意${isbn}需要取出`;
|
|
|
+ uni.$u.ttsModule.speak(text2);
|
|
|
}
|
|
|
if (scannedNum >= notAuditNum && scannedNum < notAuditNum + poorNum) {
|
|
|
- let text = `${isbn}已审核为极差`;
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
+ let text2 = `${isbn}已审核为极差`;
|
|
|
+ uni.$u.ttsModule.speak(text2);
|
|
|
}
|
|
|
scannedBooks.value.push(isbn);
|
|
|
- formatAppLog("log", "at pages/index/detail/book-audit.vue:153", scannedBooks.value, "book-audit");
|
|
|
uni.setStorageSync("scannedBooks", scannedBooks.value);
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/index/detail/batch-audit?orderId=${orderId.value}`
|
|
|
@@ -18952,6 +18945,8 @@ This will fail in production.`);
|
|
|
onShow(() => {
|
|
|
var _a;
|
|
|
checkUserId.value = (_a = uni.getStorageSync("userInfo")) == null ? void 0 : _a.userId;
|
|
|
+ auditBook.value = uni.getStorageSync("auditBook");
|
|
|
+ orderDetail.value = uni.getStorageSync("orderDetail");
|
|
|
});
|
|
|
const __returned__ = { detail, getBookInfo, list, current, handleSectionChange, auditData, handleAuditSelected, scannedBooks, checkIsbn, handleScan, handleScanCode, auditInfoRef, handleAudit, auditBook, checkUserId, orderId, orderDetail, ref: vue.ref, get onLoad() {
|
|
|
return onLoad;
|
|
|
@@ -19025,7 +19020,7 @@ This will fail in production.`);
|
|
|
vue.createElementVNode(
|
|
|
"text",
|
|
|
{ class: "content" },
|
|
|
- vue.toDisplayString($setup.detail.price),
|
|
|
+ "¥" + vue.toDisplayString($setup.detail.price),
|
|
|
1
|
|
|
/* TEXT */
|
|
|
)
|
|
|
@@ -19035,7 +19030,7 @@ This will fail in production.`);
|
|
|
vue.createElementVNode(
|
|
|
"text",
|
|
|
{ class: "content" },
|
|
|
- vue.toDisplayString($setup.detail.recycleDiscount),
|
|
|
+ vue.toDisplayString($setup.detail.recycleDiscount) + "折",
|
|
|
1
|
|
|
/* TEXT */
|
|
|
)
|
|
|
@@ -19047,14 +19042,20 @@ This will fail in production.`);
|
|
|
vue.createElementVNode(
|
|
|
"text",
|
|
|
{ class: "content" },
|
|
|
- vue.toDisplayString($setup.detail.price),
|
|
|
+ "¥" + vue.toDisplayString($setup.auditBook.expectMoney),
|
|
|
1
|
|
|
/* TEXT */
|
|
|
)
|
|
|
]),
|
|
|
vue.createElementVNode("view", { class: "flex flex-a-c flex-1" }, [
|
|
|
vue.createElementVNode("text", { class: "label" }, "审核金额"),
|
|
|
- vue.createElementVNode("text", { class: "content" }, vue.toDisplayString("0.00"))
|
|
|
+ vue.createElementVNode(
|
|
|
+ "text",
|
|
|
+ { class: "content" },
|
|
|
+ "¥" + vue.toDisplayString($setup.auditBook.finalMoney),
|
|
|
+ 1
|
|
|
+ /* TEXT */
|
|
|
+ )
|
|
|
])
|
|
|
])
|
|
|
]),
|
|
|
@@ -19245,62 +19246,58 @@ This will fail in production.`);
|
|
|
if (res2.code == 200) {
|
|
|
detailMap.value[isbn] = res2.data;
|
|
|
scannedBooksDetail.value.push(res2.data);
|
|
|
- formatAppLog("log", "at pages/index/detail/batch-audit.vue:38", scannedBooksDetail.value, "xxaaxx");
|
|
|
+ formatAppLog("log", "at pages/index/detail/batch-audit.vue:39", scannedBooksDetail.value, "xxaaxx");
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
+ const handleClose = (index2, isbn) => {
|
|
|
+ scannedBooksDetail.value.splice(index2, 1);
|
|
|
+ scannedBooks.value = scannedBooks.value.filter((item) => item != isbn);
|
|
|
+ };
|
|
|
function checkIsbn(isbn) {
|
|
|
- let reg = /(?:[0-9]+\-?){9}[0-9X]|(?:978|979)\-?(?:[0-9]+\-?){10}/;
|
|
|
- if (reg.test(isbn)) {
|
|
|
+ const isbn13Regex = /^(?:97[89]-?\d{1,5}-?\d{1,7}-?\d{1,6}-?\d)$/;
|
|
|
+ if (isbn13Regex.test(isbn)) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
const scannedBooks = vue.ref([]);
|
|
|
function handleScan(isbn) {
|
|
|
- var _a, _b, _c;
|
|
|
+ var _a, _b;
|
|
|
if (!checkIsbn(isbn)) {
|
|
|
let text = `不是正确的ISBN码`;
|
|
|
uni.$u.ttsModule.speak(text);
|
|
|
return;
|
|
|
}
|
|
|
let isbns = orderDetail.value.detailVoList.map((item) => item.isbn);
|
|
|
- orderDetail.value.totalNum;
|
|
|
if (isbns.includes(isbn)) {
|
|
|
let book = orderDetail.value.detailVoList.find((item) => item.isbn == isbn);
|
|
|
- if (book.num == ((_a = book.auditCommentList) == null ? void 0 : _a.length)) {
|
|
|
+ if (((_a = book.auditCommentList) == null ? void 0 : _a.length) > 0) {
|
|
|
let text = "";
|
|
|
if (book.auditCommentList.every((item) => item.sts == 1)) {
|
|
|
text = `${isbn}已审核为良好`;
|
|
|
uni.$u.ttsModule.speak(text);
|
|
|
return;
|
|
|
- } else {
|
|
|
- text = `${isbn}已审核为极差`;
|
|
|
- scannedBooks.value.push(isbn);
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
- getBookInfo(isbn);
|
|
|
}
|
|
|
- } else {
|
|
|
- let hasAuditNum = ((_b = book.auditCommentList) == null ? void 0 : _b.length) || 0;
|
|
|
- let notAuditNum = book.num - hasAuditNum;
|
|
|
- let poorNum = ((_c = book.auditCommentList) == null ? void 0 : _c.filter((item) => item.sts == 3).length) || 0;
|
|
|
+ book.auditCommentList.filter((item) => item.sts !== 0).length || 0;
|
|
|
+ let notAuditNum = book.auditCommentList.filter((item) => item.sts === 0).length || 0;
|
|
|
+ let poorNum = ((_b = book.auditCommentList) == null ? void 0 : _b.filter((item) => item.sts == 3).length) || 0;
|
|
|
let scannedNum = scannedBooks.value.filter((item) => item == isbn).length || 0;
|
|
|
- formatAppLog("log", "at pages/index/detail/batch-audit.vue:86", scannedNum, poorNum, notAuditNum, "scannedNum");
|
|
|
if (scannedNum >= notAuditNum + poorNum) {
|
|
|
- let text = `${isbn}已超出订单中的数量`;
|
|
|
- return uni.$u.ttsModule.speak(text);
|
|
|
+ let text2 = `${isbn}已超出订单中的数量`;
|
|
|
+ return uni.$u.ttsModule.speak(text2);
|
|
|
} else {
|
|
|
if (book.suit == 1) {
|
|
|
- let text = `${isbn}请注意套装书是否齐全`;
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
+ let text2 = `${isbn}请注意套装书是否齐全`;
|
|
|
+ uni.$u.ttsModule.speak(text2);
|
|
|
}
|
|
|
if (book.bookWarn == 1) {
|
|
|
- let text = `请注意${isbn}需要取出`;
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
+ let text2 = `请注意${isbn}需要取出`;
|
|
|
+ uni.$u.ttsModule.speak(text2);
|
|
|
}
|
|
|
if (scannedNum >= notAuditNum && scannedNum < notAuditNum + poorNum) {
|
|
|
- let text = `${isbn}已审核为极差`;
|
|
|
- uni.$u.ttsModule.speak(text);
|
|
|
+ let text2 = `${isbn}已审核为极差`;
|
|
|
+ uni.$u.ttsModule.speak(text2);
|
|
|
}
|
|
|
scannedBooks.value.push(isbn);
|
|
|
getBookInfo(isbn);
|
|
|
@@ -19369,7 +19366,12 @@ This will fail in production.`);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
- const __returned__ = { detailMap, scannedBooksDetail, getBookInfo, checkIsbn, scannedBooks, handleScan, handleScanCode, checkUserId, orderId, orderDetail, showModal, isQualitySelected, showQualityModal, closeModal, toggleQuality, handleAudit, ref: vue.ref, get onLoad() {
|
|
|
+ onShow(() => {
|
|
|
+ var _a;
|
|
|
+ checkUserId.value = (_a = uni.getStorageSync("userInfo")) == null ? void 0 : _a.userId;
|
|
|
+ orderDetail.value = uni.getStorageSync("orderDetail");
|
|
|
+ });
|
|
|
+ const __returned__ = { detailMap, scannedBooksDetail, getBookInfo, handleClose, checkIsbn, scannedBooks, handleScan, handleScanCode, checkUserId, orderId, orderDetail, showModal, isQualitySelected, showQualityModal, closeModal, toggleQuality, handleAudit, ref: vue.ref, get onLoad() {
|
|
|
return onLoad;
|
|
|
}, get onShow() {
|
|
|
return onShow;
|
|
|
@@ -19385,12 +19387,13 @@ This will fail in production.`);
|
|
|
(vue.openBlock(true), vue.createElementBlock(
|
|
|
vue.Fragment,
|
|
|
null,
|
|
|
- vue.renderList($setup.scannedBooksDetail, (item) => {
|
|
|
+ vue.renderList($setup.scannedBooksDetail, (item, index2) => {
|
|
|
return vue.openBlock(), vue.createBlock($setup["BookItem"], {
|
|
|
key: item.isbn,
|
|
|
item,
|
|
|
- showClose: ""
|
|
|
- }, null, 8, ["item"]);
|
|
|
+ showClose: "",
|
|
|
+ onClose: (isbn) => $setup.handleClose(index2, isbn)
|
|
|
+ }, null, 8, ["item", "onClose"]);
|
|
|
}),
|
|
|
128
|
|
|
/* KEYED_FRAGMENT */
|
|
|
@@ -19500,7 +19503,8 @@ This will fail in production.`);
|
|
|
requestStr: "/app/orderinfo/getOrderListByUserInfo",
|
|
|
onUpdateList: $setup.updateList,
|
|
|
ref: "scrollRef",
|
|
|
- otherParams: $setup.otherParams
|
|
|
+ otherParams: $setup.otherParams,
|
|
|
+ immediate: false
|
|
|
}, {
|
|
|
default: vue.withCtx(() => [
|
|
|
vue.createVNode(_component_u_sticky, { customNavHeight: 0 }, {
|