kmkf-work-order-service-component 0.0.1-alpha.1 → 0.0.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/dist/esm/WorkOrder/common/cache/index.d.ts +4 -2
- package/dist/esm/WorkOrder/common/cache/index.js +31 -21
- package/dist/esm/WorkOrder/common/constant.js +2 -2
- package/dist/esm/WorkOrder/common/imgs/empty.png +0 -0
- package/dist/esm/WorkOrder/common/styles/base.less +2 -2
- package/dist/esm/WorkOrder/common/styles/theme.less +46 -1
- package/dist/esm/WorkOrder/common/utils/formatAddrData.js +6 -5
- package/dist/esm/WorkOrder/common/utils/tools.js +23 -20
- package/dist/esm/WorkOrder/components/CustomizeFormModal/index.js +55 -20
- package/dist/esm/WorkOrder/components/CustomizeFormModal/index.module.less +12 -3
- package/dist/esm/WorkOrder/components/CustomizeFormModal/wrap.d.ts +2 -2
- package/dist/esm/WorkOrder/components/CustomizeFormModal/wrap.js +3 -3
- package/dist/esm/WorkOrder/components/ListOrderItem/index.js +12 -3
- package/dist/esm/WorkOrder/components/ListOrderItem/index.module.less +5 -1
- package/dist/esm/WorkOrder/components/PayListOrderItem/ModifyModal.js +58 -16
- package/dist/esm/WorkOrder/components/PayListOrderItem/RecordModal.js +4 -4
- package/dist/esm/WorkOrder/components/PayListOrderItem/index.js +0 -2
- package/dist/esm/WorkOrder/components/PayListOrderItem/record.module.less +6 -0
- package/dist/esm/WorkOrder/components/RecordLog/index.js +3 -5
- package/dist/esm/WorkOrder/components/RecordLog/index.module.less +2 -0
- package/dist/esm/WorkOrder/components/Widget/basic/Address/index.js +2 -2
- package/dist/esm/WorkOrder/components/Widget/basic/Checkbox/index.js +2 -4
- package/dist/esm/WorkOrder/components/Widget/basic/Picture/index.js +1 -2
- package/dist/esm/WorkOrder/components/Widget/common/formItemWrap.js +3 -6
- package/dist/esm/WorkOrder/components/Widget/electricity/EBuyerName/index.js +3 -4
- package/dist/esm/WorkOrder/components/Widget/electricity/EBuyerNick/index.js +2 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EItemEncode/index.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EItemId/index.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EItemSelect/index.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EReceiverAddress/index.js +3 -4
- package/dist/esm/WorkOrder/components/Widget/electricity/ETradeId/index.d.ts +1 -0
- package/dist/esm/WorkOrder/components/Widget/electricity/ETradeId/index.js +21 -12
- package/dist/esm/WorkOrder/components/Widget/electricity/Express/index.js +1 -2
- package/dist/esm/WorkOrder/components/Widget/third/ItemSelect/index.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/third/Payment/PaymentAmount.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/third/Payment/index.js +3 -4
- package/dist/esm/WorkOrder/index.d.ts +1 -1
- package/dist/esm/WorkOrder/index.js +161 -127
- package/dist/esm/WorkOrder/index.module.less +40 -8
- package/dist/esm/WorkOrder/model/servers/api.d.ts +1 -0
- package/dist/esm/WorkOrder/model/servers/api.js +11 -3
- package/dist/esm/WorkOrder/model/servers/request.js +7 -13
- package/dist/esm/WorkOrder/model/workOrder.js +8 -6
- package/package.json +5 -3
- package/dist/esm/WorkOrder/common/imgs/close.png +0 -0
- package/dist/esm/WorkOrder/common/imgs/kmgd.png +0 -0
- package/dist/esm/WorkOrder/common/imgs/logo.png +0 -0
@@ -20,8 +20,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
20
|
* @Description:
|
21
21
|
* @Author: litian
|
22
22
|
* @Date: 2022-09-07 17:04:02
|
23
|
-
* @LastEditors:
|
24
|
-
* @LastEditTime: 2022-09-
|
23
|
+
* @LastEditors: litian
|
24
|
+
* @LastEditTime: 2022-09-23 10:06:53
|
25
25
|
*/
|
26
26
|
import React from 'react';
|
27
27
|
import { factory } from "../Widget";
|
@@ -43,8 +43,9 @@ function ListOrderItem(props) {
|
|
43
43
|
|
44
44
|
var _calcWorkOrderList = calcWorkOrderList([_objectSpread({}, item)], componentDtoList),
|
45
45
|
_calcWorkOrderList2 = _slicedToArray(_calcWorkOrderList, 1),
|
46
|
-
transData = _calcWorkOrderList2[0];
|
46
|
+
transData = _calcWorkOrderList2[0];
|
47
47
|
|
48
|
+
console.log('transData', transData); //列表头部
|
48
49
|
|
49
50
|
var ItemHeader = function ItemHeader() {
|
50
51
|
// 获取工单状态组件自定义文案
|
@@ -204,6 +205,14 @@ function ListOrderItem(props) {
|
|
204
205
|
},
|
205
206
|
children: status
|
206
207
|
})
|
208
|
+
}) : null, hasStatus ? /*#__PURE__*/_jsx("div", {
|
209
|
+
children: /*#__PURE__*/_jsx("span", {
|
210
|
+
className: styles.orderItemOperate,
|
211
|
+
onClick: function onClick() {
|
212
|
+
return transferOrder(item);
|
213
|
+
},
|
214
|
+
children: "\u8F6C\u4EA4"
|
215
|
+
})
|
207
216
|
}) : null, showEditorBtn ? null : /*#__PURE__*/_jsx("span", {
|
208
217
|
className: styles.orderItemOperate,
|
209
218
|
onClick: function onClick() {
|
@@ -67,10 +67,12 @@
|
|
67
67
|
align-items: center;
|
68
68
|
justify-content: center;
|
69
69
|
box-sizing: border-box;
|
70
|
+
width: 48px;
|
71
|
+
height: 24px;
|
70
72
|
margin: 0 4px;
|
71
|
-
padding: 3px 16px;
|
72
73
|
color: #1966ff;
|
73
74
|
font-weight: normal;
|
75
|
+
white-space: nowrap;
|
74
76
|
border: 1px solid #1966ff;
|
75
77
|
border-radius: 4px;
|
76
78
|
cursor: pointer;
|
@@ -88,6 +90,7 @@
|
|
88
90
|
margin: 6px 0;
|
89
91
|
|
90
92
|
.itemViewLeft {
|
93
|
+
min-width: 48px;
|
91
94
|
margin-right: 8px;
|
92
95
|
color: rgba(0, 0, 0, 0.4);
|
93
96
|
font-weight: normal;
|
@@ -97,5 +100,6 @@
|
|
97
100
|
.itemViewRight {
|
98
101
|
flex-grow: 1;
|
99
102
|
color: rgba(0, 0, 0, 0.85);
|
103
|
+
word-break: break-all;
|
100
104
|
}
|
101
105
|
}
|
@@ -1,6 +1,6 @@
|
|
1
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
2
|
|
3
|
-
var _excluded = ["shopId", "shopName"];
|
3
|
+
var _excluded = ["shopId", "shopName", "shopList"];
|
4
4
|
|
5
5
|
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; }
|
6
6
|
|
@@ -32,7 +32,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
32
32
|
|
33
33
|
import React, { useState, useImperativeHandle, forwardRef } from 'react';
|
34
34
|
import { Drawer, Form, Spin, Input, Space, Button, message } from 'antd';
|
35
|
-
import { decodeAlipayInfo, editRemitOrder } from "../../model/servers/api";
|
35
|
+
import { decodeAlipayInfo, editRemitOrder, addPaymentOrder } from "../../model/servers/api";
|
36
36
|
import { jsx as _jsx } from "react/jsx-runtime";
|
37
37
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
38
38
|
|
@@ -43,8 +43,13 @@ function ModifyModal(props, ref) {
|
|
43
43
|
openModal: function openModal(val, type) {
|
44
44
|
setRecord(val);
|
45
45
|
setType(type);
|
46
|
-
|
46
|
+
setShopList(val === null || val === void 0 ? void 0 : val.shopList);
|
47
|
+
form.setFieldsValue(val);
|
47
48
|
type === 'edit' && decodeAlipayInfoHandle(val);
|
49
|
+
type === 'add' && setShopInfo({
|
50
|
+
shopId: val === null || val === void 0 ? void 0 : val.shopId,
|
51
|
+
shopName: val === null || val === void 0 ? void 0 : val.shopName
|
52
|
+
});
|
48
53
|
setVisible(true);
|
49
54
|
}
|
50
55
|
};
|
@@ -70,6 +75,16 @@ function ModifyModal(props, ref) {
|
|
70
75
|
type = _useState8[0],
|
71
76
|
setType = _useState8[1];
|
72
77
|
|
78
|
+
var _useState9 = useState({}),
|
79
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
80
|
+
shopInfo = _useState10[0],
|
81
|
+
setShopInfo = _useState10[1];
|
82
|
+
|
83
|
+
var _useState11 = useState([]),
|
84
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
85
|
+
shopList = _useState12[0],
|
86
|
+
setShopList = _useState12[1];
|
87
|
+
|
73
88
|
var _Form$useForm = Form.useForm(),
|
74
89
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
75
90
|
form = _Form$useForm2[0];
|
@@ -77,25 +92,45 @@ function ModifyModal(props, ref) {
|
|
77
92
|
var handleOk = function handleOk() {
|
78
93
|
form.validateFields().then( /*#__PURE__*/function () {
|
79
94
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {
|
80
|
-
var
|
95
|
+
var _shopList$find;
|
96
|
+
|
97
|
+
var id, shopSourceStr, newValue, api, shopId, shopName, _shopList, other, _yield$api, success;
|
81
98
|
|
82
99
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
83
100
|
while (1) {
|
84
101
|
switch (_context.prev = _context.next) {
|
85
102
|
case 0:
|
86
|
-
|
87
|
-
|
103
|
+
//非淘宝账户支付宝姓名和支付宝账号必填
|
104
|
+
id = type === 'edit' ? record.shopId : shopInfo.shopId;
|
105
|
+
shopSourceStr = ((_shopList$find = shopList.find(function (item) {
|
106
|
+
return item.shopId == id;
|
107
|
+
})) === null || _shopList$find === void 0 ? void 0 : _shopList$find.shopSourceStr) || '';
|
108
|
+
|
109
|
+
if (!(shopSourceStr !== 'TAOBAO' && (!values.accountNick || !values.accountNo))) {
|
110
|
+
_context.next = 5;
|
88
111
|
break;
|
89
112
|
}
|
90
113
|
|
91
|
-
|
92
|
-
|
93
|
-
_context.next = 5;
|
94
|
-
return editRemitOrder(newValue);
|
114
|
+
message.error('请输入支付宝姓名和支付宝账号');
|
115
|
+
return _context.abrupt("return");
|
95
116
|
|
96
117
|
case 5:
|
97
|
-
|
98
|
-
|
118
|
+
newValue = {};
|
119
|
+
api = type === 'edit' ? editRemitOrder : addPaymentOrder;
|
120
|
+
|
121
|
+
if (type === 'edit') {
|
122
|
+
shopId = record.shopId, shopName = record.shopName, _shopList = record.shopList, other = _objectWithoutProperties(record, _excluded);
|
123
|
+
newValue = _objectSpread(_objectSpread({}, other), values);
|
124
|
+
} else {
|
125
|
+
newValue = _objectSpread(_objectSpread({}, values), shopInfo);
|
126
|
+
}
|
127
|
+
|
128
|
+
_context.next = 10;
|
129
|
+
return api(newValue);
|
130
|
+
|
131
|
+
case 10:
|
132
|
+
_yield$api = _context.sent;
|
133
|
+
success = _yield$api.success;
|
99
134
|
|
100
135
|
if (success) {
|
101
136
|
message.success('保存成功');
|
@@ -104,10 +139,7 @@ function ModifyModal(props, ref) {
|
|
104
139
|
setVisible(false);
|
105
140
|
}
|
106
141
|
|
107
|
-
|
108
|
-
break;
|
109
|
-
|
110
|
-
case 10:
|
142
|
+
case 13:
|
111
143
|
case "end":
|
112
144
|
return _context.stop();
|
113
145
|
}
|
@@ -173,11 +205,15 @@ function ModifyModal(props, ref) {
|
|
173
205
|
|
174
206
|
return /*#__PURE__*/_jsx(Drawer, {
|
175
207
|
visible: visible,
|
208
|
+
width: '90%',
|
176
209
|
onClose: function onClose() {
|
177
210
|
return setVisible(false);
|
178
211
|
},
|
179
212
|
title: "\u5F55\u5165\u5DE5\u5355",
|
180
213
|
footer: /*#__PURE__*/_jsxs(Space, {
|
214
|
+
style: {
|
215
|
+
float: 'right'
|
216
|
+
},
|
181
217
|
children: [/*#__PURE__*/_jsx(Button, {
|
182
218
|
onClick: function onClick() {
|
183
219
|
return setVisible(false);
|
@@ -193,6 +229,12 @@ function ModifyModal(props, ref) {
|
|
193
229
|
spinning: loading,
|
194
230
|
children: /*#__PURE__*/_jsxs(Form, {
|
195
231
|
form: form,
|
232
|
+
labelCol: {
|
233
|
+
span: 6
|
234
|
+
},
|
235
|
+
wrapperCol: {
|
236
|
+
span: 18
|
237
|
+
},
|
196
238
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
197
239
|
label: "\u6253\u6B3E\u91D1\u989D",
|
198
240
|
name: "workPayFee",
|
@@ -22,8 +22,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
22
|
* @Description:
|
23
23
|
* @Author: litian
|
24
24
|
* @Date: 2022-09-09 16:58:00
|
25
|
-
* @LastEditors:
|
26
|
-
* @LastEditTime: 2022-09-16
|
25
|
+
* @LastEditors: litian
|
26
|
+
* @LastEditTime: 2022-09-22 16:37:15
|
27
27
|
*/
|
28
28
|
import React, { useImperativeHandle, forwardRef, useState } from 'react';
|
29
29
|
import { Drawer } from 'antd';
|
@@ -89,10 +89,9 @@ function RecordModal(props, ref) {
|
|
89
89
|
case 2:
|
90
90
|
_yield$reportLogs = _context.sent;
|
91
91
|
result = _yield$reportLogs.data.result;
|
92
|
-
console.log(result);
|
93
92
|
setLogList(result);
|
94
93
|
|
95
|
-
case
|
94
|
+
case 5:
|
96
95
|
case "end":
|
97
96
|
return _context.stop();
|
98
97
|
}
|
@@ -122,6 +121,7 @@ function RecordModal(props, ref) {
|
|
122
121
|
className: styles.dot
|
123
122
|
}), map[item.operation]]
|
124
123
|
}), /*#__PURE__*/_jsx("div", {
|
124
|
+
className: styles.content,
|
125
125
|
children: item.content
|
126
126
|
}), /*#__PURE__*/_jsxs("div", {
|
127
127
|
children: [item.created ? moment(item.created).format('YYYY-MM-DD HH:mm:ss') : '', ' ', item.operationName]
|
@@ -66,7 +66,6 @@ var PAY_STATUS = [{
|
|
66
66
|
}];
|
67
67
|
|
68
68
|
function PayListOrderItem(props) {
|
69
|
-
console.log(props);
|
70
69
|
var _props$record = props.record,
|
71
70
|
record = _props$record === void 0 ? {} : _props$record,
|
72
71
|
onRefresh = props.onRefresh,
|
@@ -380,7 +379,6 @@ function PayListOrderItem(props) {
|
|
380
379
|
};
|
381
380
|
|
382
381
|
var getColor = function getColor(flag) {
|
383
|
-
console.log('flag------------', flag);
|
384
382
|
var currentObj = PAY_STATUS.find(function (item) {
|
385
383
|
return item.value === flag;
|
386
384
|
});
|
@@ -102,11 +102,10 @@ var RecordLog = function RecordLog(props, ref) {
|
|
102
102
|
case 2:
|
103
103
|
_yield$reportLogs = _context.sent;
|
104
104
|
result = _yield$reportLogs.data.result;
|
105
|
-
console.log(result);
|
106
105
|
setLogList(result);
|
107
106
|
setVisible(true);
|
108
107
|
|
109
|
-
case
|
108
|
+
case 6:
|
110
109
|
case "end":
|
111
110
|
return _context.stop();
|
112
111
|
}
|
@@ -121,7 +120,6 @@ var RecordLog = function RecordLog(props, ref) {
|
|
121
120
|
|
122
121
|
return /*#__PURE__*/_jsx(Drawer, {
|
123
122
|
visible: visible,
|
124
|
-
width: 370,
|
125
123
|
title: "\u64CD\u4F5C\u8BB0\u5F55",
|
126
124
|
onClose: function onClose() {
|
127
125
|
return setVisible(false);
|
@@ -203,8 +201,8 @@ var RecordLog = function RecordLog(props, ref) {
|
|
203
201
|
var _record$operation;
|
204
202
|
|
205
203
|
var newContent = get(calcContent, "0.".concat(child === null || child === void 0 ? void 0 : child.dataIndex));
|
206
|
-
var oldContent = get(oldCalcContent, "0.".concat(child === null || child === void 0 ? void 0 : child.dataIndex));
|
207
|
-
|
204
|
+
var oldContent = get(oldCalcContent, "0.".concat(child === null || child === void 0 ? void 0 : child.dataIndex)); // console.log(newContent, oldContent, calcContent);
|
205
|
+
|
208
206
|
return newContent || oldContent ? /*#__PURE__*/_jsxs("span", {
|
209
207
|
style: {
|
210
208
|
display: 'flex'
|
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
34
34
|
* @Description:
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-09-07 17:58:35
|
37
|
-
* @LastEditors:
|
38
|
-
* @LastEditTime: 2022-09-
|
37
|
+
* @LastEditors: litian
|
38
|
+
* @LastEditTime: 2022-09-21 10:35:08
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
34
34
|
* @Description:
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-09-07 17:58:35
|
37
|
-
* @LastEditors:
|
38
|
-
* @LastEditTime: 2022-09-
|
37
|
+
* @LastEditors: litian
|
38
|
+
* @LastEditTime: 2022-09-20 18:01:46
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
@@ -69,8 +69,6 @@ var BasicCheckBox = /*#__PURE__*/function (_BasicComponent) {
|
|
69
69
|
validator: function validator(_, value) {
|
70
70
|
var _value$value2;
|
71
71
|
|
72
|
-
console.log(value);
|
73
|
-
|
74
72
|
if (!(value !== null && value !== void 0 && (_value$value2 = value.value) !== null && _value$value2 !== void 0 && _value$value2.length)) {
|
75
73
|
return Promise.reject(new Error('请选择'));
|
76
74
|
}
|
@@ -31,7 +31,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
31
31
|
* @Author: litian
|
32
32
|
* @Date: 2022-09-07 17:58:35
|
33
33
|
* @LastEditors: litian
|
34
|
-
* @LastEditTime: 2022-09-
|
34
|
+
* @LastEditTime: 2022-09-19 16:30:01
|
35
35
|
*/
|
36
36
|
import React from 'react';
|
37
37
|
import BasicComponent from "../../BasicComponent";
|
@@ -53,7 +53,6 @@ var BasicPicture = /*#__PURE__*/function (_BasicComponent) {
|
|
53
53
|
_this = _super.call(this, options);
|
54
54
|
|
55
55
|
_defineProperty(_assertThisInitialized(_this), "render", function (value) {
|
56
|
-
// const host = localStorage.getItem('kmkf_kmgd_host') || 'https://kefu.kuaimai.com'
|
57
56
|
return value === null || value === void 0 ? void 0 : value.map(function (pic) {
|
58
57
|
return /*#__PURE__*/_jsx("div", {
|
59
58
|
style: {
|
@@ -46,21 +46,18 @@ export var getFormItem = function getFormItem(_ref) {
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
49
|
-
return /*#__PURE__*/
|
49
|
+
return /*#__PURE__*/_jsx("div", {
|
50
50
|
className: "form-item--wrap",
|
51
51
|
style: {
|
52
52
|
position: 'relative'
|
53
53
|
},
|
54
|
-
children:
|
55
|
-
className: "label-title--index",
|
56
|
-
children: indexLabel
|
57
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
54
|
+
children: /*#__PURE__*/_jsx(Form.Item, {
|
58
55
|
name: name,
|
59
56
|
label: title,
|
60
57
|
rules: newRules,
|
61
58
|
className: formIndexClassName,
|
62
59
|
children: component
|
63
|
-
})
|
60
|
+
})
|
64
61
|
});
|
65
62
|
}; //图片展示
|
66
63
|
|
@@ -43,7 +43,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
43
43
|
* @Author: litian
|
44
44
|
* @Date: 2022-08-01 09:36:35
|
45
45
|
* @LastEditors: litian
|
46
|
-
* @LastEditTime: 2022-09-
|
46
|
+
* @LastEditTime: 2022-09-20 18:02:06
|
47
47
|
*/
|
48
48
|
import React from 'react';
|
49
49
|
import BasicComponent from "../../BasicComponent";
|
@@ -68,7 +68,6 @@ var EBuyerName = /*#__PURE__*/function (_BasicComponent) {
|
|
68
68
|
_this = _super.call(this, options);
|
69
69
|
|
70
70
|
_defineProperty(_assertThisInitialized(_this), "render", function (value, record) {
|
71
|
-
console.log(value, record);
|
72
71
|
var buyerOpenUid = Object.keys(record).reduce(function (prv, next) {
|
73
72
|
var _next$split = next.split('_'),
|
74
73
|
_next$split2 = _slicedToArray(_next$split, 2),
|
@@ -80,8 +79,8 @@ var EBuyerName = /*#__PURE__*/function (_BasicComponent) {
|
|
80
79
|
}
|
81
80
|
|
82
81
|
return prv;
|
83
|
-
}, '');
|
84
|
-
|
82
|
+
}, ''); // console.log('buyername', value);
|
83
|
+
|
85
84
|
return /*#__PURE__*/_jsx("span", {
|
86
85
|
children: value
|
87
86
|
});
|
@@ -30,8 +30,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
30
30
|
* @Description:
|
31
31
|
* @Author: litian
|
32
32
|
* @Date: 2022-06-30 17:30:05
|
33
|
-
* @LastEditors:
|
34
|
-
* @LastEditTime: 2022-09-
|
33
|
+
* @LastEditors: litian
|
34
|
+
* @LastEditTime: 2022-09-20 18:02:16
|
35
35
|
*/
|
36
36
|
import React from 'react';
|
37
37
|
import { BuyerNick } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
@@ -99,7 +99,6 @@ var EBuyerNick = /*#__PURE__*/function (_BasicComponent) {
|
|
99
99
|
});
|
100
100
|
|
101
101
|
_defineProperty(_assertThisInitialized(_this), "getColumns", function () {
|
102
|
-
console.log('this.buyerOpenUid', _this.buyerOpenUid);
|
103
102
|
return {
|
104
103
|
title: _this.name,
|
105
104
|
children: [_this.buyerNick.getColumns(), _this.buyerOpenUid.getColumns()],
|
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
34
34
|
* @Description:
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-08-15 14:37:33
|
37
|
-
* @LastEditors:
|
38
|
-
* @LastEditTime: 2022-09-
|
37
|
+
* @LastEditors: litian
|
38
|
+
* @LastEditTime: 2022-09-19 14:08:03
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
@@ -94,7 +94,8 @@ var EItemSelect = /*#__PURE__*/function (_BasicComponent) {
|
|
94
94
|
required: false,
|
95
95
|
component: /*#__PURE__*/_jsx(ItemEncode, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
|
96
96
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
97
|
-
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList
|
97
|
+
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
98
|
+
width: "80%"
|
98
99
|
}))
|
99
100
|
}, value));
|
100
101
|
});
|
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
34
34
|
* @Description:
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-08-15 14:37:33
|
37
|
-
* @LastEditors:
|
38
|
-
* @LastEditTime: 2022-09-
|
37
|
+
* @LastEditors: litian
|
38
|
+
* @LastEditTime: 2022-09-19 14:07:31
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
@@ -94,7 +94,8 @@ var EItemId = /*#__PURE__*/function (_BasicComponent) {
|
|
94
94
|
required: false,
|
95
95
|
component: /*#__PURE__*/_jsx(ItemId, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
|
96
96
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
97
|
-
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList
|
97
|
+
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
98
|
+
width: "80%"
|
98
99
|
}))
|
99
100
|
}, value));
|
100
101
|
});
|
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
34
34
|
* @Description: 选择宝贝
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-08-15 14:37:33
|
37
|
-
* @LastEditors:
|
38
|
-
* @LastEditTime: 2022-09-
|
37
|
+
* @LastEditors: litian
|
38
|
+
* @LastEditTime: 2022-09-19 14:07:38
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
@@ -71,7 +71,8 @@ var EItemSelect = /*#__PURE__*/function (_BasicComponent) {
|
|
71
71
|
required: (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.required,
|
72
72
|
component: /*#__PURE__*/_jsx(ItemSelect, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
|
73
73
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
74
|
-
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList
|
74
|
+
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
75
|
+
width: "80%"
|
75
76
|
}))
|
76
77
|
}, value));
|
77
78
|
});
|
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
34
34
|
* @Description:
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-09-07 17:58:35
|
37
|
-
* @LastEditors:
|
38
|
-
* @LastEditTime: 2022-09-
|
37
|
+
* @LastEditors: litian
|
38
|
+
* @LastEditTime: 2022-09-21 13:35:19
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
@@ -109,8 +109,7 @@ var ReceiverAddress = /*#__PURE__*/function (_BasicComponent) {
|
|
109
109
|
validator: function validator(_, value) {
|
110
110
|
var _value$address3;
|
111
111
|
|
112
|
-
console.log('address', value);
|
113
|
-
|
112
|
+
// console.log('address', value);
|
114
113
|
if (!(value !== null && value !== void 0 && (_value$address3 = value.address) !== null && _value$address3 !== void 0 && _value$address3.length)) {
|
115
114
|
return Promise.reject(new Error('请选择地址'));
|
116
115
|
}
|
@@ -36,8 +36,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
36
36
|
* @Description:
|
37
37
|
* @Author: litian
|
38
38
|
* @Date: 2022-06-30 17:30:05
|
39
|
-
* @LastEditors:
|
40
|
-
* @LastEditTime: 2022-09-
|
39
|
+
* @LastEditors: litian
|
40
|
+
* @LastEditTime: 2022-09-20 09:24:55
|
41
41
|
*/
|
42
42
|
import React from 'react';
|
43
43
|
import Input from "../../basic/Input";
|
@@ -70,6 +70,8 @@ var ETradeId = /*#__PURE__*/function (_Input) {
|
|
70
70
|
|
71
71
|
_defineProperty(_assertThisInitialized(_this), "componentConfig", void 0);
|
72
72
|
|
73
|
+
_defineProperty(_assertThisInitialized(_this), "time", void 0);
|
74
|
+
|
73
75
|
_defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
|
74
76
|
var _this$componentConfig;
|
75
77
|
|
@@ -98,7 +100,7 @@ var ETradeId = /*#__PURE__*/function (_Input) {
|
|
98
100
|
shopList: options === null || options === void 0 ? void 0 : (_options$effects = options.effects) === null || _options$effects === void 0 ? void 0 : _options$effects.shopList,
|
99
101
|
shopId: options === null || options === void 0 ? void 0 : (_options$effects2 = options.effects) === null || _options$effects2 === void 0 ? void 0 : _options$effects2.shopId
|
100
102
|
});
|
101
|
-
|
103
|
+
_this.time = null;
|
102
104
|
return _this;
|
103
105
|
}
|
104
106
|
|
@@ -131,15 +133,22 @@ var ETradeId = /*#__PURE__*/function (_Input) {
|
|
131
133
|
switch (_context.prev = _context.next) {
|
132
134
|
case 0:
|
133
135
|
_this$effects = this.effects, form = _this$effects.form, shopId = _this$effects.shopId, shopList = _this$effects.shopList, templateDetail = _this$effects.templateDetail;
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
136
|
+
|
137
|
+
if (this.time) {
|
138
|
+
clearTimeout(this.time);
|
139
|
+
}
|
140
|
+
|
141
|
+
this.time = setTimeout(function () {
|
142
|
+
orderBack({
|
143
|
+
order_no: order_no,
|
144
|
+
form: form,
|
145
|
+
shopId: shopId,
|
146
|
+
shopList: shopList,
|
147
|
+
templateDetail: templateDetail
|
148
|
+
});
|
149
|
+
}, 1000);
|
150
|
+
|
151
|
+
case 3:
|
143
152
|
case "end":
|
144
153
|
return _context.stop();
|
145
154
|
}
|
@@ -35,7 +35,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-06-21 21:20:47
|
37
37
|
* @LastEditors: litian
|
38
|
-
* @LastEditTime: 2022-09-
|
38
|
+
* @LastEditTime: 2022-09-20 18:02:27
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
@@ -57,7 +57,6 @@ var Express = /*#__PURE__*/function (_BasicComponent) {
|
|
57
57
|
_this = _super.call(this, options);
|
58
58
|
|
59
59
|
_defineProperty(_assertThisInitialized(_this), "render", function (value, record) {
|
60
|
-
console.log('express.getExpressNameByCode(value)', express.getExpressNameByCode(value));
|
61
60
|
return /*#__PURE__*/_jsx("span", {
|
62
61
|
children: express.getExpressNameByCode(value)
|
63
62
|
});
|