xyvcard-paper-buyer 0.0.3
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/README.md +51 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/applyEdit-Dmu-DHGL.mjs +256 -0
- package/dist/edit-DNnXE9Sm.mjs +236 -0
- package/dist/edit-DeNy_Q-1.mjs +227 -0
- package/dist/el-message-D5NtBelf.mjs +1229 -0
- package/dist/index-B1a-Ksur.mjs +63 -0
- package/dist/index-B9CtJBS4.mjs +593 -0
- package/dist/index-BbV7Gddl-dXq_lNW3.mjs +1664 -0
- package/dist/index-CVIGK7Zc.mjs +64 -0
- package/dist/index-CokKesIL.mjs +19 -0
- package/dist/index-D-j9X_Yb.mjs +320 -0
- package/dist/index-DOOUDqve.mjs +110 -0
- package/dist/index-STlPYmxh.mjs +1618 -0
- package/dist/index-m0o8Ui4K.mjs +134 -0
- package/dist/index.mjs +492 -0
- package/dist/info-t4hIhjPW.mjs +184 -0
- package/dist/invoice-D0pCTiEx.mjs +170 -0
- package/dist/invoiceView-BcVwgiVq.mjs +145 -0
- package/dist/list-vrRKPRLU.mjs +109 -0
- package/dist/orderAddress-C-J2jp-9.mjs +194 -0
- package/dist/orderPaper-_2Kq65vV.mjs +147 -0
- package/dist/payment copy-CyZWiAyq.mjs +69 -0
- package/dist/payment-BcsD4Glh.mjs +91 -0
- package/dist/sendDialog-SIGRBNQj.mjs +113 -0
- package/dist/style.css +1 -0
- package/dist/userInvoice-DC_nj4Bm.mjs +4 -0
- package/dist/userInvoice.vue_vue_type_script_setup_true_lang-Bqn6qhKH.mjs +154 -0
- package/dts/src/App.vue.d.ts +2 -0
- package/dts/src/api/buyer/dict.d.ts +14 -0
- package/dts/src/api/buyer/index.d.ts +12 -0
- package/dts/src/api/buyer/lqfp-fp/index.d.ts +13 -0
- package/dts/src/api/buyer/lqfp-fp/types.d.ts +74 -0
- package/dts/src/api/buyer/lqfp-fps/index.d.ts +8 -0
- package/dts/src/api/buyer/lqfp-fps/types.d.ts +72 -0
- package/dts/src/api/buyer/order-info/index.d.ts +17 -0
- package/dts/src/api/buyer/order-info/types.d.ts +127 -0
- package/dts/src/api/buyer/order-newspaper/index.d.ts +18 -0
- package/dts/src/api/buyer/order-newspaper/types.d.ts +115 -0
- package/dts/src/api/buyer/order-user-address/index.d.ts +15 -0
- package/dts/src/api/buyer/order-user-address/types.d.ts +84 -0
- package/dts/src/constant.d.ts +23 -0
- package/dts/src/index.d.ts +5 -0
- package/dts/src/lang/index.d.ts +1 -0
- package/dts/src/lang/order/en.d.ts +143 -0
- package/dts/src/lang/order/zh-cn.d.ts +169 -0
- package/dts/src/main.d.ts +5 -0
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/index.d.ts +15 -0
- package/dts/src/views/buyer/order-info/applyEdit.vue.d.ts +2 -0
- package/dts/src/views/buyer/order-info/index.vue.d.ts +2 -0
- package/dts/src/views/buyer/order-info/info.vue.d.ts +2 -0
- package/dts/src/views/buyer/order-info/invoice.vue.d.ts +2 -0
- package/dts/src/views/buyer/order-info/invoiceView.vue.d.ts +2 -0
- package/dts/src/views/buyer/order-info/list.vue.d.ts +14 -0
- package/dts/src/views/buyer/order-info/sendDialog.vue.d.ts +10 -0
- package/dts/src/views/buyer/order-info/userInvoice.vue.d.ts +10 -0
- package/dts/src/views/buyer/order-newspaper/edit.vue.d.ts +22 -0
- package/dts/src/views/buyer/order-newspaper/index.vue.d.ts +2 -0
- package/dts/src/views/buyer/order-newspaper/orderAddress.vue.d.ts +2 -0
- package/dts/src/views/buyer/order-newspaper/payment.vue.d.ts +2 -0
- package/dts/src/views/buyer/order-user-address/edit.vue.d.ts +22 -0
- package/dts/src/views/buyer/order-user-address/index.vue.d.ts +2 -0
- package/package.json +61 -0
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# pnpm publish --no-git-checks
|
|
2
|
+
npm config set registry https://registry.npmjs.org/
|
|
3
|
+
|
|
4
|
+
# pnpm install
|
|
5
|
+
npm config set registry https://registry.npmmirror.com/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
9
|
+
|
|
10
|
+
## Recommended IDE Setup
|
|
11
|
+
|
|
12
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
13
|
+
|
|
14
|
+
## Type Support for `.vue` Imports in TS
|
|
15
|
+
|
|
16
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
17
|
+
|
|
18
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
19
|
+
|
|
20
|
+
1. Disable the built-in TypeScript Extension
|
|
21
|
+
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
22
|
+
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
23
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
24
|
+
|
|
25
|
+
## Customize configuration
|
|
26
|
+
|
|
27
|
+
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
28
|
+
|
|
29
|
+
## Project Setup
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Compile and Hot-Reload for Development
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pnpm dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Type-Check, Compile and Minify for Production
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
pnpm build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm lint
|
|
51
|
+
```
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { defineComponent as J, ref as v, reactive as z, resolveComponent as s, createElementBlock as w, openBlock as i, createElementVNode as C, createBlock as y, createCommentVNode as K, createVNode as t, unref as r, withCtx as a, Fragment as D, renderList as R, createTextVNode as g, toDisplayString as h } from "vue";
|
|
2
|
+
import { useI18n as O } from "vue-i18n";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
import { routerUtil as E } from "jmash-core";
|
|
5
|
+
import { useRouter as Q, useRoute as W } from "vue-router";
|
|
6
|
+
import { D as F, o as X } from "./index-STlPYmxh.mjs";
|
|
7
|
+
import { l as Y } from "./index-B1a-Ksur.mjs";
|
|
8
|
+
import { _ as Z } from "./userInvoice.vue_vue_type_script_setup_true_lang-Bqn6qhKH.mjs";
|
|
9
|
+
import { E as x } from "./el-message-D5NtBelf.mjs";
|
|
10
|
+
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
11
|
+
const le = { class: "app-container" }, oe = { class: "search-container" }, te = { class: "form-footer" }, ae = /* @__PURE__ */ J({
|
|
12
|
+
__name: "applyEdit",
|
|
13
|
+
setup(ne) {
|
|
14
|
+
const I = Q(), _ = W(), { t: u } = O(), b = v(""), f = v([]);
|
|
15
|
+
function $() {
|
|
16
|
+
Y.findMyList({}).then((e) => {
|
|
17
|
+
f.value = e.data.results;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
$();
|
|
21
|
+
const k = v();
|
|
22
|
+
F.fppzDict.useDictValues(), console.log(F.fppzDict.values, "=> fppzDict");
|
|
23
|
+
let n = z({
|
|
24
|
+
requestId: Math.random() * 10 + "",
|
|
25
|
+
orderId: _.query.orderId,
|
|
26
|
+
tenant: _.query.tenant
|
|
27
|
+
});
|
|
28
|
+
const U = z({
|
|
29
|
+
fppz: [{ required: !0, message: u("lqfpFps.fplxRead"), trigger: "blur" }],
|
|
30
|
+
infoId: [{ required: !0, message: u("lqfpFps.dwmcRead"), trigger: "blur" }]
|
|
31
|
+
}), N = (e) => {
|
|
32
|
+
const l = f.value.find(
|
|
33
|
+
(d) => d.infoId === n.infoId
|
|
34
|
+
);
|
|
35
|
+
return !l || l.gmfType !== "person" ? !1 : e.dictCode !== "02";
|
|
36
|
+
};
|
|
37
|
+
function T(e) {
|
|
38
|
+
if (e) {
|
|
39
|
+
const l = f.value.find((d) => d.infoId === e);
|
|
40
|
+
console.log(l, "=> selectedInfo"), l && (b.value = l.nsrsbh || "", n.email = l.sendEmail || "", l.gmfType === "person" && (n.fppz = "02"));
|
|
41
|
+
} else
|
|
42
|
+
b.value = "", n.email = "", n.fppz = "";
|
|
43
|
+
}
|
|
44
|
+
const p = v({
|
|
45
|
+
title: u("common.add"),
|
|
46
|
+
visible: !1
|
|
47
|
+
});
|
|
48
|
+
function A() {
|
|
49
|
+
p.value.title = u("common.add"), p.value.visible = !0;
|
|
50
|
+
}
|
|
51
|
+
const L = async () => {
|
|
52
|
+
var e;
|
|
53
|
+
await ((e = k.value) == null ? void 0 : e.validate((l) => {
|
|
54
|
+
l && X.lqfpApply(n).then((d) => {
|
|
55
|
+
console.log(d), d.status === 200 && (x({
|
|
56
|
+
message: u("common.submitSuccess"),
|
|
57
|
+
type: "success"
|
|
58
|
+
}), E.closeTagView(_.fullPath, I, !1));
|
|
59
|
+
});
|
|
60
|
+
}));
|
|
61
|
+
};
|
|
62
|
+
function B(e) {
|
|
63
|
+
e && $();
|
|
64
|
+
}
|
|
65
|
+
function M() {
|
|
66
|
+
E.closeTagView(_.fullPath, I, !1);
|
|
67
|
+
}
|
|
68
|
+
return (e, l) => {
|
|
69
|
+
const d = s("el-radio"), P = s("el-radio-group"), m = s("el-form-item"), c = s("el-col"), S = s("el-option"), j = s("el-select"), V = s("el-button"), q = s("el-input"), G = s("el-row"), H = s("el-form");
|
|
70
|
+
return i(), w("div", le, [
|
|
71
|
+
C("div", oe, [
|
|
72
|
+
t(H, {
|
|
73
|
+
ref_key: "lqfpFpsFormRef",
|
|
74
|
+
ref: k,
|
|
75
|
+
model: r(n),
|
|
76
|
+
"label-width": "120px",
|
|
77
|
+
rules: U,
|
|
78
|
+
class: "centered-form"
|
|
79
|
+
}, {
|
|
80
|
+
default: a(() => [
|
|
81
|
+
t(G, null, {
|
|
82
|
+
default: a(() => [
|
|
83
|
+
t(c, { span: 24 }, {
|
|
84
|
+
default: a(() => [
|
|
85
|
+
t(m, {
|
|
86
|
+
label: e.$t("lqfpFps.fplx"),
|
|
87
|
+
class: "center-align",
|
|
88
|
+
prop: "fppz"
|
|
89
|
+
}, {
|
|
90
|
+
default: a(() => [
|
|
91
|
+
t(P, {
|
|
92
|
+
modelValue: r(n).fppz,
|
|
93
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => r(n).fppz = o)
|
|
94
|
+
}, {
|
|
95
|
+
default: a(() => [
|
|
96
|
+
(i(!0), w(D, null, R(r(F).fppzDict.values, (o) => (i(), y(d, {
|
|
97
|
+
key: o.dictCode,
|
|
98
|
+
value: o.dictCode,
|
|
99
|
+
disabled: N(o),
|
|
100
|
+
size: "large"
|
|
101
|
+
}, {
|
|
102
|
+
default: a(() => [
|
|
103
|
+
g(h(o.dictName), 1)
|
|
104
|
+
]),
|
|
105
|
+
_: 2
|
|
106
|
+
}, 1032, ["value", "disabled"]))), 128))
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}, 8, ["modelValue"])
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}, 8, ["label"])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}),
|
|
116
|
+
t(c, { span: 24 }, {
|
|
117
|
+
default: a(() => [
|
|
118
|
+
t(m, {
|
|
119
|
+
label: e.$t("lqfpFps.dwmc"),
|
|
120
|
+
prop: "infoId"
|
|
121
|
+
}, {
|
|
122
|
+
default: a(() => [
|
|
123
|
+
t(j, {
|
|
124
|
+
modelValue: r(n).infoId,
|
|
125
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => r(n).infoId = o),
|
|
126
|
+
placeholder: e.$t("lqfpFps.dwmcRead"),
|
|
127
|
+
data: f.value,
|
|
128
|
+
clearable: "",
|
|
129
|
+
filterable: "",
|
|
130
|
+
onChange: T,
|
|
131
|
+
style: { width: "calc(100% - 100px)", "margin-right": "38px" }
|
|
132
|
+
}, {
|
|
133
|
+
default: a(() => [
|
|
134
|
+
(i(!0), w(D, null, R(f.value, (o) => (i(), y(S, {
|
|
135
|
+
key: o.infoId,
|
|
136
|
+
label: o.gmfmc,
|
|
137
|
+
value: o.infoId
|
|
138
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}, 8, ["modelValue", "placeholder", "data"]),
|
|
142
|
+
t(V, {
|
|
143
|
+
type: "danger",
|
|
144
|
+
plain: "",
|
|
145
|
+
onClick: A
|
|
146
|
+
}, {
|
|
147
|
+
default: a(() => [
|
|
148
|
+
g(h(e.$t("common.add")), 1)
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
})
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["label"])
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}),
|
|
158
|
+
t(c, { span: 24 }, {
|
|
159
|
+
default: a(() => [
|
|
160
|
+
t(m, {
|
|
161
|
+
label: e.$t("lqfpFps.nsrsbh"),
|
|
162
|
+
prop: "nsrsbh"
|
|
163
|
+
}, {
|
|
164
|
+
default: a(() => [
|
|
165
|
+
t(q, {
|
|
166
|
+
modelValue: b.value,
|
|
167
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => b.value = o),
|
|
168
|
+
placeholder: e.$t("lqfpFps.nsrsbhRead"),
|
|
169
|
+
"show-word-limit": "",
|
|
170
|
+
disabled: ""
|
|
171
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["label"])
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}),
|
|
178
|
+
t(c, { span: 24 }, {
|
|
179
|
+
default: a(() => [
|
|
180
|
+
t(m, {
|
|
181
|
+
label: e.$t("lqfpFps.email"),
|
|
182
|
+
prop: "email"
|
|
183
|
+
}, {
|
|
184
|
+
default: a(() => [
|
|
185
|
+
t(q, {
|
|
186
|
+
modelValue: r(n).email,
|
|
187
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => r(n).email = o),
|
|
188
|
+
placeholder: e.$t("lqfpFps.emailRead"),
|
|
189
|
+
"show-word-limit": "",
|
|
190
|
+
clearable: ""
|
|
191
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}, 8, ["label"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}),
|
|
198
|
+
t(c, { span: 24 }, {
|
|
199
|
+
default: a(() => [
|
|
200
|
+
t(m, {
|
|
201
|
+
label: e.$t("lqfpFps.remakr"),
|
|
202
|
+
prop: "remark"
|
|
203
|
+
}, {
|
|
204
|
+
default: a(() => [
|
|
205
|
+
t(q, {
|
|
206
|
+
modelValue: r(n).note,
|
|
207
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => r(n).note = o),
|
|
208
|
+
placeholder: e.$t("lqfpFps.emailRead"),
|
|
209
|
+
"show-word-limit": "",
|
|
210
|
+
clearable: ""
|
|
211
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 8, ["label"])
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
})
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}),
|
|
221
|
+
C("div", te, [
|
|
222
|
+
t(V, { onClick: M }, {
|
|
223
|
+
default: a(() => [
|
|
224
|
+
g(h(e.$t("common.cancel")), 1)
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}),
|
|
228
|
+
t(V, {
|
|
229
|
+
type: "primary",
|
|
230
|
+
onClick: L
|
|
231
|
+
}, {
|
|
232
|
+
default: a(() => [
|
|
233
|
+
g(h(e.$t("common.confirm")), 1)
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
})
|
|
237
|
+
])
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["model", "rules"])
|
|
241
|
+
]),
|
|
242
|
+
p.value.visible ? (i(), y(Z, {
|
|
243
|
+
key: 0,
|
|
244
|
+
modelValue: p.value.visible,
|
|
245
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => p.value.visible = o),
|
|
246
|
+
title: p.value.title,
|
|
247
|
+
onRefresh: B,
|
|
248
|
+
width: "400px"
|
|
249
|
+
}, null, 8, ["modelValue", "title"])) : K("", !0)
|
|
250
|
+
]);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
}), be = /* @__PURE__ */ ee(ae, [["__scopeId", "data-v-9c0115ad"]]);
|
|
254
|
+
export {
|
|
255
|
+
be as default
|
|
256
|
+
};
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { defineComponent as E, mergeModels as v, ref as y, reactive as A, useModel as j, resolveComponent as m, createBlock as F, openBlock as K, withCtx as l, createVNode as e, unref as s, createElementVNode as O, createTextVNode as N, toDisplayString as q } from "vue";
|
|
2
|
+
import { ElMessage as w } from "element-plus";
|
|
3
|
+
import "jmash-core";
|
|
4
|
+
import { o as f, b as S } from "./index-BbV7Gddl-dXq_lNW3.mjs";
|
|
5
|
+
import { useI18n as D } from "vue-i18n";
|
|
6
|
+
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
8
|
+
__name: "edit",
|
|
9
|
+
props: /* @__PURE__ */ v({
|
|
10
|
+
entityKey: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: { type: Boolean },
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(c, { emit: I }) {
|
|
21
|
+
const { t: n } = D(), b = y();
|
|
22
|
+
let d = A({
|
|
23
|
+
requestId: Math.random() * 10 + "",
|
|
24
|
+
updateMask: "note,userName,mobilePhone,provinceName,detailInfo"
|
|
25
|
+
});
|
|
26
|
+
const R = (r, o, t) => {
|
|
27
|
+
o && !/^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(o) ? t(new Error(n("orderUserAddress.mobilePhoneTrueRequired"))) : t();
|
|
28
|
+
}, $ = A({
|
|
29
|
+
note: [
|
|
30
|
+
{
|
|
31
|
+
required: !0,
|
|
32
|
+
message: n("orderUserAddress.noteRequired"),
|
|
33
|
+
trigger: "change"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
userName: [
|
|
37
|
+
{
|
|
38
|
+
required: !0,
|
|
39
|
+
message: n("orderUserAddress.userNameRequired"),
|
|
40
|
+
trigger: "change"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
mobilePhone: [
|
|
44
|
+
{
|
|
45
|
+
required: !0,
|
|
46
|
+
validator: R,
|
|
47
|
+
trigger: "blur"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
detailInfo: [
|
|
51
|
+
{
|
|
52
|
+
required: !0,
|
|
53
|
+
message: n("orderUserAddress.detailInfoRequired"),
|
|
54
|
+
trigger: "change"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
provinceName: [
|
|
58
|
+
{
|
|
59
|
+
required: !0,
|
|
60
|
+
message: n("orderUserAddress.provinceNameRequired"),
|
|
61
|
+
trigger: "change"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}), u = j(c, "modelValue"), g = c, _ = I, P = Object.keys(g.entityKey), h = y(P.length >= 1);
|
|
65
|
+
h.value && f.findById(g.entityKey).then(({ data: r }) => {
|
|
66
|
+
Object.assign(d, r);
|
|
67
|
+
});
|
|
68
|
+
const k = async () => {
|
|
69
|
+
var r;
|
|
70
|
+
await ((r = b.value) == null ? void 0 : r.validate((o) => {
|
|
71
|
+
o && (h.value ? f.update(d).then((t) => {
|
|
72
|
+
console.log(t), t.status === 200 && (w({
|
|
73
|
+
message: n("common.submitSuccess"),
|
|
74
|
+
type: "success"
|
|
75
|
+
}), u.value && (u.value = !1), _("refresh", t.status === 200));
|
|
76
|
+
}) : f.create(d).then((t) => {
|
|
77
|
+
console.log(t), t.status === 200 && (w({
|
|
78
|
+
message: n("common.submitSuccess"),
|
|
79
|
+
type: "success"
|
|
80
|
+
}), u.value && (u.value = !1), _("refresh", t.status === 200));
|
|
81
|
+
}));
|
|
82
|
+
}));
|
|
83
|
+
};
|
|
84
|
+
function V() {
|
|
85
|
+
u.value && (u.value = !1);
|
|
86
|
+
}
|
|
87
|
+
return (r, o) => {
|
|
88
|
+
const t = m("el-input"), i = m("el-form-item"), p = m("el-col"), C = m("el-row"), M = m("el-form"), U = m("el-button"), B = m("el-dialog");
|
|
89
|
+
return K(), F(B, {
|
|
90
|
+
modelValue: u.value,
|
|
91
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => u.value = a),
|
|
92
|
+
onClose: V
|
|
93
|
+
}, {
|
|
94
|
+
footer: l(() => [
|
|
95
|
+
O("div", z, [
|
|
96
|
+
e(U, { onClick: V }, {
|
|
97
|
+
default: l(() => [
|
|
98
|
+
N(q(r.$t("common.cancel")), 1)
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}),
|
|
102
|
+
e(U, {
|
|
103
|
+
type: "primary",
|
|
104
|
+
onClick: k
|
|
105
|
+
}, {
|
|
106
|
+
default: l(() => [
|
|
107
|
+
N(q(r.$t("common.confirm")), 1)
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
})
|
|
111
|
+
])
|
|
112
|
+
]),
|
|
113
|
+
default: l(() => [
|
|
114
|
+
e(M, {
|
|
115
|
+
ref_key: "orderUserAddressFormRef",
|
|
116
|
+
ref: b,
|
|
117
|
+
model: s(d),
|
|
118
|
+
"label-position": "top",
|
|
119
|
+
rules: $
|
|
120
|
+
}, {
|
|
121
|
+
default: l(() => [
|
|
122
|
+
e(C, { gutter: 20 }, {
|
|
123
|
+
default: l(() => [
|
|
124
|
+
e(p, { span: 24 }, {
|
|
125
|
+
default: l(() => [
|
|
126
|
+
e(i, {
|
|
127
|
+
label: r.$t("orderUserAddress.note"),
|
|
128
|
+
prop: "note"
|
|
129
|
+
}, {
|
|
130
|
+
default: l(() => [
|
|
131
|
+
e(t, {
|
|
132
|
+
modelValue: s(d).note,
|
|
133
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => s(d).note = a),
|
|
134
|
+
placeholder: r.$t("orderUserAddress.noteRequired"),
|
|
135
|
+
"show-word-limit": "",
|
|
136
|
+
clearable: ""
|
|
137
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["label"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}),
|
|
144
|
+
e(p, { span: 24 }, {
|
|
145
|
+
default: l(() => [
|
|
146
|
+
e(i, {
|
|
147
|
+
label: r.$t("orderUserAddress.userName"),
|
|
148
|
+
prop: "userName"
|
|
149
|
+
}, {
|
|
150
|
+
default: l(() => [
|
|
151
|
+
e(t, {
|
|
152
|
+
modelValue: s(d).userName,
|
|
153
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => s(d).userName = a),
|
|
154
|
+
placeholder: r.$t("orderUserAddress.userNameRequired"),
|
|
155
|
+
"show-word-limit": "",
|
|
156
|
+
clearable: ""
|
|
157
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["label"])
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}),
|
|
164
|
+
e(p, { span: 24 }, {
|
|
165
|
+
default: l(() => [
|
|
166
|
+
e(i, {
|
|
167
|
+
label: r.$t("orderUserAddress.mobilePhone"),
|
|
168
|
+
prop: "mobilePhone"
|
|
169
|
+
}, {
|
|
170
|
+
default: l(() => [
|
|
171
|
+
e(t, {
|
|
172
|
+
modelValue: s(d).mobilePhone,
|
|
173
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => s(d).mobilePhone = a),
|
|
174
|
+
placeholder: r.$t("orderUserAddress.mobilePhoneRequired"),
|
|
175
|
+
"show-word-limit": "",
|
|
176
|
+
clearable: ""
|
|
177
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["label"])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}),
|
|
184
|
+
e(p, { span: 24 }, {
|
|
185
|
+
default: l(() => [
|
|
186
|
+
e(i, {
|
|
187
|
+
prop: "provinceName",
|
|
188
|
+
label: s(n)("orderUserAddress.detailInfo"),
|
|
189
|
+
class: "form-item"
|
|
190
|
+
}, {
|
|
191
|
+
default: l(() => [
|
|
192
|
+
e(s(S), {
|
|
193
|
+
modelValue: s(d).provinceName,
|
|
194
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => s(d).provinceName = a),
|
|
195
|
+
placeholder: r.$t("orderUserAddress.provinceNameRequired"),
|
|
196
|
+
clearable: ""
|
|
197
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 8, ["label"])
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}),
|
|
204
|
+
e(p, { span: 24 }, {
|
|
205
|
+
default: l(() => [
|
|
206
|
+
e(i, { prop: "detailInfo" }, {
|
|
207
|
+
default: l(() => [
|
|
208
|
+
e(t, {
|
|
209
|
+
modelValue: s(d).detailInfo,
|
|
210
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => s(d).detailInfo = a),
|
|
211
|
+
placeholder: r.$t("orderUserAddress.detailInfoRequired"),
|
|
212
|
+
"show-word-limit": "",
|
|
213
|
+
clearable: "",
|
|
214
|
+
type: "textarea"
|
|
215
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
})
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
})
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["model", "rules"])
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
}, 8, ["modelValue"]);
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
}), Y = /* @__PURE__ */ T(G, [["__scopeId", "data-v-f17c5e2b"]]);
|
|
234
|
+
export {
|
|
235
|
+
Y as default
|
|
236
|
+
};
|