mg-ocr-invoice 0.4.16 → 0.4.17
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 +5 -21
- package/dist/index.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/InvoiceList/index.vue +46 -39
package/dist/index.es.js
CHANGED
|
@@ -5773,7 +5773,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-7954928e"), n =
|
|
|
5773
5773
|
}, r.oncancel = () => {
|
|
5774
5774
|
document.body.removeChild(r);
|
|
5775
5775
|
}, r.click();
|
|
5776
|
-
}), _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
5776
|
+
}), _withScopeId$1 = (n) => (pushScopeId("data-v-cb8575ce"), 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 = { class: "card" }, _hoisted_7$1 = ["onClick"], _hoisted_8$1 = ["onClick"], _hoisted_9 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "gg-more-alt" }, null, -1)), _hoisted_10 = [
|
|
5777
5777
|
_hoisted_9
|
|
5778
5778
|
], _hoisted_11 = { class: "storeName" }, _hoisted_12 = { class: "name" }, _hoisted_13 = { class: "left" }, _hoisted_14 = { class: "tags" }, _hoisted_15 = {
|
|
5779
5779
|
key: 0,
|
|
@@ -5881,31 +5881,15 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-7954928e"), n =
|
|
|
5881
5881
|
e.value
|
|
5882
5882
|
);
|
|
5883
5883
|
}, G = (be) => {
|
|
5884
|
-
if (!be.
|
|
5884
|
+
if (!be.invoiceCanBeUse)
|
|
5885
5885
|
return showMessage({
|
|
5886
5886
|
teleport: api.get("teleport") || null,
|
|
5887
|
-
message: "
|
|
5888
|
-
});
|
|
5889
|
-
if (be.invoiceStatus !== "unused")
|
|
5890
|
-
return showMessage({
|
|
5891
|
-
message: "发票已被使用!"
|
|
5892
|
-
});
|
|
5893
|
-
if (!be.invoiceNum)
|
|
5894
|
-
return showMessage({
|
|
5895
|
-
message: "发票号码为空,无法使用"
|
|
5896
|
-
});
|
|
5897
|
-
if (be.invalidFlag === "2")
|
|
5898
|
-
return showMessage({
|
|
5899
|
-
message: "发票已经被作废,无法使用"
|
|
5900
|
-
});
|
|
5901
|
-
if (be.invalidFlag === "9")
|
|
5902
|
-
return showMessage({
|
|
5903
|
-
message: "发票被全额红冲,请联系商家确认"
|
|
5887
|
+
message: "发票异常,无法使用!"
|
|
5904
5888
|
});
|
|
5905
5889
|
be.selected = !be.selected;
|
|
5906
5890
|
}, ye = (be) => {
|
|
5907
5891
|
U.value = !0, R.value = be;
|
|
5908
|
-
}, he = (be) =>
|
|
5892
|
+
}, he = (be) => !!be.invoiceCanBeUse, J = ref(!1), K = (be) => {
|
|
5909
5893
|
J.value && showMessage({
|
|
5910
5894
|
message: "已选择全部可用发票"
|
|
5911
5895
|
}), e.value.forEach((Re) => {
|
|
@@ -6296,7 +6280,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-7954928e"), n =
|
|
|
6296
6280
|
}, 8, ["modelValue"])
|
|
6297
6281
|
]));
|
|
6298
6282
|
}
|
|
6299
|
-
}),
|
|
6283
|
+
}), index_vue_vue_type_style_index_0_scoped_cb8575ce_lang = "", InvoiceList = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-cb8575ce"]]), _withScopeId = (n) => (pushScopeId("data-v-754186cd"), 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" }, [
|
|
6300
6284
|
/* @__PURE__ */ createElementVNode("i", { class: "gg-chevron-right" })
|
|
6301
6285
|
], -1)), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
6302
6286
|
__name: "index",
|