@teamias/rex-pro 0.0.1
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/LICENSE +21 -0
- package/README.md +65 -0
- package/dist/components/card-basic-info/card-basic-info.d.ts +24 -0
- package/dist/components/card-basic-info/card-basic-info.js +62 -0
- package/dist/components/card-basic-info/demo/BasicCardBasicInfo.d.ts +2 -0
- package/dist/components/card-basic-info/demo/BasicCardBasicInfo.js +11 -0
- package/dist/components/card-basic-info/demo/LinkContentType.d.ts +2 -0
- package/dist/components/card-basic-info/demo/LinkContentType.js +26 -0
- package/dist/components/card-basic-info/demo/TableUsage.d.ts +2 -0
- package/dist/components/card-basic-info/demo/TableUsage.js +44 -0
- package/dist/components/card-basic-info/demo/TagContentType.d.ts +2 -0
- package/dist/components/card-basic-info/demo/TagContentType.js +16 -0
- package/dist/components/card-basic-info/demo/TextAndTagContentType.d.ts +2 -0
- package/dist/components/card-basic-info/demo/TextAndTagContentType.js +23 -0
- package/dist/components/card-basic-info/demo/TextContentType.d.ts +2 -0
- package/dist/components/card-basic-info/demo/TextContentType.js +17 -0
- package/dist/components/card-basic-info/index.d.ts +2 -0
- package/dist/components/card-basic-info/index.js +1 -0
- package/dist/components/card-basic-info/style/index.d.ts +5 -0
- package/dist/components/card-basic-info/style/index.js +19 -0
- package/dist/components/filter-form/demo/AverageFilterForm.d.ts +2 -0
- package/dist/components/filter-form/demo/AverageFilterForm.js +146 -0
- package/dist/components/filter-form/demo/BasicFilterForm.d.ts +2 -0
- package/dist/components/filter-form/demo/BasicFilterForm.js +319 -0
- package/dist/components/filter-form/filter-form.d.ts +62 -0
- package/dist/components/filter-form/filter-form.js +241 -0
- package/dist/components/filter-form/index.d.ts +1 -0
- package/dist/components/filter-form/index.js +2 -0
- package/dist/components/filter-form/style/index.d.ts +3 -0
- package/dist/components/filter-form/style/index.js +3 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +5 -0
- package/dist/components/rex-pro-form/demo/BasicRexProForm.d.ts +2 -0
- package/dist/components/rex-pro-form/demo/BasicRexProForm.js +209 -0
- package/dist/components/rex-pro-form/index.d.ts +1 -0
- package/dist/components/rex-pro-form/index.js +1 -0
- package/dist/components/rex-pro-form/rex-pro-form.d.ts +35 -0
- package/dist/components/rex-pro-form/rex-pro-form.js +100 -0
- package/dist/components/rex-pro-form/style/index.d.ts +2 -0
- package/dist/components/rex-pro-form/style/index.js +2 -0
- package/dist/components/rex-pro-table/components/ActionButtons.d.ts +2 -0
- package/dist/components/rex-pro-table/components/ActionButtons.js +306 -0
- package/dist/components/rex-pro-table/components/drawer-table/InlineTable.d.ts +4 -0
- package/dist/components/rex-pro-table/components/drawer-table/InlineTable.js +89 -0
- package/dist/components/rex-pro-table/components/drawer-table/index.d.ts +2 -0
- package/dist/components/rex-pro-table/components/drawer-table/index.js +67 -0
- package/dist/components/rex-pro-table/components/modal-form/InlineForm.d.ts +8 -0
- package/dist/components/rex-pro-table/components/modal-form/InlineForm.js +143 -0
- package/dist/components/rex-pro-table/components/modal-form/index.d.ts +2 -0
- package/dist/components/rex-pro-table/components/modal-form/index.js +77 -0
- package/dist/components/rex-pro-table/demo/BasicRexProListTable.d.ts +2 -0
- package/dist/components/rex-pro-table/demo/BasicRexProListTable.js +1076 -0
- package/dist/components/rex-pro-table/demo/BasicRexProTable.d.ts +2 -0
- package/dist/components/rex-pro-table/demo/BasicRexProTable.js +1104 -0
- package/dist/components/rex-pro-table/index.d.ts +2 -0
- package/dist/components/rex-pro-table/index.js +1 -0
- package/dist/components/rex-pro-table/rex-pro-table.d.ts +4 -0
- package/dist/components/rex-pro-table/rex-pro-table.js +416 -0
- package/dist/components/rex-pro-table/style/index.d.ts +10 -0
- package/dist/components/rex-pro-table/style/index.js +23 -0
- package/dist/components/rex-pro-table/types.d.ts +221 -0
- package/dist/components/rex-pro-table/types.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/en-US.json +28 -0
- package/dist/locales/zh-CN.json +28 -0
- package/dist/types/svg.d.ts +4 -0
- package/package.json +97 -0
|
@@ -0,0 +1,1104 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import { RequestFieldsContainer, RexProConfigProvider } from '@teamias/rex-design';
|
|
12
|
+
import { useRef, useState } from 'react';
|
|
13
|
+
import { RexProTable } from "../rex-pro-table";
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
export default (function () {
|
|
16
|
+
var _useState = useState({}),
|
|
17
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
+
update = _useState2[1];
|
|
19
|
+
var _useRef = useRef({
|
|
20
|
+
selectKeys: []
|
|
21
|
+
}),
|
|
22
|
+
state = _useRef.current;
|
|
23
|
+
var tableData = {
|
|
24
|
+
items: [{
|
|
25
|
+
key: 'parent_1075',
|
|
26
|
+
id: [{
|
|
27
|
+
type: 'text',
|
|
28
|
+
props: {
|
|
29
|
+
value: 1075,
|
|
30
|
+
width: 200
|
|
31
|
+
},
|
|
32
|
+
extra: {
|
|
33
|
+
colSpan: 28
|
|
34
|
+
}
|
|
35
|
+
}],
|
|
36
|
+
store_name: [{
|
|
37
|
+
type: 'text',
|
|
38
|
+
props: {
|
|
39
|
+
label: '目的仓',
|
|
40
|
+
value: '国内备货仓',
|
|
41
|
+
width: 200
|
|
42
|
+
}
|
|
43
|
+
}],
|
|
44
|
+
planuser: [{
|
|
45
|
+
type: 'text',
|
|
46
|
+
props: {
|
|
47
|
+
label: '计划员',
|
|
48
|
+
value: '',
|
|
49
|
+
width: 200
|
|
50
|
+
}
|
|
51
|
+
}],
|
|
52
|
+
label: [{
|
|
53
|
+
type: 'tag',
|
|
54
|
+
props: {
|
|
55
|
+
value: '加工'
|
|
56
|
+
}
|
|
57
|
+
}]
|
|
58
|
+
}, {
|
|
59
|
+
key: '1075_1102',
|
|
60
|
+
id: 1075,
|
|
61
|
+
detail_id: 1102,
|
|
62
|
+
status_name: [{
|
|
63
|
+
type: 'text',
|
|
64
|
+
props: {
|
|
65
|
+
value: 1075
|
|
66
|
+
},
|
|
67
|
+
extra: {
|
|
68
|
+
rowSpan: 2
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
type: 'tag',
|
|
72
|
+
props: {
|
|
73
|
+
value: '待处理'
|
|
74
|
+
}
|
|
75
|
+
}],
|
|
76
|
+
goods_spu_info: [{
|
|
77
|
+
type: 'text',
|
|
78
|
+
props: {
|
|
79
|
+
label: 'SPU',
|
|
80
|
+
value: {
|
|
81
|
+
type: 'link',
|
|
82
|
+
props: {
|
|
83
|
+
label: 'CO576911',
|
|
84
|
+
value: '/'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
extra: {
|
|
89
|
+
rowSpan: 2
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
type: 'text',
|
|
93
|
+
props: {
|
|
94
|
+
label: '品名',
|
|
95
|
+
value: '跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶'
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
type: 'text',
|
|
99
|
+
props: {
|
|
100
|
+
label: '买手',
|
|
101
|
+
value: ''
|
|
102
|
+
}
|
|
103
|
+
}],
|
|
104
|
+
store_name: [{
|
|
105
|
+
type: 'text',
|
|
106
|
+
props: {
|
|
107
|
+
value: '国内备货仓'
|
|
108
|
+
}
|
|
109
|
+
}],
|
|
110
|
+
goods_image: [{
|
|
111
|
+
type: 'img',
|
|
112
|
+
props: {
|
|
113
|
+
value: 'http://image.spocoo.com/881a5f295d399a1bfab9cd9a03173801.jpg'
|
|
114
|
+
}
|
|
115
|
+
}],
|
|
116
|
+
goods_sku_info: [{
|
|
117
|
+
type: 'link',
|
|
118
|
+
props: {
|
|
119
|
+
label: 'CO576911_01',
|
|
120
|
+
value: '/'
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
type: 'text',
|
|
124
|
+
props: {
|
|
125
|
+
value: '跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶 黑色'
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
type: 'tag',
|
|
129
|
+
props: {
|
|
130
|
+
value: '加',
|
|
131
|
+
color: 'red'
|
|
132
|
+
}
|
|
133
|
+
}],
|
|
134
|
+
planuser: [{
|
|
135
|
+
type: 'text',
|
|
136
|
+
props: {
|
|
137
|
+
value: ''
|
|
138
|
+
}
|
|
139
|
+
}],
|
|
140
|
+
factory: [{
|
|
141
|
+
type: 'link',
|
|
142
|
+
props: {
|
|
143
|
+
label: 'CO576911_01',
|
|
144
|
+
value: '/'
|
|
145
|
+
}
|
|
146
|
+
}],
|
|
147
|
+
asin: [{
|
|
148
|
+
type: 'text',
|
|
149
|
+
props: {
|
|
150
|
+
value: '0 / 0'
|
|
151
|
+
}
|
|
152
|
+
}],
|
|
153
|
+
goods_sales: [{
|
|
154
|
+
type: 'text',
|
|
155
|
+
props: {
|
|
156
|
+
value: '0 / 0 / 0 / / '
|
|
157
|
+
}
|
|
158
|
+
}],
|
|
159
|
+
goods_dms: [{
|
|
160
|
+
type: 'text',
|
|
161
|
+
props: {
|
|
162
|
+
value: '0 / 0'
|
|
163
|
+
}
|
|
164
|
+
}],
|
|
165
|
+
gross_margin: [{
|
|
166
|
+
type: 'text',
|
|
167
|
+
props: {
|
|
168
|
+
value: '0 / 0 / 0 / 0 / 0'
|
|
169
|
+
}
|
|
170
|
+
}],
|
|
171
|
+
goods_rma: [{
|
|
172
|
+
type: 'text',
|
|
173
|
+
props: {
|
|
174
|
+
value: '0 / 0 / 0 / 0 / 0'
|
|
175
|
+
}
|
|
176
|
+
}],
|
|
177
|
+
goods_stock: [{
|
|
178
|
+
type: 'text',
|
|
179
|
+
props: {
|
|
180
|
+
value: 0
|
|
181
|
+
}
|
|
182
|
+
}],
|
|
183
|
+
usable_stock: [{
|
|
184
|
+
type: 'text',
|
|
185
|
+
props: {
|
|
186
|
+
value: 0
|
|
187
|
+
}
|
|
188
|
+
}],
|
|
189
|
+
having_stock: [{
|
|
190
|
+
type: 'text',
|
|
191
|
+
props: {
|
|
192
|
+
value: 0
|
|
193
|
+
}
|
|
194
|
+
}],
|
|
195
|
+
unsellable_stock: [{
|
|
196
|
+
type: 'text',
|
|
197
|
+
props: {
|
|
198
|
+
value: 0
|
|
199
|
+
}
|
|
200
|
+
}],
|
|
201
|
+
plan_quantity: [{
|
|
202
|
+
type: 'text',
|
|
203
|
+
props: {
|
|
204
|
+
value: 0
|
|
205
|
+
}
|
|
206
|
+
}],
|
|
207
|
+
process_ing_quantity: [{
|
|
208
|
+
type: 'text',
|
|
209
|
+
props: {
|
|
210
|
+
value: 0
|
|
211
|
+
}
|
|
212
|
+
}],
|
|
213
|
+
ship_wait_quantity: [{
|
|
214
|
+
type: 'text',
|
|
215
|
+
props: {
|
|
216
|
+
value: 0
|
|
217
|
+
}
|
|
218
|
+
}],
|
|
219
|
+
shiping_num: [{
|
|
220
|
+
type: 'text',
|
|
221
|
+
props: {
|
|
222
|
+
value: 0
|
|
223
|
+
}
|
|
224
|
+
}],
|
|
225
|
+
overseas_stock: [{
|
|
226
|
+
type: 'text',
|
|
227
|
+
props: {
|
|
228
|
+
value: 0
|
|
229
|
+
}
|
|
230
|
+
}],
|
|
231
|
+
shiped_error_quantity: [{
|
|
232
|
+
type: 'text',
|
|
233
|
+
props: {
|
|
234
|
+
value: 0
|
|
235
|
+
}
|
|
236
|
+
}],
|
|
237
|
+
time_info: [{
|
|
238
|
+
type: 'text',
|
|
239
|
+
props: {
|
|
240
|
+
value: '1970-01-01 08:00:00(黄盛)'
|
|
241
|
+
}
|
|
242
|
+
}, {
|
|
243
|
+
type: 'text',
|
|
244
|
+
props: {
|
|
245
|
+
value: '2025-03-12 15:54:26(黄盛)'
|
|
246
|
+
}
|
|
247
|
+
}],
|
|
248
|
+
p_remark: [{
|
|
249
|
+
type: 'text',
|
|
250
|
+
props: {
|
|
251
|
+
value: ''
|
|
252
|
+
}
|
|
253
|
+
}],
|
|
254
|
+
quantity: [{
|
|
255
|
+
type: 'text',
|
|
256
|
+
props: {
|
|
257
|
+
value: 0
|
|
258
|
+
}
|
|
259
|
+
}],
|
|
260
|
+
quantity_modify: [{
|
|
261
|
+
type: 'text',
|
|
262
|
+
props: {
|
|
263
|
+
value: 103
|
|
264
|
+
}
|
|
265
|
+
}],
|
|
266
|
+
bom_data: [{
|
|
267
|
+
type: 'text',
|
|
268
|
+
props: {
|
|
269
|
+
value: '0 / 0'
|
|
270
|
+
}
|
|
271
|
+
}]
|
|
272
|
+
}],
|
|
273
|
+
page: {
|
|
274
|
+
total_items: 2,
|
|
275
|
+
current_page: 0,
|
|
276
|
+
page_size: 0,
|
|
277
|
+
total_pages: 0
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
return (
|
|
281
|
+
/*#__PURE__*/
|
|
282
|
+
// <RexProTable>hello world!</RexProTable>
|
|
283
|
+
_jsx(RexProConfigProvider, {
|
|
284
|
+
value: {
|
|
285
|
+
apiClient: function () {
|
|
286
|
+
var _apiClient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, params) {
|
|
287
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
288
|
+
while (1) switch (_context.prev = _context.next) {
|
|
289
|
+
case 0:
|
|
290
|
+
_context.next = 2;
|
|
291
|
+
return new Promise(function (rel) {
|
|
292
|
+
setTimeout(rel, Math.random() * 1000);
|
|
293
|
+
});
|
|
294
|
+
case 2:
|
|
295
|
+
if (!url.startsWith('/schemaConfig')) {
|
|
296
|
+
_context.next = 4;
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
return _context.abrupt("return", {
|
|
300
|
+
/** 批量操作按钮 */
|
|
301
|
+
// batchActionUrl: '/batchActionProps',
|
|
302
|
+
// batchActionParams?: Record<string, unknown>;
|
|
303
|
+
batchActionConfig: [{
|
|
304
|
+
type: 'button_items',
|
|
305
|
+
items: [{
|
|
306
|
+
label: '确认1',
|
|
307
|
+
value: '确认1',
|
|
308
|
+
action: 'confirm',
|
|
309
|
+
confirmTitle: 'xxx\nqweqwe1',
|
|
310
|
+
confirmContent: 'xxx\nqweqwe1',
|
|
311
|
+
url: '/ass/ada/qqqq',
|
|
312
|
+
buttonProps: {
|
|
313
|
+
type: 'primary'
|
|
314
|
+
}
|
|
315
|
+
}, {
|
|
316
|
+
label: 'modal-form',
|
|
317
|
+
value: 'modal-form',
|
|
318
|
+
action: 'modal-form',
|
|
319
|
+
modalConfigUrl: '/form-modal-schemaConfig',
|
|
320
|
+
modalConfigParams: {
|
|
321
|
+
ww: 1
|
|
322
|
+
},
|
|
323
|
+
modalTitle: 'qweqwe',
|
|
324
|
+
modalWidth: '50%',
|
|
325
|
+
buttonProps: {
|
|
326
|
+
type: 'dashed'
|
|
327
|
+
}
|
|
328
|
+
}, {
|
|
329
|
+
label: 'modal-search',
|
|
330
|
+
value: 'modal-search',
|
|
331
|
+
action: 'modal-search',
|
|
332
|
+
modalConfigUrl: '/search-modal-schemaConfig',
|
|
333
|
+
modalConfigParams: {
|
|
334
|
+
ww: 1
|
|
335
|
+
},
|
|
336
|
+
modalTitle: 'modal-search标题',
|
|
337
|
+
modalWidth: '80%',
|
|
338
|
+
buttonProps: {
|
|
339
|
+
type: 'dashed'
|
|
340
|
+
}
|
|
341
|
+
}]
|
|
342
|
+
}, {
|
|
343
|
+
type: 'button_group',
|
|
344
|
+
label: '批量操作',
|
|
345
|
+
items: [{
|
|
346
|
+
label: '确认2',
|
|
347
|
+
value: '确认2',
|
|
348
|
+
action: 'confirm',
|
|
349
|
+
confirmTitle: 'xxx\nqweqwe2',
|
|
350
|
+
confirmContent: 'xxx\nqweqwe2',
|
|
351
|
+
api: '/ass/ada/qqqq',
|
|
352
|
+
buttonProps: {
|
|
353
|
+
type: 'primary'
|
|
354
|
+
}
|
|
355
|
+
}, {
|
|
356
|
+
label: '确认3',
|
|
357
|
+
value: '确认3',
|
|
358
|
+
action: 'confirm',
|
|
359
|
+
api: '/ass/ada/qqqq'
|
|
360
|
+
}, {
|
|
361
|
+
label: '确认4',
|
|
362
|
+
value: '确认4',
|
|
363
|
+
action: 'confirm',
|
|
364
|
+
api: '/ass/ada/qqqq'
|
|
365
|
+
}]
|
|
366
|
+
}],
|
|
367
|
+
/** 表格操作列按钮 */
|
|
368
|
+
// tableActionButtonUrl: '/actionConfig',
|
|
369
|
+
// tableActionButtonParams?: Record<string, unknown>;
|
|
370
|
+
tableActionButtonConfig: [{
|
|
371
|
+
type: 'button_items',
|
|
372
|
+
items: [{
|
|
373
|
+
label: 'items',
|
|
374
|
+
value: 'items',
|
|
375
|
+
buttonProps: {
|
|
376
|
+
type: 'primary'
|
|
377
|
+
},
|
|
378
|
+
filter: [{
|
|
379
|
+
original: 'qwe',
|
|
380
|
+
target: 1,
|
|
381
|
+
op: 'eq'
|
|
382
|
+
}]
|
|
383
|
+
}]
|
|
384
|
+
}, {
|
|
385
|
+
type: 'button_group',
|
|
386
|
+
label: '操作',
|
|
387
|
+
items: [{
|
|
388
|
+
label: 'confirm',
|
|
389
|
+
value: 'value2',
|
|
390
|
+
action: 'confirm',
|
|
391
|
+
api: '/ass/ada/qqqq'
|
|
392
|
+
}, {
|
|
393
|
+
label: 'modal-form',
|
|
394
|
+
value: 'modal-form',
|
|
395
|
+
action: 'modal-form',
|
|
396
|
+
modalConfigUrl: '/form-modal-schemaConfig',
|
|
397
|
+
modalConfigParams: {
|
|
398
|
+
ww: 1
|
|
399
|
+
},
|
|
400
|
+
modalTitle: 'qweqwe',
|
|
401
|
+
modalWidth: '50%',
|
|
402
|
+
buttonProps: {
|
|
403
|
+
type: 'dashed'
|
|
404
|
+
}
|
|
405
|
+
}, {
|
|
406
|
+
label: 'modal-search',
|
|
407
|
+
value: 'modal-search',
|
|
408
|
+
action: 'modal-search',
|
|
409
|
+
modalConfigUrl: '/search-modal-schemaConfig',
|
|
410
|
+
modalConfigParams: {
|
|
411
|
+
ww: 1
|
|
412
|
+
},
|
|
413
|
+
modalTitle: 'modal-search标题',
|
|
414
|
+
modalWidth: '80%',
|
|
415
|
+
buttonProps: {
|
|
416
|
+
type: 'dashed'
|
|
417
|
+
}
|
|
418
|
+
}]
|
|
419
|
+
}],
|
|
420
|
+
/** 表格过滤项 */
|
|
421
|
+
// formFieldUrl: '/filterFormProps',
|
|
422
|
+
// formFieldParams?: Record<string, unknown>;
|
|
423
|
+
formFieldConfig: [{
|
|
424
|
+
valueType: 'multipleComponents',
|
|
425
|
+
label: 'multipleComponents',
|
|
426
|
+
compact: true,
|
|
427
|
+
hidden: true,
|
|
428
|
+
subItems: [{
|
|
429
|
+
valueType: 'input',
|
|
430
|
+
field: 'multipleComponents-input',
|
|
431
|
+
labelWidth: '100px',
|
|
432
|
+
// itemWidth: '20%',
|
|
433
|
+
defaultValue: '2025-05-05'
|
|
434
|
+
}, {
|
|
435
|
+
valueType: 'treeSelect',
|
|
436
|
+
field: 'multipleComponents-treeSelect',
|
|
437
|
+
// itemWidth: '80%',
|
|
438
|
+
defaultValue: 'light',
|
|
439
|
+
options: [{
|
|
440
|
+
label: 'Light',
|
|
441
|
+
value: 'light'
|
|
442
|
+
}, {
|
|
443
|
+
label: 'Light2',
|
|
444
|
+
value: 'light2'
|
|
445
|
+
}]
|
|
446
|
+
}, {
|
|
447
|
+
valueType: 'datePicker',
|
|
448
|
+
field: 'multipleComponents-datePicker',
|
|
449
|
+
defaultValue: '2025-05-05'
|
|
450
|
+
}, {
|
|
451
|
+
valueType: 'treeSelect',
|
|
452
|
+
field: 'multipleComponents-treeSelect2',
|
|
453
|
+
options: [{
|
|
454
|
+
label: 'Light123',
|
|
455
|
+
value: 'light123'
|
|
456
|
+
}, {
|
|
457
|
+
label: 'Light456',
|
|
458
|
+
value: 'light456'
|
|
459
|
+
}]
|
|
460
|
+
}]
|
|
461
|
+
// formItemProps: {
|
|
462
|
+
// style: {
|
|
463
|
+
// display: 'none',
|
|
464
|
+
// }
|
|
465
|
+
// }
|
|
466
|
+
}, {
|
|
467
|
+
valueType: 'input',
|
|
468
|
+
field: 'input',
|
|
469
|
+
label: 'input',
|
|
470
|
+
defaultValue: 'input'
|
|
471
|
+
}, {
|
|
472
|
+
valueType: 'select',
|
|
473
|
+
field: 'select-false',
|
|
474
|
+
label: 'select-false',
|
|
475
|
+
defaultValue: 'light',
|
|
476
|
+
options: [{
|
|
477
|
+
label: 'Light',
|
|
478
|
+
value: 'light'
|
|
479
|
+
}, {
|
|
480
|
+
label: 'Light2',
|
|
481
|
+
value: 'light2'
|
|
482
|
+
}]
|
|
483
|
+
}, {
|
|
484
|
+
valueType: 'select',
|
|
485
|
+
field: 'select',
|
|
486
|
+
label: 'select',
|
|
487
|
+
defaultValue: 'light',
|
|
488
|
+
multiple: true,
|
|
489
|
+
options: [{
|
|
490
|
+
label: 'Light',
|
|
491
|
+
value: 'light'
|
|
492
|
+
}, {
|
|
493
|
+
label: 'Light2',
|
|
494
|
+
value: 'light2'
|
|
495
|
+
}]
|
|
496
|
+
}, {
|
|
497
|
+
valueType: 'selectDim',
|
|
498
|
+
field: 'selectDim',
|
|
499
|
+
label: 'selectDim',
|
|
500
|
+
api: '/selectData',
|
|
501
|
+
defaultParams: {
|
|
502
|
+
a: 1,
|
|
503
|
+
b: 2
|
|
504
|
+
}
|
|
505
|
+
}, {
|
|
506
|
+
valueType: 'dateRange',
|
|
507
|
+
field: ['dateRange-start', 'dateRange-end'],
|
|
508
|
+
label: 'dateRange'
|
|
509
|
+
}, {
|
|
510
|
+
valueType: 'cascader',
|
|
511
|
+
field: 'cascader-false',
|
|
512
|
+
label: 'cascader-false',
|
|
513
|
+
options: [{
|
|
514
|
+
label: 'Light',
|
|
515
|
+
value: 'light'
|
|
516
|
+
}, {
|
|
517
|
+
label: 'Light2',
|
|
518
|
+
value: 'light2'
|
|
519
|
+
}]
|
|
520
|
+
}, {
|
|
521
|
+
valueType: 'cascader',
|
|
522
|
+
field: 'cascader-true',
|
|
523
|
+
label: 'cascader-true',
|
|
524
|
+
multiple: true,
|
|
525
|
+
options: [{
|
|
526
|
+
label: 'Light',
|
|
527
|
+
value: 'light'
|
|
528
|
+
}, {
|
|
529
|
+
label: 'Light2',
|
|
530
|
+
value: 'light2'
|
|
531
|
+
}]
|
|
532
|
+
}, {
|
|
533
|
+
valueType: 'treeSelect',
|
|
534
|
+
field: 'treeSelect-false',
|
|
535
|
+
label: 'treeSelect-false',
|
|
536
|
+
options: [{
|
|
537
|
+
label: 'Light',
|
|
538
|
+
value: 'light'
|
|
539
|
+
}, {
|
|
540
|
+
label: 'Light2',
|
|
541
|
+
value: 'light2'
|
|
542
|
+
}]
|
|
543
|
+
}, {
|
|
544
|
+
valueType: 'treeSelect',
|
|
545
|
+
field: 'treeSelect',
|
|
546
|
+
label: 'treeSelect',
|
|
547
|
+
multiple: true,
|
|
548
|
+
options: [{
|
|
549
|
+
label: 'Light',
|
|
550
|
+
value: 'light'
|
|
551
|
+
}, {
|
|
552
|
+
label: 'Light2',
|
|
553
|
+
value: 'light2'
|
|
554
|
+
}],
|
|
555
|
+
fieldProps: {
|
|
556
|
+
maxTagCount: 2
|
|
557
|
+
}
|
|
558
|
+
}, {
|
|
559
|
+
valueType: 'checkbox',
|
|
560
|
+
field: 'checkbox',
|
|
561
|
+
label: 'checkbox',
|
|
562
|
+
defaultValue: true
|
|
563
|
+
}, {
|
|
564
|
+
valueType: 'checkboxGroup',
|
|
565
|
+
field: 'checkboxGroup',
|
|
566
|
+
label: 'checkboxGroup',
|
|
567
|
+
options: [{
|
|
568
|
+
label: 'Light',
|
|
569
|
+
value: 'light'
|
|
570
|
+
}, {
|
|
571
|
+
label: 'Light2',
|
|
572
|
+
value: 'light2'
|
|
573
|
+
}]
|
|
574
|
+
}, {
|
|
575
|
+
valueType: 'radioGroup',
|
|
576
|
+
field: 'radioGroup',
|
|
577
|
+
label: 'radioGroup',
|
|
578
|
+
defaultValue: 'light',
|
|
579
|
+
options: [{
|
|
580
|
+
label: 'Light',
|
|
581
|
+
value: 'light'
|
|
582
|
+
}, {
|
|
583
|
+
label: 'Light2',
|
|
584
|
+
value: 'light2'
|
|
585
|
+
}]
|
|
586
|
+
}, {
|
|
587
|
+
valueType: 'inputNumber',
|
|
588
|
+
field: 'inputNumber',
|
|
589
|
+
label: 'inputNumber',
|
|
590
|
+
defaultValue: 2
|
|
591
|
+
}, {
|
|
592
|
+
valueType: 'inputNumberRange',
|
|
593
|
+
field: ['inputNumberRange-min', 'inputNumberRange-max'],
|
|
594
|
+
label: 'inputNumberRange',
|
|
595
|
+
defaultValue: [2, 5]
|
|
596
|
+
}, {
|
|
597
|
+
valueType: 'textArea',
|
|
598
|
+
field: 'textArea',
|
|
599
|
+
label: 'textArea',
|
|
600
|
+
defaultValue: 'qweqwe'
|
|
601
|
+
}, {
|
|
602
|
+
valueType: 'switch',
|
|
603
|
+
field: 'switch',
|
|
604
|
+
label: 'switch'
|
|
605
|
+
}, {
|
|
606
|
+
valueType: 'datePicker',
|
|
607
|
+
field: 'datePicker',
|
|
608
|
+
label: 'datePicker',
|
|
609
|
+
defaultValue: '2025-05-05'
|
|
610
|
+
}],
|
|
611
|
+
/** 表单数据回显 */
|
|
612
|
+
// formDataUrl: '/formDataUrl',
|
|
613
|
+
// formDataParams?: Record<string, unknown>;
|
|
614
|
+
|
|
615
|
+
/** 表单数据保存 */
|
|
616
|
+
// formSaveUrl: '/formSaveUrl',
|
|
617
|
+
// formSaveParams?: Record<string, unknown>;
|
|
618
|
+
|
|
619
|
+
/** 表格头 */
|
|
620
|
+
// tableHeaderUrl: '/tableProps',
|
|
621
|
+
// tableHeaderParams?: Record<string, unknown>;
|
|
622
|
+
tableHeaderConfig: [{
|
|
623
|
+
title: '编号/状态',
|
|
624
|
+
dataIndex: 'status_name',
|
|
625
|
+
key: 'status_name'
|
|
626
|
+
}, {
|
|
627
|
+
title: 'SPU/组合SKU',
|
|
628
|
+
dataIndex: 'goods_spu_info',
|
|
629
|
+
key: 'goods_spu_info'
|
|
630
|
+
}, {
|
|
631
|
+
title: '图片',
|
|
632
|
+
dataIndex: 'goods_image',
|
|
633
|
+
key: 'goods_image',
|
|
634
|
+
align: 'center'
|
|
635
|
+
}, {
|
|
636
|
+
title: 'SKU/属性',
|
|
637
|
+
dataIndex: 'goods_sku_info',
|
|
638
|
+
key: 'goods_sku_info'
|
|
639
|
+
}, {
|
|
640
|
+
title: '计划员',
|
|
641
|
+
dataIndex: 'planuser',
|
|
642
|
+
key: 'planuser'
|
|
643
|
+
}, {
|
|
644
|
+
title: '供应商',
|
|
645
|
+
dataIndex: 'factory',
|
|
646
|
+
key: 'factory'
|
|
647
|
+
}, {
|
|
648
|
+
title: 'ASIN',
|
|
649
|
+
dataIndex: 'asin',
|
|
650
|
+
key: 'asin'
|
|
651
|
+
}, {
|
|
652
|
+
title: '销量',
|
|
653
|
+
dataIndex: 'goods_sales',
|
|
654
|
+
key: 'goods_sales'
|
|
655
|
+
}, {
|
|
656
|
+
title: 'DMS',
|
|
657
|
+
dataIndex: 'goods_dms',
|
|
658
|
+
key: 'goods_dms'
|
|
659
|
+
}, {
|
|
660
|
+
title: '毛利率',
|
|
661
|
+
dataIndex: 'gross_margin',
|
|
662
|
+
key: 'gross_margin'
|
|
663
|
+
}, {
|
|
664
|
+
title: '售后率',
|
|
665
|
+
dataIndex: 'goods_rma',
|
|
666
|
+
key: 'goods_rma'
|
|
667
|
+
}]
|
|
668
|
+
|
|
669
|
+
/** 表格数据 */
|
|
670
|
+
// tableDataUrl: '/tableDataUrl'
|
|
671
|
+
});
|
|
672
|
+
case 4:
|
|
673
|
+
if (!url.startsWith('/search-modal-schemaConfig')) {
|
|
674
|
+
_context.next = 6;
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
677
|
+
return _context.abrupt("return", {
|
|
678
|
+
/** 批量操作按钮 */
|
|
679
|
+
// batchActionUrl: '/batchActionProps',
|
|
680
|
+
// batchActionParams?: Record<string, unknown>;
|
|
681
|
+
batchActionConfig: [{
|
|
682
|
+
type: 'button_items',
|
|
683
|
+
items: [{
|
|
684
|
+
label: '确认1',
|
|
685
|
+
value: '确认1',
|
|
686
|
+
action: 'confirm',
|
|
687
|
+
url: '/ass/ada/qqqq',
|
|
688
|
+
buttonProps: {
|
|
689
|
+
type: 'primary'
|
|
690
|
+
}
|
|
691
|
+
}, {
|
|
692
|
+
label: 'modal-form',
|
|
693
|
+
value: 'modal-form',
|
|
694
|
+
action: 'modal-form',
|
|
695
|
+
modalConfigUrl: '/RequestFieldsContainer',
|
|
696
|
+
modalConfigParams: {
|
|
697
|
+
ww: 1
|
|
698
|
+
},
|
|
699
|
+
modalTitle: 'qweqwe',
|
|
700
|
+
modalWidth: '50%',
|
|
701
|
+
buttonProps: {
|
|
702
|
+
type: 'dashed'
|
|
703
|
+
}
|
|
704
|
+
}, {
|
|
705
|
+
label: 'modal-search',
|
|
706
|
+
value: 'modal-search',
|
|
707
|
+
action: 'modal-search',
|
|
708
|
+
modalConfigUrl: '/RequestFieldsContainer',
|
|
709
|
+
modalConfigParams: {
|
|
710
|
+
ww: 1
|
|
711
|
+
},
|
|
712
|
+
modalTitle: 'qweqwe',
|
|
713
|
+
modalWidth: '80%',
|
|
714
|
+
buttonProps: {
|
|
715
|
+
type: 'dashed'
|
|
716
|
+
}
|
|
717
|
+
}]
|
|
718
|
+
}, {
|
|
719
|
+
type: 'button_group',
|
|
720
|
+
label: '批量操作',
|
|
721
|
+
items: [{
|
|
722
|
+
label: '确认2',
|
|
723
|
+
value: '确认2',
|
|
724
|
+
action: 'confirm',
|
|
725
|
+
url: '/ass/ada/qqqq',
|
|
726
|
+
buttonProps: {
|
|
727
|
+
type: 'primary'
|
|
728
|
+
}
|
|
729
|
+
}, {
|
|
730
|
+
label: '确认3',
|
|
731
|
+
value: '确认3',
|
|
732
|
+
action: 'confirm',
|
|
733
|
+
url: '/ass/ada/qqqq'
|
|
734
|
+
}, {
|
|
735
|
+
label: '确认4',
|
|
736
|
+
value: '确认4',
|
|
737
|
+
action: 'confirm',
|
|
738
|
+
url: '/ass/ada/qqqq'
|
|
739
|
+
}]
|
|
740
|
+
}],
|
|
741
|
+
/** 表格操作列按钮 */
|
|
742
|
+
// tableActionButtonUrl: '/actionConfig',
|
|
743
|
+
// tableActionButtonParams?: Record<string, unknown>;
|
|
744
|
+
tableActionButtonConfig: [{
|
|
745
|
+
type: 'button_items',
|
|
746
|
+
items: [{
|
|
747
|
+
label: 'items',
|
|
748
|
+
value: 'items',
|
|
749
|
+
api: '/ass/ada/qqqq',
|
|
750
|
+
buttonProps: {
|
|
751
|
+
type: 'primary'
|
|
752
|
+
}
|
|
753
|
+
}]
|
|
754
|
+
}, {
|
|
755
|
+
type: 'button_group',
|
|
756
|
+
label: '操作',
|
|
757
|
+
items: [{
|
|
758
|
+
label: 'label1',
|
|
759
|
+
value: 'value1',
|
|
760
|
+
action: 'confirm',
|
|
761
|
+
api: '/ass/ada/qqqq',
|
|
762
|
+
buttonProps: {
|
|
763
|
+
type: 'primary'
|
|
764
|
+
}
|
|
765
|
+
}, {
|
|
766
|
+
label: 'label2',
|
|
767
|
+
value: 'value2',
|
|
768
|
+
action: 'confirm',
|
|
769
|
+
api: '/ass/ada/qqqq'
|
|
770
|
+
}, {
|
|
771
|
+
label: 'label3',
|
|
772
|
+
value: 'value3',
|
|
773
|
+
action: 'confirm',
|
|
774
|
+
api: '/ass/ada/qqqq'
|
|
775
|
+
}]
|
|
776
|
+
}],
|
|
777
|
+
/** 表格过滤项 */
|
|
778
|
+
// formFieldUrl: '/filterFormProps',
|
|
779
|
+
// formFieldParams?: Record<string, unknown>;
|
|
780
|
+
formFieldConfig: [{
|
|
781
|
+
field: 'qwe5',
|
|
782
|
+
valueType: 'cascader',
|
|
783
|
+
api: '/qwe/qwe/cascader',
|
|
784
|
+
label: 'qweqweqw',
|
|
785
|
+
multiple: true,
|
|
786
|
+
tooltip: '提示'
|
|
787
|
+
// options: [
|
|
788
|
+
// {
|
|
789
|
+
// value: 'zhejiang',
|
|
790
|
+
// label: 'Zhejiang',
|
|
791
|
+
// children: [
|
|
792
|
+
// {
|
|
793
|
+
// value: 'hangzhou',
|
|
794
|
+
// label: 'Hangzhou',
|
|
795
|
+
// children: [
|
|
796
|
+
// {
|
|
797
|
+
// value: 'xihu',
|
|
798
|
+
// label: 'West Lake',
|
|
799
|
+
// },
|
|
800
|
+
// ],
|
|
801
|
+
// },
|
|
802
|
+
// ],
|
|
803
|
+
// },
|
|
804
|
+
// ],
|
|
805
|
+
}, {
|
|
806
|
+
valueType: 'cascader',
|
|
807
|
+
field: 'cascader',
|
|
808
|
+
label: 'cascader',
|
|
809
|
+
options: [{
|
|
810
|
+
label: 'Light',
|
|
811
|
+
value: 'light'
|
|
812
|
+
}, {
|
|
813
|
+
label: 'Light2',
|
|
814
|
+
value: 'light2'
|
|
815
|
+
}]
|
|
816
|
+
}],
|
|
817
|
+
/** 表单数据回显 */
|
|
818
|
+
// formDataUrl: '/formDataUrl',
|
|
819
|
+
// formDataParams?: Record<string, unknown>;
|
|
820
|
+
|
|
821
|
+
/** 表单数据保存 */
|
|
822
|
+
// formSaveUrl: '/formSaveUrl',
|
|
823
|
+
// formSaveParams?: Record<string, unknown>;
|
|
824
|
+
|
|
825
|
+
/** 表格头 */
|
|
826
|
+
// tableHeaderUrl: '/tableProps',
|
|
827
|
+
// tableHeaderParams?: Record<string, unknown>;
|
|
828
|
+
tableHeaderConfig: [{
|
|
829
|
+
title: '编号/状态',
|
|
830
|
+
dataIndex: 'status_name',
|
|
831
|
+
key: 'status_name'
|
|
832
|
+
}, {
|
|
833
|
+
title: 'SPU/组合SKU',
|
|
834
|
+
dataIndex: 'goods_spu_info',
|
|
835
|
+
key: 'goods_spu_info'
|
|
836
|
+
}, {
|
|
837
|
+
title: '图片',
|
|
838
|
+
dataIndex: 'goods_image',
|
|
839
|
+
key: 'goods_image',
|
|
840
|
+
align: 'center'
|
|
841
|
+
}, {
|
|
842
|
+
title: 'SKU/属性',
|
|
843
|
+
dataIndex: 'goods_sku_info',
|
|
844
|
+
key: 'goods_sku_info'
|
|
845
|
+
}, {
|
|
846
|
+
title: '计划员',
|
|
847
|
+
dataIndex: 'planuser',
|
|
848
|
+
key: 'planuser'
|
|
849
|
+
}, {
|
|
850
|
+
title: '供应商',
|
|
851
|
+
dataIndex: 'factory',
|
|
852
|
+
key: 'factory'
|
|
853
|
+
}, {
|
|
854
|
+
title: 'ASIN',
|
|
855
|
+
dataIndex: 'asin',
|
|
856
|
+
key: 'asin'
|
|
857
|
+
}, {
|
|
858
|
+
title: '销量',
|
|
859
|
+
dataIndex: 'goods_sales',
|
|
860
|
+
key: 'goods_sales'
|
|
861
|
+
}, {
|
|
862
|
+
title: 'DMS',
|
|
863
|
+
dataIndex: 'goods_dms',
|
|
864
|
+
key: 'goods_dms'
|
|
865
|
+
}, {
|
|
866
|
+
title: '毛利率',
|
|
867
|
+
dataIndex: 'gross_margin',
|
|
868
|
+
key: 'gross_margin'
|
|
869
|
+
}, {
|
|
870
|
+
title: '售后率',
|
|
871
|
+
dataIndex: 'goods_rma',
|
|
872
|
+
key: 'goods_rma'
|
|
873
|
+
}],
|
|
874
|
+
/** 表格数据 */
|
|
875
|
+
tableDataUrl: '/tableDataUrl'
|
|
876
|
+
});
|
|
877
|
+
case 6:
|
|
878
|
+
if (!url.startsWith('/form-modal-schemaConfig')) {
|
|
879
|
+
_context.next = 8;
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
882
|
+
return _context.abrupt("return", {
|
|
883
|
+
/** 批量操作按钮 */
|
|
884
|
+
// batchActionUrl: '/batchActionProps',
|
|
885
|
+
// batchActionParams?: Record<string, unknown>;
|
|
886
|
+
|
|
887
|
+
/** 表格操作列按钮 */
|
|
888
|
+
// tableActionButtonUrl: '/actionConfig',
|
|
889
|
+
// tableActionButtonParams?: Record<string, unknown>;
|
|
890
|
+
|
|
891
|
+
/** 表格过滤项 */
|
|
892
|
+
// formFieldUrl: '/filterFormProps',
|
|
893
|
+
// formFieldParams?: Record<string, unknown>;
|
|
894
|
+
formFieldConfig: [{
|
|
895
|
+
field: 'qwe5',
|
|
896
|
+
valueType: 'cascader',
|
|
897
|
+
api: '/qwe/qwe/cascader',
|
|
898
|
+
label: 'qweqweqw',
|
|
899
|
+
multiple: true,
|
|
900
|
+
tooltip: '提示'
|
|
901
|
+
// options: [
|
|
902
|
+
// {
|
|
903
|
+
// value: 'zhejiang',
|
|
904
|
+
// label: 'Zhejiang',
|
|
905
|
+
// children: [
|
|
906
|
+
// {
|
|
907
|
+
// value: 'hangzhou',
|
|
908
|
+
// label: 'Hangzhou',
|
|
909
|
+
// children: [
|
|
910
|
+
// {
|
|
911
|
+
// value: 'xihu',
|
|
912
|
+
// label: 'West Lake',
|
|
913
|
+
// },
|
|
914
|
+
// ],
|
|
915
|
+
// },
|
|
916
|
+
// ],
|
|
917
|
+
// },
|
|
918
|
+
// ],
|
|
919
|
+
}, {
|
|
920
|
+
valueType: 'cascader',
|
|
921
|
+
field: 'cascader',
|
|
922
|
+
label: 'cascader',
|
|
923
|
+
options: [{
|
|
924
|
+
label: 'Light',
|
|
925
|
+
value: 'light'
|
|
926
|
+
}, {
|
|
927
|
+
label: 'Light2',
|
|
928
|
+
value: 'light2'
|
|
929
|
+
}]
|
|
930
|
+
}],
|
|
931
|
+
/** 表单数据回显 */
|
|
932
|
+
formDataUrl: '/formDataUrl',
|
|
933
|
+
// formDataParams?: Record<string, unknown>;
|
|
934
|
+
|
|
935
|
+
/** 表单数据保存 */
|
|
936
|
+
formSaveUrl: '/formSaveUrl'
|
|
937
|
+
// formSaveParams?: Record<string, unknown>;
|
|
938
|
+
|
|
939
|
+
/** 表格头 */
|
|
940
|
+
// tableHeaderUrl: '/tableProps',
|
|
941
|
+
// tableHeaderParams?: Record<string, unknown>;
|
|
942
|
+
|
|
943
|
+
/** 表格数据 */
|
|
944
|
+
// tableDataUrl: '/tableDataUrl'
|
|
945
|
+
});
|
|
946
|
+
case 8:
|
|
947
|
+
if (!url.startsWith('/tableDataUrl')) {
|
|
948
|
+
_context.next = 10;
|
|
949
|
+
break;
|
|
950
|
+
}
|
|
951
|
+
return _context.abrupt("return", JSON.parse(JSON.stringify(tableData)));
|
|
952
|
+
case 10:
|
|
953
|
+
return _context.abrupt("return", [{
|
|
954
|
+
value: 'zhejiang1',
|
|
955
|
+
label: '标题-root',
|
|
956
|
+
children: [{
|
|
957
|
+
value: 'hangzhou1',
|
|
958
|
+
label: 'Hangzhou1',
|
|
959
|
+
children: [{
|
|
960
|
+
value: 'xihu1',
|
|
961
|
+
label: 'West Lake1'
|
|
962
|
+
}]
|
|
963
|
+
}, {
|
|
964
|
+
value: 'hangzhou1-2',
|
|
965
|
+
label: 'Hangzhou1-2',
|
|
966
|
+
children: [{
|
|
967
|
+
value: 'xihu1-2',
|
|
968
|
+
label: '标题-children'
|
|
969
|
+
}]
|
|
970
|
+
}]
|
|
971
|
+
}, {
|
|
972
|
+
value: 'zhejiang2',
|
|
973
|
+
label: 'Zhejiang2',
|
|
974
|
+
children: [{
|
|
975
|
+
value: 'hangzhou2',
|
|
976
|
+
label: 'Hangzhou2',
|
|
977
|
+
children: [{
|
|
978
|
+
value: 'xihu2',
|
|
979
|
+
label: 'West Lake2'
|
|
980
|
+
}]
|
|
981
|
+
}, {
|
|
982
|
+
value: 'hangzhou2-2',
|
|
983
|
+
label: 'Hangzhou2-2',
|
|
984
|
+
children: [{
|
|
985
|
+
value: 'xihu2-2',
|
|
986
|
+
label: 'West Lake2-2'
|
|
987
|
+
}]
|
|
988
|
+
}]
|
|
989
|
+
}]);
|
|
990
|
+
case 11:
|
|
991
|
+
case "end":
|
|
992
|
+
return _context.stop();
|
|
993
|
+
}
|
|
994
|
+
}, _callee);
|
|
995
|
+
}));
|
|
996
|
+
function apiClient(_x, _x2) {
|
|
997
|
+
return _apiClient.apply(this, arguments);
|
|
998
|
+
}
|
|
999
|
+
return apiClient;
|
|
1000
|
+
}()
|
|
1001
|
+
},
|
|
1002
|
+
children: /*#__PURE__*/_jsx(RequestFieldsContainer, {
|
|
1003
|
+
requestConfigUrl: "/schemaConfig",
|
|
1004
|
+
children: /*#__PURE__*/_jsx(RexProTable, {
|
|
1005
|
+
autoInitRequest: true,
|
|
1006
|
+
toolbar: {
|
|
1007
|
+
batchActionProps: {
|
|
1008
|
+
items: [{
|
|
1009
|
+
type: 'button_items',
|
|
1010
|
+
sort: 0,
|
|
1011
|
+
items: [{
|
|
1012
|
+
label: '自定义按钮',
|
|
1013
|
+
value: 'xxxx',
|
|
1014
|
+
action: 'confirm',
|
|
1015
|
+
confirmTitle: 'xxx\nqweqwe',
|
|
1016
|
+
confirmContent: 'xxx\nqweqwe',
|
|
1017
|
+
buttonProps: {
|
|
1018
|
+
type: 'primary'
|
|
1019
|
+
}
|
|
1020
|
+
}]
|
|
1021
|
+
}, {
|
|
1022
|
+
type: 'button_group',
|
|
1023
|
+
label: '自定义按钮组',
|
|
1024
|
+
sort: 999,
|
|
1025
|
+
buttonProps: {
|
|
1026
|
+
type: 'link'
|
|
1027
|
+
},
|
|
1028
|
+
items: [{
|
|
1029
|
+
label: '项',
|
|
1030
|
+
value: 'xxxx'
|
|
1031
|
+
}]
|
|
1032
|
+
}],
|
|
1033
|
+
actionSuccessCallback: function actionSuccessCallback(key, item, proTableRef) {
|
|
1034
|
+
console.log('成功回调');
|
|
1035
|
+
proTableRef.getList();
|
|
1036
|
+
},
|
|
1037
|
+
onClick: function onClick(key, item, proTableRef) {
|
|
1038
|
+
console.log('其他自定义操作', key);
|
|
1039
|
+
},
|
|
1040
|
+
checkSelected: function checkSelected() {
|
|
1041
|
+
return {
|
|
1042
|
+
status: !!state.selectKeys.length,
|
|
1043
|
+
selected: state.selectKeys
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
actionConfig: {
|
|
1049
|
+
actionButtonProps: {
|
|
1050
|
+
actionSuccessCallback: function actionSuccessCallback() {
|
|
1051
|
+
console.log('成功回调');
|
|
1052
|
+
},
|
|
1053
|
+
onClick: function onClick() {
|
|
1054
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1055
|
+
args[_key] = arguments[_key];
|
|
1056
|
+
}
|
|
1057
|
+
console.log('其他自定义操作', args);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
request: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1062
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1063
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1064
|
+
case 0:
|
|
1065
|
+
console.log('调用次');
|
|
1066
|
+
state.selectKeys = [];
|
|
1067
|
+
update({});
|
|
1068
|
+
return _context2.abrupt("return", JSON.parse(JSON.stringify(tableData)));
|
|
1069
|
+
case 4:
|
|
1070
|
+
case "end":
|
|
1071
|
+
return _context2.stop();
|
|
1072
|
+
}
|
|
1073
|
+
}, _callee2);
|
|
1074
|
+
}))
|
|
1075
|
+
// filterFormProps={{
|
|
1076
|
+
// hidden: true
|
|
1077
|
+
// }}
|
|
1078
|
+
,
|
|
1079
|
+
tableProps: {
|
|
1080
|
+
rowSelection: {
|
|
1081
|
+
selectedRowKeys: state.selectKeys,
|
|
1082
|
+
onChange: function onChange(keys) {
|
|
1083
|
+
state.selectKeys = keys;
|
|
1084
|
+
update({});
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
// virtual: true,
|
|
1088
|
+
scroll: function scroll(h) {
|
|
1089
|
+
return {
|
|
1090
|
+
x: 1000,
|
|
1091
|
+
y: h
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
// listTableProps={{
|
|
1096
|
+
// rowSelection: {},
|
|
1097
|
+
// // virtual: true,
|
|
1098
|
+
// scroll: (h) => ({x: 1000, y: h}),
|
|
1099
|
+
// }}
|
|
1100
|
+
})
|
|
1101
|
+
})
|
|
1102
|
+
})
|
|
1103
|
+
);
|
|
1104
|
+
});
|