xyvcard-settle 0.0.45 → 0.0.47

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./today.vue_vue_type_script_setup_true_lang-CBon7bqw.mjs";
1
+ import { _ as f } from "./today.vue_vue_type_script_setup_true_lang-qvHQZqwR.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,342 @@
1
+ import { defineComponent as q, getCurrentInstance as O, ref as v, resolveComponent as s, createBlock as D, openBlock as g, withCtx as a, createVNode as l, withKeys as I, unref as r, createElementBlock as W, Fragment as G, renderList as J, createTextVNode as f, toDisplayString as b, createCommentVNode as X, isRef as w } from "vue";
2
+ import { useI18n as Z } from "vue-i18n";
3
+ import "vue-router";
4
+ import { useUserStore as V, clearEmpty as ee, request as te, useTableHooks as ae } from "jmash-core";
5
+ import { channelApi as le } from "xyvcard-merchant";
6
+ import { D as m, C as M } from "./index-yz18Lhpm.mjs";
7
+ import { tokenExt as ne } from "xyvcard-agent";
8
+ import { g as oe } from "./agent-R-Ml-XTA.mjs";
9
+ class re {
10
+ getKey(u) {
11
+ return {
12
+ receiptId: u.receiptId
13
+ };
14
+ }
15
+ // 查询翻页信息划款信息查询-今日到账
16
+ findPage(u) {
17
+ const i = V().user.tenant;
18
+ return ee(u), te({
19
+ url: "/v1/settle/receipt/today/" + i,
20
+ method: "get",
21
+ params: u
22
+ });
23
+ }
24
+ }
25
+ const se = new re(), he = /* @__PURE__ */ q({
26
+ __name: "today",
27
+ setup(k) {
28
+ const { t: u } = Z();
29
+ m.instsBizDict.useValues(), m.merchantBizDict.useValues(), m.agentBizDict.useValues();
30
+ const { proxy: i } = O(), h = v([]), n = v({
31
+ tokenExt: ne.getTokenExt(V().user.tenant),
32
+ transferMoneyDate: i.$moment.formatDate(
33
+ /* @__PURE__ */ new Date(),
34
+ M.RPC_FORMAT_DATA
35
+ )
36
+ });
37
+ function A() {
38
+ n.value.channelId = "", le.findList({ merchantId: n.value.merchantId }).then((o) => {
39
+ if (n.value.merchantId) {
40
+ h.value = o.data.results;
41
+ return;
42
+ }
43
+ h.value = [];
44
+ });
45
+ }
46
+ const {
47
+ tableHooks: d,
48
+ multipleTableRef: $,
49
+ queryFormRef: S,
50
+ listLoading: N,
51
+ tableData: T,
52
+ total: y
53
+ } = ae(u, se, n);
54
+ let p = v([
55
+ // 序号
56
+ {
57
+ label: "settleTradeReceipt.index",
58
+ type: "index",
59
+ width: "60",
60
+ isColumn: !0
61
+ },
62
+ // 商户注册名称
63
+ {
64
+ label: "settleTradeReceipt.merchantName",
65
+ prop: "merchantName",
66
+ sortable: "custom",
67
+ minWidth: "200",
68
+ isColumn: !0
69
+ },
70
+ // 连锁号
71
+ {
72
+ label: "settleTradeReceipt.merchantNo",
73
+ prop: "merchantNo",
74
+ width: "190",
75
+ sortable: "custom",
76
+ isColumn: !0
77
+ },
78
+ // 划款时间
79
+ {
80
+ label: "settleTradeReceipt.transferMoneyDate",
81
+ prop: "transferMoneyDate",
82
+ slotName: "transferMoneyDate",
83
+ columnType: "slot",
84
+ width: "170",
85
+ sortable: "custom",
86
+ isColumn: !0
87
+ },
88
+ // 划款金额
89
+ {
90
+ label: "settleTradeReceipt.transferMoneyAmount",
91
+ prop: "transferMoneyAmount",
92
+ width: "120",
93
+ sortable: "custom",
94
+ isColumn: !0
95
+ },
96
+ // 手续费
97
+ {
98
+ label: "settleTradeReceipt.feeAmt",
99
+ prop: "feeAmt",
100
+ width: "120",
101
+ sortable: "custom",
102
+ isColumn: !0
103
+ },
104
+ // 到账状态
105
+ {
106
+ label: "settleTradeReceipt.transferMoneyStatusName",
107
+ prop: "transferMoneyStatusName",
108
+ width: "120",
109
+ sortable: "custom",
110
+ isColumn: !0
111
+ },
112
+ // 代理商编号
113
+ {
114
+ label: "settleTradeReceipt.agentName",
115
+ prop: "agentCode",
116
+ slotName: "agentCode",
117
+ columnType: "slot",
118
+ width: "200",
119
+ sortable: "custom",
120
+ isColumn: !0
121
+ },
122
+ // 失败原因
123
+ {
124
+ label: "settleTradeReceipt.chnlRespMsg",
125
+ prop: "chnlRespMsg",
126
+ width: "150",
127
+ sortable: "custom",
128
+ isColumn: !0
129
+ }
130
+ ]);
131
+ function Y() {
132
+ n.value.merchantId = "", n.value.channelId = "", n.value.transferMoneyDate = i.$moment.formatDate(
133
+ /* @__PURE__ */ new Date(),
134
+ M.RPC_FORMAT_DATA
135
+ ), h.value = [], T.value = [];
136
+ }
137
+ function z(o) {
138
+ d.selectionRows.value = o;
139
+ }
140
+ function B(o) {
141
+ d.handleSort(o.prop, o.order);
142
+ }
143
+ return (o, t) => {
144
+ const j = s("jmash-select"), _ = s("el-form-item"), c = s("el-col"), P = s("el-option"), U = s("el-select"), E = s("el-date-picker"), R = s("el-button"), C = s("el-row"), F = s("el-form"), L = s("jmash-column-select"), x = s("jmash-table"), H = s("jmash-pagination"), K = s("el-card"), Q = s("el-tab-pane");
145
+ return g(), D(Q, {
146
+ label: "今日到账流水",
147
+ name: "two"
148
+ }, {
149
+ default: a(() => [
150
+ l(F, {
151
+ ref_key: "queryFormRef",
152
+ ref: S,
153
+ model: n.value,
154
+ inline: !0
155
+ }, {
156
+ default: a(() => [
157
+ l(C, null, {
158
+ default: a(() => [
159
+ l(c, { span: 6 }, {
160
+ default: a(() => [
161
+ l(_, {
162
+ label: o.$t("payTrade.merchantId"),
163
+ prop: "merchantId"
164
+ }, {
165
+ default: a(() => [
166
+ l(j, {
167
+ modelValue: n.value.merchantId,
168
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.merchantId = e),
169
+ placeholder: o.$t("payTrade.merchantIdRead"),
170
+ data: r(m).merchantBizDict.values,
171
+ onKeyup: t[1] || (t[1] = I((e) => r(d).handleQuery(), ["enter"])),
172
+ class: "!w-[203px]",
173
+ filterable: "",
174
+ clearable: "",
175
+ onChange: A
176
+ }, null, 8, ["modelValue", "placeholder", "data"])
177
+ ]),
178
+ _: 1
179
+ }, 8, ["label"])
180
+ ]),
181
+ _: 1
182
+ }),
183
+ l(c, { span: 6 }, {
184
+ default: a(() => [
185
+ l(_, {
186
+ label: o.$t("settleTradeAnalysis.channelId"),
187
+ prop: "channelId"
188
+ }, {
189
+ default: a(() => [
190
+ l(U, {
191
+ modelValue: n.value.channelId,
192
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.channelId = e),
193
+ placeholder: o.$t("settleTradeAnalysis.channelIdRead"),
194
+ onKeyup: t[3] || (t[3] = I((e) => r(d).handleQuery(), ["enter"])),
195
+ class: "!w-[203px]",
196
+ filterable: "",
197
+ clearable: ""
198
+ }, {
199
+ default: a(() => [
200
+ (g(!0), W(G, null, J(h.value, (e) => (g(), D(P, {
201
+ key: e.channelId,
202
+ label: r(m).instsBizDict.getValue(e.instsId) || e.instsId,
203
+ value: e.channelId
204
+ }, null, 8, ["label", "value"]))), 128))
205
+ ]),
206
+ _: 1
207
+ }, 8, ["modelValue", "placeholder"])
208
+ ]),
209
+ _: 1
210
+ }, 8, ["label"])
211
+ ]),
212
+ _: 1
213
+ }),
214
+ l(c, { span: 6 }, {
215
+ default: a(() => [
216
+ l(_, {
217
+ label: o.$t("settleTradeReceipt.createTime"),
218
+ prop: "transferMoneyDate"
219
+ }, {
220
+ default: a(() => [
221
+ l(E, {
222
+ modelValue: n.value.transferMoneyDate,
223
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.transferMoneyDate = e),
224
+ type: "date",
225
+ format: "YYYY-MM-DD",
226
+ "value-format": "YYYY-MM-DD",
227
+ placeholder: o.$t("settleTradeReceipt.createTimeRead"),
228
+ clearable: !1
229
+ }, null, 8, ["modelValue", "placeholder"])
230
+ ]),
231
+ _: 1
232
+ }, 8, ["label"])
233
+ ]),
234
+ _: 1
235
+ }),
236
+ l(c, { span: 6 }, {
237
+ default: a(() => [
238
+ l(_, { class: "search-btn" }, {
239
+ default: a(() => [
240
+ l(R, {
241
+ type: "primary",
242
+ onClick: t[5] || (t[5] = (e) => r(d).handleQuery())
243
+ }, {
244
+ default: a(() => [
245
+ f(b(o.$t("common.search")), 1)
246
+ ]),
247
+ _: 1
248
+ }),
249
+ l(R, {
250
+ onClick: t[6] || (t[6] = (e) => Y())
251
+ }, {
252
+ default: a(() => [
253
+ f(b(o.$t("common.reset")), 1)
254
+ ]),
255
+ _: 1
256
+ })
257
+ ]),
258
+ _: 1
259
+ })
260
+ ]),
261
+ _: 1
262
+ })
263
+ ]),
264
+ _: 1
265
+ })
266
+ ]),
267
+ _: 1
268
+ }, 8, ["model"]),
269
+ l(K, {
270
+ shadow: "never",
271
+ class: "table-container"
272
+ }, {
273
+ header: a(() => [
274
+ l(C, null, {
275
+ default: a(() => [
276
+ l(c, {
277
+ span: 24,
278
+ class: "container-float"
279
+ }, {
280
+ default: a(() => [
281
+ l(L, {
282
+ modelValue: r(p),
283
+ "onUpdate:modelValue": t[7] || (t[7] = (e) => w(p) ? p.value = e : p = e),
284
+ "label-name": "settle/settle-trade-receipt"
285
+ }, null, 8, ["modelValue"])
286
+ ]),
287
+ _: 1
288
+ })
289
+ ]),
290
+ _: 1
291
+ })
292
+ ]),
293
+ footer: a(() => [
294
+ r(y) > 0 ? (g(), D(H, {
295
+ key: 0,
296
+ total: r(y),
297
+ "onUpdate:total": t[8] || (t[8] = (e) => w(y) ? y.value = e : null),
298
+ "current-page": n.value.curPage,
299
+ "onUpdate:currentPage": t[9] || (t[9] = (e) => n.value.curPage = e),
300
+ "page-size": n.value.pageSize,
301
+ "onUpdate:pageSize": t[10] || (t[10] = (e) => n.value.pageSize = e),
302
+ onPagination: t[11] || (t[11] = (e) => r(d).getList())
303
+ }, null, 8, ["total", "current-page", "page-size"])) : X("", !0)
304
+ ]),
305
+ default: a(() => [
306
+ l(x, {
307
+ ref_key: "multipleTableRef",
308
+ ref: $,
309
+ "row-key": "receiptId",
310
+ isSelection: !1,
311
+ "list-loading": r(N),
312
+ data: r(T),
313
+ "table-label": r(p),
314
+ onSelectionChange: z,
315
+ onSortChange: B
316
+ }, {
317
+ transferMoneyDate: a((e) => [
318
+ f(b(r(i).$moment.formatDate(
319
+ e.data.row.transferMoneyDate + " " + e.data.row.transferMoneyTime,
320
+ "YYYY-MM-DD HH:mm:ss"
321
+ )), 1)
322
+ ]),
323
+ instsId: a((e) => [
324
+ f(b(r(m).instsBizDict.getValue(e.data.row.instsId)), 1)
325
+ ]),
326
+ agentCode: a((e) => [
327
+ f(b(r(oe)(e.data.row.agentCode)), 1)
328
+ ]),
329
+ _: 1
330
+ }, 8, ["list-loading", "data", "table-label"])
331
+ ]),
332
+ _: 1
333
+ })
334
+ ]),
335
+ _: 1
336
+ });
337
+ };
338
+ }
339
+ });
340
+ export {
341
+ he as _
342
+ };
@@ -0,0 +1,8 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { PaymentHistoryTradeApi, PaymentHistoryTradeModel, PaymentHistoryBillsKey, PaymentHistoryTradeReq, PaymentHistoryTradePage } from "./types";
3
+ declare class PaymentHistoryTradeApiImpl implements PaymentHistoryTradeApi {
4
+ getKey(model: PaymentHistoryTradeModel): PaymentHistoryBillsKey;
5
+ findPage(query?: PaymentHistoryTradeReq): AxiosPromise<PaymentHistoryTradePage>;
6
+ }
7
+ declare const paymentHistoryTradeApi: PaymentHistoryTradeApiImpl;
8
+ export { paymentHistoryTradeApi };
@@ -0,0 +1,83 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList } from "jmash-core";
2
+ export interface PaymentHistoryTradeApi extends EntityApi {
3
+ }
4
+ export interface PaymentHistoryTradeReq extends EntityReq {
5
+ likeMerchantNo?: string;
6
+ merchantId?: string;
7
+ orderNo?: string;
8
+ outOrderNo?: string;
9
+ channelId?: string;
10
+ agentCode?: string;
11
+ termNo?: string;
12
+ likeOrderTitle?: string;
13
+ hasOrderStatus?: boolean;
14
+ orderStatus?: string;
15
+ startCreateTime?: string;
16
+ endCreateTime?: string;
17
+ payMode?: string;
18
+ tradeType?: string;
19
+ instsId?: string;
20
+ hasBillsStatus?: boolean;
21
+ billsStatus?: string;
22
+ hasTradeType?: boolean;
23
+ hasPayMode?: boolean;
24
+ hasTradeStatus?: boolean;
25
+ tradeStatus?: string;
26
+ tokenExt?: string;
27
+ }
28
+ export interface PaymentHistoryTradeModel extends EntityModel {
29
+ orderId?: string;
30
+ merchantId?: string;
31
+ merchantNo?: string;
32
+ orderNo?: string;
33
+ outOrderNo?: string;
34
+ agentCode?: string;
35
+ marketBy?: string;
36
+ billId?: string;
37
+ orderTitle?: string;
38
+ totalAmount?: number;
39
+ discountAmount?: number;
40
+ payableAmount?: number;
41
+ paidAmount?: number;
42
+ unpaidAmount?: number;
43
+ refundAmount?: number;
44
+ refundableAmount?: number;
45
+ termNo?: string;
46
+ notifyUrl?: string;
47
+ supportCancel?: boolean;
48
+ supportRefund?: boolean;
49
+ supportRepeatPay?: boolean;
50
+ callbackUrl?: string;
51
+ TradeStatus?: string;
52
+ efficientTime?: string;
53
+ description?: string;
54
+ createBy?: string;
55
+ createTime?: string;
56
+ updateTime?: string;
57
+ }
58
+ export interface HistoryTradeList extends EntityList {
59
+ results: Array<PaymentHistoryTradeModel>;
60
+ }
61
+ export interface PaymentHistoryTradePage extends EntityPage {
62
+ results: Array<PaymentHistoryTradeModel>;
63
+ subTotalDto: PaymentHistoryTradeModelTotal;
64
+ totalDto: PaymentHistoryTradeModelTotal;
65
+ }
66
+ export interface PaymentHistoryTradeModelTotal extends EntityTotal {
67
+ totalSize: number;
68
+ totalAmount?: number;
69
+ tradeAmount?: number;
70
+ paidOrder?: number;
71
+ paidAmount?: number;
72
+ discountAmount?: number;
73
+ refundOrder?: number;
74
+ refundAmount?: string;
75
+ }
76
+ export interface PaymentHistoryBillsKey extends EntityKey {
77
+ tenant?: string;
78
+ billId?: string;
79
+ }
80
+ export interface PaymentHistoryTradeList extends EntityKeyList {
81
+ tenant?: string;
82
+ billId?: Array<string>;
83
+ }
@@ -1,4 +1,4 @@
1
- import { MerchantsCommonReq } from "xyvcard-merchant";
1
+ import { type MerchantsCommonReq } from "xyvcard-merchant";
2
2
  export declare class MerchantApi {
3
3
  userInfoMap: Map<string, MerchantsCommonReq>;
4
4
  defauleUserInfo: any;
@@ -11,6 +11,7 @@ export interface SettleTradeReceiptTodayReq extends EntityReq {
11
11
  likeMerchantName?: string;
12
12
  tokenExt?: string;
13
13
  merchantId?: string;
14
+ transferMoneyDate?: string;
14
15
  }
15
16
  export interface SettleTradeReceiptTodayModel extends EntityModel {
16
17
  receiptId?: string;
@@ -37,6 +37,8 @@ declare const _default: {
37
37
  refundReason: string;
38
38
  description: string;
39
39
  qrcodeNo: string;
40
+ payTimeRequired: string;
41
+ needAtLeastOneCondition: string;
40
42
  };
41
43
  settleTradeAnalysis: {
42
44
  merchantNo: string;
@@ -83,6 +85,7 @@ declare const _default: {
83
85
  likeMerchantNoRead: string;
84
86
  likeMerchantNameRead: string;
85
87
  createTime: string;
88
+ createTimeRead: string;
86
89
  transferMoneyDateStart: string;
87
90
  transferMoneyDateEnd: string;
88
91
  transferMoneyDate: string;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,62 +1,62 @@
1
- {
2
- "name": "xyvcard-settle",
3
- "version": "0.0.45",
4
- "private": false,
5
- "module": "dist/index.mjs",
6
- "types": "dts/src/index.d.ts",
7
- "files": [
8
- "dist",
9
- "dts/src"
10
- ],
11
- "peerDependencies": {
12
- "axios": "^1.9.0",
13
- "element-plus": "^2.9.10",
14
- "pinia": "^2.3.1",
15
- "vue": "^3.5.13",
16
- "vue-i18n": "^9.14.4",
17
- "vue-router": "^4.5.1",
18
- "jmash-core": "^0.1.4",
19
- "jmash-dict": "^0.1.1",
20
- "jmash-rbac": "^0.1.1",
21
- "xyvcard-agent": "0.0.48",
22
- "xyvcard-merchant": "0.0.47",
23
- "xyvcard-insts": "0.0.35"
24
- },
25
- "devDependencies": {
26
- "@eslint/js": "^9.14.0",
27
- "@tsconfig/node20": "^20.1.2",
28
- "@types/node": "^20.11.10",
29
- "@vitejs/plugin-vue": "^5.0.3",
30
- "@vue/tsconfig": "^0.5.1",
31
- "eslint": "^9.14.0",
32
- "eslint-plugin-vue": "^9.30.0",
33
- "globals": "^15.12.0",
34
- "npm-run-all2": "^6.1.1",
35
- "prettier": "^3.0.3",
36
- "sass": "^1.72.0",
37
- "typescript": "~5.3.0",
38
- "typescript-eslint": "^8.13.0",
39
- "unplugin-auto-import": "^0.17.5",
40
- "unplugin-vue-components": "^0.26.0",
41
- "vite": "^5.0.11",
42
- "vue-tsc": "^2.1.10",
43
- "moment": "^2.30.1"
44
- },
45
- "dependencies": {
46
- "file-saver": "^2.0.5",
47
- "nprogress": "^0.2.0",
48
- "@vueuse/core": "^10.9.0",
49
- "qs": "^6.12.0",
50
- "echarts": "^5.5.1"
51
- },
52
- "scripts": {
53
- "dev": "vite --host",
54
- "build": "vite build && pnpm build:dts",
55
- "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
56
- "preview": "vite preview",
57
- "build-only": "vite build",
58
- "type-check": "vue-tsc --build --force",
59
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
60
- "format": "prettier --write src/"
61
- }
62
- }
1
+ {
2
+ "name": "xyvcard-settle",
3
+ "version": "0.0.47",
4
+ "private": false,
5
+ "module": "dist/index.mjs",
6
+ "types": "dts/src/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "dts/src"
10
+ ],
11
+ "scripts": {
12
+ "dev": "vite --host",
13
+ "build": "vite build && pnpm build:dts",
14
+ "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
15
+ "preview": "vite preview",
16
+ "build-only": "vite build",
17
+ "type-check": "vue-tsc --build --force",
18
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
19
+ "format": "prettier --write src/"
20
+ },
21
+ "peerDependencies": {
22
+ "axios": "^1.9.0",
23
+ "element-plus": "^2.9.10",
24
+ "pinia": "^2.3.1",
25
+ "vue": "^3.5.13",
26
+ "vue-i18n": "^9.14.4",
27
+ "vue-router": "^4.5.1",
28
+ "jmash-core": "^0.1.4",
29
+ "jmash-dict": "^0.1.1",
30
+ "jmash-rbac": "^0.1.1",
31
+ "xyvcard-agent": "0.0.49",
32
+ "xyvcard-merchant": "0.0.52",
33
+ "xyvcard-insts": "0.0.38"
34
+ },
35
+ "devDependencies": {
36
+ "@eslint/js": "^9.14.0",
37
+ "@tsconfig/node20": "^20.1.2",
38
+ "@types/node": "^20.11.10",
39
+ "@vitejs/plugin-vue": "^5.0.3",
40
+ "@vue/tsconfig": "^0.5.1",
41
+ "eslint": "^9.14.0",
42
+ "eslint-plugin-vue": "^9.30.0",
43
+ "globals": "^15.12.0",
44
+ "npm-run-all2": "^6.1.1",
45
+ "prettier": "^3.0.3",
46
+ "sass": "^1.72.0",
47
+ "typescript": "~5.3.0",
48
+ "typescript-eslint": "^8.13.0",
49
+ "unplugin-auto-import": "^0.17.5",
50
+ "unplugin-vue-components": "^0.26.0",
51
+ "vite": "^5.0.11",
52
+ "vue-tsc": "^2.1.10",
53
+ "moment": "^2.30.1"
54
+ },
55
+ "dependencies": {
56
+ "file-saver": "^2.0.5",
57
+ "nprogress": "^0.2.0",
58
+ "@vueuse/core": "^10.9.0",
59
+ "qs": "^6.12.0",
60
+ "echarts": "^5.5.1"
61
+ }
62
+ }