kmkf-work-order-service-component 0.4.0-alpha.23 → 0.4.0-alpha.25

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.
@@ -253,7 +253,7 @@ var FormRender = function FormRender(props, ref) {
253
253
  pdd: '拼多多',
254
254
  jd: '京东',
255
255
  xiaozhi: '小智',
256
- pc: 'PC'
256
+ pc: '客服工作台'
257
257
  };
258
258
  _params = {
259
259
  apiName: 'addWorkOrder',
@@ -117,6 +117,7 @@
117
117
 
118
118
  .itemViewRight {
119
119
  flex-grow: 1;
120
+ min-width: 0;
120
121
  color: rgba(0, 0, 0, 0.85);
121
122
  word-break: break-all;
122
123
  }
@@ -26,6 +26,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
26
  import React from 'react';
27
27
  import { Divider } from 'antd';
28
28
  import moment from 'moment';
29
+ import { get } from 'lodash';
29
30
  import { useAppDispatch, useAppSelector } from "../../../../../model/hooks";
30
31
  import { factory } from "../../../Widget";
31
32
  import { calcWorkOrderList, isNull } from "../../../../../common/utils/tools";
@@ -51,8 +52,8 @@ function CustomizeWorkOrderCard(props) {
51
52
  'HANDLER_INPUT', // 处理人
52
53
  'OPERATOR_INPUT', // 提交人
53
54
  'CREATED_DATETIME', // 创建时间
54
- 'SHOP_INPUT' // 店铺
55
- ].includes(i.workOrderComponentType);
55
+ 'SHOP_INPUT', // 店铺
56
+ 'UPDATE_DATETIME'].includes(i.workOrderComponentType);
56
57
  });
57
58
 
58
59
  var _calcWorkOrderList = calcWorkOrderList([_objectSpread({}, item)], filterComponentDtoList),
@@ -66,9 +67,13 @@ function CustomizeWorkOrderCard(props) {
66
67
  var templateName = item.templateName,
67
68
  flowStatus = item.flowStatus,
68
69
  jsonMap = item.jsonMap;
69
- return /*#__PURE__*/_jsx("div", {
70
- className: "orderItem",
71
- children: /*#__PURE__*/_jsx("div", {
70
+ var hasPaymentStatus = Object.keys(jsonMap).find(function (key) {
71
+ return key === null || key === void 0 ? void 0 : key.includes('enterprisePaymentStatus');
72
+ }); // const paymentStatus = get(jsonMap, hasPaymentStatus, '')
73
+
74
+ return /*#__PURE__*/_jsxs("div", {
75
+ className: "customizeOrderItem",
76
+ children: [/*#__PURE__*/_jsx("div", {
72
77
  className: "orderItemLeft",
73
78
  children: /*#__PURE__*/_jsxs("div", {
74
79
  className: "orderItemType",
@@ -76,16 +81,21 @@ function CustomizeWorkOrderCard(props) {
76
81
  className: "orderItemLeftIcon"
77
82
  }), /*#__PURE__*/_jsxs("div", {
78
83
  className: "orderItemLeftName",
79
- children: [templateName, flowStatus && /*#__PURE__*/_jsx("span", {
84
+ children: [flowStatus && /*#__PURE__*/_jsx("span", {
80
85
  className: "status",
81
86
  style: {
82
87
  background: (_WORK_ORDER_STATUS = WORK_ORDER_STATUS[flowStatus]) === null || _WORK_ORDER_STATUS === void 0 ? void 0 : _WORK_ORDER_STATUS.bgColor
83
88
  },
84
89
  children: (_WORK_ORDER_STATUS2 = WORK_ORDER_STATUS[flowStatus]) === null || _WORK_ORDER_STATUS2 === void 0 ? void 0 : _WORK_ORDER_STATUS2.label
85
- })]
90
+ }), templateName]
86
91
  })]
87
92
  })
88
- })
93
+ }), hasPaymentStatus && get(jsonMap, hasPaymentStatus, '') && /*#__PURE__*/_jsx("div", {
94
+ style: {
95
+ fontWeight: 600
96
+ },
97
+ children: get(jsonMap, hasPaymentStatus, '')
98
+ })]
89
99
  });
90
100
  };
91
101
 
@@ -221,6 +231,14 @@ function CustomizeWorkOrderCard(props) {
221
231
  style: {
222
232
  margin: '8px 0'
223
233
  }
234
+ }), /*#__PURE__*/_jsx(ItemView, {
235
+ label: "\u4FEE\u6539\u65F6\u95F4",
236
+ value: moment(transData.update).format('YYYY-MM-DD HH:mm:ss')
237
+ }, "update"), /*#__PURE__*/_jsx(Divider, {
238
+ dashed: true,
239
+ style: {
240
+ margin: '8px 0'
241
+ }
224
242
  }), !enabledTemplateList.includes(item.templateId) && /*#__PURE__*/_jsx(ItemActions, {})]
225
243
  });
226
244
  }
@@ -5,7 +5,7 @@
5
5
  border: 1px solid #f2f2f2;
6
6
  }
7
7
 
8
- .orderItem {
8
+ .customizeOrderItem {
9
9
  position: relative;
10
10
  display: flex;
11
11
  align-items: center;
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  .status {
41
- margin-left: 8px;
41
+ margin-right: 8px;
42
42
  padding: 2px 4px;
43
43
  font-size: 12px;
44
44
  line-height: 16px;
@@ -117,6 +117,7 @@
117
117
 
118
118
  .itemViewRight {
119
119
  flex-grow: 1;
120
+ min-width: 0;
120
121
  color: rgba(0, 0, 0, 0.85);
121
122
  word-break: break-all;
122
123
  }
@@ -253,7 +253,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
253
253
  })
254
254
  })
255
255
  }), /*#__PURE__*/_jsx(Col, {
256
- span: 16,
256
+ span: 12,
257
257
  children: /*#__PURE__*/_jsx(Form.Item, {
258
258
  name: "templateIdList",
259
259
  children: /*#__PURE__*/_jsx(Cascader, {
@@ -265,7 +265,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
265
265
  })
266
266
  })
267
267
  }), /*#__PURE__*/_jsx(Col, {
268
- span: 8,
268
+ span: 12,
269
269
  children: /*#__PURE__*/_jsx(Form.Item, {
270
270
  name: "workOrderId",
271
271
  children: /*#__PURE__*/_jsx(Input, {
@@ -337,6 +337,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
337
337
  children: "\u9ED8\u8BA4\u8FD130\u5929\u7684\u5168\u90E8\u5DE5\u5355"
338
338
  }), /*#__PURE__*/_jsx(Button, {
339
339
  type: "primary",
340
+ ghost: true,
340
341
  size: "small",
341
342
  onClick: handleClick,
342
343
  children: "+\u65B0\u5EFA\u5DE5\u5355"
@@ -171,10 +171,10 @@
171
171
  }
172
172
  }
173
173
  .open {
174
- max-height: 400px;
174
+ max-height: 200px;
175
175
  }
176
176
  .close {
177
- max-height: 80px;
177
+ max-height: 40px;
178
178
  }
179
179
  }
180
180
 
@@ -117,6 +117,7 @@
117
117
 
118
118
  .itemViewRight {
119
119
  flex-grow: 1;
120
+ min-width: 0;
120
121
  color: rgba(0, 0, 0, 0.85);
121
122
  word-break: break-all;
122
123
  }
@@ -17,7 +17,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
 
19
19
  import React, { useEffect, useState } from 'react';
20
- import { Select, Pagination, DatePicker, Checkbox, message, Input, Form, Row, Col, Button } from 'antd';
20
+ import { Select, Pagination, DatePicker, Checkbox, message, Input, Form, Row, Col, Button, Tooltip } from 'antd';
21
21
  import { useAppSelector, useAppDispatch } from "../../../model/hooks";
22
22
  import { fetchQueryPaymentWorkOrderList } from "../../../model/workOrder";
23
23
  import PaymentWorkOrderCard from "./components/PaymentWorkOrderCard";
@@ -192,18 +192,26 @@ var PaymentWorkOrderList = function PaymentWorkOrderList(_ref) {
192
192
  })
193
193
  }), /*#__PURE__*/_jsx(Col, {
194
194
  span: 8,
195
- children: /*#__PURE__*/_jsx(Form.Item, {
196
- name: "tid",
197
- children: /*#__PURE__*/_jsx(Input, {
198
- placeholder: "\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7"
195
+ children: /*#__PURE__*/_jsx(Tooltip, {
196
+ placement: "topLeft",
197
+ title: "\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7",
198
+ children: /*#__PURE__*/_jsx(Form.Item, {
199
+ name: "tid",
200
+ children: /*#__PURE__*/_jsx(Input, {
201
+ placeholder: "\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7"
202
+ })
199
203
  })
200
204
  })
201
205
  }), /*#__PURE__*/_jsx(Col, {
202
206
  span: 8,
203
- children: /*#__PURE__*/_jsx(Form.Item, {
204
- name: "paymentOrderKey",
205
- children: /*#__PURE__*/_jsx(Input, {
206
- placeholder: "\u8BF7\u8F93\u5165\u5DE5\u5355\u7F16\u53F7"
207
+ children: /*#__PURE__*/_jsx(Tooltip, {
208
+ placement: "topLeft",
209
+ title: "\u8BF7\u8F93\u5165\u5DE5\u5355\u7F16\u53F7",
210
+ children: /*#__PURE__*/_jsx(Form.Item, {
211
+ name: "paymentOrderKey",
212
+ children: /*#__PURE__*/_jsx(Input, {
213
+ placeholder: "\u8BF7\u8F93\u5165\u5DE5\u5355\u7F16\u53F7"
214
+ })
207
215
  })
208
216
  })
209
217
  })]
@@ -259,6 +267,7 @@ var PaymentWorkOrderList = function PaymentWorkOrderList(_ref) {
259
267
  }), /*#__PURE__*/_jsx(Button, {
260
268
  type: "primary",
261
269
  size: "small",
270
+ ghost: true,
262
271
  style: {
263
272
  float: 'right'
264
273
  },
@@ -64,7 +64,7 @@ var BasicPicture = /*#__PURE__*/function (_BasicComponent) {
64
64
  width: 32,
65
65
  src: imgResize(pic || ''),
66
66
  preview: {
67
- src: pic
67
+ src: imgResize(pic || '', 0, 0)
68
68
  }
69
69
  })
70
70
  });
@@ -75,7 +75,7 @@ export var showImage = function showImage(_ref2) {
75
75
  }), /*#__PURE__*/_jsxs("div", {
76
76
  className: styles.options,
77
77
  children: [type === 'itemId' && /*#__PURE__*/_jsx(TextTool, {
78
- title: '宝贝id',
78
+ title: '商品id',
79
79
  text: item.numIid
80
80
  }), type === 'itemCode' && /*#__PURE__*/_jsx(TextTool, {
81
81
  title: '商品编码',
@@ -168,7 +168,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
168
168
  })
169
169
  }), /*#__PURE__*/_jsxs("div", {
170
170
  children: [type === 'itemId' && /*#__PURE__*/_jsx(TextTool, {
171
- title: '宝贝id',
171
+ title: '商品id',
172
172
  text: i.numIid
173
173
  }), type === 'itemCode' && /*#__PURE__*/_jsx(TextTool, {
174
174
  title: '商品编码',
@@ -942,6 +942,11 @@ export var imgResize = function imgResize(url) {
942
942
  var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
943
943
  var h = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 60;
944
944
  var modifyUrl = url.startsWith('/') ? url : "/".concat(url);
945
+
946
+ if (w === 0 || h === 0) {
947
+ return "https://kefu.kuaimai.com".concat(modifyUrl);
948
+ }
949
+
945
950
  return "https://kefu.kuaimai.com".concat(modifyUrl, "?x-oss-process=image/resize,h_").concat(h, ",w_").concat(w);
946
951
  }; //重复校验数据映射字段
947
952
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.4.0-alpha.23",
3
+ "version": "0.4.0-alpha.25",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",