kmkf-work-order-service-component 0.4.0-alpha.21 → 0.4.0-alpha.22
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.
@@ -683,23 +683,17 @@ var FormRender = function FormRender(props, ref) {
|
|
683
683
|
}), /*#__PURE__*/_jsxs(Form, _objectSpread(_objectSpread({
|
684
684
|
form: form
|
685
685
|
}, formProps), {}, {
|
686
|
-
children: [!templateId && /*#__PURE__*/_jsx(
|
687
|
-
|
688
|
-
|
689
|
-
children: /*#__PURE__*/_jsx(
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
onChange: handleChangeTemplateId,
|
698
|
-
allowClear: false,
|
699
|
-
getPopupContainer: function getPopupContainer() {
|
700
|
-
return document.getElementById('templateCascader');
|
701
|
-
}
|
702
|
-
})
|
686
|
+
children: [!templateId && /*#__PURE__*/_jsx(Form.Item, {
|
687
|
+
label: "\u6A21\u677F\u540D\u79F0",
|
688
|
+
required: true,
|
689
|
+
children: /*#__PURE__*/_jsx(Cascader, {
|
690
|
+
popupClassName: "templateCascader",
|
691
|
+
options: templateList,
|
692
|
+
placeholder: "\u8BF7\u9009\u62E9\u6A21\u7248",
|
693
|
+
showSearch: true,
|
694
|
+
value: templateIdState,
|
695
|
+
onChange: handleChangeTemplateId,
|
696
|
+
allowClear: false
|
703
697
|
})
|
704
698
|
}), isShowShopList && /*#__PURE__*/_jsx(ShopName, {
|
705
699
|
shopList: shopList,
|
@@ -2,7 +2,6 @@
|
|
2
2
|
import './index.less';
|
3
3
|
declare type OrderListProps = {
|
4
4
|
tabActive: string;
|
5
|
-
shopId?: string | number;
|
6
5
|
};
|
7
|
-
declare const CustomizeWorkOrderList: ({ tabActive
|
6
|
+
declare const CustomizeWorkOrderList: ({ tabActive }: OrderListProps) => JSX.Element;
|
8
7
|
export default CustomizeWorkOrderList;
|
@@ -78,7 +78,7 @@ var getTableData = function getTableData(_ref) {
|
|
78
78
|
shopList = _ref.shopList,
|
79
79
|
shopId = _ref.shopId;
|
80
80
|
return function (_ref2, formData) {
|
81
|
-
var
|
81
|
+
var _ref3, _ref3$find;
|
82
82
|
|
83
83
|
var current = _ref2.current,
|
84
84
|
pageSize = _ref2.pageSize;
|
@@ -89,8 +89,8 @@ var getTableData = function getTableData(_ref) {
|
|
89
89
|
var params = _objectSpread({}, formData);
|
90
90
|
|
91
91
|
if ((time === null || time === void 0 ? void 0 : time.length) > 1) {
|
92
|
-
params.createdStartTime = time[0] ? moment(time[0]).
|
93
|
-
params.createdEndTime = time[1] ? moment(
|
92
|
+
params.createdStartTime = time[0] ? moment(time[0]).startOf('day').valueOf() : undefined;
|
93
|
+
params.createdEndTime = time[1] ? moment(time[1]).endOf('day').valueOf() : undefined;
|
94
94
|
}
|
95
95
|
|
96
96
|
if ((templateIdList === null || templateIdList === void 0 ? void 0 : templateIdList.length) > 0) {
|
@@ -103,9 +103,9 @@ var getTableData = function getTableData(_ref) {
|
|
103
103
|
|
104
104
|
delete params.time; // time是moment类型的,监控上报的时侯,格式化报错了
|
105
105
|
|
106
|
-
var shopUniqueKey = (
|
106
|
+
var shopUniqueKey = (_ref3 = shopList || []) === null || _ref3 === void 0 ? void 0 : (_ref3$find = _ref3.find(function (item) {
|
107
107
|
return item.shopId === shopId;
|
108
|
-
})) === null ||
|
108
|
+
})) === null || _ref3$find === void 0 ? void 0 : _ref3$find.uniqueKey;
|
109
109
|
|
110
110
|
if (shopUniqueKey) {
|
111
111
|
params.shopUniqueKeyList = [shopUniqueKey];
|
@@ -126,9 +126,8 @@ var getTableData = function getTableData(_ref) {
|
|
126
126
|
}; //工单列表
|
127
127
|
|
128
128
|
|
129
|
-
var CustomizeWorkOrderList = function CustomizeWorkOrderList(
|
130
|
-
var tabActive =
|
131
|
-
shopId = _ref3.shopId;
|
129
|
+
var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
130
|
+
var tabActive = _ref4.tabActive;
|
132
131
|
var dispatch = useAppDispatch();
|
133
132
|
|
134
133
|
var _useState = useState(true),
|
@@ -167,7 +166,8 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref3) {
|
|
167
166
|
var buyerNick = platformInfo.buyerNick,
|
168
167
|
buyerId = platformInfo.buyerId,
|
169
168
|
platform = platformInfo.platform,
|
170
|
-
orderNo = platformInfo.orderNo
|
169
|
+
orderNo = platformInfo.orderNo,
|
170
|
+
shopId = platformInfo.shopId;
|
171
171
|
var formRenderRef = useRef();
|
172
172
|
|
173
173
|
var _Form$useForm = Form.useForm(),
|
@@ -244,20 +244,14 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref3) {
|
|
244
244
|
})
|
245
245
|
}), /*#__PURE__*/_jsx(Col, {
|
246
246
|
span: 16,
|
247
|
-
children: /*#__PURE__*/_jsx(
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
showSearch: true,
|
256
|
-
allowClear: false,
|
257
|
-
getPopupContainer: function getPopupContainer() {
|
258
|
-
return document.getElementById('templateCascader');
|
259
|
-
}
|
260
|
-
})
|
247
|
+
children: /*#__PURE__*/_jsx(Form.Item, {
|
248
|
+
name: "templateIdList",
|
249
|
+
children: /*#__PURE__*/_jsx(Cascader, {
|
250
|
+
popupClassName: "templateCascader",
|
251
|
+
options: groupAllList,
|
252
|
+
placeholder: "\u8BF7\u9009\u62E9\u6A21\u7248",
|
253
|
+
showSearch: true,
|
254
|
+
allowClear: false
|
261
255
|
})
|
262
256
|
})
|
263
257
|
}), /*#__PURE__*/_jsx(Col, {
|
@@ -404,7 +398,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref3) {
|
|
404
398
|
record: record,
|
405
399
|
shopList: shopList,
|
406
400
|
templateId: templateId ? [templateId] : undefined,
|
407
|
-
shopId: currentShopId,
|
401
|
+
shopId: currentShopId || platformInfo.shopId,
|
408
402
|
orderNo: orderNo,
|
409
403
|
buyerId: buyerId,
|
410
404
|
buyerNick: buyerNick,
|
@@ -162,8 +162,7 @@ var WorkOrder = function WorkOrder(props) {
|
|
162
162
|
})]
|
163
163
|
})
|
164
164
|
}), /*#__PURE__*/_jsx(OrderList, {
|
165
|
-
tabActive: tabActive
|
166
|
-
shopId: shopId
|
165
|
+
tabActive: tabActive
|
167
166
|
}), /*#__PURE__*/_jsx(PaymentWorkOrderList, {
|
168
167
|
tabActive: tabActive
|
169
168
|
})]
|