kmkf-work-order-service-component 0.3.5 → 0.3.6-alpha.2
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/esm/SingleShopWorkOrder/components/Card/index.d.ts +4 -0
- package/dist/esm/SingleShopWorkOrder/components/Card/index.js +157 -0
- package/dist/esm/SingleShopWorkOrder/components/Card/index.less +123 -0
- package/dist/esm/SingleShopWorkOrder/components/CustomizeFormModal/index.d.ts +17 -0
- package/dist/esm/SingleShopWorkOrder/components/CustomizeFormModal/index.js +676 -0
- package/dist/esm/SingleShopWorkOrder/components/CustomizeFormModal/index.less +134 -0
- package/dist/esm/SingleShopWorkOrder/components/DeleteCustomizeOrderModal/index.d.ts +5 -0
- package/dist/esm/SingleShopWorkOrder/components/DeleteCustomizeOrderModal/index.js +90 -0
- package/dist/esm/SingleShopWorkOrder/components/OrderList/index.d.ts +6 -0
- package/dist/esm/SingleShopWorkOrder/components/OrderList/index.js +16 -0
- package/dist/esm/SingleShopWorkOrder/index.d.ts +4 -0
- package/dist/esm/SingleShopWorkOrder/index.js +169 -0
- package/dist/esm/SingleShopWorkOrder/index.less +18 -0
- package/dist/esm/WorkOrder/components/Widget/basic/Rate/index.d.ts +13 -0
- package/dist/esm/WorkOrder/components/Widget/basic/Rate/index.js +144 -0
- package/dist/esm/WorkOrder/components/Widget/index.d.ts +2 -1
- package/dist/esm/WorkOrder/components/Widget/index.js +4 -0
- package/dist/esm/common/utils/tools.js +14 -6
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/model/servers/api.d.ts +10 -0
- package/dist/esm/model/servers/api.js +44 -0
- package/dist/esm/model/servers/request.d.ts +2 -2
- package/dist/esm/model/servers/request.js +1 -0
- package/dist/esm/model/singleShopWorkOrder/index.d.ts +12 -0
- package/dist/esm/model/singleShopWorkOrder/index.js +139 -0
- package/dist/esm/model/singleShopWorkOrder/selector.d.ts +58 -0
- package/dist/esm/model/singleShopWorkOrder/selector.js +22 -0
- package/dist/esm/model/singleShopWorkOrder/types.d.ts +11 -0
- package/dist/esm/model/singleShopWorkOrder/types.js +1 -0
- package/dist/esm/model/store.d.ts +3 -0
- package/dist/esm/model/store.js +3 -1
- package/dist/esm/model/types/singleWorkOrder.d.ts +10 -0
- package/dist/esm/model/types/singleWorkOrder.js +1 -0
- package/dist/esm/model/workOrder.js +1 -1
- package/package.json +3 -2
@@ -0,0 +1,134 @@
|
|
1
|
+
.customizeFormModalWrapper {
|
2
|
+
p,
|
3
|
+
lable {
|
4
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
5
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
6
|
+
'Noto Color Emoji';
|
7
|
+
}
|
8
|
+
.ant-modal-body {
|
9
|
+
overflow-x: hidden;
|
10
|
+
overflow-y: auto;
|
11
|
+
}
|
12
|
+
.ant-select.ant-select-single.ant-select-show-arrow.ant-select-show-search {
|
13
|
+
margin-bottom: 8px;
|
14
|
+
}
|
15
|
+
.ant-picker-suffix,
|
16
|
+
.ant-select-arrow svg {
|
17
|
+
color: #4e5969;
|
18
|
+
}
|
19
|
+
.status-payment--basic {
|
20
|
+
.ant-row.ant-form-item {
|
21
|
+
margin-bottom: 5px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
.ant-modal-footer {
|
25
|
+
margin-top: 20px;
|
26
|
+
}
|
27
|
+
.ant-input[disabled],
|
28
|
+
.ant-input-number-disabled {
|
29
|
+
border: none;
|
30
|
+
}
|
31
|
+
.ant-select-disabled .ant-select-arrow svg {
|
32
|
+
color: #c9cdd4;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.customizeFormModalClassName {
|
37
|
+
:global(.goods-uploaded-state) {
|
38
|
+
margin: 6px 0 5px 0;
|
39
|
+
padding-left: 7px;
|
40
|
+
font-size: 12px;
|
41
|
+
}
|
42
|
+
|
43
|
+
:global(.ant-picker) {
|
44
|
+
width: 100%;
|
45
|
+
|
46
|
+
box-shadow: none;
|
47
|
+
// background: #f2f3f5;
|
48
|
+
// border: none;
|
49
|
+
|
50
|
+
input {
|
51
|
+
&::placeholder {
|
52
|
+
color: #86909c;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
&:hover {
|
57
|
+
border-color: #4583ff;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
:global(.ant-radio-inner) {
|
62
|
+
background-color: #fff;
|
63
|
+
}
|
64
|
+
|
65
|
+
:global(.ant-select) {
|
66
|
+
width: 100% !important;
|
67
|
+
|
68
|
+
.ant-select-selector {
|
69
|
+
background: #f2f3f5 !important;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
:global(.ant-form-item) {
|
74
|
+
margin-bottom: 8px;
|
75
|
+
}
|
76
|
+
|
77
|
+
:global(.ant-form-item .ant-form-item-label) {
|
78
|
+
padding: 0px;
|
79
|
+
}
|
80
|
+
|
81
|
+
:global(.ant-form-item-label) {
|
82
|
+
position: relative;
|
83
|
+
max-width: 100px;
|
84
|
+
overflow: initial;
|
85
|
+
color: rgba(0, 0, 0, 0.55);
|
86
|
+
// font-weight: bold;
|
87
|
+
font-size: 14px;
|
88
|
+
white-space: normal;
|
89
|
+
text-align: left;
|
90
|
+
}
|
91
|
+
|
92
|
+
:global(.form-item-label--index .ant-form-item-label label) {
|
93
|
+
// padding-left: 23px;
|
94
|
+
text-align: left;
|
95
|
+
// font-family: 'PingFangSC-Semibold';
|
96
|
+
|
97
|
+
// &[title='处理客服'] {
|
98
|
+
// padding-left: 0;
|
99
|
+
// font-weight: lighter;
|
100
|
+
// font-family: 'PingFangSC-Regular';
|
101
|
+
// }
|
102
|
+
}
|
103
|
+
|
104
|
+
:global(.label-title--index) {
|
105
|
+
position: absolute;
|
106
|
+
color: #86909c;
|
107
|
+
font-family: 'PingFangSC-Semibold';
|
108
|
+
}
|
109
|
+
|
110
|
+
:global(.goods-title) {
|
111
|
+
color: #4e5969;
|
112
|
+
font-size: 12px;
|
113
|
+
}
|
114
|
+
|
115
|
+
:global(div.ant-form-item.invoice-title--basic label) {
|
116
|
+
padding-left: 0;
|
117
|
+
font-weight: normal;
|
118
|
+
font-family: 'PingFangSC-Regular';
|
119
|
+
}
|
120
|
+
|
121
|
+
:global(.payment-widgets--basic div.ant-form-item-label label) {
|
122
|
+
padding-left: 0;
|
123
|
+
font-weight: lighter;
|
124
|
+
font-family: 'PingFangSC-Regular';
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
.tipBox {
|
129
|
+
position: sticky;
|
130
|
+
top: -24px;
|
131
|
+
z-index: 1;
|
132
|
+
color: #e99d42;
|
133
|
+
background-color: #fff;
|
134
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
+
|
3
|
+
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
4
|
+
|
5
|
+
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); } }
|
6
|
+
|
7
|
+
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); }); }; }
|
8
|
+
|
9
|
+
/*
|
10
|
+
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
11
|
+
* @Date: 2022-11-03 16:01:49
|
12
|
+
* @LastEditors: litian
|
13
|
+
* @LastEditTime: 2022-11-24 14:13:11
|
14
|
+
* @FilePath: /kmkf-work-order-service-component/src/WorkOrder/components/DeleteCustomizeOrderModal/index.tsx
|
15
|
+
* @Description:
|
16
|
+
*
|
17
|
+
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
18
|
+
*/
|
19
|
+
import React, { useCallback } from 'react';
|
20
|
+
import { Modal } from 'antd';
|
21
|
+
import { useSelector, useDispatch } from 'react-redux';
|
22
|
+
import { debounce } from 'lodash';
|
23
|
+
import { fetchDeleteWorkOrder, setCurrentCustomizeRecord } from "../../../model/singleShopWorkOrder";
|
24
|
+
import { selectDeleteCustomizeWorkOrderModalVisible, selectorCurrentCustomizeRecord } from "../../../model/singleShopWorkOrder/selector";
|
25
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
26
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
27
|
+
|
28
|
+
var DeleteCustomizeOrderModal = function DeleteCustomizeOrderModal(_ref) {
|
29
|
+
var submit = _ref.submit;
|
30
|
+
var dispatch = useDispatch();
|
31
|
+
var record = useSelector(selectorCurrentCustomizeRecord);
|
32
|
+
var deleteCustomizeWorkOrderModalVisible = useSelector(selectDeleteCustomizeWorkOrderModalVisible);
|
33
|
+
|
34
|
+
var handleCancel = function handleCancel() {
|
35
|
+
dispatch({
|
36
|
+
type: 'singleShopWorkOrder/setDeleteCustomizeWorkOrderModalVisible',
|
37
|
+
payload: false
|
38
|
+
});
|
39
|
+
dispatch(setCurrentCustomizeRecord({}));
|
40
|
+
};
|
41
|
+
|
42
|
+
var onDelete = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
43
|
+
var _record$templateDetai;
|
44
|
+
|
45
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
46
|
+
while (1) {
|
47
|
+
switch (_context.prev = _context.next) {
|
48
|
+
case 0:
|
49
|
+
_context.prev = 0;
|
50
|
+
_context.next = 3;
|
51
|
+
return dispatch(fetchDeleteWorkOrder({
|
52
|
+
uniqueKey: record === null || record === void 0 ? void 0 : (_record$templateDetai = record.templateDetailDto) === null || _record$templateDetai === void 0 ? void 0 : _record$templateDetai.uniqueKey,
|
53
|
+
workOrderId: record === null || record === void 0 ? void 0 : record.id
|
54
|
+
})).unwrap();
|
55
|
+
|
56
|
+
case 3:
|
57
|
+
submit();
|
58
|
+
handleCancel();
|
59
|
+
_context.next = 10;
|
60
|
+
break;
|
61
|
+
|
62
|
+
case 7:
|
63
|
+
_context.prev = 7;
|
64
|
+
_context.t0 = _context["catch"](0);
|
65
|
+
console.log('e', _context.t0);
|
66
|
+
|
67
|
+
case 10:
|
68
|
+
case "end":
|
69
|
+
return _context.stop();
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}, _callee, null, [[0, 7]]);
|
73
|
+
})), [record]);
|
74
|
+
return /*#__PURE__*/_jsx(Modal, {
|
75
|
+
title: "\u5220\u9664\u5DE5\u5355",
|
76
|
+
open: deleteCustomizeWorkOrderModalVisible,
|
77
|
+
okText: "\u786E\u5B9A",
|
78
|
+
cancelText: "\u53D6\u6D88",
|
79
|
+
onOk: debounce(onDelete, 300),
|
80
|
+
onCancel: handleCancel,
|
81
|
+
children: /*#__PURE__*/_jsxs("div", {
|
82
|
+
children: [/*#__PURE__*/_jsx("span", {
|
83
|
+
className: "red",
|
84
|
+
children: "\u5220\u9664\u540E\u7684\u5DE5\u5355\u65E0\u6CD5\u6062\u590D"
|
85
|
+
}), "\uFF0C \u786E\u8BA4\u8981\u5220\u9664\u8BE5\u6761\u6570\u636E\u5417\uFF1F"]
|
86
|
+
})
|
87
|
+
});
|
88
|
+
};
|
89
|
+
|
90
|
+
export default DeleteCustomizeOrderModal;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import Card from "../Card";
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
+
|
5
|
+
var OrderList = function OrderList(_ref) {
|
6
|
+
var list = _ref.list;
|
7
|
+
return /*#__PURE__*/_jsx("div", {
|
8
|
+
children: list.map(function (item) {
|
9
|
+
return /*#__PURE__*/_jsx(Card, {
|
10
|
+
item: item
|
11
|
+
}, item.id);
|
12
|
+
})
|
13
|
+
});
|
14
|
+
};
|
15
|
+
|
16
|
+
export default OrderList;
|
@@ -0,0 +1,169 @@
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
2
|
+
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
|
+
|
5
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
+
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
8
|
+
|
9
|
+
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."); }
|
10
|
+
|
11
|
+
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); }
|
12
|
+
|
13
|
+
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; }
|
14
|
+
|
15
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
16
|
+
|
17
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
18
|
+
|
19
|
+
import React, { useEffect } from 'react';
|
20
|
+
import { Form, DatePicker, Select, Pagination, Spin, Empty } from 'antd';
|
21
|
+
import moment from 'moment';
|
22
|
+
import { Provider, useDispatch, useSelector } from 'react-redux';
|
23
|
+
import { useAntdTable } from 'ahooks';
|
24
|
+
import store from "../model/store";
|
25
|
+
import OrderList from "./components/OrderList";
|
26
|
+
import CustomizeFormModal from "./components/CustomizeFormModal";
|
27
|
+
import DeleteCustomizeOrderModal from "./components/DeleteCustomizeOrderModal";
|
28
|
+
import { fetchTemplateList, setCurrentCustomizeRecord, setFormModalVisible, setTemplateId } from "../model/singleShopWorkOrder";
|
29
|
+
import { selectorSingleTemplateList, selectorTemplateId } from "../model/singleShopWorkOrder/selector";
|
30
|
+
import { queryWorkOrderList } from "../model/servers/api";
|
31
|
+
import "./index.less";
|
32
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
33
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
34
|
+
var RangePicker = DatePicker.RangePicker;
|
35
|
+
|
36
|
+
var getTableData = function getTableData(_ref, formData) {
|
37
|
+
var _formData$startEndDat;
|
38
|
+
|
39
|
+
var current = _ref.current,
|
40
|
+
pageSize = _ref.pageSize;
|
41
|
+
var startEndDate = formData === null || formData === void 0 ? void 0 : (_formData$startEndDat = formData.startEndDate) === null || _formData$startEndDat === void 0 ? void 0 : _formData$startEndDat.map(function (i) {
|
42
|
+
return moment(i).format('YYYY-MM-DD');
|
43
|
+
});
|
44
|
+
return queryWorkOrderList({
|
45
|
+
pageNo: current,
|
46
|
+
pageSize: pageSize,
|
47
|
+
startEndDate: startEndDate,
|
48
|
+
uniqueKey: formData.uniqueKey
|
49
|
+
}).then(function (res) {
|
50
|
+
var _res$data, _res$data2;
|
51
|
+
|
52
|
+
return {
|
53
|
+
total: res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.total,
|
54
|
+
list: res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list
|
55
|
+
};
|
56
|
+
});
|
57
|
+
};
|
58
|
+
|
59
|
+
var SingleShopWorkOrder = function SingleShopWorkOrder() {
|
60
|
+
var _Form$useForm = Form.useForm(),
|
61
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
62
|
+
form = _Form$useForm2[0];
|
63
|
+
|
64
|
+
var dispatch = useDispatch();
|
65
|
+
var templateList = useSelector(selectorSingleTemplateList);
|
66
|
+
var templateId = useSelector(selectorTemplateId);
|
67
|
+
|
68
|
+
var _useAntdTable = useAntdTable(getTableData, {
|
69
|
+
defaultPageSize: 5,
|
70
|
+
form: form
|
71
|
+
}),
|
72
|
+
tableProps = _useAntdTable.tableProps,
|
73
|
+
search = _useAntdTable.search,
|
74
|
+
loading = _useAntdTable.loading;
|
75
|
+
|
76
|
+
var submit = search.submit;
|
77
|
+
var dataSource = tableProps.dataSource,
|
78
|
+
pagination = tableProps.pagination;
|
79
|
+
useEffect(function () {
|
80
|
+
dispatch(fetchTemplateList);
|
81
|
+
}, []);
|
82
|
+
useEffect(function () {
|
83
|
+
if ((templateList === null || templateList === void 0 ? void 0 : templateList.length) > 0) {
|
84
|
+
form.setFieldValue('uniqueKey', templateList[0].value);
|
85
|
+
submit();
|
86
|
+
}
|
87
|
+
}, [templateList]); //打开录入工单表单
|
88
|
+
|
89
|
+
var openCustomForm = function openCustomForm(id) {
|
90
|
+
dispatch(setCurrentCustomizeRecord({}));
|
91
|
+
dispatch(setFormModalVisible(true));
|
92
|
+
dispatch(setTemplateId(id));
|
93
|
+
};
|
94
|
+
|
95
|
+
return /*#__PURE__*/_jsxs(Spin, {
|
96
|
+
spinning: loading,
|
97
|
+
children: [(templateList === null || templateList === void 0 ? void 0 : templateList.length) > 0 ? /*#__PURE__*/_jsx(Empty, {}) : /*#__PURE__*/_jsx("div", {
|
98
|
+
className: "single-shop-template-list",
|
99
|
+
children: templateList === null || templateList === void 0 ? void 0 : templateList.map(function (t) {
|
100
|
+
return /*#__PURE__*/_jsx("div", {
|
101
|
+
className: "template-button",
|
102
|
+
onClick: function onClick() {
|
103
|
+
return openCustomForm(t.value);
|
104
|
+
},
|
105
|
+
children: t.label
|
106
|
+
});
|
107
|
+
})
|
108
|
+
}), /*#__PURE__*/_jsxs("main", {
|
109
|
+
className: "list-container",
|
110
|
+
children: [/*#__PURE__*/_jsxs(Form, {
|
111
|
+
form: form,
|
112
|
+
initialValues: {
|
113
|
+
startEndDate: [moment().add(-30, 'd'), moment()]
|
114
|
+
},
|
115
|
+
className: "form-container",
|
116
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
117
|
+
label: "\u63D0\u4EA4\u65F6\u95F4",
|
118
|
+
name: "startEndDate",
|
119
|
+
children: /*#__PURE__*/_jsx(RangePicker, {
|
120
|
+
onChange: function onChange() {
|
121
|
+
return submit();
|
122
|
+
}
|
123
|
+
})
|
124
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
125
|
+
label: "\u6A21\u677F\u540D\u79F0",
|
126
|
+
name: "uniqueKey",
|
127
|
+
rules: [{
|
128
|
+
required: true,
|
129
|
+
message: '模板必填'
|
130
|
+
}],
|
131
|
+
children: /*#__PURE__*/_jsx(Select, {
|
132
|
+
options: templateList,
|
133
|
+
showSearch: true,
|
134
|
+
placeholder: "\u8BF7\u9009\u62E9\u6A21\u677F",
|
135
|
+
allowClear: false,
|
136
|
+
onChange: function onChange() {
|
137
|
+
return submit();
|
138
|
+
}
|
139
|
+
})
|
140
|
+
})]
|
141
|
+
}), (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 ? /*#__PURE__*/_jsx(OrderList, {
|
142
|
+
list: dataSource
|
143
|
+
}) : /*#__PURE__*/_jsx(Empty, {}), (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 && /*#__PURE__*/_jsx(Pagination, _objectSpread({}, pagination)), /*#__PURE__*/_jsx(DeleteCustomizeOrderModal, {
|
144
|
+
submit: submit
|
145
|
+
}), /*#__PURE__*/_jsx(CustomizeFormModal, {
|
146
|
+
shopList: [],
|
147
|
+
width: '100%',
|
148
|
+
templateId: templateId,
|
149
|
+
shopId: '',
|
150
|
+
orderNo: '',
|
151
|
+
buyerId: '',
|
152
|
+
buyerNick: '',
|
153
|
+
platform: 'jd',
|
154
|
+
onSuccess: function onSuccess() {
|
155
|
+
return submit();
|
156
|
+
}
|
157
|
+
})]
|
158
|
+
})]
|
159
|
+
});
|
160
|
+
};
|
161
|
+
|
162
|
+
var ProviderWrap = function ProviderWrap() {
|
163
|
+
return /*#__PURE__*/_jsx(Provider, {
|
164
|
+
store: store,
|
165
|
+
children: /*#__PURE__*/_jsx(SingleShopWorkOrder, {})
|
166
|
+
});
|
167
|
+
};
|
168
|
+
|
169
|
+
export default ProviderWrap;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.single-shop-template-list {
|
2
|
+
display: flex;
|
3
|
+
flex-wrap: wrap;
|
4
|
+
height: 120px;
|
5
|
+
overflow-y: auto;
|
6
|
+
background: #fff;
|
7
|
+
.template-button {
|
8
|
+
margin: 4px;
|
9
|
+
padding: 4px 8px;
|
10
|
+
border: 1px solid #d9d9d9;
|
11
|
+
border-radius: 4px;
|
12
|
+
cursor: pointer;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
.list-container {
|
16
|
+
margin-top: 16px;
|
17
|
+
padding: 8px 12px;
|
18
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import BasicComponent from '../../BasicComponent';
|
3
|
+
declare class BasicRate extends BasicComponent {
|
4
|
+
constructor(options: any);
|
5
|
+
render: (value: any) => JSX.Element;
|
6
|
+
customRules: () => {
|
7
|
+
required: boolean;
|
8
|
+
validator: (_: any, value: any) => Promise<void>;
|
9
|
+
}[];
|
10
|
+
renderExport: (value: any, record: any) => any;
|
11
|
+
editRender: (value: any) => JSX.Element;
|
12
|
+
}
|
13
|
+
export default BasicRate;
|
@@ -0,0 +1,144 @@
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
+
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
4
|
+
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
6
|
+
|
7
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
8
|
+
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
10
|
+
|
11
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
12
|
+
|
13
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
14
|
+
|
15
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
16
|
+
|
17
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
18
|
+
|
19
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
20
|
+
|
21
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
22
|
+
|
23
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
24
|
+
|
25
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
26
|
+
|
27
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
28
|
+
|
29
|
+
import React from 'react';
|
30
|
+
import BasicComponent from "../../BasicComponent";
|
31
|
+
import { ApaasRate } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
32
|
+
import { getFormItem } from "../../common/formItemWrap";
|
33
|
+
import { Rate } from 'antd'; //状态文字映射
|
34
|
+
|
35
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
36
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
37
|
+
var RATE_MAP = {
|
38
|
+
0: '',
|
39
|
+
0.5: '非常差',
|
40
|
+
1: '非常差',
|
41
|
+
1.5: '差',
|
42
|
+
2: '差',
|
43
|
+
2.5: '一般',
|
44
|
+
3: '一般',
|
45
|
+
3.5: '好',
|
46
|
+
4: '好',
|
47
|
+
4.5: '非常好',
|
48
|
+
5: '非常好'
|
49
|
+
};
|
50
|
+
|
51
|
+
var BasicRate = /*#__PURE__*/function (_BasicComponent) {
|
52
|
+
_inherits(BasicRate, _BasicComponent);
|
53
|
+
|
54
|
+
var _super = _createSuper(BasicRate);
|
55
|
+
|
56
|
+
function BasicRate(options) {
|
57
|
+
var _this;
|
58
|
+
|
59
|
+
_classCallCheck(this, BasicRate);
|
60
|
+
|
61
|
+
_this = _super.call(this, options);
|
62
|
+
|
63
|
+
_defineProperty(_assertThisInitialized(_this), "render", function (value) {
|
64
|
+
return /*#__PURE__*/_jsx("div", {
|
65
|
+
children: value.map(function (item) {
|
66
|
+
return /*#__PURE__*/_jsxs("div", {
|
67
|
+
children: [/*#__PURE__*/_jsx("span", {
|
68
|
+
style: {
|
69
|
+
marginRight: '8px'
|
70
|
+
},
|
71
|
+
children: item.name
|
72
|
+
}), /*#__PURE__*/_jsx(Rate, {
|
73
|
+
value: item.value,
|
74
|
+
style: {
|
75
|
+
color: 'red',
|
76
|
+
fontSize: '12px'
|
77
|
+
},
|
78
|
+
disabled: true
|
79
|
+
}), /*#__PURE__*/_jsx("span", {
|
80
|
+
style: {
|
81
|
+
color: 'red',
|
82
|
+
fontSize: '12px'
|
83
|
+
},
|
84
|
+
children: RATE_MAP[item.value]
|
85
|
+
})]
|
86
|
+
}, item.id);
|
87
|
+
})
|
88
|
+
});
|
89
|
+
});
|
90
|
+
|
91
|
+
_defineProperty(_assertThisInitialized(_this), "customRules", function () {
|
92
|
+
return [{
|
93
|
+
required: true,
|
94
|
+
validator: function validator(_, value) {
|
95
|
+
if (value && !value.length) {
|
96
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
97
|
+
}
|
98
|
+
|
99
|
+
return Promise.resolve();
|
100
|
+
}
|
101
|
+
}];
|
102
|
+
});
|
103
|
+
|
104
|
+
_defineProperty(_assertThisInitialized(_this), "renderExport", function (value, record) {
|
105
|
+
var textArr = value.reduce(function (prv, next) {
|
106
|
+
if (next.value) {
|
107
|
+
prv.push("".concat(next.name, ":").concat(next.value, "\u661F"));
|
108
|
+
}
|
109
|
+
|
110
|
+
return prv;
|
111
|
+
}, []);
|
112
|
+
return textArr.join(';');
|
113
|
+
});
|
114
|
+
|
115
|
+
_defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
|
116
|
+
return getFormItem(_objectSpread({
|
117
|
+
title: _this.name,
|
118
|
+
name: _this.id,
|
119
|
+
rules: _this.componentConfig.required ? _this.customRules() : [],
|
120
|
+
required: false,
|
121
|
+
component: /*#__PURE__*/_jsx(ApaasRate, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
|
122
|
+
allowClear: false,
|
123
|
+
style: {
|
124
|
+
color: '#FD5105'
|
125
|
+
},
|
126
|
+
textStyle: {
|
127
|
+
color: '#FD5105'
|
128
|
+
}
|
129
|
+
}))
|
130
|
+
}, value));
|
131
|
+
});
|
132
|
+
|
133
|
+
_this.canFilter = false;
|
134
|
+
_this.canGroup = false;
|
135
|
+
_this.canHidden = true;
|
136
|
+
_this.editable = true;
|
137
|
+
_this.dataType = 'array';
|
138
|
+
return _this;
|
139
|
+
}
|
140
|
+
|
141
|
+
return _createClass(BasicRate);
|
142
|
+
}(BasicComponent);
|
143
|
+
|
144
|
+
export default BasicRate;
|
@@ -9,6 +9,7 @@ import BasicMultSelect from '../Widget/basic/MultSelect';
|
|
9
9
|
import BasicCascader from '../Widget/basic/Cascader';
|
10
10
|
import BasicAddress from '../Widget/basic/Address';
|
11
11
|
import BasicGrade from '../Widget/basic/Grade';
|
12
|
+
import BasicRate from '../Widget/basic/Rate';
|
12
13
|
import EBuyerNick from '../Widget/electricity/EBuyerNick';
|
13
14
|
import EReceiverAddress from '../Widget/electricity/EReceiverAddress';
|
14
15
|
import ELogistics from '../Widget/electricity/ELogistics';
|
@@ -22,4 +23,4 @@ import Status from '../Widget/third/Status';
|
|
22
23
|
import Ordinary from '../Widget/third/Ordinary';
|
23
24
|
import ItemSelectThird from '../Widget/third/ItemSelect';
|
24
25
|
import Payment from '../Widget/third/Payment';
|
25
|
-
export declare const factory: (type: string, options: any) => BasicInput | BasicRadio | BasicTextArea | BasicCheckBox | BasicDateTime | BasicSelect | BasicPicture | BasicMultSelect | BasicCascader | BasicAddress | BasicGrade | EBuyerNick | EReceiverAddress | ELogistics | EReturnLogistics | ERemark | EItemSelect | EItemId | EItemEncode | EAlipay | Status | Ordinary | ItemSelectThird | Payment;
|
26
|
+
export declare const factory: (type: string, options: any) => BasicInput | BasicRadio | BasicTextArea | BasicCheckBox | BasicDateTime | BasicSelect | BasicPicture | BasicMultSelect | BasicCascader | BasicAddress | BasicGrade | BasicRate | EBuyerNick | EReceiverAddress | ELogistics | EReturnLogistics | ERemark | EItemSelect | EItemId | EItemEncode | EAlipay | Status | Ordinary | ItemSelectThird | Payment;
|
@@ -9,6 +9,7 @@ import BasicMultSelect from "../Widget/basic/MultSelect";
|
|
9
9
|
import BasicCascader from "../Widget/basic/Cascader";
|
10
10
|
import BasicAddress from "../Widget/basic/Address";
|
11
11
|
import BasicGrade from "../Widget/basic/Grade";
|
12
|
+
import BasicRate from "../Widget/basic/Rate";
|
12
13
|
import EShopName from "../Widget/electricity/ShopName";
|
13
14
|
import ETradeId from "../Widget/electricity/ETradeId";
|
14
15
|
import EBuyerNick from "../Widget/electricity/EBuyerNick";
|
@@ -64,6 +65,9 @@ export var factory = function factory(type, options) {
|
|
64
65
|
case 'BASIC_GRADE':
|
65
66
|
return new BasicGrade(options);
|
66
67
|
|
68
|
+
case 'RATE':
|
69
|
+
return new BasicRate(options);
|
70
|
+
|
67
71
|
case 'SHOP_NAME_INPUT':
|
68
72
|
return new EShopName(options);
|
69
73
|
|