@kmkf-fe-packages/kmkf-work-order-service-component 2.2.31-beta.75 → 2.2.31-beta.76
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.
|
@@ -54,7 +54,20 @@ export var DETAIL_ITEM_LIST = [{
|
|
|
54
54
|
title: '下单状态',
|
|
55
55
|
dataIndex: 'orderStatus',
|
|
56
56
|
render: function render(value) {
|
|
57
|
-
|
|
57
|
+
var item = [{
|
|
58
|
+
value: 0,
|
|
59
|
+
label: '失败',
|
|
60
|
+
color: '#ff4d4f'
|
|
61
|
+
}, {
|
|
62
|
+
value: 1,
|
|
63
|
+
label: '成功',
|
|
64
|
+
color: '#52c41a'
|
|
65
|
+
}][value];
|
|
66
|
+
return item ? /*#__PURE__*/React.createElement("span", {
|
|
67
|
+
style: {
|
|
68
|
+
color: item.color
|
|
69
|
+
}
|
|
70
|
+
}, item.label) : value;
|
|
58
71
|
}
|
|
59
72
|
}, {
|
|
60
73
|
title: '安装/维修订单编号',
|
|
@@ -70,10 +83,24 @@ export var DETAIL_ITEM_LIST = [{
|
|
|
70
83
|
dataIndex: 'serviceTypeDesc'
|
|
71
84
|
}, {
|
|
72
85
|
title: '服务状态',
|
|
73
|
-
dataIndex: 'serviceStatusDesc'
|
|
86
|
+
dataIndex: 'serviceStatusDesc',
|
|
87
|
+
render: function render(value) {
|
|
88
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
89
|
+
style: {
|
|
90
|
+
color: '#1b5bf3'
|
|
91
|
+
}
|
|
92
|
+
}, value);
|
|
93
|
+
}
|
|
74
94
|
}, {
|
|
75
95
|
title: '最新服务进度',
|
|
76
|
-
dataIndex: 'latestServiceProgressDesc'
|
|
96
|
+
dataIndex: 'latestServiceProgressDesc',
|
|
97
|
+
render: function render(value) {
|
|
98
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
99
|
+
style: {
|
|
100
|
+
color: '#1b5bf3'
|
|
101
|
+
}
|
|
102
|
+
}, value);
|
|
103
|
+
}
|
|
77
104
|
}, {
|
|
78
105
|
title: '最新服务进度时间',
|
|
79
106
|
dataIndex: 'latestProgressTime',
|
|
@@ -272,7 +299,10 @@ export var DETAIL_ITEM_LIST = [{
|
|
|
272
299
|
render: renderTime
|
|
273
300
|
}, {
|
|
274
301
|
title: '师傅打卡方式',
|
|
275
|
-
dataIndex: '
|
|
302
|
+
dataIndex: 'clockInType',
|
|
303
|
+
render: function render(value) {
|
|
304
|
+
return value === 0 ? '位置' : value === 1 ? '打卡码' : value;
|
|
305
|
+
}
|
|
276
306
|
}, {
|
|
277
307
|
title: '师傅完工时间',
|
|
278
308
|
dataIndex: 'workerFinishTime',
|
|
@@ -29,6 +29,7 @@ var renderDetailItem = function renderDetailItem(record, item, effects) {
|
|
|
29
29
|
|
|
30
30
|
// 不同 serviceProgress 对应的配置,利用 satisfies 做强类型约束
|
|
31
31
|
var serviceProgressDetailConfig = {
|
|
32
|
+
'-1': [],
|
|
32
33
|
2: [[{
|
|
33
34
|
title: '师傅姓名',
|
|
34
35
|
dataIndex: 'workerName'
|
|
@@ -383,6 +384,7 @@ var ProgressContent = function ProgressContent(_ref) {
|
|
|
383
384
|
shopList = _ref.shopList,
|
|
384
385
|
singleColumn = _ref.singleColumn;
|
|
385
386
|
var list = getServiceProgressList(detail.serviceProgress, singleColumn);
|
|
387
|
+
if (list.length === 0) return null;
|
|
386
388
|
return /*#__PURE__*/React.createElement("div", {
|
|
387
389
|
className: styles.progressContent
|
|
388
390
|
}, /*#__PURE__*/React.createElement("div", null, list.map(function (listItem) {
|
|
@@ -62,7 +62,7 @@ export declare type DetailType = {
|
|
|
62
62
|
appointEndTime: string;
|
|
63
63
|
clockInWorkerName: string;
|
|
64
64
|
clockInTime: string;
|
|
65
|
-
|
|
65
|
+
clockInType: 0 | 1;
|
|
66
66
|
exceptionAppointTime: string;
|
|
67
67
|
exceptionType: string;
|
|
68
68
|
exceptionRemark: string;
|
|
@@ -172,6 +172,11 @@ export declare type DetailItemSchemaType = {
|
|
|
172
172
|
}[TableKeyType];
|
|
173
173
|
export declare type ServiceProgressType = ServiceProgressDataType['serviceProgress'];
|
|
174
174
|
declare type ServiceProgressDataType = {
|
|
175
|
+
serviceProgress: -1;
|
|
176
|
+
data: {
|
|
177
|
+
time: string;
|
|
178
|
+
};
|
|
179
|
+
} | {
|
|
175
180
|
serviceProgress: 2;
|
|
176
181
|
data: {
|
|
177
182
|
workerName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "2.2.31-beta.
|
|
3
|
+
"version": "2.2.31-beta.76",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "fdcbf9149a7cf2f149203867db967e32ca76e10f",
|
|
79
79
|
"gitHooks": {
|
|
80
80
|
"pre-commit": "lint-staged"
|
|
81
81
|
}
|