xyvcard-goods 0.0.33 → 0.0.35
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/BatchSetting-B1LcBFPD.mjs +333 -0
- package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
- package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
- package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
- package/dist/GoodsLogisticsForm-BqlwdGQ1.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs +433 -0
- package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
- package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
- package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs +347 -0
- package/dist/SingleSku-rWv9vVhv.mjs +351 -0
- package/dist/constant-sVd2JbJt.mjs +115 -0
- package/dist/edit-B1cmsJpy.mjs +70 -0
- package/dist/{edit-DBTNknBy.mjs → edit-Br1Y569l.mjs} +8 -7
- package/dist/{edit-CZwlbL9o.mjs → edit-CET8Fr-t.mjs} +18 -18
- package/dist/{edit-1Lv_dvlq.mjs → edit-CagYTFKr.mjs} +1 -1
- package/dist/{edit-D2zcGl_U.mjs → edit-iJGrWlSv.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +32 -32
- package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
- package/dist/{index-BhUD_X30.mjs → index copy-kNLE7fPg.mjs } +6 -5
- package/dist/index-C61SQFSx.mjs +264 -0
- package/dist/index-CeWPdEJD.mjs +713 -0
- package/dist/{index-BpXZNA11.mjs → index-Cg6GUdSP.mjs} +3 -3
- package/dist/index-CyxnVWnL.mjs +182 -0
- package/dist/{index-DGYGNHfx.mjs → index-D9s8hsVw.mjs} +3 -3
- package/dist/{index-BXa-atkT.mjs → index-DbnKa_BJ.mjs} +1 -1
- package/dist/{index-DXIGHcIv.mjs → index-DoxTu4kg.mjs} +5 -4
- package/dist/{index-Cl4wz2yF.mjs → index-kw0UYOIu.mjs} +3 -3
- package/dist/{index-CRfiEzkA.mjs → index-xQgC-8Gd.mjs} +1237 -1141
- package/dist/index.mjs +1 -1
- package/dist/info-CTElDVo6.mjs +376 -0
- package/dist/{info-DfbU-CWk.mjs → info-DpGJgdac.mjs} +37 -36
- package/dist/{skuForm-DoIpxDvq.mjs → skuForm-C7w9YIDe.mjs} +40 -39
- package/dist/skuForm-CPlnCToi.mjs +279 -0
- package/dist/skuTable-C-LcASbX.mjs +594 -0
- package/dist/spec-DkiGCkuM.mjs +44 -0
- package/dist/style.css +1 -1
- package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +36 -0
- package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
- package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
- package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
- package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +21 -0
- package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +72 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +271 -0
- package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
- package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
- package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
- package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
- package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
- package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
- package/dts/xyvcard-goods/src/constant.d.ts +107 -0
- package/dts/xyvcard-goods/src/index.d.ts +12 -0
- package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +173 -0
- package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/main.d.ts +7 -0
- package/dts/xyvcard-goods/src/permission.d.ts +1 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +7 -0
- package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
- package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
- package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +53 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
- package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
- package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
- package/package.json +6 -5
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +0 -374
- package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
- package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
- package/dist/edit copy-tfwJCdiV.mjs +0 -526
- package/dist/edit-Db2EJ9dq.mjs +0 -526
- package/dist/index-BHmGYIuc.mjs +0 -24
- package/dist/index-Df-F10aZ.mjs +0 -264
- package/dist/index-vHQhUQSO.mjs +0 -95
- package/dist/info-DDi6GKQH.mjs +0 -365
- package/dist/skuForm-DWIoveRP.mjs +0 -475
- package/dist/skuTable-BVBtWrf9.mjs +0 -639
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, mergeModels as B, ref as I, reactive as N, useModel as E, resolveComponent as r, createBlock as K, openBlock as O, withCtx as l, createVNode as o, unref as d, createElementVNode as x, createTextVNode as w, toDisplayString as U } from "vue";
|
|
2
2
|
import { ElMessage as k } from "element-plus";
|
|
3
3
|
import { useI18n as A } from "vue-i18n";
|
|
4
|
-
import { g as p } from "./index-
|
|
4
|
+
import { g as p } from "./index-DbnKa_BJ.mjs";
|
|
5
5
|
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
-
const z = { class: "dialog-footer" }, G = /* @__PURE__ */
|
|
6
|
+
const z = { class: "dialog-footer" }, G = /* @__PURE__ */ D({
|
|
7
7
|
__name: "edit",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ B({
|
|
9
9
|
entityKey: {
|
|
10
10
|
type: Object,
|
|
11
11
|
default: () => {
|
|
@@ -15,9 +15,9 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
15
15
|
modelValue: { type: Boolean },
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
|
-
emits: /* @__PURE__ */
|
|
18
|
+
emits: /* @__PURE__ */ B(["refresh"], ["update:modelValue"]),
|
|
19
19
|
setup(f, { emit: $ }) {
|
|
20
|
-
const g =
|
|
20
|
+
const g = I(), { t: i } = A();
|
|
21
21
|
let t = N({
|
|
22
22
|
requestId: Math.random() * 10 + "",
|
|
23
23
|
updateMask: "brandName,logoUrl,description"
|
|
@@ -30,15 +30,15 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
30
30
|
trigger: "change"
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
|
-
}), a =
|
|
33
|
+
}), a = E(f, "modelValue"), _ = f;
|
|
34
34
|
function M(e) {
|
|
35
35
|
t.logoUrl = e.response.fileSrc;
|
|
36
36
|
}
|
|
37
|
-
const b = $,
|
|
37
|
+
const b = $, j = Object.keys(_.entityKey), y = I(j.length >= 1);
|
|
38
38
|
y.value && p.findById(_.entityKey).then(({ data: e }) => {
|
|
39
39
|
Object.assign(t, e);
|
|
40
40
|
});
|
|
41
|
-
const
|
|
41
|
+
const q = async () => {
|
|
42
42
|
var e;
|
|
43
43
|
await ((e = g.value) == null ? void 0 : e.validate((n) => {
|
|
44
44
|
n && (y.value ? p.update(t).then((s) => {
|
|
@@ -58,23 +58,23 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
58
58
|
a.value && (a.value = !1);
|
|
59
59
|
}
|
|
60
60
|
return (e, n) => {
|
|
61
|
-
const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"),
|
|
62
|
-
return O(), K(
|
|
61
|
+
const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), R = r("el-row"), S = r("el-form"), V = r("el-button"), F = r("el-dialog");
|
|
62
|
+
return O(), K(F, {
|
|
63
63
|
modelValue: a.value,
|
|
64
64
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
|
|
65
65
|
onClose: h
|
|
66
66
|
}, {
|
|
67
67
|
footer: l(() => [
|
|
68
68
|
x("div", z, [
|
|
69
|
-
o(
|
|
69
|
+
o(V, { onClick: h }, {
|
|
70
70
|
default: l(() => [
|
|
71
71
|
w(U(e.$t("common.cancel")), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}),
|
|
75
|
-
o(
|
|
75
|
+
o(V, {
|
|
76
76
|
type: "primary",
|
|
77
|
-
onClick:
|
|
77
|
+
onClick: q
|
|
78
78
|
}, {
|
|
79
79
|
default: l(() => [
|
|
80
80
|
w(U(e.$t("common.confirm")), 1)
|
|
@@ -84,7 +84,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
84
84
|
])
|
|
85
85
|
]),
|
|
86
86
|
default: l(() => [
|
|
87
|
-
o(
|
|
87
|
+
o(S, {
|
|
88
88
|
ref_key: "goodsBrandInfoFormRef",
|
|
89
89
|
ref: g,
|
|
90
90
|
model: d(t),
|
|
@@ -92,7 +92,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
92
92
|
rules: C
|
|
93
93
|
}, {
|
|
94
94
|
default: l(() => [
|
|
95
|
-
o(
|
|
95
|
+
o(R, null, {
|
|
96
96
|
default: l(() => [
|
|
97
97
|
o(c, { span: 24 }, {
|
|
98
98
|
default: l(() => [
|
|
@@ -103,7 +103,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
103
103
|
default: l(() => [
|
|
104
104
|
o(s, {
|
|
105
105
|
"picture-url": d(t).logoUrl,
|
|
106
|
-
|
|
106
|
+
onUploadFile: M,
|
|
107
107
|
width: 80,
|
|
108
108
|
type: "trans"
|
|
109
109
|
}, null, 8, ["picture-url"])
|
|
@@ -166,7 +166,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
166
166
|
}, 8, ["modelValue"]);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
}), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-
|
|
169
|
+
}), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-7af6cdcd"]]);
|
|
170
170
|
export {
|
|
171
171
|
W as default
|
|
172
172
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, mergeModels as v, ref as I, reactive as C, useModel as E, resolveComponent as m, createBlock as F, openBlock as K, withCtx as o, createVNode as l, unref as r, createElementVNode as O, createTextVNode as L, toDisplayString as N } from "vue";
|
|
2
2
|
import { ElMessage as w } from "element-plus";
|
|
3
3
|
import { useI18n as S } from "vue-i18n";
|
|
4
|
-
import { b as p } from "./index-
|
|
4
|
+
import { b as p } from "./index-xQgC-8Gd.mjs";
|
|
5
5
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
7
7
|
__name: "edit",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p, createBlock as an, openBlock as kn, withCtx as j, createVNode as t, unref as x, createElementVNode as Cn, createTextVNode as
|
|
1
|
+
import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p, createBlock as an, openBlock as kn, withCtx as j, createVNode as t, unref as x, createElementVNode as Cn, createTextVNode as U, toDisplayString as A } from "vue";
|
|
2
2
|
import { ElMessage as L } from "element-plus";
|
|
3
3
|
import { useI18n as Sn } from "vue-i18n";
|
|
4
|
-
import { g as B } from "./index-
|
|
5
|
-
import { D as
|
|
4
|
+
import { g as B } from "./index-xQgC-8Gd.mjs";
|
|
5
|
+
import { D as F } from "./index-C61SQFSx.mjs";
|
|
6
6
|
const Pn = /^[\uD800-\uDBFF]$/, _n = /^[\uDC00-\uDFFF]$/, Dn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
7
|
-
var
|
|
7
|
+
var O;
|
|
8
8
|
(function(n) {
|
|
9
9
|
n[n.Unknown = 1e-13] = "Unknown", n[n.Rule = 1e-12] = "Rule", n[n.DICT = 2e-8] = "DICT", n[n.Surname = 1] = "Surname", n[n.Custom = 1] = "Custom";
|
|
10
|
-
})(
|
|
10
|
+
})(O || (O = {}));
|
|
11
11
|
const r = {
|
|
12
12
|
Normal: 1,
|
|
13
13
|
Surname: 10,
|
|
@@ -18716,7 +18716,7 @@ Object.keys(W).forEach((n) => {
|
|
|
18716
18716
|
for (let g of i)
|
|
18717
18717
|
a.set(g, n);
|
|
18718
18718
|
});
|
|
18719
|
-
const
|
|
18719
|
+
const Tn = [
|
|
18720
18720
|
"zh",
|
|
18721
18721
|
"ch",
|
|
18722
18722
|
"sh",
|
|
@@ -18741,7 +18741,7 @@ const In = [
|
|
|
18741
18741
|
"y",
|
|
18742
18742
|
"w",
|
|
18743
18743
|
""
|
|
18744
|
-
],
|
|
18744
|
+
], vn = ["j", "q", "x"], In = [
|
|
18745
18745
|
"uān",
|
|
18746
18746
|
"uán",
|
|
18747
18747
|
"uǎn",
|
|
@@ -18874,27 +18874,27 @@ function Rn(n, i, g) {
|
|
|
18874
18874
|
if ($n.indexOf(n) === -1)
|
|
18875
18875
|
return S(n);
|
|
18876
18876
|
if (i === g && i && S(i) !== i)
|
|
18877
|
-
return
|
|
18877
|
+
return T(S(n));
|
|
18878
18878
|
if (g && !En[n].includes(g)) {
|
|
18879
18879
|
const u = S(g);
|
|
18880
18880
|
if (u !== g) {
|
|
18881
|
-
const h =
|
|
18881
|
+
const h = v(u), s = yn[n];
|
|
18882
18882
|
for (let o in s)
|
|
18883
18883
|
if (s[o].indexOf(Number(h)) !== -1)
|
|
18884
18884
|
return o;
|
|
18885
18885
|
}
|
|
18886
18886
|
}
|
|
18887
18887
|
}
|
|
18888
|
-
function
|
|
18888
|
+
function Un(n, i) {
|
|
18889
18889
|
if (n === "了" && (!i || !a.get(i)))
|
|
18890
18890
|
return "liǎo";
|
|
18891
18891
|
}
|
|
18892
|
-
function
|
|
18892
|
+
function An(n, i) {
|
|
18893
18893
|
if (n === "々")
|
|
18894
18894
|
return !i || !a.get(i) ? "tóng" : a.get(i).split(" ")[0];
|
|
18895
18895
|
}
|
|
18896
18896
|
function G(n, i, g) {
|
|
18897
|
-
return
|
|
18897
|
+
return An(n, i) || Un(n, i) || Rn(n, i, g) || S(n);
|
|
18898
18898
|
}
|
|
18899
18899
|
const M = {
|
|
18900
18900
|
南宫: "nán gōng",
|
|
@@ -21886,7 +21886,7 @@ const M = {
|
|
|
21886
21886
|
干哪行: "gàn nǎ háng",
|
|
21887
21887
|
干一行: "gàn yì háng",
|
|
21888
21888
|
曲别针: "qū bié zhēn"
|
|
21889
|
-
},
|
|
21889
|
+
}, Fn = Object.keys(X).map((n) => ({
|
|
21890
21890
|
zh: n,
|
|
21891
21891
|
pinyin: X[n],
|
|
21892
21892
|
probability: 2e-8,
|
|
@@ -23489,7 +23489,7 @@ const M = {
|
|
|
23489
23489
|
曲意逢迎: "qū yì féng yíng",
|
|
23490
23490
|
一行不行: "yì háng bù xíng",
|
|
23491
23491
|
行行不行: "háng háng bù xíng"
|
|
23492
|
-
},
|
|
23492
|
+
}, On = Object.keys(Y).map((n) => ({
|
|
23493
23493
|
zh: n,
|
|
23494
23494
|
pinyin: Y[n],
|
|
23495
23495
|
probability: 2e-8,
|
|
@@ -23694,8 +23694,8 @@ class Yn {
|
|
|
23694
23694
|
}
|
|
23695
23695
|
const ni = [
|
|
23696
23696
|
...Wn,
|
|
23697
|
-
...Fn,
|
|
23698
23697
|
...On,
|
|
23698
|
+
...Fn,
|
|
23699
23699
|
...Bn,
|
|
23700
23700
|
...Vn,
|
|
23701
23701
|
...Ln
|
|
@@ -23746,7 +23746,7 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23746
23746
|
}
|
|
23747
23747
|
}
|
|
23748
23748
|
return { list: i, matches: h };
|
|
23749
|
-
},
|
|
23749
|
+
}, T = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), tn = (n, i = "off") => {
|
|
23750
23750
|
const g = gi();
|
|
23751
23751
|
let u = a.get(n) ? a.get(n).split(" ") : [];
|
|
23752
23752
|
if (g.get(n))
|
|
@@ -23774,10 +23774,10 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23774
23774
|
}, D = (n, i) => {
|
|
23775
23775
|
const g = n.split(" "), u = [], h = [];
|
|
23776
23776
|
for (let s of g)
|
|
23777
|
-
for (let o of
|
|
23777
|
+
for (let o of Tn)
|
|
23778
23778
|
if (s.startsWith(o)) {
|
|
23779
23779
|
let z = s.slice(o.length);
|
|
23780
|
-
|
|
23780
|
+
vn.indexOf(o) !== -1 && In.indexOf(z) !== -1 && (z = Mn[z]), u.push(o), h.push(z);
|
|
23781
23781
|
break;
|
|
23782
23782
|
}
|
|
23783
23783
|
return i === "standard" && u.forEach((s, o) => {
|
|
@@ -23790,14 +23790,14 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23790
23790
|
}, P = (n) => {
|
|
23791
23791
|
const { final: i } = D(n);
|
|
23792
23792
|
let g = "", u = "", h = "";
|
|
23793
|
-
return Nn.indexOf(
|
|
23794
|
-
},
|
|
23793
|
+
return Nn.indexOf(T(i)) !== -1 ? (g = i[0], u = i[1], h = i.slice(2)) : (u = i[0] || "", h = i.slice(1) || ""), { head: g, body: u, tail: h };
|
|
23794
|
+
}, v = (n) => {
|
|
23795
23795
|
const i = /(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/, g = /(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/, u = /(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/, h = /(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/, s = /(a|o|e|i|u|ü|ê)/, o = /(n|m)$/, z = [];
|
|
23796
23796
|
return n.split(" ").forEach((l) => {
|
|
23797
23797
|
i.test(l) ? z.push("1") : g.test(l) ? z.push("2") : u.test(l) ? z.push("3") : h.test(l) ? z.push("4") : s.test(l) || o.test(l) ? z.push("0") : z.push("");
|
|
23798
23798
|
}), z.join(" ");
|
|
23799
23799
|
}, si = (n, i) => {
|
|
23800
|
-
const g =
|
|
23800
|
+
const g = T(n).split(" "), u = v(i).split(" "), h = [];
|
|
23801
23801
|
return g.forEach((s, o) => {
|
|
23802
23802
|
h.push(`${s}${u[o]}`);
|
|
23803
23803
|
}), h.join(" ");
|
|
@@ -23807,17 +23807,17 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23807
23807
|
g.push(i ? h[0] : h);
|
|
23808
23808
|
}), g.join(" ");
|
|
23809
23809
|
}, oi = (n) => typeof n != "string" ? (console.error("The first param of pinyin is error: " + n + ' is not assignable to type "string".'), !1) : !0;
|
|
23810
|
-
function
|
|
23810
|
+
function I(n, i) {
|
|
23811
23811
|
return i instanceof RegExp ? i.test(n) : !0;
|
|
23812
23812
|
}
|
|
23813
23813
|
const zi = (n, i) => {
|
|
23814
23814
|
let g = i.nonZh;
|
|
23815
23815
|
if (g === "removed")
|
|
23816
|
-
return n.filter((u) => u.isZh || !
|
|
23816
|
+
return n.filter((u) => u.isZh || !I(u.origin, i.nonZhScope));
|
|
23817
23817
|
if (g === "consecutive") {
|
|
23818
23818
|
for (let u = n.length - 2; u >= 0; u--) {
|
|
23819
23819
|
const h = n[u], s = n[u + 1];
|
|
23820
|
-
!h.isZh && !s.isZh &&
|
|
23820
|
+
!h.isZh && !s.isZh && I(h.origin, i.nonZhScope) && I(s.origin, i.nonZhScope) && (h.origin += s.origin, h.result += s.result, s.delete = !0);
|
|
23821
23821
|
}
|
|
23822
23822
|
return n.filter((u) => !u.delete);
|
|
23823
23823
|
} else
|
|
@@ -23828,7 +23828,7 @@ const zi = (n, i) => {
|
|
|
23828
23828
|
break;
|
|
23829
23829
|
case "num":
|
|
23830
23830
|
n.forEach((g) => {
|
|
23831
|
-
g.result = g.isZh ?
|
|
23831
|
+
g.result = g.isZh ? v(g.result) : "";
|
|
23832
23832
|
});
|
|
23833
23833
|
break;
|
|
23834
23834
|
case "initial":
|
|
@@ -23868,7 +23868,7 @@ const zi = (n, i) => {
|
|
|
23868
23868
|
break;
|
|
23869
23869
|
case "none":
|
|
23870
23870
|
n.forEach((g) => {
|
|
23871
|
-
g.isZh && (g.result =
|
|
23871
|
+
g.isZh && (g.result = T(g.result));
|
|
23872
23872
|
});
|
|
23873
23873
|
break;
|
|
23874
23874
|
case "num": {
|
|
@@ -23902,7 +23902,7 @@ const zi = (n, i) => {
|
|
|
23902
23902
|
finalHead: z,
|
|
23903
23903
|
finalBody: y,
|
|
23904
23904
|
finalTail: l,
|
|
23905
|
-
num: Number(
|
|
23905
|
+
num: Number(v(u.originPinyin)),
|
|
23906
23906
|
isZh: u.isZh,
|
|
23907
23907
|
polyphonic: c,
|
|
23908
23908
|
inZhRange: !!a.get(u.origin),
|
|
@@ -23975,7 +23975,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
23975
23975
|
]
|
|
23976
23976
|
}), o = qn(n, "modelValue"), z = n, y = Object.keys(z.entityKey), l = $(y.length >= 1);
|
|
23977
23977
|
pn(() => {
|
|
23978
|
-
|
|
23978
|
+
F.goodsCategoryListBizLayDict.useValues();
|
|
23979
23979
|
});
|
|
23980
23980
|
const c = i;
|
|
23981
23981
|
(Z = z.entityKey) != null && Z.categoryId && (h = Object.assign(h, z.entityKey), h.parentId === "00000000-0000-0000-0000-000000000000" && (h.parentId = ""));
|
|
@@ -24023,7 +24023,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24023
24023
|
Cn("div", ri, [
|
|
24024
24024
|
t(V, { onClick: f }, {
|
|
24025
24025
|
default: j(() => [
|
|
24026
|
-
A(
|
|
24026
|
+
U(A(d.$t("common.cancel")), 1)
|
|
24027
24027
|
]),
|
|
24028
24028
|
_: 1
|
|
24029
24029
|
}),
|
|
@@ -24032,7 +24032,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24032
24032
|
onClick: e
|
|
24033
24033
|
}, {
|
|
24034
24034
|
default: j(() => [
|
|
24035
|
-
A(
|
|
24035
|
+
U(A(d.$t("common.confirm")), 1)
|
|
24036
24036
|
]),
|
|
24037
24037
|
_: 1
|
|
24038
24038
|
})
|
|
@@ -24103,7 +24103,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24103
24103
|
t(rn, {
|
|
24104
24104
|
modelValue: x(h).parentId,
|
|
24105
24105
|
"onUpdate:modelValue": b[2] || (b[2] = (q) => x(h).parentId = q),
|
|
24106
|
-
data: x(
|
|
24106
|
+
data: x(F).goodsCategoryListBizLayDict.values,
|
|
24107
24107
|
filterable: "",
|
|
24108
24108
|
clearable: "",
|
|
24109
24109
|
"check-strictly": "",
|
|
@@ -24125,7 +24125,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24125
24125
|
default: j(() => [
|
|
24126
24126
|
t(bn, {
|
|
24127
24127
|
"picture-url": x(h).picUrl,
|
|
24128
|
-
|
|
24128
|
+
onUploadFile: jn,
|
|
24129
24129
|
width: 80,
|
|
24130
24130
|
type: "trans"
|
|
24131
24131
|
}, null, 8, ["picture-url"])
|