kmkf-work-order-service-component 0.0.1-alpha.3 → 0.0.1-alpha.5

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.
@@ -333,6 +333,10 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
333
333
  prv["".concat(next.uniqueKey, "_buyerOpenUid")] = buyerId;
334
334
  }
335
335
 
336
+ if (next.workOrderComponentType === 'ENTERPRISE_PAYMENT') {
337
+ prv["".concat(next.uniqueKey, "_enterprisePaymentBuyerOpenUid")] = buyerId;
338
+ }
339
+
336
340
  return prv;
337
341
  });
338
342
  _transData = calcWorkOrderList([{
@@ -27,8 +27,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
27
  /*
28
28
  * @Author: wangzhenggui jianjia.wzg@raycloud.com
29
29
  * @Date: 2022-09-16 11:19:43
30
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
31
- * @LastEditTime: 2022-09-26 10:02:23
30
+ * @LastEditors: litian
31
+ * @LastEditTime: 2022-09-26 17:13:40
32
32
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
33
33
  * @Description:
34
34
  *
@@ -9,11 +9,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9
9
  * @Author: litian
10
10
  * @Date: 2022-09-06 09:29:34
11
11
  * @LastEditors: litian
12
- * @LastEditTime: 2022-09-21 09:32:59
12
+ * @LastEditTime: 2022-09-26 16:52:59
13
13
  */
14
14
  import { extend } from 'umi-request';
15
15
  import { message } from 'antd';
16
- import cache from "../../common/cache";
17
16
 
18
17
  var requestApi = function requestApi(_ref) {
19
18
  var url = _ref.url,
@@ -21,18 +20,35 @@ var requestApi = function requestApi(_ref) {
21
20
  data = _ref.data,
22
21
  _ref$headers = _ref.headers,
23
22
  headers = _ref$headers === void 0 ? {} : _ref$headers;
24
- var request = extend({// prefix: cache.getHost() || '',
25
- });
23
+ var request = extend({}); // request.interceptors.request.use((url, options) => {
24
+ // const host = localStorage.getItem('kmkf_kmgd_host') || '';
25
+ // const cookies: any = localStorage.getItem('kmkf_kmgd_cookie') ? localStorage.getItem('kmkf_kmgd_cookie')?.split(':') : []
26
+ // let headers: any = {
27
+ // ...options.headers,
28
+ // }
29
+ // if (cookies.length) {
30
+ // headers[cookies[0]] = cookies[1]
31
+ // }
32
+ // return {
33
+ // url: host + url,
34
+ // options: {
35
+ // ...options,
36
+ // headers
37
+ // },
38
+ // }
39
+ // })
40
+
26
41
  return new Promise(function (resolve, reject) {
27
- var _cache$getCookie;
42
+ var _localStorage$getItem;
28
43
 
29
- var cookies = (_cache$getCookie = cache.getCookie()) === null || _cache$getCookie === void 0 ? void 0 : _cache$getCookie.split(':');
30
44
  var params = {
31
45
  method: method,
32
46
  headers: _objectSpread({
33
47
  'Content-type': 'application/json;charset=UTF-8'
34
48
  }, headers)
35
49
  };
50
+ var host = localStorage.getItem('kmkf_kmgd_host') || '';
51
+ var cookies = localStorage.getItem('kmkf_kmgd_cookie') ? (_localStorage$getItem = localStorage.getItem('kmkf_kmgd_cookie')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.split(':') : [];
36
52
 
37
53
  if (cookies) {
38
54
  params.headers = _objectSpread(_objectSpread({}, params.headers), {}, _defineProperty({}, cookies[0], cookies[1]));
@@ -44,8 +60,7 @@ var requestApi = function requestApi(_ref) {
44
60
  params.data = data;
45
61
  }
46
62
 
47
- console.log('order-service22222', url);
48
- request(url, params).then(function (res) {
63
+ request(host + url, params).then(function (res) {
49
64
  if (res.result === 100 || res.success) {
50
65
  resolve(res);
51
66
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.0.1-alpha.3",
3
+ "version": "0.0.1-alpha.5",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -37,7 +37,7 @@
37
37
  "react-dom": "^17.0.2"
38
38
  },
39
39
  "dependencies": {
40
- "@raycloud-apaas-fe-setup/apaas-react-basics-widgets": "^1.0.19-alpha.5",
40
+ "@raycloud-apaas-fe-setup/apaas-react-basics-widgets": "^1.0.19-alpha.7",
41
41
  "@reduxjs/toolkit": "^1.8.5",
42
42
  "react-redux": "^7.2.8",
43
43
  "store2": "^2.14.2",