kmkf-work-order-service-component 0.4.0-alpha.8 → 0.4.0-alpha.9
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.
@@ -38,6 +38,8 @@ import zhCN from 'antd/es/locale/zh_CN';
|
|
38
38
|
import { get, find, some, set, last } from 'lodash';
|
39
39
|
import 'moment/locale/zh-cn';
|
40
40
|
import { calcWorkOrderList, submitDataTransOldFormat, orderBack, getReplaceWarnValues, COMPONENT_MAP_NAME } from "../common/utils/tools";
|
41
|
+
import express from "../common/utils/express";
|
42
|
+
import formatAddrData from "../common/utils/formatAddrData";
|
41
43
|
import { queryTemplateDetail, addWorkOrder, queryWorkOrderDetail, updateWorkOrder, replaceCheck } from "../model/servers/api";
|
42
44
|
import { getPlatList } from "../model/customizeWorkOrder/api";
|
43
45
|
import { factory } from "../WorkOrder/components/Widget";
|
@@ -132,6 +134,10 @@ var FormRender = function FormRender(props, ref) {
|
|
132
134
|
platIcon = _useState14[0],
|
133
135
|
setPlatIcon = _useState14[1];
|
134
136
|
|
137
|
+
useEffect(function () {
|
138
|
+
express.initData();
|
139
|
+
formatAddrData.initData();
|
140
|
+
}, []);
|
135
141
|
useEffect(function () {
|
136
142
|
if (!currentShopId) {
|
137
143
|
getPlatList().then(function (list) {
|