mg-ocr-invoice 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -4663,9 +4663,9 @@ const getToken = () => api.get("token"), __uploadInvoice = (n, r) => instance({
|
|
|
4663
4663
|
case "invalid":
|
|
4664
4664
|
return "error";
|
|
4665
4665
|
case "unused":
|
|
4666
|
-
return "warning";
|
|
4667
|
-
case "using":
|
|
4668
4666
|
return "ok";
|
|
4667
|
+
case "using":
|
|
4668
|
+
return "error";
|
|
4669
4669
|
case "used":
|
|
4670
4670
|
return "default";
|
|
4671
4671
|
case "noNeed":
|
|
@@ -6323,7 +6323,7 @@ const takePhoto = () => new Promise((n, r) => {
|
|
|
6323
6323
|
}, a.oncancel = () => {
|
|
6324
6324
|
document.body.removeChild(a);
|
|
6325
6325
|
}, a.click();
|
|
6326
|
-
}), _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
6326
|
+
}), _withScopeId$1 = (n) => (pushScopeId("data-v-845dc5ab"), n = n(), popScopeId(), n), _hoisted_1$2 = { class: "InvoiceList" }, _hoisted_2$2 = { class: "selectAll" }, _hoisted_3$2 = { class: "left" }, _hoisted_4$2 = { class: "right" }, _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", null, "全选", -1)), _hoisted_6$1 = ["onChange"], _hoisted_7$1 = { class: "card" }, _hoisted_8$1 = ["onClick"], _hoisted_9 = { class: "li" }, _hoisted_10 = {
|
|
6327
6327
|
key: 0,
|
|
6328
6328
|
class: "item-card"
|
|
6329
6329
|
}, _hoisted_11 = ["onClick"], _hoisted_12 = { class: "storeName" }, _hoisted_13 = { class: "name" }, _hoisted_14 = { class: "left" }, _hoisted_15 = {
|
|
@@ -6377,6 +6377,8 @@ const takePhoto = () => new Promise((n, r) => {
|
|
|
6377
6377
|
console.log(we), ae(we);
|
|
6378
6378
|
}
|
|
6379
6379
|
}), C = (X) => {
|
|
6380
|
+
if (console.log(X.invoiceStatus), X.invoiceStatus !== "unused")
|
|
6381
|
+
return showToast("发票已被使用!");
|
|
6380
6382
|
X.selected = !X.selected;
|
|
6381
6383
|
}, L = (X) => {
|
|
6382
6384
|
r(
|
|
@@ -6389,7 +6391,7 @@ const takePhoto = () => new Promise((n, r) => {
|
|
|
6389
6391
|
b.value
|
|
6390
6392
|
);
|
|
6391
6393
|
}, O = (X) => X.invoiceStatus === "unused" ? !!(X.manualModify || !X.invoiceExceptionInfo) : !1, k = ref(!1), I = (X) => {
|
|
6392
|
-
b.value.forEach((ae) => {
|
|
6394
|
+
k.value && showToast("存在已使用或异常发票, 已自动过滤"), b.value.forEach((ae) => {
|
|
6393
6395
|
ae.selected = O(ae) && k.value;
|
|
6394
6396
|
});
|
|
6395
6397
|
}, S = () => {
|
|
@@ -6645,7 +6647,7 @@ const takePhoto = () => new Promise((n, r) => {
|
|
|
6645
6647
|
}, 8, ["show"])
|
|
6646
6648
|
], 64));
|
|
6647
6649
|
}
|
|
6648
|
-
}),
|
|
6650
|
+
}), index_vue_vue_type_style_index_0_scoped_845dc5ab_lang = "", InvoiceList = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-845dc5ab"]]), _withScopeId = (n) => (pushScopeId("data-v-87442ad9"), n = n(), popScopeId(), n), _hoisted_1$1 = { class: "PaymentMode" }, _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "title" }, "选择识别方式", -1)), _hoisted_3$1 = { class: "list" }, _hoisted_4$1 = ["onClick"], _hoisted_5 = { class: "left-text" }, _hoisted_6 = { class: "icon-left" }, _hoisted_7 = { class: "text" }, _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "right-icon" }, [
|
|
6649
6651
|
/* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-xiangyou" })
|
|
6650
6652
|
], -1)), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
6651
6653
|
__name: "index",
|