@bit-sun/business-component 2.3.21 → 2.3.22-beta10
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.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -13
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -5
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +5 -5
- package/dist/components/Business/columnSettingTable/index.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/AddSelect/helps.d.ts +13 -0
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +3 -3
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/index.esm.js +1416 -1315
- package/dist/index.js +1422 -1321
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/LocalstorageUtils.d.ts +5 -0
- package/dist/utils/utils.d.ts +1 -1
- package/lib/assets/exportFail.svg +9 -9
- package/lib/assets/exportProcessing.svg +9 -9
- package/lib/assets/exportSuccess.svg +9 -9
- package/package.json +3 -3
- package/src/assets/caidan.svg +1 -1
- package/src/assets/exportFail.svg +9 -9
- package/src/assets/exportProcessing.svg +9 -9
- package/src/assets/exportSuccess.svg +9 -9
- package/src/assets/fixed-left-active.svg +1 -1
- package/src/assets/fixed-right-active.svg +1 -1
- package/src/components/Business/AddSelectBusiness/index.tsx +352 -187
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +1 -1
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +1 -1
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +3 -3
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +4 -4
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +1 -1
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +1 -1
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +1 -1
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +1 -1
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +3 -3
- package/src/components/Business/BsLayouts/index.less +2 -2
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +7 -6
- package/src/components/Business/BsSulaQueryTable/index.tsx +1 -5
- package/src/components/Business/BsSulaQueryTable/setting.tsx +12 -9
- package/src/components/Business/BsSulaQueryTable/utils.less +1 -1
- package/src/components/Business/CommonAlert/index.tsx +1 -1
- package/src/components/Business/CommonGuideWrapper/index.less +2 -2
- package/src/components/Business/DetailPageWrapper/index.less +2 -2
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +1 -1
- package/src/components/Business/StateFlow/index.less +3 -3
- package/src/components/Business/columnSettingTable/columnSetting.tsx +8 -6
- package/src/components/Functional/AddSelect/helps.ts +65 -0
- package/src/components/Functional/AddSelect/index.tsx +15 -127
- package/src/components/Functional/BillEntry/index.tsx +6 -6
- package/src/components/Functional/SearchSelect/index.tsx +1 -1
- package/src/plugin/TableColumnSetting/index.tsx +8 -6
- package/src/styles/bsDefault.less +12 -34
- package/src/utils/LocalstorageUtils.ts +19 -0
- package/src/utils/requestUtils.ts +13 -5
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var axios = require('axios');
|
|
|
6
6
|
var antd = require('antd');
|
|
7
7
|
var _ = require('lodash');
|
|
8
8
|
var umi = require('umi');
|
|
9
|
-
var isEqual
|
|
9
|
+
var isEqual = require('lodash/isEqual');
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var moment$1 = require('moment');
|
|
12
12
|
var icons = require('@ant-design/icons');
|
|
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
33
|
|
|
34
34
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
35
35
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
36
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual
|
|
36
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
37
37
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
38
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
|
|
39
39
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
@@ -88,9 +88,6 @@ var getConfigTableColumns = function getConfigTableColumns(tableCode) {
|
|
|
88
88
|
}
|
|
89
89
|
return [];
|
|
90
90
|
};
|
|
91
|
-
var getCurrentTenantId = function getCurrentTenantId() {
|
|
92
|
-
return localStorage.getItem('current_tenant_id') || 1;
|
|
93
|
-
};
|
|
94
91
|
function getEmployeeId() {
|
|
95
92
|
var _resposne$employeeRes;
|
|
96
93
|
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes = resposne.employeeResVo) === null || _resposne$employeeRes === void 0 ? void 0 : _resposne$employeeRes.id) || 2;
|
|
@@ -102,9 +99,24 @@ function getEmployeeCode() {
|
|
|
102
99
|
function getSessionId() {
|
|
103
100
|
return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
104
101
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return (resposne === null || resposne === void 0 ? void 0 :
|
|
102
|
+
//--------赢家项目登录信息---------
|
|
103
|
+
function getEekaSessionId() {
|
|
104
|
+
return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
105
|
+
}
|
|
106
|
+
function getEekaAccountId() {
|
|
107
|
+
var _resposne$personDetai;
|
|
108
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai = resposne.personDetailResDto) === null || _resposne$personDetai === void 0 ? void 0 : _resposne$personDetai.accountId) || -1;
|
|
109
|
+
}
|
|
110
|
+
function getEekaEmployeeId() {
|
|
111
|
+
var _resposne$personDetai2;
|
|
112
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai2 = resposne.personDetailResDto) === null || _resposne$personDetai2 === void 0 ? void 0 : _resposne$personDetai2.employeeId) || 2;
|
|
113
|
+
}
|
|
114
|
+
function getEekaTenantId() {
|
|
115
|
+
var _resposne$personDetai3;
|
|
116
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai3 = resposne.personDetailResDto) === null || _resposne$personDetai3 === void 0 ? void 0 : _resposne$personDetai3.tenantId) || 1;
|
|
117
|
+
}
|
|
118
|
+
function getEekaToken() {
|
|
119
|
+
return resposne === null || resposne === void 0 ? void 0 : resposne.token;
|
|
108
120
|
}
|
|
109
121
|
function getUserId() {
|
|
110
122
|
var _resposne$accountPers2;
|
|
@@ -140,10 +152,16 @@ function handleRequestAuthHeader(config) {
|
|
|
140
152
|
}
|
|
141
153
|
// 处理请求头
|
|
142
154
|
var handleRequestHeader = function handleRequestHeader(config) {
|
|
143
|
-
config.headers['sso-sessionid']
|
|
144
|
-
config.headers['x-account-id']
|
|
145
|
-
config.headers['x-employee-id']
|
|
146
|
-
config.headers['x-tenant-id'] = getCurrentTenantId()
|
|
155
|
+
// config.headers['sso-sessionid'] = getSessionId()
|
|
156
|
+
// config.headers['x-account-id'] = getAccountId()
|
|
157
|
+
// config.headers['x-employee-id'] = getEmployeeId()
|
|
158
|
+
// config.headers['x-tenant-id'] = getCurrentTenantId()
|
|
159
|
+
//赢家项目请求头
|
|
160
|
+
config.headers['x-sso-sessionid'] = getEekaSessionId();
|
|
161
|
+
config.headers['x-account-id'] = getEekaAccountId();
|
|
162
|
+
config.headers['x-employee-id'] = getEekaEmployeeId();
|
|
163
|
+
config.headers['x-tenant-id'] = getEekaTenantId();
|
|
164
|
+
config.headers['x-user-token'] = getEekaToken();
|
|
147
165
|
if (localStorage.getItem('x-user-auth-context')) {
|
|
148
166
|
config.headers['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
149
167
|
}
|
|
@@ -781,52 +799,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
781
799
|
return '';
|
|
782
800
|
};
|
|
783
801
|
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
function
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
802
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
803
|
+
return a === b;
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
function index$1 (resultFn, isEqual) {
|
|
807
|
+
if (isEqual === void 0) {
|
|
808
|
+
isEqual = simpleIsEqual;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
var lastThis;
|
|
812
|
+
var lastArgs = [];
|
|
813
|
+
var lastResult;
|
|
814
|
+
var calledOnce = false;
|
|
815
|
+
|
|
816
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
817
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
var result = function result() {
|
|
821
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
822
|
+
newArgs[_key] = arguments[_key];
|
|
800
823
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
824
|
+
|
|
825
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
826
|
+
return lastResult;
|
|
805
827
|
}
|
|
806
|
-
return true;
|
|
807
|
-
}
|
|
808
828
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
818
|
-
newArgs[_i] = arguments[_i];
|
|
819
|
-
}
|
|
820
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
821
|
-
return lastResult;
|
|
822
|
-
}
|
|
823
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
824
|
-
calledOnce = true;
|
|
825
|
-
lastThis = this;
|
|
826
|
-
lastArgs = newArgs;
|
|
827
|
-
return lastResult;
|
|
828
|
-
}
|
|
829
|
-
return memoized;
|
|
829
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
830
|
+
calledOnce = true;
|
|
831
|
+
lastThis = this;
|
|
832
|
+
lastArgs = newArgs;
|
|
833
|
+
return lastResult;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
return result;
|
|
830
837
|
}
|
|
831
838
|
|
|
832
839
|
function styleInject(css, ref) {
|
|
@@ -856,7 +863,7 @@ function styleInject(css, ref) {
|
|
|
856
863
|
}
|
|
857
864
|
}
|
|
858
865
|
|
|
859
|
-
var css_248z = ".cardContent {\n font-family: PingFangSC, PingFangSC-Regular;\n}\n.user_card_header {\n margin-top: -32px;\n}\n.user_card_header .card_name {\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n color: #000000;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-top: 6px;\n}\n.card_company {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin-bottom: 16px;\n}\n.card_detailInfo {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin: 0 0 5px !important;\n}\n.card_department {\n color: #
|
|
866
|
+
var css_248z = ".cardContent {\n font-family: PingFangSC, PingFangSC-Regular;\n}\n.user_card_header {\n margin-top: -32px;\n}\n.user_card_header .card_name {\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n color: #000000;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-top: 6px;\n}\n.card_company {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin-bottom: 16px;\n}\n.card_detailInfo {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin: 0 0 5px !important;\n}\n.card_department {\n color: #02B56E !important;\n}\n.user_info_card .ant-popover-inner-content {\n padding: 0px !important;\n}\n.user_info_card .ant-card-body {\n padding: 0px !important;\n}\n";
|
|
860
867
|
styleInject(css_248z);
|
|
861
868
|
|
|
862
869
|
var noImg = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2244px%22%20height%3D%2244px%22%20viewBox%3D%220%200%2044%2044%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E8%92%99%E7%89%88%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%22-1.56319402e-13%201.84741111e-13%2044%201.84741111e-13%2044%2044%20-1.56319402e-13%2044%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-354.000000%2C%20-672.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E4%B8%80%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%28240.000000%2C%20664.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE%E7%BC%96%E5%8F%B7%22%20transform%3D%22translate%28106.000000%2C%200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20transform%3D%22translate%288.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23E6F3FF%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M28.4962332%2C15%20C29.4007284%2C15%2030.1339666%2C15.7383979%2030.1339666%2C16.6492578%20L30.1339666%2C27.5596481%20C30.1339666%2C28.4705081%2029.4007284%2C29.208906%2028.4962332%2C29.208906%20L14.6377334%2C29.208906%20C13.7332382%2C29.208906%2013%2C28.4705081%2013%2C27.5596481%20L13%2C16.6492578%20C13%2C15.7383979%2013.7332382%2C15%2014.6377334%2C15%20L28.4956873%2C15%20L28.4962332%2C15%20Z%20M28.4962332%2C16.6492578%20L14.6377334%2C16.6492578%20L14.6377334%2C27.5596481%20L28.4956873%2C27.5596481%20L28.4956873%2C16.6492578%20L28.4962332%2C16.6492578%20Z%20M26.6996397%2C18.6899395%20L26.6996397%2C20.3369983%20C24.5001638%2C20.357889%2023.12283%2C21.0967565%2022.4448084%2C22.5305113%20L22.3847582%2C22.6624519%20L22.3137897%2C22.8224299%20C21.2241511%2C25.1880154%2019.0819959%2C26.322155%2016.0560105%2C26.1940627%20L16.243258%2C26.2001099%20L16.2443498%2C24.5508521%20C18.5633803%2C24.6206707%2020.0357026%2C23.8290269%2020.8190851%2C22.1473337%20L20.8824107%2C22.006597%20L20.9479201%2C21.8603628%20C21.9158205%2C19.7680044%2023.8767333%2C18.7196262%2026.6996397%2C18.6899395%20L26.6996397%2C18.6899395%20Z%20M17.5583579%2C18.3435954%20C18.1149239%2C18.3435954%2018.5661099%2C18.7979562%2018.5661099%2C19.3584387%20C18.5661099%2C19.9189212%2018.1149239%2C20.373282%2017.5583579%2C20.373282%20C17.0016411%2C20.373282%2016.550333%2C19.9187981%2016.550333%2C19.3581638%20C16.550333%2C18.7975295%2017.0016411%2C18.3430456%2017.5583579%2C18.3430456%20L17.5583579%2C18.3435954%20Z%22%20fill%3D%22%23A3D1FF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -1043,58 +1050,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1043
1050
|
* @returns 返回处理后的查询参数
|
|
1044
1051
|
*/
|
|
1045
1052
|
function queryParams(params, flag) {
|
|
1046
|
-
|
|
1053
|
+
var _loop = function _loop() {
|
|
1047
1054
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1072
|
-
} else {
|
|
1073
|
-
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
delete params[key];
|
|
1077
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1078
|
-
var _dataParams4 = key.split('*');
|
|
1079
|
-
_dataParams4.forEach(function (value, index) {
|
|
1080
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1081
|
-
});
|
|
1082
|
-
delete params[key];
|
|
1083
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1084
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1085
|
-
if (element.indexOf(',') >= 0) {
|
|
1086
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1087
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1055
|
+
var element = params[key];
|
|
1056
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1057
|
+
var dataParams = key.split('*number*');
|
|
1058
|
+
dataParams.forEach(function (value, index) {
|
|
1059
|
+
params[value] = element[index];
|
|
1060
|
+
});
|
|
1061
|
+
delete params[key];
|
|
1062
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1063
|
+
var _dataParams = key.split('*address*');
|
|
1064
|
+
_dataParams.forEach(function (value, index) {
|
|
1065
|
+
params[value] = element.PCDCode[index];
|
|
1066
|
+
});
|
|
1067
|
+
delete params[key];
|
|
1068
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1069
|
+
var _dataParams2 = key.split('*costType*');
|
|
1070
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1071
|
+
params[_dataParams2[0]] = element[1];
|
|
1072
|
+
delete params[key];
|
|
1073
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1074
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1075
|
+
_dataParams3.forEach(function (value, index) {
|
|
1076
|
+
if (index === 0) {
|
|
1077
|
+
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1088
1078
|
} else {
|
|
1089
|
-
params[
|
|
1090
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1079
|
+
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1091
1080
|
}
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1081
|
+
});
|
|
1082
|
+
delete params[key];
|
|
1083
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1084
|
+
var _dataParams4 = key.split('*');
|
|
1085
|
+
_dataParams4.forEach(function (value, index) {
|
|
1086
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1087
|
+
});
|
|
1088
|
+
delete params[key];
|
|
1089
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1090
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1091
|
+
if (element.indexOf(',') >= 0) {
|
|
1092
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1093
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1094
|
+
} else {
|
|
1095
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1096
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1095
1097
|
}
|
|
1096
|
-
|
|
1098
|
+
delete params[key];
|
|
1099
|
+
} else if (Array.isArray(element)) {
|
|
1100
|
+
params[key] = element.join(',');
|
|
1101
|
+
}
|
|
1097
1102
|
}
|
|
1103
|
+
};
|
|
1104
|
+
for (var key in params) {
|
|
1105
|
+
_loop();
|
|
1098
1106
|
}
|
|
1099
1107
|
return flag ? params : qs.stringify(params);
|
|
1100
1108
|
}
|
|
@@ -1140,7 +1148,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1140
1148
|
return item;
|
|
1141
1149
|
});
|
|
1142
1150
|
};
|
|
1143
|
-
var memoizeOneFormatter =
|
|
1151
|
+
var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
|
|
1144
1152
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1145
1153
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1146
1154
|
umi.history.goBack();
|
|
@@ -2823,84 +2831,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2823
2831
|
});
|
|
2824
2832
|
}
|
|
2825
2833
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2826
|
-
|
|
2834
|
+
var _loop = function _loop() {
|
|
2827
2835
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2854
|
-
}
|
|
2855
|
-
});
|
|
2856
|
-
delete params[key];
|
|
2857
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2858
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2859
|
-
if (element) {
|
|
2860
|
-
params[_dataParams4[0]] = 0;
|
|
2836
|
+
var element = params[key];
|
|
2837
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2838
|
+
var dataParams = key.split('*number*');
|
|
2839
|
+
dataParams.forEach(function (value, index) {
|
|
2840
|
+
params[value] = element[index];
|
|
2841
|
+
});
|
|
2842
|
+
delete params[key];
|
|
2843
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2844
|
+
var _dataParams = key.split('*address*');
|
|
2845
|
+
_dataParams.forEach(function (value, index) {
|
|
2846
|
+
params[value] = element.PCDCode[index];
|
|
2847
|
+
});
|
|
2848
|
+
delete params[key];
|
|
2849
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2850
|
+
var _dataParams2 = key.split('*costType*');
|
|
2851
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2852
|
+
params[_dataParams2[0]] = element[1];
|
|
2853
|
+
delete params[key];
|
|
2854
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2855
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2856
|
+
_dataParams3.forEach(function (value, index) {
|
|
2857
|
+
if (index === 0) {
|
|
2858
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2859
|
+
} else {
|
|
2860
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2861
2861
|
}
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
_dataParams7.forEach(function (value, index) {
|
|
2880
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2881
|
-
});
|
|
2882
|
-
delete params[key];
|
|
2883
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2884
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2885
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2886
|
-
if (params[key][0] === 'range') {
|
|
2887
|
-
if (params[key][1][0]) {
|
|
2888
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2889
|
-
}
|
|
2890
|
-
if (params[key][1][1]) {
|
|
2891
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2892
|
-
}
|
|
2862
|
+
});
|
|
2863
|
+
delete params[key];
|
|
2864
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2865
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2866
|
+
if (element) {
|
|
2867
|
+
params[_dataParams4[0]] = 0;
|
|
2868
|
+
}
|
|
2869
|
+
delete params[key];
|
|
2870
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2871
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2872
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2873
|
+
delete params[key];
|
|
2874
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2875
|
+
var _dataParams6 = key.split('*date*');
|
|
2876
|
+
_dataParams6.forEach(function (value, index) {
|
|
2877
|
+
if (index === 0) {
|
|
2878
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2893
2879
|
} else {
|
|
2894
|
-
params[
|
|
2880
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2881
|
+
}
|
|
2882
|
+
});
|
|
2883
|
+
delete params[key];
|
|
2884
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2885
|
+
var _dataParams7 = key.split('*');
|
|
2886
|
+
_dataParams7.forEach(function (value, index) {
|
|
2887
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2888
|
+
});
|
|
2889
|
+
delete params[key];
|
|
2890
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2891
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2892
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2893
|
+
if (params[key][0] === 'range') {
|
|
2894
|
+
if (params[key][1][0]) {
|
|
2895
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2895
2896
|
}
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
} else
|
|
2900
|
-
|
|
2897
|
+
if (params[key][1][1]) {
|
|
2898
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2899
|
+
}
|
|
2900
|
+
} else {
|
|
2901
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2901
2902
|
}
|
|
2902
|
-
|
|
2903
|
+
delete params[key];
|
|
2904
|
+
} else if (Array.isArray(element)) {
|
|
2905
|
+
params[key] = element.join(',');
|
|
2906
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2907
|
+
delete params[key];
|
|
2908
|
+
}
|
|
2903
2909
|
}
|
|
2910
|
+
};
|
|
2911
|
+
for (var key in params) {
|
|
2912
|
+
_loop();
|
|
2904
2913
|
}
|
|
2905
2914
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2906
2915
|
pageSize: pageSize,
|
|
@@ -3297,7 +3306,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3297
3306
|
}
|
|
3298
3307
|
};
|
|
3299
3308
|
var themeColor = {
|
|
3300
|
-
color: '#
|
|
3309
|
+
color: '#02B56E'
|
|
3301
3310
|
};
|
|
3302
3311
|
var formItem = function formItem(list) {
|
|
3303
3312
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
@@ -3600,11 +3609,11 @@ var drag = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
3600
3609
|
|
|
3601
3610
|
var fixedLeft = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E6%90%9C%E7%B4%A2%E5%8C%BA%E5%8A%9F%E8%83%BD%E8%BF%AD%E4%BB%A3%EF%BC%88%E5%8F%AF%E9%94%81%E5%AE%9A%E5%88%97%E8%A1%A8%EF%BC%89%22%20transform%3D%22translate%28-1256.000000%2C%20-596.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28550.000000%2C%20291.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%E5%A4%87%E4%BB%BD-3%22%20transform%3D%22translate%28590.000000%2C%20294.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%28125.000000%2C%2020.000000%29%20scale%281%2C%20-1%29%20translate%28-125.000000%2C%20-20.000000%29%20translate%28116.000000%2C%2011.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23999999%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3602
3611
|
|
|
3603
|
-
var fixedLeftActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-67.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2876.000000%2C%2052.000000%29%20scale%281%2C%20-1%29%20translate%28-76.000000%2C%20-52.000000%29%20translate%2867.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%
|
|
3612
|
+
var fixedLeftActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-67.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2876.000000%2C%2052.000000%29%20scale%281%2C%20-1%29%20translate%28-76.000000%2C%20-52.000000%29%20translate%2867.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%2302B56E%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3604
3613
|
|
|
3605
3614
|
var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E6%90%9C%E7%B4%A2%E5%8C%BA%E5%8A%9F%E8%83%BD%E8%BF%AD%E4%BB%A3%EF%BC%88%E5%8F%AF%E9%94%81%E5%AE%9A%E5%88%97%E8%A1%A8%EF%BC%89%22%20transform%3D%22translate%28-1278.000000%2C%20-596.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28550.000000%2C%20291.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%E5%A4%87%E4%BB%BD-3%22%20transform%3D%22translate%28590.000000%2C%20294.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%28138.000000%2C%2011.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23999999%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3606
3615
|
|
|
3607
|
-
var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-89.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2889.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%
|
|
3616
|
+
var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-89.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2889.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%2302B56E%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3608
3617
|
|
|
3609
3618
|
var css_248z$6 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
|
|
3610
3619
|
styleInject(css_248z$6);
|
|
@@ -3654,15 +3663,17 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
3654
3663
|
};
|
|
3655
3664
|
});
|
|
3656
3665
|
axios__default['default']({
|
|
3657
|
-
url: '/user/appConfig/saveUserOrder',
|
|
3666
|
+
// url: '/user/appConfig/saveUserOrder',
|
|
3667
|
+
url: '/api/mallops/appConfig/saveUserOrder',
|
|
3658
3668
|
method: 'POST',
|
|
3659
3669
|
data: {
|
|
3660
3670
|
"code": tableCode,
|
|
3661
3671
|
"detail": JSON.stringify(configvalue)
|
|
3662
3672
|
}
|
|
3663
3673
|
}).then(function (res) {
|
|
3664
|
-
var _res$data;
|
|
3665
|
-
if (
|
|
3674
|
+
var _res$data, _res$data2;
|
|
3675
|
+
// if (res?.data?.status === '0') {
|
|
3676
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0' || (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.code) == '000000') {
|
|
3666
3677
|
setConfigTableColumns(configvalue, tableCode);
|
|
3667
3678
|
} else {
|
|
3668
3679
|
antd.message.error('保存表头列自定义失败,请稍后尝试');
|
|
@@ -4299,8 +4310,6 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4299
4310
|
}
|
|
4300
4311
|
return result;
|
|
4301
4312
|
};
|
|
4302
|
-
|
|
4303
|
-
var _excluded$3 = ["onResize", "width"];
|
|
4304
4313
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4305
4314
|
return new Promise(function (resolve, reject) {
|
|
4306
4315
|
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
|
|
@@ -4308,6 +4317,7 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4308
4317
|
result = result.data;
|
|
4309
4318
|
if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
|
|
4310
4319
|
antd.message.error(result.msg);
|
|
4320
|
+
resolve(result);
|
|
4311
4321
|
return;
|
|
4312
4322
|
}
|
|
4313
4323
|
resolve(result);
|
|
@@ -4316,38 +4326,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4316
4326
|
});
|
|
4317
4327
|
});
|
|
4318
4328
|
};
|
|
4319
|
-
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4320
|
-
return new Promise(function (resolve, reject) {
|
|
4321
|
-
axios__default['default'].post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4322
|
-
var _result3, _result4;
|
|
4323
|
-
result = result.data;
|
|
4324
|
-
if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
|
|
4325
|
-
antd.message.error(result.msg);
|
|
4326
|
-
reject(false);
|
|
4327
|
-
return;
|
|
4328
|
-
}
|
|
4329
|
-
resolve(result);
|
|
4330
|
-
}).catch(function (err) {
|
|
4331
|
-
reject(err);
|
|
4332
|
-
});
|
|
4333
|
-
});
|
|
4334
|
-
};
|
|
4335
|
-
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4336
|
-
var onResize = props.onResize,
|
|
4337
|
-
width = props.width,
|
|
4338
|
-
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4339
|
-
if (!width) {
|
|
4340
|
-
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
4341
|
-
}
|
|
4342
|
-
return /*#__PURE__*/React__default['default'].createElement(reactResizable.Resizable, {
|
|
4343
|
-
width: width,
|
|
4344
|
-
height: 0,
|
|
4345
|
-
onResize: onResize,
|
|
4346
|
-
draggableOpts: {
|
|
4347
|
-
enableUserSelectHack: false
|
|
4348
|
-
}
|
|
4349
|
-
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
4350
|
-
};
|
|
4351
4329
|
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
4352
4330
|
var _reData$position;
|
|
4353
4331
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
@@ -4387,6 +4365,52 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
4387
4365
|
}) || [];
|
|
4388
4366
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
4389
4367
|
};
|
|
4368
|
+
var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearchForm) {
|
|
4369
|
+
loadList.forEach(function (i, index) {
|
|
4370
|
+
if (i.resType == 'list') {
|
|
4371
|
+
var resKeyValue = i.resKeyValue || ['code', 'name'];
|
|
4372
|
+
formatSource(x, index, i.resPosition, tableSearchForm, resKeyValue);
|
|
4373
|
+
}
|
|
4374
|
+
if (i.resType == 'treeList') {
|
|
4375
|
+
var _resKeyValue = i.resKeyValue || ['id', 'name'];
|
|
4376
|
+
formatTreeDataSource(x, index, i.resPosition, tableSearchForm, _resKeyValue);
|
|
4377
|
+
}
|
|
4378
|
+
});
|
|
4379
|
+
};
|
|
4380
|
+
|
|
4381
|
+
var _excluded$3 = ["onResize", "width"];
|
|
4382
|
+
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4383
|
+
return new Promise(function (resolve, reject) {
|
|
4384
|
+
axios__default['default'].post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4385
|
+
var _result, _result2;
|
|
4386
|
+
result = result.data;
|
|
4387
|
+
if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
|
|
4388
|
+
antd.message.error(result.msg);
|
|
4389
|
+
reject(false);
|
|
4390
|
+
return;
|
|
4391
|
+
}
|
|
4392
|
+
resolve(result);
|
|
4393
|
+
}).catch(function (err) {
|
|
4394
|
+
reject(err);
|
|
4395
|
+
});
|
|
4396
|
+
});
|
|
4397
|
+
};
|
|
4398
|
+
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4399
|
+
var onResize = props.onResize,
|
|
4400
|
+
width = props.width,
|
|
4401
|
+
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4402
|
+
if (!width) {
|
|
4403
|
+
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
4404
|
+
}
|
|
4405
|
+
return /*#__PURE__*/React__default['default'].createElement(reactResizable.Resizable, {
|
|
4406
|
+
width: width,
|
|
4407
|
+
height: 0,
|
|
4408
|
+
onResize: onResize,
|
|
4409
|
+
draggableOpts: {
|
|
4410
|
+
enableUserSelectHack: false
|
|
4411
|
+
}
|
|
4412
|
+
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
4413
|
+
};
|
|
4390
4414
|
var initTableCode = {
|
|
4391
4415
|
'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
|
|
4392
4416
|
'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
|
|
@@ -4419,9 +4443,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4419
4443
|
_props$businessType = props.businessType,
|
|
4420
4444
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4421
4445
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4422
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4423
|
-
_props$noUseItemEanco = props.noUseItemEancode,
|
|
4424
|
-
noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
|
|
4446
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
|
|
4425
4447
|
var _ref = requestConfig || {},
|
|
4426
4448
|
url = _ref.url,
|
|
4427
4449
|
otherParams = _ref.otherParams,
|
|
@@ -4578,76 +4600,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4578
4600
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4579
4601
|
var result;
|
|
4580
4602
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4581
|
-
while (1) {
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
_context.next = 3;
|
|
4588
|
-
break;
|
|
4589
|
-
}
|
|
4590
|
-
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4591
|
-
return _context.abrupt("return", false);
|
|
4592
|
-
case 3:
|
|
4593
|
-
if (!(bType == 'spu')) {
|
|
4594
|
-
_context.next = 26;
|
|
4595
|
-
break;
|
|
4596
|
-
}
|
|
4597
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4598
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4599
|
-
}))) {
|
|
4600
|
-
_context.next = 7;
|
|
4601
|
-
break;
|
|
4602
|
-
}
|
|
4603
|
-
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4604
|
-
return _context.abrupt("return", false);
|
|
4605
|
-
case 7:
|
|
4606
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4607
|
-
_context.next = 10;
|
|
4608
|
-
break;
|
|
4609
|
-
}
|
|
4610
|
-
antd.message.warning('请先选择颜色!');
|
|
4611
|
-
return _context.abrupt("return", false);
|
|
4612
|
-
case 10:
|
|
4613
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4614
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4615
|
-
}))) {
|
|
4616
|
-
_context.next = 13;
|
|
4617
|
-
break;
|
|
4618
|
-
}
|
|
4619
|
-
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4620
|
-
return _context.abrupt("return", false);
|
|
4621
|
-
case 13:
|
|
4622
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4623
|
-
_context.next = 26;
|
|
4624
|
-
break;
|
|
4625
|
-
}
|
|
4626
|
-
result = true;
|
|
4627
|
-
_context.prev = 15;
|
|
4628
|
-
_context.next = 18;
|
|
4629
|
-
return checkSpuMatchCode({
|
|
4630
|
-
skcCode: recordItem[recordKey],
|
|
4631
|
-
matchingCode: changeValue,
|
|
4632
|
-
ext1: recordItem.colorName
|
|
4633
|
-
});
|
|
4634
|
-
case 18:
|
|
4635
|
-
result = _context.sent;
|
|
4636
|
-
result = true;
|
|
4637
|
-
_context.next = 25;
|
|
4603
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4604
|
+
case 0:
|
|
4605
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4606
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4607
|
+
}))) {
|
|
4608
|
+
_context.next = 3;
|
|
4638
4609
|
break;
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4610
|
+
}
|
|
4611
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4612
|
+
return _context.abrupt("return", false);
|
|
4613
|
+
case 3:
|
|
4614
|
+
if (!(bType == 'spu')) {
|
|
4615
|
+
_context.next = 26;
|
|
4616
|
+
break;
|
|
4617
|
+
}
|
|
4618
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4619
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4620
|
+
}))) {
|
|
4621
|
+
_context.next = 7;
|
|
4622
|
+
break;
|
|
4623
|
+
}
|
|
4624
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4625
|
+
return _context.abrupt("return", false);
|
|
4626
|
+
case 7:
|
|
4627
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4628
|
+
_context.next = 10;
|
|
4629
|
+
break;
|
|
4630
|
+
}
|
|
4631
|
+
antd.message.warning('请先选择颜色!');
|
|
4632
|
+
return _context.abrupt("return", false);
|
|
4633
|
+
case 10:
|
|
4634
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4635
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4636
|
+
}))) {
|
|
4637
|
+
_context.next = 13;
|
|
4638
|
+
break;
|
|
4639
|
+
}
|
|
4640
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4641
|
+
return _context.abrupt("return", false);
|
|
4642
|
+
case 13:
|
|
4643
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4644
|
+
_context.next = 26;
|
|
4645
|
+
break;
|
|
4646
|
+
}
|
|
4647
|
+
result = true;
|
|
4648
|
+
_context.prev = 15;
|
|
4649
|
+
_context.next = 18;
|
|
4650
|
+
return checkSpuMatchCode({
|
|
4651
|
+
skcCode: recordItem[recordKey],
|
|
4652
|
+
matchingCode: changeValue,
|
|
4653
|
+
ext1: recordItem.colorName
|
|
4654
|
+
});
|
|
4655
|
+
case 18:
|
|
4656
|
+
result = _context.sent;
|
|
4657
|
+
result = true;
|
|
4658
|
+
_context.next = 25;
|
|
4659
|
+
break;
|
|
4660
|
+
case 22:
|
|
4661
|
+
_context.prev = 22;
|
|
4662
|
+
_context.t0 = _context["catch"](15);
|
|
4663
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4664
|
+
case 25:
|
|
4665
|
+
return _context.abrupt("return", result);
|
|
4666
|
+
case 26:
|
|
4667
|
+
return _context.abrupt("return", true);
|
|
4668
|
+
case 27:
|
|
4669
|
+
case "end":
|
|
4670
|
+
return _context.stop();
|
|
4651
4671
|
}
|
|
4652
4672
|
}, _callee, null, [[15, 22]]);
|
|
4653
4673
|
}));
|
|
@@ -4839,29 +4859,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4839
4859
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4840
4860
|
var isConformToTheRules, newPopValue;
|
|
4841
4861
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4842
|
-
while (1) {
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4862
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4863
|
+
case 0:
|
|
4864
|
+
_context2.next = 2;
|
|
4865
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4866
|
+
case 2:
|
|
4867
|
+
isConformToTheRules = _context2.sent;
|
|
4868
|
+
if (isConformToTheRules) {
|
|
4869
|
+
record[item.dataIndex] = value;
|
|
4870
|
+
} else {
|
|
4871
|
+
record[item.dataIndex] = null;
|
|
4872
|
+
}
|
|
4873
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4874
|
+
if (innerIndex == index) {
|
|
4875
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4853
4876
|
}
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
setPopValue(newPopValue);
|
|
4861
|
-
case 6:
|
|
4862
|
-
case "end":
|
|
4863
|
-
return _context2.stop();
|
|
4864
|
-
}
|
|
4877
|
+
return i;
|
|
4878
|
+
});
|
|
4879
|
+
setPopValue(newPopValue);
|
|
4880
|
+
case 6:
|
|
4881
|
+
case "end":
|
|
4882
|
+
return _context2.stop();
|
|
4865
4883
|
}
|
|
4866
4884
|
}, _callee2);
|
|
4867
4885
|
}));
|
|
@@ -4893,7 +4911,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4893
4911
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
4894
4912
|
style: {
|
|
4895
4913
|
cursor: 'pointer',
|
|
4896
|
-
color: '#
|
|
4914
|
+
color: '#02B56E'
|
|
4897
4915
|
},
|
|
4898
4916
|
onClick: function onClick() {
|
|
4899
4917
|
deleteRecord(record);
|
|
@@ -4921,94 +4939,95 @@ var AddSelect = function AddSelect(props) {
|
|
|
4921
4939
|
});
|
|
4922
4940
|
}
|
|
4923
4941
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4924
|
-
|
|
4942
|
+
var _loop = function _loop() {
|
|
4925
4943
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4970
|
-
} else {
|
|
4971
|
-
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4972
|
-
}
|
|
4973
|
-
});
|
|
4974
|
-
delete params[key];
|
|
4975
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
4976
|
-
var _dataParams7 = key.split('*');
|
|
4977
|
-
_dataParams7.forEach(function (value, index) {
|
|
4978
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4979
|
-
});
|
|
4980
|
-
delete params[key];
|
|
4981
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4982
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4983
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4984
|
-
if (params[key][0] === 'range') {
|
|
4985
|
-
if (params[key][1][0]) {
|
|
4986
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4987
|
-
}
|
|
4988
|
-
if (params[key][1][1]) {
|
|
4989
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4990
|
-
}
|
|
4944
|
+
var element = params[key];
|
|
4945
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4946
|
+
var dataParams = key.split('*number*');
|
|
4947
|
+
dataParams.forEach(function (value, index) {
|
|
4948
|
+
params[value] = element[index];
|
|
4949
|
+
});
|
|
4950
|
+
delete params[key];
|
|
4951
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4952
|
+
var _dataParams = key.split('*address*');
|
|
4953
|
+
_dataParams.forEach(function (value, index) {
|
|
4954
|
+
params[value] = element.PCDCode[index];
|
|
4955
|
+
});
|
|
4956
|
+
delete params[key];
|
|
4957
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4958
|
+
var _dataParams2 = key.split('*costType*');
|
|
4959
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4960
|
+
params[_dataParams2[0]] = element[1];
|
|
4961
|
+
delete params[key];
|
|
4962
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4963
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4964
|
+
_dataParams3.forEach(function (value, index) {
|
|
4965
|
+
if (index === 0) {
|
|
4966
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4967
|
+
} else {
|
|
4968
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4969
|
+
}
|
|
4970
|
+
});
|
|
4971
|
+
delete params[key];
|
|
4972
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4973
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4974
|
+
if (element) {
|
|
4975
|
+
params[_dataParams4[0]] = 0;
|
|
4976
|
+
}
|
|
4977
|
+
delete params[key];
|
|
4978
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4979
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4980
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4981
|
+
delete params[key];
|
|
4982
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4983
|
+
var _dataParams6 = key.split('*date*');
|
|
4984
|
+
_dataParams6.forEach(function (value, index) {
|
|
4985
|
+
if (index === 0) {
|
|
4986
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4991
4987
|
} else {
|
|
4992
|
-
params[
|
|
4988
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4993
4989
|
}
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4990
|
+
});
|
|
4991
|
+
delete params[key];
|
|
4992
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4993
|
+
var _dataParams7 = key.split('*');
|
|
4994
|
+
_dataParams7.forEach(function (value, index) {
|
|
4995
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4996
|
+
});
|
|
4997
|
+
delete params[key];
|
|
4998
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4999
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
5000
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
5001
|
+
if (params[key][0] === 'range') {
|
|
5002
|
+
if (params[key][1][0]) {
|
|
5003
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
5004
|
+
}
|
|
5005
|
+
if (params[key][1][1]) {
|
|
5006
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
5007
|
+
}
|
|
5008
|
+
} else {
|
|
5009
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4999
5010
|
}
|
|
5000
|
-
|
|
5011
|
+
delete params[key];
|
|
5012
|
+
} else if (Array.isArray(element)) {
|
|
5013
|
+
params[key] = element.join(',');
|
|
5014
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
5015
|
+
delete params[key];
|
|
5016
|
+
}
|
|
5001
5017
|
}
|
|
5018
|
+
};
|
|
5019
|
+
for (var key in params) {
|
|
5020
|
+
_loop();
|
|
5002
5021
|
}
|
|
5003
5022
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
5004
5023
|
pageSize: pageSize,
|
|
5005
5024
|
currentPage: currentPage
|
|
5006
5025
|
}, otherParams), fixedParam), params);
|
|
5007
5026
|
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams))).then(function (result) {
|
|
5008
|
-
var
|
|
5027
|
+
var _result3, _result4;
|
|
5009
5028
|
setFetching(false);
|
|
5010
5029
|
result = result.data;
|
|
5011
|
-
if (((
|
|
5030
|
+
if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
|
|
5012
5031
|
antd.message.error(result.msg);
|
|
5013
5032
|
return;
|
|
5014
5033
|
}
|
|
@@ -5089,65 +5108,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
5089
5108
|
};
|
|
5090
5109
|
|
|
5091
5110
|
React.useEffect(function () {
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
})]).then(function (x) {
|
|
5101
|
-
var searchPosition1 = noUseItemEancode ? 3 : 2;
|
|
5102
|
-
var searchPosition2 = noUseItemEancode ? 4 : 3;
|
|
5103
|
-
formatSource(x, 0, searchPosition1, tableSearchForm, ['id', 'name']);
|
|
5104
|
-
formatTreeDataSource(x, 1, searchPosition2, tableSearchForm);
|
|
5105
|
-
});
|
|
5106
|
-
}
|
|
5107
|
-
if (businessType == 'skc') {
|
|
5108
|
-
Promise.all([loadSelectSource("/items/item/propertyValue/sizeBySkcConfig", {
|
|
5109
|
-
pageSize: 10000,
|
|
5110
|
-
currentPage: 1,
|
|
5111
|
-
type: 2 // 类型:1尺码;2颜色
|
|
5112
|
-
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5113
|
-
pageSize: 5000,
|
|
5114
|
-
currentPage: 1
|
|
5115
|
-
}), loadSelectSource("/items/class/withProperty", {
|
|
5116
|
-
pageSize: 5000,
|
|
5117
|
-
currentPage: 1
|
|
5118
|
-
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
5119
|
-
pageSize: 5000,
|
|
5120
|
-
currentPage: 1,
|
|
5121
|
-
'ctl-withAuth': true
|
|
5122
|
-
})]).then(function (x) {
|
|
5123
|
-
formatSource(x, 0, 3, tableSearchForm, ['value', 'value']);
|
|
5124
|
-
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
5125
|
-
formatSource(x, 2, 5, tableSearchForm, ['id', 'name']);
|
|
5126
|
-
formatSource(x, 3, 6, tableSearchForm, ['id', 'name']);
|
|
5127
|
-
});
|
|
5128
|
-
}
|
|
5129
|
-
if (businessType == 'spu') {
|
|
5130
|
-
Promise.all([loadSelectSource("/user/orgViewNode/listNoPage", {
|
|
5131
|
-
'qp-employeeId-eq': getEmployeeId(),
|
|
5132
|
-
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
5133
|
-
'ctl-withDefaultOrg': true
|
|
5134
|
-
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
5135
|
-
pageSize: 5000,
|
|
5136
|
-
currentPage: 1,
|
|
5137
|
-
'ctl-withAuth': true
|
|
5138
|
-
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5139
|
-
pageSize: 5000,
|
|
5140
|
-
currentPage: 1
|
|
5141
|
-
}), loadSelectSource("/items/class/withProperty", {
|
|
5142
|
-
pageSize: 5000,
|
|
5143
|
-
currentPage: 1
|
|
5144
|
-
})]).then(function (x) {
|
|
5145
|
-
formatSource(x, 0, 2, tableSearchForm, ['targetId', 'name']);
|
|
5146
|
-
formatSource(x, 1, 3, tableSearchForm, ['id', 'name']);
|
|
5147
|
-
formatTreeDataSource(x, 2, 4, tableSearchForm);
|
|
5148
|
-
formatSource(x, 3, 5, tableSearchForm, ['id', 'name']);
|
|
5149
|
-
});
|
|
5150
|
-
}
|
|
5111
|
+
var pList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.promiseLoadList) || [];
|
|
5112
|
+
if (!(pList === null || pList === void 0 ? void 0 : pList.length)) return;
|
|
5113
|
+
var list = pList.map(function (i) {
|
|
5114
|
+
return loadSelectSource(i.url, i.params);
|
|
5115
|
+
});
|
|
5116
|
+
Promise.all(list).then(function (x) {
|
|
5117
|
+
formatFormSourceList(x, pList, tableSearchForm);
|
|
5118
|
+
});
|
|
5151
5119
|
}, [businessType]);
|
|
5152
5120
|
React.useEffect(function () {
|
|
5153
5121
|
if (value) {
|
|
@@ -5337,7 +5305,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5337
5305
|
}
|
|
5338
5306
|
};
|
|
5339
5307
|
var themeColor = {
|
|
5340
|
-
color: '#
|
|
5308
|
+
color: '#02B56E'
|
|
5341
5309
|
};
|
|
5342
5310
|
var formItem = function formItem(list) {
|
|
5343
5311
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
@@ -5428,10 +5396,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
5428
5396
|
setSelectedRowKeys([]);
|
|
5429
5397
|
} else {
|
|
5430
5398
|
setPopValue(popvalue.filter(function (item) {
|
|
5431
|
-
return item
|
|
5399
|
+
return item[selectRowKey] !== record[selectRowKey];
|
|
5432
5400
|
}));
|
|
5433
5401
|
setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
|
|
5434
|
-
return item !== record
|
|
5402
|
+
return item !== record[selectRowKey];
|
|
5435
5403
|
})));
|
|
5436
5404
|
}
|
|
5437
5405
|
};
|
|
@@ -5531,8 +5499,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
5531
5499
|
}, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
5532
5500
|
key: "save-and-continue",
|
|
5533
5501
|
style: {
|
|
5534
|
-
color: '#
|
|
5535
|
-
borderColor: '#
|
|
5502
|
+
color: '#02B56E',
|
|
5503
|
+
borderColor: '#02B56E'
|
|
5536
5504
|
},
|
|
5537
5505
|
onClick: function onClick() {
|
|
5538
5506
|
handleOk(true);
|
|
@@ -5782,7 +5750,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5782
5750
|
var _tableRef$current;
|
|
5783
5751
|
var dom = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0];
|
|
5784
5752
|
if (dom) {
|
|
5785
|
-
dom.style.background = '#
|
|
5753
|
+
dom.style.background = '#02B56E30';
|
|
5786
5754
|
}
|
|
5787
5755
|
}
|
|
5788
5756
|
}, [hoverVisibled, tableRef === null || tableRef === void 0 ? void 0 : tableRef.current]);
|
|
@@ -5832,7 +5800,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5832
5800
|
if (dom) {
|
|
5833
5801
|
tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex].style.background = '';
|
|
5834
5802
|
setSelectIndex(currentIndex + 1);
|
|
5835
|
-
dom.style.background = '#
|
|
5803
|
+
dom.style.background = '#02B56E30';
|
|
5836
5804
|
dom.scrollIntoViewIfNeeded(false);
|
|
5837
5805
|
}
|
|
5838
5806
|
} else if (e.keyCode === 38) {
|
|
@@ -5840,7 +5808,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5840
5808
|
if (_dom) {
|
|
5841
5809
|
tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex].style.background = '';
|
|
5842
5810
|
setSelectIndex(currentIndex - 1);
|
|
5843
|
-
_dom.style.background = '#
|
|
5811
|
+
_dom.style.background = '#02B56E30';
|
|
5844
5812
|
_dom.scrollIntoViewIfNeeded(false);
|
|
5845
5813
|
}
|
|
5846
5814
|
}
|
|
@@ -5853,7 +5821,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5853
5821
|
// body: {
|
|
5854
5822
|
// cell: ({index, record, ...props}) => {
|
|
5855
5823
|
// debugger
|
|
5856
|
-
// return <td {...props} style={selectIndex === record?.index ? {background: '#
|
|
5824
|
+
// return <td {...props} style={selectIndex === record?.index ? {background: '#02B56E30'} : {} } />
|
|
5857
5825
|
// }
|
|
5858
5826
|
// }
|
|
5859
5827
|
// }
|
|
@@ -5866,7 +5834,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5866
5834
|
_toConsumableArray(tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')).map(function (item) {
|
|
5867
5835
|
item.style.background = '';
|
|
5868
5836
|
});
|
|
5869
|
-
dom.style.background = '#
|
|
5837
|
+
dom.style.background = '#02B56E30';
|
|
5870
5838
|
dom.scrollIntoViewIfNeeded(false);
|
|
5871
5839
|
}
|
|
5872
5840
|
setSelectIndex(index);
|
|
@@ -6373,7 +6341,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6373
6341
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6374
6342
|
style: {
|
|
6375
6343
|
cursor: 'pointer',
|
|
6376
|
-
color: '#
|
|
6344
|
+
color: '#02B56E'
|
|
6377
6345
|
},
|
|
6378
6346
|
onClick: function onClick() {
|
|
6379
6347
|
deleteRecord(record);
|
|
@@ -6455,72 +6423,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6455
6423
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6456
6424
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6457
6425
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6458
|
-
while (1) {
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
messageInfo
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
antd.message.success(initSuccessMessage);
|
|
6513
|
-
}
|
|
6426
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6427
|
+
case 0:
|
|
6428
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6429
|
+
_context.next = 3;
|
|
6430
|
+
break;
|
|
6431
|
+
}
|
|
6432
|
+
antd.message.warning('至少录入一条数据');
|
|
6433
|
+
return _context.abrupt("return");
|
|
6434
|
+
case 3:
|
|
6435
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6436
|
+
return d.skuCode && d.name;
|
|
6437
|
+
})) {
|
|
6438
|
+
_context.next = 6;
|
|
6439
|
+
break;
|
|
6440
|
+
}
|
|
6441
|
+
antd.message.warning('请选择商品!');
|
|
6442
|
+
return _context.abrupt("return");
|
|
6443
|
+
case 6:
|
|
6444
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6445
|
+
return d.count;
|
|
6446
|
+
})) {
|
|
6447
|
+
_context.next = 9;
|
|
6448
|
+
break;
|
|
6449
|
+
}
|
|
6450
|
+
antd.message.warning('请填写商品数量!');
|
|
6451
|
+
return _context.abrupt("return");
|
|
6452
|
+
case 9:
|
|
6453
|
+
_context.next = 11;
|
|
6454
|
+
return isSkuCanEntry(data);
|
|
6455
|
+
case 11:
|
|
6456
|
+
canEntryObject = _context.sent;
|
|
6457
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6458
|
+
_context.next = 16;
|
|
6459
|
+
break;
|
|
6460
|
+
}
|
|
6461
|
+
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6462
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6463
|
+
}));
|
|
6464
|
+
messageInfo && antd.message.warning({
|
|
6465
|
+
content: messageInfo,
|
|
6466
|
+
duration: 6
|
|
6467
|
+
});
|
|
6468
|
+
return _context.abrupt("return");
|
|
6469
|
+
case 16:
|
|
6470
|
+
setLoading(true);
|
|
6471
|
+
onSaveCallback(data).then(function (res) {
|
|
6472
|
+
{
|
|
6473
|
+
var _Object$keys;
|
|
6474
|
+
var initSuccessMessage = '保存成功';
|
|
6475
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6476
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6477
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6478
|
+
} else {
|
|
6479
|
+
antd.message.success(initSuccessMessage);
|
|
6514
6480
|
}
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6481
|
+
}
|
|
6482
|
+
setLoading(false);
|
|
6483
|
+
}).catch(function (Error) {
|
|
6484
|
+
antd.message.error(Error);
|
|
6485
|
+
setLoading(false);
|
|
6486
|
+
});
|
|
6487
|
+
case 18:
|
|
6488
|
+
case "end":
|
|
6489
|
+
return _context.stop();
|
|
6524
6490
|
}
|
|
6525
6491
|
}, _callee);
|
|
6526
6492
|
}));
|
|
@@ -8764,9 +8730,16 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
|
|
|
8764
8730
|
// import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
8765
8731
|
function handleSelectColumn(c, parentProps) {
|
|
8766
8732
|
var result = c;
|
|
8733
|
+
var showColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showColumns) || [];
|
|
8767
8734
|
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
8768
8735
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
8769
8736
|
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
|
|
8737
|
+
// 仅展示内容
|
|
8738
|
+
if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
|
|
8739
|
+
result = result.filter(function (i) {
|
|
8740
|
+
return showColumns.includes(i.dataIndex);
|
|
8741
|
+
});
|
|
8742
|
+
}
|
|
8770
8743
|
// 过滤不需要展示内容
|
|
8771
8744
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
8772
8745
|
result = result.filter(function (i) {
|
|
@@ -8785,6 +8758,57 @@ function handleSelectColumn(c, parentProps) {
|
|
|
8785
8758
|
}
|
|
8786
8759
|
return result;
|
|
8787
8760
|
}
|
|
8761
|
+
function handleSearchForm(c, parentProps) {
|
|
8762
|
+
var result = c;
|
|
8763
|
+
var showTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableSearchForm) || [];
|
|
8764
|
+
var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
|
|
8765
|
+
var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
|
|
8766
|
+
// 仅展示内容
|
|
8767
|
+
if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
|
|
8768
|
+
result = result.filter(function (i) {
|
|
8769
|
+
return showTableSearchForm.includes(i.name);
|
|
8770
|
+
});
|
|
8771
|
+
}
|
|
8772
|
+
// 过滤不需要展示内容
|
|
8773
|
+
if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
|
|
8774
|
+
result = result.filter(function (i) {
|
|
8775
|
+
return !exceptTableSearchForm.includes(i.name);
|
|
8776
|
+
});
|
|
8777
|
+
}
|
|
8778
|
+
// 覆盖内容
|
|
8779
|
+
if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
|
|
8780
|
+
result = coverTableSearchForm;
|
|
8781
|
+
}
|
|
8782
|
+
return result;
|
|
8783
|
+
}
|
|
8784
|
+
function handleFormSearchSourceLoad(c, parentProps) {
|
|
8785
|
+
var result = c;
|
|
8786
|
+
var showTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableFormSearchSourceLoad) || [];
|
|
8787
|
+
var exceptTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableFormSearchSourceLoad) || [];
|
|
8788
|
+
var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
|
|
8789
|
+
var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
|
|
8790
|
+
// 仅展示内容
|
|
8791
|
+
if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
|
|
8792
|
+
result = result.filter(function (i) {
|
|
8793
|
+
return showTableFormSearchSourceLoad.includes(i.url);
|
|
8794
|
+
});
|
|
8795
|
+
}
|
|
8796
|
+
// 过滤不需要展示内容
|
|
8797
|
+
if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
|
|
8798
|
+
result = result.filter(function (i) {
|
|
8799
|
+
return !exceptTableFormSearchSourceLoad.includes(i.url);
|
|
8800
|
+
});
|
|
8801
|
+
}
|
|
8802
|
+
// 覆盖内容
|
|
8803
|
+
if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
|
|
8804
|
+
result = coverTableFormSearchSourceLoad;
|
|
8805
|
+
}
|
|
8806
|
+
// 不需要默认请求
|
|
8807
|
+
if (noNeedTableFormSearchSourceLoad) {
|
|
8808
|
+
result = [];
|
|
8809
|
+
}
|
|
8810
|
+
return result;
|
|
8811
|
+
}
|
|
8788
8812
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
8789
8813
|
var _parProps$requestConf, _parProps$requestConf2;
|
|
8790
8814
|
var selectProps = {
|
|
@@ -8891,234 +8915,258 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
8891
8915
|
dataIndex: 'propertyNameAndValue'
|
|
8892
8916
|
}]);
|
|
8893
8917
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
8894
|
-
var
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
otherParams: _objectSpread2({
|
|
8904
|
-
'qp-combination-eq': false,
|
|
8905
|
-
'qp-approveStatus-eq': 1,
|
|
8906
|
-
'qp-status-eq': 1
|
|
8907
|
-
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
|
|
8908
|
-
mappingTextField: 'name',
|
|
8909
|
-
mappingValueField: 'skuCode'
|
|
8910
|
-
}, parProps.requestConfig),
|
|
8911
|
-
selectProps: selectProps,
|
|
8912
|
-
onChange: function onChange(value) {
|
|
8913
|
-
console.log(value);
|
|
8914
|
-
setValue(value);
|
|
8918
|
+
var initialTableColumn = [{
|
|
8919
|
+
title: 'SKU编码',
|
|
8920
|
+
width: 150,
|
|
8921
|
+
dataIndex: 'skuCode'
|
|
8922
|
+
}, {
|
|
8923
|
+
title: 'SKU名称',
|
|
8924
|
+
width: 200,
|
|
8925
|
+
ellipsis: {
|
|
8926
|
+
showTitle: false
|
|
8915
8927
|
},
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
8928
|
+
render: function render(text) {
|
|
8929
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8930
|
+
placement: "topLeft",
|
|
8931
|
+
title: text
|
|
8932
|
+
}, text);
|
|
8933
|
+
},
|
|
8934
|
+
dataIndex: 'name'
|
|
8935
|
+
}, {
|
|
8936
|
+
title: '图片',
|
|
8937
|
+
dataIndex: 'itemUrl',
|
|
8938
|
+
width: 200,
|
|
8939
|
+
ellipsis: {
|
|
8940
|
+
showTitle: false
|
|
8941
|
+
},
|
|
8942
|
+
render: function render(text, record) {
|
|
8943
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8944
|
+
placement: "topLeft",
|
|
8945
|
+
title: text
|
|
8946
|
+
}, tableColumnsImage(getSkuImg(record), {
|
|
8947
|
+
width: 20,
|
|
8948
|
+
height: 20
|
|
8949
|
+
}));
|
|
8950
|
+
}
|
|
8951
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
8952
|
+
title: '商品条码',
|
|
8953
|
+
width: 100,
|
|
8954
|
+
ellipsis: {
|
|
8955
|
+
showTitle: false
|
|
8956
|
+
},
|
|
8957
|
+
dataIndex: 'itemEancode',
|
|
8958
|
+
render: function render(text) {
|
|
8959
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8960
|
+
placement: "topLeft",
|
|
8961
|
+
title: text
|
|
8962
|
+
}, text);
|
|
8963
|
+
}
|
|
8964
|
+
}]), [{
|
|
8965
|
+
title: '所属SPU名称',
|
|
8966
|
+
width: 100,
|
|
8967
|
+
ellipsis: {
|
|
8968
|
+
showTitle: false
|
|
8969
|
+
},
|
|
8970
|
+
dataIndex: 'itemName',
|
|
8971
|
+
render: function render(text) {
|
|
8972
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8973
|
+
placement: "topLeft",
|
|
8974
|
+
title: text
|
|
8975
|
+
}, text);
|
|
8976
|
+
}
|
|
8977
|
+
}, {
|
|
8978
|
+
title: '所属SPU编码',
|
|
8979
|
+
width: 100,
|
|
8980
|
+
ellipsis: {
|
|
8981
|
+
showTitle: false
|
|
8982
|
+
},
|
|
8983
|
+
dataIndex: 'itemCode',
|
|
8984
|
+
render: function render(text) {
|
|
8985
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8986
|
+
placement: "topLeft",
|
|
8987
|
+
title: text
|
|
8988
|
+
}, text);
|
|
8989
|
+
}
|
|
8990
|
+
}, {
|
|
8991
|
+
title: '外部编码',
|
|
8992
|
+
width: 100,
|
|
8993
|
+
ellipsis: {
|
|
8994
|
+
showTitle: false
|
|
8995
|
+
},
|
|
8996
|
+
render: function render(text) {
|
|
8997
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8998
|
+
placement: "topLeft",
|
|
8999
|
+
title: text
|
|
9000
|
+
}, text);
|
|
9001
|
+
},
|
|
9002
|
+
dataIndex: 'externalCode'
|
|
9003
|
+
}, {
|
|
9004
|
+
title: '规格',
|
|
9005
|
+
width: 100,
|
|
9006
|
+
ellipsis: {
|
|
9007
|
+
showTitle: false
|
|
9008
|
+
},
|
|
9009
|
+
render: function render(text) {
|
|
9010
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9011
|
+
placement: "topLeft",
|
|
9012
|
+
title: text
|
|
9013
|
+
}, text);
|
|
9014
|
+
},
|
|
9015
|
+
dataIndex: 'propertyNameAndValue'
|
|
9016
|
+
}, {
|
|
9017
|
+
title: '类目',
|
|
9018
|
+
width: 100,
|
|
9019
|
+
ellipsis: {
|
|
9020
|
+
showTitle: false
|
|
9021
|
+
},
|
|
9022
|
+
render: function render(text) {
|
|
9023
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9024
|
+
placement: "topLeft",
|
|
9025
|
+
title: text
|
|
9026
|
+
}, text);
|
|
9027
|
+
},
|
|
9028
|
+
dataIndex: 'categoryName'
|
|
9029
|
+
}, {
|
|
9030
|
+
title: '品类',
|
|
9031
|
+
width: 100,
|
|
9032
|
+
ellipsis: {
|
|
9033
|
+
showTitle: false
|
|
9034
|
+
},
|
|
9035
|
+
render: function render(text) {
|
|
9036
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9037
|
+
placement: "topLeft",
|
|
9038
|
+
title: text
|
|
9039
|
+
}, text);
|
|
9040
|
+
},
|
|
9041
|
+
dataIndex: 'className'
|
|
9042
|
+
}, {
|
|
9043
|
+
title: '品牌',
|
|
9044
|
+
width: 100,
|
|
9045
|
+
ellipsis: {
|
|
9046
|
+
showTitle: false
|
|
9047
|
+
},
|
|
9048
|
+
render: function render(text) {
|
|
9049
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9050
|
+
placement: "topLeft",
|
|
9051
|
+
title: text
|
|
9052
|
+
}, text);
|
|
9053
|
+
},
|
|
9054
|
+
dataIndex: 'brandName'
|
|
9055
|
+
}]);
|
|
9056
|
+
var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
|
|
9057
|
+
var initialTableSearchForm = [{
|
|
9058
|
+
name: 'qp-skuCode-like',
|
|
9059
|
+
label: 'SKU编码'
|
|
9060
|
+
}, {
|
|
9061
|
+
name: 'qp-skuName-like',
|
|
9062
|
+
label: 'SKU名称'
|
|
9063
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
9064
|
+
name: 'qp-code-in',
|
|
9065
|
+
label: '商品条码',
|
|
9066
|
+
field: {
|
|
9067
|
+
type: 'multipleQueryInput',
|
|
9068
|
+
props: _objectSpread2({}, ((_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.itemEancodeValueRequestConfig) || {})
|
|
9069
|
+
}
|
|
9070
|
+
}]), [{
|
|
9071
|
+
name: 'qp-brandId-in',
|
|
9072
|
+
type: 'select',
|
|
9073
|
+
label: '品牌',
|
|
9074
|
+
field: {
|
|
9075
|
+
type: 'select',
|
|
9076
|
+
props: {
|
|
9077
|
+
mode: 'multiple',
|
|
9078
|
+
notFoundContent: '暂无数据',
|
|
9079
|
+
allowClear: true,
|
|
9080
|
+
showSearch: true,
|
|
9081
|
+
showArrow: true,
|
|
9082
|
+
maxTagCount: 1,
|
|
9083
|
+
optionFilterProp: 'children',
|
|
9084
|
+
filterOption: function filterOption(input, option) {
|
|
9085
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
9086
|
+
}
|
|
9041
9087
|
}
|
|
9042
|
-
}
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9088
|
+
}
|
|
9089
|
+
}, {
|
|
9090
|
+
name: 'qp-categoryId-in',
|
|
9091
|
+
type: 'treeSelect',
|
|
9092
|
+
label: '类目',
|
|
9093
|
+
field: {
|
|
9094
|
+
type: 'treeSelect',
|
|
9095
|
+
props: {
|
|
9096
|
+
treeData: [],
|
|
9097
|
+
treeCheckable: true,
|
|
9098
|
+
showSearch: true,
|
|
9099
|
+
allowClear: true,
|
|
9100
|
+
showArrow: true,
|
|
9101
|
+
treeNodeFilterProp: 'title',
|
|
9102
|
+
treeDefaultExpandAll: true,
|
|
9103
|
+
maxTagCount: 1,
|
|
9104
|
+
placeholder: '请选择',
|
|
9105
|
+
style: {
|
|
9106
|
+
width: '100%'
|
|
9107
|
+
},
|
|
9108
|
+
dropdownStyle: {
|
|
9109
|
+
maxHeight: 400,
|
|
9110
|
+
maxWidth: 100,
|
|
9111
|
+
overflow: 'auto'
|
|
9112
|
+
}
|
|
9054
9113
|
}
|
|
9055
|
-
}
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
},
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
showTitle: false
|
|
9112
|
-
},
|
|
9113
|
-
render: function render(text) {
|
|
9114
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9115
|
-
placement: "topLeft",
|
|
9116
|
-
title: text
|
|
9117
|
-
}, text);
|
|
9118
|
-
},
|
|
9119
|
-
dataIndex: 'brandName'
|
|
9120
|
-
}]),
|
|
9121
|
-
selectColumn: mTpSelectColumn
|
|
9114
|
+
}
|
|
9115
|
+
}], _toConsumableArray((parProps === null || parProps === void 0 ? void 0 : parProps.addTableSearchForm) || []));
|
|
9116
|
+
var mTpTableSearchForm = handleSearchForm(initialTableSearchForm, parProps);
|
|
9117
|
+
var initialPromiseLoadList = [{
|
|
9118
|
+
url: "/items/brand/queryBrandList",
|
|
9119
|
+
params: {
|
|
9120
|
+
pageSize: 5000,
|
|
9121
|
+
currentPage: 1,
|
|
9122
|
+
'ctl-withAuth': true
|
|
9123
|
+
},
|
|
9124
|
+
resType: 'list',
|
|
9125
|
+
resPosition: isNoUseItemBarcode ? 2 : 3,
|
|
9126
|
+
resKeyValue: ['id', 'name']
|
|
9127
|
+
}, {
|
|
9128
|
+
url: "/items/category/queryCategoryTree",
|
|
9129
|
+
params: {
|
|
9130
|
+
pageSize: 5000,
|
|
9131
|
+
currentPage: 1
|
|
9132
|
+
},
|
|
9133
|
+
resType: 'treeList',
|
|
9134
|
+
resPosition: isNoUseItemBarcode ? 3 : 4
|
|
9135
|
+
}];
|
|
9136
|
+
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
9137
|
+
var props = {
|
|
9138
|
+
buttonText: parProps.buttonText || '新增',
|
|
9139
|
+
buttonProps: parProps.buttonProps || {},
|
|
9140
|
+
tableCodeList: parProps.tableCodeList || [],
|
|
9141
|
+
value: value,
|
|
9142
|
+
// labelInValue: true, // 非必填 默认为false
|
|
9143
|
+
requestConfig: _objectSpread2({
|
|
9144
|
+
url: "/items/sku/pager/v2",
|
|
9145
|
+
filter: 'qp-name-like',
|
|
9146
|
+
otherParams: _objectSpread2({
|
|
9147
|
+
'qp-combination-eq': false,
|
|
9148
|
+
'qp-approveStatus-eq': 1,
|
|
9149
|
+
'qp-status-eq': 1
|
|
9150
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
|
|
9151
|
+
mappingTextField: 'name',
|
|
9152
|
+
mappingValueField: 'skuCode'
|
|
9153
|
+
}, parProps.requestConfig),
|
|
9154
|
+
selectProps: selectProps,
|
|
9155
|
+
onChange: function onChange(value) {
|
|
9156
|
+
console.log(value);
|
|
9157
|
+
setValue(value);
|
|
9158
|
+
},
|
|
9159
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
9160
|
+
onSaveCallback: parProps.onSaveCallback,
|
|
9161
|
+
businessType: 'sku',
|
|
9162
|
+
isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
|
|
9163
|
+
};
|
|
9164
|
+
var modalTableProps = {
|
|
9165
|
+
modalTableTitle: '选择商品',
|
|
9166
|
+
tableSearchForm: mTpTableSearchForm,
|
|
9167
|
+
tableColumns: mTpTableColumn,
|
|
9168
|
+
selectColumn: mTpSelectColumn,
|
|
9169
|
+
promiseLoadList: mTpPromiseLoadList
|
|
9122
9170
|
};
|
|
9123
9171
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9124
9172
|
modalTableProps: modalTableProps
|
|
@@ -9194,6 +9242,45 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9194
9242
|
dataIndex: 'count'
|
|
9195
9243
|
}];
|
|
9196
9244
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
9245
|
+
var initialPromiseLoadList = [{
|
|
9246
|
+
url: "/items/item/propertyValue/sizeBySkcConfig",
|
|
9247
|
+
params: {
|
|
9248
|
+
pageSize: 10000,
|
|
9249
|
+
currentPage: 1,
|
|
9250
|
+
type: 2 // 类型:1尺码;2颜色
|
|
9251
|
+
},
|
|
9252
|
+
|
|
9253
|
+
resType: 'list',
|
|
9254
|
+
resPosition: 3,
|
|
9255
|
+
resKeyValue: ['value', 'value']
|
|
9256
|
+
}, {
|
|
9257
|
+
url: "/items/category/queryCategoryTree",
|
|
9258
|
+
params: {
|
|
9259
|
+
pageSize: 5000,
|
|
9260
|
+
currentPage: 1
|
|
9261
|
+
},
|
|
9262
|
+
resType: 'treeList',
|
|
9263
|
+
resPosition: 4
|
|
9264
|
+
}, {
|
|
9265
|
+
url: "/items/class/withProperty",
|
|
9266
|
+
params: {
|
|
9267
|
+
pageSize: 5000,
|
|
9268
|
+
currentPage: 1
|
|
9269
|
+
},
|
|
9270
|
+
resType: 'list',
|
|
9271
|
+
resPosition: 5,
|
|
9272
|
+
resKeyValue: ['id', 'name']
|
|
9273
|
+
}, {
|
|
9274
|
+
url: "/items/brand/queryBrandList",
|
|
9275
|
+
params: {
|
|
9276
|
+
pageSize: 5000,
|
|
9277
|
+
currentPage: 1,
|
|
9278
|
+
'ctl-withAuth': true
|
|
9279
|
+
},
|
|
9280
|
+
resType: 'list',
|
|
9281
|
+
resPosition: 6,
|
|
9282
|
+
resKeyValue: ['id', 'name']
|
|
9283
|
+
}];
|
|
9197
9284
|
var props = {
|
|
9198
9285
|
buttonText: parProps.buttonText || '新增',
|
|
9199
9286
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9398,7 +9485,8 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9398
9485
|
},
|
|
9399
9486
|
dataIndex: 'brandName'
|
|
9400
9487
|
}],
|
|
9401
|
-
selectColumn: mTpSelectColumn
|
|
9488
|
+
selectColumn: mTpSelectColumn,
|
|
9489
|
+
promiseLoadList: initialPromiseLoadList
|
|
9402
9490
|
};
|
|
9403
9491
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9404
9492
|
modalTableProps: modalTableProps
|
|
@@ -9483,6 +9571,44 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9483
9571
|
dataIndex: 'className'
|
|
9484
9572
|
}];
|
|
9485
9573
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
9574
|
+
var initialPromiseLoadList = [{
|
|
9575
|
+
url: "/user/orgViewNode/listNoPage",
|
|
9576
|
+
params: {
|
|
9577
|
+
'qp-employeeId-eq': getEmployeeId(),
|
|
9578
|
+
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
9579
|
+
'ctl-withDefaultOrg': true
|
|
9580
|
+
},
|
|
9581
|
+
resType: 'list',
|
|
9582
|
+
resPosition: 2,
|
|
9583
|
+
resKeyValue: ['targetId', 'name']
|
|
9584
|
+
}, {
|
|
9585
|
+
url: "/items/brand/queryBrandList",
|
|
9586
|
+
params: {
|
|
9587
|
+
pageSize: 5000,
|
|
9588
|
+
currentPage: 1,
|
|
9589
|
+
'ctl-withAuth': true
|
|
9590
|
+
},
|
|
9591
|
+
resType: 'list',
|
|
9592
|
+
resPosition: 3,
|
|
9593
|
+
resKeyValue: ['id', 'name']
|
|
9594
|
+
}, {
|
|
9595
|
+
url: "/items/category/queryCategoryTree",
|
|
9596
|
+
params: {
|
|
9597
|
+
pageSize: 5000,
|
|
9598
|
+
currentPage: 1
|
|
9599
|
+
},
|
|
9600
|
+
resType: 'treeList',
|
|
9601
|
+
resPosition: 4
|
|
9602
|
+
}, {
|
|
9603
|
+
url: "/items/class/withProperty",
|
|
9604
|
+
params: {
|
|
9605
|
+
pageSize: 5000,
|
|
9606
|
+
currentPage: 1
|
|
9607
|
+
},
|
|
9608
|
+
resType: 'list',
|
|
9609
|
+
resPosition: 5,
|
|
9610
|
+
resKeyValue: ['id', 'name']
|
|
9611
|
+
}];
|
|
9486
9612
|
var props = {
|
|
9487
9613
|
buttonText: parProps.buttonText || '新增',
|
|
9488
9614
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9672,7 +9798,8 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9672
9798
|
},
|
|
9673
9799
|
dataIndex: 'className'
|
|
9674
9800
|
}],
|
|
9675
|
-
selectColumn: mTpSelectColumn
|
|
9801
|
+
selectColumn: mTpSelectColumn,
|
|
9802
|
+
promiseLoadList: initialPromiseLoadList
|
|
9676
9803
|
};
|
|
9677
9804
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9678
9805
|
modalTableProps: modalTableProps
|
|
@@ -9764,7 +9891,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9764
9891
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9765
9892
|
* @LastEditors: rodchen
|
|
9766
9893
|
*/
|
|
9767
|
-
var index$
|
|
9894
|
+
var index$2 = (function (storageKeyString) {
|
|
9768
9895
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9769
9896
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9770
9897
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9891,44 +10018,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9891
10018
|
var _ctx$form;
|
|
9892
10019
|
var resData, coverData, data, dataList;
|
|
9893
10020
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9894
|
-
while (1) {
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
_context.next = 13;
|
|
9900
|
-
break;
|
|
9901
|
-
}
|
|
9902
|
-
data = resData.data;
|
|
9903
|
-
if (!remoteSource.converter) {
|
|
9904
|
-
_context.next = 9;
|
|
9905
|
-
break;
|
|
9906
|
-
}
|
|
9907
|
-
_context.next = 6;
|
|
9908
|
-
return remoteSource.converter({
|
|
9909
|
-
data: [data]
|
|
9910
|
-
});
|
|
9911
|
-
case 6:
|
|
9912
|
-
coverData = _context.sent;
|
|
9913
|
-
_context.next = 11;
|
|
10021
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10022
|
+
case 0:
|
|
10023
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
10024
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
10025
|
+
_context.next = 13;
|
|
9914
10026
|
break;
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
}) || [];
|
|
9920
|
-
case 11:
|
|
9921
|
-
_context.next = 14;
|
|
10027
|
+
}
|
|
10028
|
+
data = resData.data;
|
|
10029
|
+
if (!remoteSource.converter) {
|
|
10030
|
+
_context.next = 9;
|
|
9922
10031
|
break;
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
10032
|
+
}
|
|
10033
|
+
_context.next = 6;
|
|
10034
|
+
return remoteSource.converter({
|
|
10035
|
+
data: [data]
|
|
10036
|
+
});
|
|
10037
|
+
case 6:
|
|
10038
|
+
coverData = _context.sent;
|
|
10039
|
+
_context.next = 11;
|
|
10040
|
+
break;
|
|
10041
|
+
case 9:
|
|
10042
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
10043
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
10044
|
+
return mapSearchTree(ites);
|
|
10045
|
+
}) || [];
|
|
10046
|
+
case 11:
|
|
10047
|
+
_context.next = 14;
|
|
10048
|
+
break;
|
|
10049
|
+
case 13:
|
|
10050
|
+
coverData = [];
|
|
10051
|
+
case 14:
|
|
10052
|
+
setTreeData(coverData);
|
|
10053
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
10054
|
+
case 16:
|
|
10055
|
+
case "end":
|
|
10056
|
+
return _context.stop();
|
|
9932
10057
|
}
|
|
9933
10058
|
}, _callee);
|
|
9934
10059
|
}));
|
|
@@ -10175,10 +10300,10 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
10175
10300
|
return true;
|
|
10176
10301
|
});
|
|
10177
10302
|
|
|
10178
|
-
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #
|
|
10303
|
+
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #02B56E;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #02B56E;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #02B56E;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
10179
10304
|
styleInject(css_248z$8);
|
|
10180
10305
|
|
|
10181
|
-
var index$
|
|
10306
|
+
var index$3 = (function (props) {
|
|
10182
10307
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
10183
10308
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
10184
10309
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -10218,7 +10343,7 @@ var label_icon_bottom = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20en
|
|
|
10218
10343
|
|
|
10219
10344
|
var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAuBJREFUaEPtl0urjlEUx3/HXUkpErkkJAYoGbhkJB2SW2IgBibKVL6Cz2BgQMqAXCKXiHIGBhiIDJEJyjXlfu2vtWp36nj2fvZ+HG/tXW/n7bz7Wft/WXut9fTR46uvx/FTCQy3g9WB6kCmAjWFMgXMfrw6kC1hZoDqQKaA2Y//Cwd0xq9spEME6JLACOCnnRt+L8qlKwIOeDT8GRi/Ap2Q6ILASOAHsAo4DEwGDgAnAP+tmAulCTjANcBpA6/812e3kRgFfC/FoCQBByblzxl4Tx399hnYA5wq6UQpAq78ClN+mqWR/q+llNL3T8BO4AJQxIkSBBz8cgM2FfgCjAXOAC+A/cA3QJf6vZG4UoJELgEHvww4C8wMgF40oB+BI8Bey30p/xbYDtzITaccAg5+CXAJmB4oL3UF8IMBVD84DuwK9rwCNgO3cki0JeDgF9uFnRMof83AK1VU+7VEYBxwDNgR7H0GbAVutyXRhoCDXwhcBmYHql4HtlmeD+7EKqW6A6pCm4JnRGI9cL8NiVQCDn6RKT/fuuwY4CawBXg3BBAnNAE4aaD9Yj+ydHqYSiKFgIOfByjH5wYqDlgqvGkYGZzERCu3a4MYIrEOeJxCIpaAT5RSXE1KDqhJSXldQqXE68iDXYhJwHlgdRDrgTnxxGaoxik2hoCrNgu4CiwIVBN4pc3LxGHNY04xQVYGMXUX+oHnMTFjCPjYouoiyzUSqKLcBTYY+DZd1Z1Q41NKLg1iq4dsjJmXmgh46owHngJSTOuOKa8KkjMmh+4qndRTtHSXZtjo8dcXoiYCCuYB1IQOAfeAfTYitFF+sLDuhMrxUXPioHXvxre5GALhgarjGszUmBqDx6SA7fFYEkSENEtFrRQCfoj+6uOvi1EHRWxyLKo80eKkEIjAUGRLNHjP7yKnDleQ/9GBJC0qgSS5OthcHehA1KSQ1YEkuTrYXB3oQNSkkNWBJLk62NzzDvwGGnWoMahVpG4AAAAASUVORK5CYII=";
|
|
10220
10345
|
|
|
10221
|
-
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #
|
|
10346
|
+
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #494B4A;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #02B56E;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
|
|
10222
10347
|
styleInject(css_248z$9);
|
|
10223
10348
|
|
|
10224
10349
|
var _excluded$6 = ["children"],
|
|
@@ -10405,15 +10530,17 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
10405
10530
|
};
|
|
10406
10531
|
});
|
|
10407
10532
|
axios__default['default']({
|
|
10408
|
-
url: '/user/appConfig/saveUserOrder',
|
|
10533
|
+
// url: '/user/appConfig/saveUserOrder',
|
|
10534
|
+
url: '/api/mallops/appConfig/saveUserOrder',
|
|
10409
10535
|
method: 'POST',
|
|
10410
10536
|
data: {
|
|
10411
10537
|
"code": tableCode,
|
|
10412
10538
|
"detail": JSON.stringify(configvalue)
|
|
10413
10539
|
}
|
|
10414
10540
|
}).then(function (res) {
|
|
10415
|
-
var _res$data;
|
|
10416
|
-
if (
|
|
10541
|
+
var _res$data, _res$data2;
|
|
10542
|
+
// if (res?.data?.status === '0') {
|
|
10543
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0' || (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.code) == '000000') {
|
|
10417
10544
|
_this.patchConfigToLocalstorage(configvalue, tableCode);
|
|
10418
10545
|
} else {
|
|
10419
10546
|
antd.message.error('保存表头列自定义失败,请稍后尝试');
|
|
@@ -11543,7 +11670,7 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
11543
11670
|
return routerMap;
|
|
11544
11671
|
};
|
|
11545
11672
|
|
|
11546
|
-
var css_248z$b = ".detail_page_head {\n height: 54px;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.back_home_img_content {\n display: inline-block;\n height: 28px;\n width: 28px;\n border: 1px solid #BABABA;\n margin: 0 12px 0 20px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #
|
|
11673
|
+
var css_248z$b = ".detail_page_head {\n height: 54px;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.back_home_img_content {\n display: inline-block;\n height: 28px;\n width: 28px;\n border: 1px solid #BABABA;\n margin: 0 12px 0 20px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #02B56E;\n border: 1px solid #02B56E;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 16px;\n margin-top: 2px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 32px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
|
|
11547
11674
|
styleInject(css_248z$b);
|
|
11548
11675
|
|
|
11549
11676
|
var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -11576,7 +11703,7 @@ var CommonAlert = (function (props) {
|
|
|
11576
11703
|
className: 'common_Alert'
|
|
11577
11704
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Alert, _objectSpread2({
|
|
11578
11705
|
style: {
|
|
11579
|
-
borderColor: '#
|
|
11706
|
+
borderColor: '#02B56E',
|
|
11580
11707
|
background: '#e5eeff',
|
|
11581
11708
|
borderRadius: '4px'
|
|
11582
11709
|
},
|
|
@@ -11602,7 +11729,7 @@ var iconMap = {
|
|
|
11602
11729
|
src: moreIcon
|
|
11603
11730
|
})
|
|
11604
11731
|
};
|
|
11605
|
-
var index$
|
|
11732
|
+
var index$4 = (function (props) {
|
|
11606
11733
|
var _useLocation = umi.useLocation(),
|
|
11607
11734
|
pathname = _useLocation.pathname;
|
|
11608
11735
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -11819,7 +11946,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11819
11946
|
styleInject(css_248z$d);
|
|
11820
11947
|
|
|
11821
11948
|
var _excluded$c = ["children"];
|
|
11822
|
-
var index$
|
|
11949
|
+
var index$5 = (function (props) {
|
|
11823
11950
|
var _useLocation = umi.useLocation(),
|
|
11824
11951
|
pathname = _useLocation.pathname;
|
|
11825
11952
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -11976,15 +12103,17 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
11976
12103
|
}) : '';
|
|
11977
12104
|
return new Promise(function (resolve, reject) {
|
|
11978
12105
|
axios__default['default']({
|
|
11979
|
-
url: '/user/appConfig/saveUserOrder',
|
|
12106
|
+
// url: '/user/appConfig/saveUserOrder',
|
|
12107
|
+
url: '/api/mallops/appConfig/saveUserOrder',
|
|
11980
12108
|
method: 'POST',
|
|
11981
12109
|
data: {
|
|
11982
12110
|
code: that.state.bsTableCode,
|
|
11983
12111
|
detail: configvalue ? JSON.stringify(configvalue) : ''
|
|
11984
12112
|
}
|
|
11985
12113
|
}).then(function (res) {
|
|
11986
|
-
var _res$data;
|
|
11987
|
-
if (
|
|
12114
|
+
var _res$data, _res$data2;
|
|
12115
|
+
// if (res?.data?.status === '0') {
|
|
12116
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0' || (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.code) == '000000') {
|
|
11988
12117
|
_this.patchConfigToLocalstorage(configvalue);
|
|
11989
12118
|
resolve({
|
|
11990
12119
|
status: '0'
|
|
@@ -12724,15 +12853,16 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12724
12853
|
};
|
|
12725
12854
|
}) : '';
|
|
12726
12855
|
axios__default['default']({
|
|
12727
|
-
url: '/user/appConfig/saveQueryCriteria',
|
|
12856
|
+
// url: '/user/appConfig/saveQueryCriteria',
|
|
12857
|
+
url: '/api/mallops/appConfig/saveQueryCriteria',
|
|
12728
12858
|
method: 'POST',
|
|
12729
12859
|
data: {
|
|
12730
12860
|
code: that.state.bsTableCode,
|
|
12731
12861
|
detail: configvalue ? JSON.stringify(configvalue) : ''
|
|
12732
12862
|
}
|
|
12733
12863
|
}).then(function (res) {
|
|
12734
|
-
var _res$data;
|
|
12735
|
-
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0') {
|
|
12864
|
+
var _res$data, _res$data2;
|
|
12865
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0' || (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.code) == '000000') {
|
|
12736
12866
|
_this.patchConfigToLocalstorage(configvalue);
|
|
12737
12867
|
} else {
|
|
12738
12868
|
antd.message.error('保存搜索项自定义失败,请稍后尝试');
|
|
@@ -13319,12 +13449,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13319
13449
|
setCommonRenderFn(props.columns);
|
|
13320
13450
|
var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
|
|
13321
13451
|
Object.keys(resourceCodeArray).forEach(function (item) {
|
|
13322
|
-
var Item = item;
|
|
13323
|
-
if (Number(item.slice(-1)) >= 1) {
|
|
13324
|
-
Item = item.substr(0, item.length - 1);
|
|
13325
|
-
}
|
|
13326
13452
|
if (!authButton.filter(function (itemInner) {
|
|
13327
|
-
return
|
|
13453
|
+
return item === itemInner;
|
|
13328
13454
|
}).length) {
|
|
13329
13455
|
resourceCodeArray[item].visible = false;
|
|
13330
13456
|
}
|
|
@@ -13646,7 +13772,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13646
13772
|
}));
|
|
13647
13773
|
});
|
|
13648
13774
|
|
|
13649
|
-
var css_248z$f = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
13775
|
+
var css_248z$f = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #02B56E;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #02B56E;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
|
|
13650
13776
|
styleInject(css_248z$f);
|
|
13651
13777
|
|
|
13652
13778
|
var cache = {};
|
|
@@ -13902,7 +14028,7 @@ var AllFunc = function AllFunc(props) {
|
|
|
13902
14028
|
})))));
|
|
13903
14029
|
};
|
|
13904
14030
|
|
|
13905
|
-
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
14031
|
+
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
|
|
13906
14032
|
styleInject(css_248z$g);
|
|
13907
14033
|
|
|
13908
14034
|
var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -14010,7 +14136,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
14010
14136
|
return /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
14011
14137
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
14012
14138
|
style: {
|
|
14013
|
-
color: '#
|
|
14139
|
+
color: '#02B56E'
|
|
14014
14140
|
},
|
|
14015
14141
|
header: /*#__PURE__*/React__default['default'].createElement("b", null, umi.formatMessage({
|
|
14016
14142
|
id: "".concat(item.name)
|
|
@@ -14102,7 +14228,7 @@ var AllFunc$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14102
14228
|
})));
|
|
14103
14229
|
});
|
|
14104
14230
|
|
|
14105
|
-
var css_248z$h = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #
|
|
14231
|
+
var css_248z$h = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
|
|
14106
14232
|
styleInject(css_248z$h);
|
|
14107
14233
|
|
|
14108
14234
|
var Morentouxiang = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2240px%22%20viewBox%3D%220%200%2040%2040%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E32%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22path-1%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2213%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%3Cfilter%20x%3D%22-40.4%25%22%20y%3D%22-40.4%25%22%20width%3D%22180.8%25%22%20height%3D%22180.8%25%22%20filterUnits%3D%22objectBoundingBox%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeOffset%20dx%3D%220%22%20dy%3D%220%22%20in%3D%22SourceAlpha%22%20result%3D%22shadowOffsetOuter1%22%3E%3C%2FfeOffset%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeGaussianBlur%20stdDeviation%3D%223.5%22%20in%3D%22shadowOffsetOuter1%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeGaussianBlur%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeComposite%20in%3D%22shadowBlurOuter1%22%20in2%3D%22SourceAlpha%22%20operator%3D%22out%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeComposite%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20values%3D%220%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%200%200%200%201%200%22%20type%3D%22matrix%22%20in%3D%22shadowBlurOuter1%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22-----6.1-%E9%BB%98%E8%AE%A4%E5%9B%BE%E7%89%87%2F-Default-picture%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22B-Design-%E4%BD%93%E9%AA%8C%E8%A7%84%E8%8C%83%22%20transform%3D%22translate%28-1119.000000%2C%20-988.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%2232%22%20transform%3D%22translate%281126.000000%2C%20995.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%9C%86%E5%BD%A2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20fill%3D%22black%22%20fill-opacity%3D%221%22%20filter%3D%22url%28%23filter-2%29%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%220.8328125%22%20stroke-linejoin%3D%22square%22%20fill%3D%22%23EDF4FF%22%20fill-rule%3D%22evenodd%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2212.5835938%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.644709%2C13.6190476%20L18.9119048%2C15.0892857%20L18.9119048%2C19.5%20L7.15%2C19.5%20L7.15%2C15.0892857%20L10.4171958%2C13.6190476%20L15.644709%2C13.6190476%20Z%20M16.1261905%2C16.4047619%20L13.65%2C16.4047619%20L13.65%2C17.6428571%20L16.1261905%2C17.6428571%20L16.1261905%2C16.4047619%20Z%20M13.1857143%2C6.5%20C14.9806397%2C6.5%2016.4357143%2C7.95507456%2016.4357143%2C9.75%20C16.4357143%2C11.5449254%2014.9806397%2C13%2013.1857143%2C13%20C11.3907888%2C13%209.93571429%2C11.5449254%209.93571429%2C9.75%20C9.93571429%2C7.95507456%2011.3907888%2C6.5%2013.1857143%2C6.5%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%239AC4FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -14118,21 +14244,19 @@ function _outLogin() {
|
|
|
14118
14244
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14119
14245
|
var res;
|
|
14120
14246
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14121
|
-
while (1) {
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
return _context.stop();
|
|
14135
|
-
}
|
|
14247
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14248
|
+
case 0:
|
|
14249
|
+
_context.next = 2;
|
|
14250
|
+
return axios__default['default']({
|
|
14251
|
+
url: '/user/web/loginOut',
|
|
14252
|
+
method: 'GET'
|
|
14253
|
+
});
|
|
14254
|
+
case 2:
|
|
14255
|
+
res = _context.sent;
|
|
14256
|
+
return _context.abrupt("return", res);
|
|
14257
|
+
case 4:
|
|
14258
|
+
case "end":
|
|
14259
|
+
return _context.stop();
|
|
14136
14260
|
}
|
|
14137
14261
|
}, _callee);
|
|
14138
14262
|
}));
|
|
@@ -14261,31 +14385,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14261
14385
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14262
14386
|
var sessionId;
|
|
14263
14387
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14264
|
-
while (1) {
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14388
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14389
|
+
case 0:
|
|
14390
|
+
_context.next = 2;
|
|
14391
|
+
return getSessionId();
|
|
14392
|
+
case 2:
|
|
14393
|
+
sessionId = _context.sent;
|
|
14394
|
+
_context.next = 5;
|
|
14395
|
+
return outLogin({
|
|
14396
|
+
sessionId: sessionId
|
|
14397
|
+
});
|
|
14398
|
+
case 5:
|
|
14399
|
+
// @ts-ignore
|
|
14400
|
+
if (BUILD_TYPE) {
|
|
14401
|
+
antd.message.success('退出登录成功');
|
|
14402
|
+
umi.history.replace({
|
|
14403
|
+
pathname: '/user/login'
|
|
14274
14404
|
});
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
});
|
|
14282
|
-
} else {
|
|
14283
|
-
setLoginOutPath();
|
|
14284
|
-
}
|
|
14285
|
-
case 6:
|
|
14286
|
-
case "end":
|
|
14287
|
-
return _context.stop();
|
|
14288
|
-
}
|
|
14405
|
+
} else {
|
|
14406
|
+
setLoginOutPath();
|
|
14407
|
+
}
|
|
14408
|
+
case 6:
|
|
14409
|
+
case "end":
|
|
14410
|
+
return _context.stop();
|
|
14289
14411
|
}
|
|
14290
14412
|
}, _callee);
|
|
14291
14413
|
}));
|
|
@@ -14354,7 +14476,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14354
14476
|
}))))), loginModalParams.visible && /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams)));
|
|
14355
14477
|
};
|
|
14356
14478
|
|
|
14357
|
-
var css_248z$i = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #
|
|
14479
|
+
var css_248z$i = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #02B56E;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
|
|
14358
14480
|
styleInject(css_248z$i);
|
|
14359
14481
|
|
|
14360
14482
|
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
@@ -14431,7 +14553,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
14431
14553
|
var afterStr = newName.substr(index + keyWord.length);
|
|
14432
14554
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14433
14555
|
style: {
|
|
14434
|
-
color: '#
|
|
14556
|
+
color: '#02B56E'
|
|
14435
14557
|
}
|
|
14436
14558
|
}, keyWord), /*#__PURE__*/React__default['default'].createElement("span", null, afterStr));
|
|
14437
14559
|
}
|
|
@@ -15139,7 +15261,7 @@ var MenuSetting = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15139
15261
|
}));
|
|
15140
15262
|
});
|
|
15141
15263
|
|
|
15142
|
-
var css_248z$k = ".customer_menu_content {\n color: #b1bad4;\n background: #
|
|
15264
|
+
var css_248z$k = ".customer_menu_content {\n color: #b1bad4;\n background: #494B4A;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 45px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.customer_menu_content .ant-drawer-body {\n padding: 10px !important;\n}\n.menu_drawer_header_warp .ant-drawer-body {\n background-color: #F8F9FA;\n padding: 10px 0 0 0 !important;\n}\n.menu_title_line {\n font-size: 16px;\n font-weight: bold;\n color: #b1bad4;\n text-align: center;\n margin-bottom: 10px;\n}\n.menu_item {\n line-height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #E4E7ED;\n cursor: pointer;\n}\n.header_style {\n height: 50px;\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n display: flex;\n align-items: center;\n background-color: #ffffff;\n}\n.global_menu_draw .ant-drawer-body {\n padding: 10px !important;\n}\n";
|
|
15143
15265
|
styleInject(css_248z$k);
|
|
15144
15266
|
|
|
15145
15267
|
var CustomerMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -15276,7 +15398,7 @@ var CustomerMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15276
15398
|
})));
|
|
15277
15399
|
});
|
|
15278
15400
|
|
|
15279
|
-
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
15401
|
+
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #02B56E !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #02B56E;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #02B56E;\n}\n";
|
|
15280
15402
|
styleInject(css_248z$l);
|
|
15281
15403
|
|
|
15282
15404
|
var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
|
|
@@ -15441,8 +15563,8 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
15441
15563
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15442
15564
|
className: 'left_item',
|
|
15443
15565
|
style: {
|
|
15444
|
-
borderLeft: currentOneLevel === item.path ? '2px solid #
|
|
15445
|
-
color: currentOneLevel === item.path ? '#
|
|
15566
|
+
borderLeft: currentOneLevel === item.path ? '2px solid #02B56E' : 'none',
|
|
15567
|
+
color: currentOneLevel === item.path ? '#02B56E' : '#000000'
|
|
15446
15568
|
},
|
|
15447
15569
|
onClick: function onClick(e) {
|
|
15448
15570
|
e.stopPropagation();
|
|
@@ -15568,7 +15690,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
15568
15690
|
className: "allFunsList allFunsListWarp ".concat(currentOneLevel === item.path ? 'choosedStyle' : ''),
|
|
15569
15691
|
id: item.path,
|
|
15570
15692
|
style: {
|
|
15571
|
-
color: currentOneLevel === item.path ? '#fff' : '#
|
|
15693
|
+
color: currentOneLevel === item.path ? '#fff' : '#02B56E'
|
|
15572
15694
|
},
|
|
15573
15695
|
header: /*#__PURE__*/React__default['default'].createElement("b", null, umi.formatMessage({
|
|
15574
15696
|
id: "".concat(item.name)
|
|
@@ -15600,7 +15722,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
15600
15722
|
}, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u4E0B\u6ED1\u52A0\u8F7D\u66F4\u591A"))))));
|
|
15601
15723
|
};
|
|
15602
15724
|
|
|
15603
|
-
var caidan = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2248px%22%20height%3D%2248px%22%20viewBox%3D%220%200%2048%2048%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-20.000000%2C%20-19.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%2820.000000%2C%2019.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%
|
|
15725
|
+
var caidan = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2248px%22%20height%3D%2248px%22%20viewBox%3D%220%200%2048%2048%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-20.000000%2C%20-19.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%2820.000000%2C%2019.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%2302B56E%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2248%22%20height%3D%2248%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M34.4%2C30.5%20L34.4%2C33.1%20L13.6%2C33.1%20L13.6%2C30.5%20L34.4%2C30.5%20Z%20M34.4%2C22.7%20L34.4%2C25.3%20L13.6%2C25.3%20L13.6%2C22.7%20L34.4%2C22.7%20Z%20M34.4%2C14.9%20L34.4%2C17.5%20L13.6%2C17.5%20L13.6%2C14.9%20L34.4%2C14.9%20Z%22%20id%3D%22nav-line-%E5%AF%BC%E8%88%AA%E5%85%A5%E5%8F%A3%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15604
15726
|
|
|
15605
15727
|
var guanbi = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2249px%22%20height%3D%2249px%22%20viewBox%3D%220%200%2049%2049%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%402x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%28-327.000000%2C%20-7295.000000%29%22%20fill%3D%22%23FFFFFF%22%20id%3D%22%E7%BC%96%E7%BB%84-19%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%28201.125000%2C%206939.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-12%22%20transform%3D%22translate%28120.750000%2C%20350.500000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%285.125000%2C%205.500000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20opacity%3D%220%22%20x%3D%220.875%22%20y%3D%220.5%22%20width%3D%2248%22%20height%3D%2248%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill-rule%3D%22nonzero%22%20points%3D%2216.1903531%2014.2124746%2014.6278957%2015.7683177%2023.3198919%2024.5%2014.6278957%2033.2316823%2016.1903531%2034.7875254%2024.875%2026.0624574%2033.5596469%2034.7875254%2035.1221043%2033.2316823%2026.4308431%2024.5007349%2035.1221043%2015.7683177%2033.5596469%2014.2124746%2024.875%2022.9368077%2016.1903531%2014.2132096%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15606
15728
|
|
|
@@ -15692,7 +15814,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
15692
15814
|
})));
|
|
15693
15815
|
};
|
|
15694
15816
|
|
|
15695
|
-
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #
|
|
15817
|
+
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #494B4A;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #02B56E;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
|
|
15696
15818
|
styleInject(css_248z$m);
|
|
15697
15819
|
|
|
15698
15820
|
var _excluded$g = ["route"];
|
|
@@ -16113,6 +16235,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16113
16235
|
showSubMenu: isShow
|
|
16114
16236
|
});
|
|
16115
16237
|
}, 500);
|
|
16238
|
+
//设置tabs标签左右滚动
|
|
16116
16239
|
_this.setTabNavTransLate = function (num) {
|
|
16117
16240
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
16118
16241
|
var globalTabsNav = (_document$getElementB = document.getElementById('globalTabs')) === null || _document$getElementB === void 0 ? void 0 : (_document$getElementB2 = _document$getElementB.getElementsByClassName('ant-tabs-nav-list')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2[0];
|
|
@@ -16793,14 +16916,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16793
16916
|
request: function () {
|
|
16794
16917
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16795
16918
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16796
|
-
while (1) {
|
|
16797
|
-
|
|
16798
|
-
|
|
16799
|
-
|
|
16800
|
-
|
|
16801
|
-
|
|
16802
|
-
return _context.stop();
|
|
16803
|
-
}
|
|
16919
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16920
|
+
case 0:
|
|
16921
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16922
|
+
case 1:
|
|
16923
|
+
case "end":
|
|
16924
|
+
return _context.stop();
|
|
16804
16925
|
}
|
|
16805
16926
|
}, _callee);
|
|
16806
16927
|
}));
|
|
@@ -16938,7 +17059,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16938
17059
|
}]);
|
|
16939
17060
|
return WrapperComponent;
|
|
16940
17061
|
}(React__default['default'].Component);
|
|
16941
|
-
var index$
|
|
17062
|
+
var index$6 = (function (props) {
|
|
16942
17063
|
var _useModel = umi.useModel('@@initialState'),
|
|
16943
17064
|
_useModel$initialStat = _useModel.initialState,
|
|
16944
17065
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -17180,7 +17301,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
17180
17301
|
};
|
|
17181
17302
|
var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
|
|
17182
17303
|
|
|
17183
|
-
var index$
|
|
17304
|
+
var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
17184
17305
|
var _useState = React.useState(false),
|
|
17185
17306
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17186
17307
|
show = _useState2[0],
|
|
@@ -23530,7 +23651,7 @@ function registerSuggestions(monaco) {
|
|
|
23530
23651
|
});
|
|
23531
23652
|
}
|
|
23532
23653
|
|
|
23533
|
-
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #
|
|
23654
|
+
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #02B56E;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
|
|
23534
23655
|
styleInject(css_248z$p);
|
|
23535
23656
|
|
|
23536
23657
|
var Title = antd.Typography.Title;
|
|
@@ -24481,28 +24602,26 @@ var valueType = {
|
|
|
24481
24602
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24482
24603
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24483
24604
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24484
|
-
while (1) {
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
-
return
|
|
24493
|
-
|
|
24494
|
-
|
|
24495
|
-
|
|
24496
|
-
|
|
24497
|
-
|
|
24498
|
-
|
|
24499
|
-
|
|
24500
|
-
|
|
24501
|
-
|
|
24502
|
-
|
|
24503
|
-
|
|
24504
|
-
return _context.stop();
|
|
24505
|
-
}
|
|
24605
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24606
|
+
case 0:
|
|
24607
|
+
_context.next = 2;
|
|
24608
|
+
return bssula.request({
|
|
24609
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24610
|
+
converter: function converter(_ref2) {
|
|
24611
|
+
var data = _ref2.data;
|
|
24612
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24613
|
+
return {
|
|
24614
|
+
text: d.name,
|
|
24615
|
+
value: d.code || d.brandCode
|
|
24616
|
+
};
|
|
24617
|
+
});
|
|
24618
|
+
}
|
|
24619
|
+
});
|
|
24620
|
+
case 2:
|
|
24621
|
+
return _context.abrupt("return", _context.sent);
|
|
24622
|
+
case 3:
|
|
24623
|
+
case "end":
|
|
24624
|
+
return _context.stop();
|
|
24506
24625
|
}
|
|
24507
24626
|
}, _callee);
|
|
24508
24627
|
}));
|
|
@@ -24552,55 +24671,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24552
24671
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24553
24672
|
var _ref$current, source;
|
|
24554
24673
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24555
|
-
while (1) {
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
|
|
24559
|
-
|
|
24560
|
-
|
|
24561
|
-
|
|
24562
|
-
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
};
|
|
24566
|
-
}
|
|
24567
|
-
return prev;
|
|
24568
|
-
});
|
|
24569
|
-
case 2:
|
|
24570
|
-
if (!record.dictionaryCode) {
|
|
24571
|
-
_context.next = 17;
|
|
24572
|
-
break;
|
|
24573
|
-
}
|
|
24574
|
-
if (!(record.choiceType == 20)) {
|
|
24575
|
-
_context.next = 7;
|
|
24576
|
-
break;
|
|
24674
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24675
|
+
case 0:
|
|
24676
|
+
_context.next = 2;
|
|
24677
|
+
return setIsShowAndType(function (prev) {
|
|
24678
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24679
|
+
return {
|
|
24680
|
+
isShow: true,
|
|
24681
|
+
singleOrMultiple: record.inputType,
|
|
24682
|
+
type: record.choiceType
|
|
24683
|
+
};
|
|
24577
24684
|
}
|
|
24578
|
-
|
|
24579
|
-
|
|
24685
|
+
return prev;
|
|
24686
|
+
});
|
|
24687
|
+
case 2:
|
|
24688
|
+
if (!record.dictionaryCode) {
|
|
24689
|
+
_context.next = 17;
|
|
24580
24690
|
break;
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
break;
|
|
24585
|
-
}
|
|
24586
|
-
_context.next = 10;
|
|
24587
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24588
|
-
case 10:
|
|
24589
|
-
_context.t1 = _context.sent;
|
|
24590
|
-
_context.next = 14;
|
|
24691
|
+
}
|
|
24692
|
+
if (!(record.choiceType == 20)) {
|
|
24693
|
+
_context.next = 7;
|
|
24591
24694
|
break;
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
|
|
24603
|
-
|
|
24695
|
+
}
|
|
24696
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24697
|
+
_context.next = 15;
|
|
24698
|
+
break;
|
|
24699
|
+
case 7:
|
|
24700
|
+
if (!(record.choiceType == 30)) {
|
|
24701
|
+
_context.next = 13;
|
|
24702
|
+
break;
|
|
24703
|
+
}
|
|
24704
|
+
_context.next = 10;
|
|
24705
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24706
|
+
case 10:
|
|
24707
|
+
_context.t1 = _context.sent;
|
|
24708
|
+
_context.next = 14;
|
|
24709
|
+
break;
|
|
24710
|
+
case 13:
|
|
24711
|
+
_context.t1 = [];
|
|
24712
|
+
case 14:
|
|
24713
|
+
_context.t0 = _context.t1;
|
|
24714
|
+
case 15:
|
|
24715
|
+
source = _context.t0;
|
|
24716
|
+
// @ts-ignore
|
|
24717
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24718
|
+
case 17:
|
|
24719
|
+
case "end":
|
|
24720
|
+
return _context.stop();
|
|
24604
24721
|
}
|
|
24605
24722
|
}, _callee);
|
|
24606
24723
|
})));
|
|
@@ -24668,30 +24785,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24668
24785
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24669
24786
|
var form, values, name, relates, source;
|
|
24670
24787
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24671
|
-
while (1) {
|
|
24672
|
-
|
|
24673
|
-
|
|
24674
|
-
|
|
24675
|
-
if (values[0]) {
|
|
24676
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24677
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24678
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24679
|
-
}
|
|
24680
|
-
if (!values[1]) {
|
|
24681
|
-
_context2.next = 9;
|
|
24682
|
-
break;
|
|
24683
|
-
}
|
|
24684
|
-
_context2.next = 5;
|
|
24685
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24686
|
-
case 5:
|
|
24687
|
-
source = _context2.sent;
|
|
24788
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24789
|
+
case 0:
|
|
24790
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24791
|
+
if (values[0]) {
|
|
24688
24792
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24689
24793
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24690
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
|
|
24794
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24795
|
+
}
|
|
24796
|
+
if (!values[1]) {
|
|
24797
|
+
_context2.next = 9;
|
|
24798
|
+
break;
|
|
24799
|
+
}
|
|
24800
|
+
_context2.next = 5;
|
|
24801
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24802
|
+
case 5:
|
|
24803
|
+
source = _context2.sent;
|
|
24804
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24805
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24806
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24807
|
+
case 9:
|
|
24808
|
+
case "end":
|
|
24809
|
+
return _context2.stop();
|
|
24695
24810
|
}
|
|
24696
24811
|
}, _callee2);
|
|
24697
24812
|
}));
|
|
@@ -25151,43 +25266,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25151
25266
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25152
25267
|
var values, name, form, source;
|
|
25153
25268
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25154
|
-
while (1) {
|
|
25155
|
-
|
|
25156
|
-
|
|
25157
|
-
|
|
25158
|
-
|
|
25159
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25160
|
-
form.setFieldVisible(name, false);
|
|
25161
|
-
}
|
|
25162
|
-
if (!(values[0] === 30)) {
|
|
25163
|
-
_context3.next = 10;
|
|
25164
|
-
break;
|
|
25165
|
-
}
|
|
25166
|
-
_context3.next = 5;
|
|
25167
|
-
return bssula.request({
|
|
25168
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
25169
|
-
converter: function converter(_ref11) {
|
|
25170
|
-
var data = _ref11.data;
|
|
25171
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25172
|
-
return {
|
|
25173
|
-
text: d.dictCode,
|
|
25174
|
-
value: d.dictCode
|
|
25175
|
-
};
|
|
25176
|
-
});
|
|
25177
|
-
}
|
|
25178
|
-
});
|
|
25179
|
-
case 5:
|
|
25180
|
-
source = _context3.sent;
|
|
25181
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25182
|
-
form.setFieldVisible(name, true);
|
|
25183
|
-
_context3.next = 11;
|
|
25184
|
-
break;
|
|
25185
|
-
case 10:
|
|
25269
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
25270
|
+
case 0:
|
|
25271
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25272
|
+
if (values[1] === 40) {
|
|
25273
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25186
25274
|
form.setFieldVisible(name, false);
|
|
25187
|
-
|
|
25188
|
-
|
|
25189
|
-
|
|
25190
|
-
|
|
25275
|
+
}
|
|
25276
|
+
if (!(values[0] === 30)) {
|
|
25277
|
+
_context3.next = 10;
|
|
25278
|
+
break;
|
|
25279
|
+
}
|
|
25280
|
+
_context3.next = 5;
|
|
25281
|
+
return bssula.request({
|
|
25282
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
25283
|
+
converter: function converter(_ref11) {
|
|
25284
|
+
var data = _ref11.data;
|
|
25285
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25286
|
+
return {
|
|
25287
|
+
text: d.dictCode,
|
|
25288
|
+
value: d.dictCode
|
|
25289
|
+
};
|
|
25290
|
+
});
|
|
25291
|
+
}
|
|
25292
|
+
});
|
|
25293
|
+
case 5:
|
|
25294
|
+
source = _context3.sent;
|
|
25295
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25296
|
+
form.setFieldVisible(name, true);
|
|
25297
|
+
_context3.next = 11;
|
|
25298
|
+
break;
|
|
25299
|
+
case 10:
|
|
25300
|
+
form.setFieldVisible(name, false);
|
|
25301
|
+
case 11:
|
|
25302
|
+
case "end":
|
|
25303
|
+
return _context3.stop();
|
|
25191
25304
|
}
|
|
25192
25305
|
}, _callee3);
|
|
25193
25306
|
}));
|
|
@@ -25376,66 +25489,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25376
25489
|
var _ref$current4, _res$editableStatus;
|
|
25377
25490
|
var res, _res$defaultValue;
|
|
25378
25491
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25379
|
-
while (1) {
|
|
25380
|
-
|
|
25381
|
-
|
|
25382
|
-
|
|
25383
|
-
|
|
25384
|
-
|
|
25385
|
-
|
|
25386
|
-
|
|
25387
|
-
|
|
25388
|
-
|
|
25389
|
-
res.
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
|
|
25394
|
-
|
|
25395
|
-
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
|
|
25400
|
-
|
|
25492
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25493
|
+
case 0:
|
|
25494
|
+
_context4.next = 2;
|
|
25495
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25496
|
+
case 2:
|
|
25497
|
+
res = _context4.sent;
|
|
25498
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25499
|
+
res.fieldGroup = record.fieldGroup;
|
|
25500
|
+
res.businessType = record.businessType;
|
|
25501
|
+
res.info = {
|
|
25502
|
+
enumeration: res.enumeration,
|
|
25503
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25504
|
+
formula: res.formula,
|
|
25505
|
+
scale: res.scale,
|
|
25506
|
+
variable: res.variable
|
|
25507
|
+
};
|
|
25508
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25509
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25510
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25511
|
+
if (res.inputType === 40) {
|
|
25512
|
+
res.valueType = 22;
|
|
25513
|
+
}
|
|
25514
|
+
// 把数组处理成文本
|
|
25515
|
+
if (res.inputType === 30) {
|
|
25516
|
+
if (res.defaultValue) {
|
|
25517
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25401
25518
|
}
|
|
25402
|
-
|
|
25403
|
-
|
|
25404
|
-
|
|
25405
|
-
|
|
25406
|
-
|
|
25519
|
+
}
|
|
25520
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25521
|
+
delete res.formula;
|
|
25522
|
+
delete res.showValue;
|
|
25523
|
+
if (!(mode === 'create')) {
|
|
25524
|
+
_context4.next = 18;
|
|
25525
|
+
break;
|
|
25526
|
+
}
|
|
25527
|
+
bssula.request({
|
|
25528
|
+
url: "/basic/flow/businessField",
|
|
25529
|
+
method: 'POST',
|
|
25530
|
+
params: res,
|
|
25531
|
+
successMessage: '创建成功!',
|
|
25532
|
+
converter: function converter() {
|
|
25533
|
+
onParentOk();
|
|
25407
25534
|
}
|
|
25408
|
-
|
|
25409
|
-
|
|
25410
|
-
|
|
25411
|
-
|
|
25412
|
-
|
|
25413
|
-
|
|
25535
|
+
});
|
|
25536
|
+
return _context4.abrupt("return");
|
|
25537
|
+
case 18:
|
|
25538
|
+
bssula.request({
|
|
25539
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25540
|
+
method: 'PATCH',
|
|
25541
|
+
params: res,
|
|
25542
|
+
successMessage: '修改成功!',
|
|
25543
|
+
converter: function converter() {
|
|
25544
|
+
onParentOk();
|
|
25414
25545
|
}
|
|
25415
|
-
|
|
25416
|
-
|
|
25417
|
-
|
|
25418
|
-
|
|
25419
|
-
successMessage: '创建成功!',
|
|
25420
|
-
converter: function converter() {
|
|
25421
|
-
onParentOk();
|
|
25422
|
-
}
|
|
25423
|
-
});
|
|
25424
|
-
return _context4.abrupt("return");
|
|
25425
|
-
case 18:
|
|
25426
|
-
bssula.request({
|
|
25427
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25428
|
-
method: 'PATCH',
|
|
25429
|
-
params: res,
|
|
25430
|
-
successMessage: '修改成功!',
|
|
25431
|
-
converter: function converter() {
|
|
25432
|
-
onParentOk();
|
|
25433
|
-
}
|
|
25434
|
-
});
|
|
25435
|
-
case 19:
|
|
25436
|
-
case "end":
|
|
25437
|
-
return _context4.stop();
|
|
25438
|
-
}
|
|
25546
|
+
});
|
|
25547
|
+
case 19:
|
|
25548
|
+
case "end":
|
|
25549
|
+
return _context4.stop();
|
|
25439
25550
|
}
|
|
25440
25551
|
}, _callee4);
|
|
25441
25552
|
}));
|
|
@@ -26220,28 +26331,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26220
26331
|
React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26221
26332
|
var resData, data;
|
|
26222
26333
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26223
|
-
while (1) {
|
|
26224
|
-
|
|
26225
|
-
|
|
26226
|
-
|
|
26227
|
-
|
|
26228
|
-
|
|
26229
|
-
|
|
26230
|
-
|
|
26231
|
-
|
|
26232
|
-
|
|
26233
|
-
|
|
26234
|
-
|
|
26235
|
-
|
|
26236
|
-
|
|
26237
|
-
|
|
26238
|
-
|
|
26239
|
-
|
|
26240
|
-
|
|
26241
|
-
|
|
26242
|
-
|
|
26243
|
-
return _context.stop();
|
|
26244
|
-
}
|
|
26334
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26335
|
+
case 0:
|
|
26336
|
+
if (!(!source && initRequestSource)) {
|
|
26337
|
+
_context.next = 6;
|
|
26338
|
+
break;
|
|
26339
|
+
}
|
|
26340
|
+
_context.next = 3;
|
|
26341
|
+
return initRequestSource();
|
|
26342
|
+
case 3:
|
|
26343
|
+
resData = _context.sent;
|
|
26344
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26345
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26346
|
+
label: item.text,
|
|
26347
|
+
isLeaf: false
|
|
26348
|
+
});
|
|
26349
|
+
})) || [];
|
|
26350
|
+
setHandSource(data);
|
|
26351
|
+
case 6:
|
|
26352
|
+
case "end":
|
|
26353
|
+
return _context.stop();
|
|
26245
26354
|
}
|
|
26246
26355
|
}, _callee);
|
|
26247
26356
|
})), []);
|
|
@@ -26373,20 +26482,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26373
26482
|
function _getRegularThresholdRange() {
|
|
26374
26483
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26375
26484
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26376
|
-
while (1) {
|
|
26377
|
-
|
|
26378
|
-
|
|
26379
|
-
|
|
26380
|
-
|
|
26381
|
-
|
|
26382
|
-
|
|
26383
|
-
|
|
26384
|
-
|
|
26385
|
-
|
|
26386
|
-
|
|
26387
|
-
|
|
26388
|
-
return _context.stop();
|
|
26389
|
-
}
|
|
26485
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26486
|
+
case 0:
|
|
26487
|
+
return _context.abrupt("return", axios__default['default']({
|
|
26488
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26489
|
+
method: 'POST',
|
|
26490
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26491
|
+
queryIdentify: undefined
|
|
26492
|
+
})
|
|
26493
|
+
}));
|
|
26494
|
+
case 1:
|
|
26495
|
+
case "end":
|
|
26496
|
+
return _context.stop();
|
|
26390
26497
|
}
|
|
26391
26498
|
}, _callee);
|
|
26392
26499
|
}));
|
|
@@ -26525,137 +26632,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26525
26632
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26526
26633
|
});
|
|
26527
26634
|
};
|
|
26635
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26528
26636
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26529
26637
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26530
26638
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26531
26639
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26532
|
-
while (1) {
|
|
26533
|
-
|
|
26534
|
-
|
|
26535
|
-
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
|
|
26539
|
-
|
|
26540
|
-
|
|
26541
|
-
|
|
26542
|
-
|
|
26543
|
-
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26547
|
-
|
|
26548
|
-
|
|
26549
|
-
|
|
26550
|
-
|
|
26551
|
-
|
|
26552
|
-
|
|
26553
|
-
|
|
26554
|
-
|
|
26555
|
-
|
|
26556
|
-
|
|
26557
|
-
|
|
26558
|
-
|
|
26559
|
-
|
|
26560
|
-
|
|
26561
|
-
|
|
26562
|
-
|
|
26563
|
-
|
|
26564
|
-
|
|
26565
|
-
|
|
26566
|
-
|
|
26567
|
-
|
|
26568
|
-
|
|
26569
|
-
|
|
26570
|
-
|
|
26571
|
-
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
|
|
26575
|
-
|
|
26576
|
-
|
|
26577
|
-
|
|
26578
|
-
|
|
26579
|
-
|
|
26580
|
-
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
|
|
26584
|
-
|
|
26585
|
-
|
|
26586
|
-
|
|
26587
|
-
|
|
26588
|
-
|
|
26589
|
-
|
|
26590
|
-
|
|
26591
|
-
|
|
26592
|
-
|
|
26593
|
-
|
|
26594
|
-
|
|
26595
|
-
|
|
26596
|
-
|
|
26597
|
-
|
|
26598
|
-
|
|
26599
|
-
|
|
26600
|
-
|
|
26601
|
-
|
|
26602
|
-
|
|
26603
|
-
}) : [];
|
|
26604
|
-
}
|
|
26605
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26606
|
-
var _handleData3;
|
|
26607
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26608
|
-
return {
|
|
26609
|
-
code: i.code.toString(),
|
|
26610
|
-
name: i.name
|
|
26611
|
-
};
|
|
26612
|
-
}) : [];
|
|
26613
|
-
}
|
|
26614
|
-
_this.setState({
|
|
26615
|
-
thresholdList: _handleData
|
|
26616
|
-
});
|
|
26640
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26641
|
+
case 0:
|
|
26642
|
+
if (queryIdentify) {
|
|
26643
|
+
_context.next = 2;
|
|
26644
|
+
break;
|
|
26645
|
+
}
|
|
26646
|
+
return _context.abrupt("return");
|
|
26647
|
+
case 2:
|
|
26648
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26649
|
+
extraRequestUrl = '';
|
|
26650
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26651
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26652
|
+
return item.identity == propertyCode;
|
|
26653
|
+
})) {
|
|
26654
|
+
_context.next = 10;
|
|
26655
|
+
break;
|
|
26656
|
+
}
|
|
26657
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26658
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26659
|
+
return item.identity == propertyCode;
|
|
26660
|
+
}).queryParam.filter(function (item) {
|
|
26661
|
+
return item.isRequired;
|
|
26662
|
+
}).map(function (item) {
|
|
26663
|
+
return item.queryKey;
|
|
26664
|
+
});
|
|
26665
|
+
if (!needQueryList.some(function (item) {
|
|
26666
|
+
return !querParams[item] || !querParams[item].length;
|
|
26667
|
+
})) {
|
|
26668
|
+
_context.next = 9;
|
|
26669
|
+
break;
|
|
26670
|
+
}
|
|
26671
|
+
return _context.abrupt("return");
|
|
26672
|
+
case 9:
|
|
26673
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26674
|
+
return item.identity == propertyCode;
|
|
26675
|
+
}).requestUrl || '';
|
|
26676
|
+
case 10:
|
|
26677
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26678
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26679
|
+
querParams = {
|
|
26680
|
+
dictCode: queryIdentify
|
|
26681
|
+
};
|
|
26682
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26683
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26684
|
+
// querParams = { dictCode: queryIdentify }
|
|
26685
|
+
}
|
|
26686
|
+
if (!extraRequestUrl) {
|
|
26687
|
+
_context.next = 16;
|
|
26688
|
+
break;
|
|
26689
|
+
}
|
|
26690
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26691
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
|
|
26692
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26693
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
|
|
26694
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26695
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26696
|
+
}
|
|
26697
|
+
bssula.request({
|
|
26698
|
+
url: extraRequestUrl,
|
|
26699
|
+
method: 'get',
|
|
26700
|
+
converter: function converter(res) {
|
|
26701
|
+
if (handleError(res)) {
|
|
26702
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26703
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26704
|
+
var _handleData2;
|
|
26705
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26706
|
+
return {
|
|
26707
|
+
code: i.dictItemCode,
|
|
26708
|
+
name: i.dictItemName
|
|
26709
|
+
};
|
|
26710
|
+
}) : [];
|
|
26617
26711
|
}
|
|
26618
|
-
|
|
26712
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26713
|
+
var _handleData3;
|
|
26714
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26715
|
+
return {
|
|
26716
|
+
code: i.code.toString(),
|
|
26717
|
+
name: i.name
|
|
26718
|
+
};
|
|
26719
|
+
}) : [];
|
|
26720
|
+
}
|
|
26721
|
+
_this.setState({
|
|
26722
|
+
thresholdList: _handleData
|
|
26723
|
+
});
|
|
26619
26724
|
}
|
|
26620
|
-
|
|
26621
|
-
_context.next = 29;
|
|
26622
|
-
break;
|
|
26623
|
-
case 16:
|
|
26624
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26625
|
-
_context.next = 20;
|
|
26626
|
-
break;
|
|
26725
|
+
return handleData;
|
|
26627
26726
|
}
|
|
26628
|
-
|
|
26629
|
-
|
|
26630
|
-
|
|
26631
|
-
|
|
26727
|
+
});
|
|
26728
|
+
_context.next = 29;
|
|
26729
|
+
break;
|
|
26730
|
+
case 16:
|
|
26731
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26732
|
+
_context.next = 20;
|
|
26632
26733
|
break;
|
|
26633
|
-
|
|
26634
|
-
|
|
26635
|
-
|
|
26636
|
-
|
|
26637
|
-
|
|
26638
|
-
|
|
26734
|
+
}
|
|
26735
|
+
_this.setState({
|
|
26736
|
+
thresholdList: queryIdentify
|
|
26737
|
+
});
|
|
26738
|
+
_context.next = 29;
|
|
26739
|
+
break;
|
|
26740
|
+
case 20:
|
|
26741
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26742
|
+
_context.next = 24;
|
|
26743
|
+
break;
|
|
26744
|
+
}
|
|
26745
|
+
// TODO待处理
|
|
26746
|
+
_this.setState({
|
|
26747
|
+
thresholdList: []
|
|
26748
|
+
});
|
|
26749
|
+
_context.next = 29;
|
|
26750
|
+
break;
|
|
26751
|
+
case 24:
|
|
26752
|
+
querParams.queryIdentify = queryIdentify;
|
|
26753
|
+
_context.next = 27;
|
|
26754
|
+
return getRegularThresholdRange(querParams);
|
|
26755
|
+
case 27:
|
|
26756
|
+
res = _context.sent;
|
|
26757
|
+
if (handleError(res)) {
|
|
26639
26758
|
_this.setState({
|
|
26640
|
-
thresholdList: []
|
|
26759
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26641
26760
|
});
|
|
26642
|
-
|
|
26643
|
-
|
|
26644
|
-
|
|
26645
|
-
|
|
26646
|
-
_context.next = 27;
|
|
26647
|
-
return getRegularThresholdRange(querParams);
|
|
26648
|
-
case 27:
|
|
26649
|
-
res = _context.sent;
|
|
26650
|
-
if (handleError(res)) {
|
|
26651
|
-
_this.setState({
|
|
26652
|
-
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26653
|
-
});
|
|
26654
|
-
}
|
|
26655
|
-
case 29:
|
|
26656
|
-
case "end":
|
|
26657
|
-
return _context.stop();
|
|
26658
|
-
}
|
|
26761
|
+
}
|
|
26762
|
+
case 29:
|
|
26763
|
+
case "end":
|
|
26764
|
+
return _context.stop();
|
|
26659
26765
|
}
|
|
26660
26766
|
}, _callee);
|
|
26661
26767
|
}));
|
|
@@ -27474,32 +27580,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27474
27580
|
notChangeOnSelect: true,
|
|
27475
27581
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27476
27582
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27477
|
-
while (1) {
|
|
27478
|
-
|
|
27479
|
-
|
|
27480
|
-
|
|
27481
|
-
|
|
27482
|
-
|
|
27483
|
-
|
|
27484
|
-
|
|
27485
|
-
|
|
27486
|
-
|
|
27487
|
-
|
|
27488
|
-
|
|
27489
|
-
|
|
27490
|
-
|
|
27491
|
-
|
|
27492
|
-
|
|
27493
|
-
|
|
27494
|
-
|
|
27495
|
-
|
|
27496
|
-
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
return _context2.stop();
|
|
27502
|
-
}
|
|
27583
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27584
|
+
case 0:
|
|
27585
|
+
_context2.next = 2;
|
|
27586
|
+
return bssula.request({
|
|
27587
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27588
|
+
method: 'get',
|
|
27589
|
+
converter: function converter(_ref3) {
|
|
27590
|
+
var data = _ref3.data;
|
|
27591
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27592
|
+
return {
|
|
27593
|
+
text: item.name,
|
|
27594
|
+
value: item.id,
|
|
27595
|
+
level: item.level,
|
|
27596
|
+
id: item.id
|
|
27597
|
+
};
|
|
27598
|
+
}) : [];
|
|
27599
|
+
return handleData;
|
|
27600
|
+
}
|
|
27601
|
+
});
|
|
27602
|
+
case 2:
|
|
27603
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27604
|
+
case 3:
|
|
27605
|
+
case "end":
|
|
27606
|
+
return _context2.stop();
|
|
27503
27607
|
}
|
|
27504
27608
|
}, _callee2);
|
|
27505
27609
|
})),
|
|
@@ -27525,32 +27629,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27525
27629
|
notChangeOnSelect: true,
|
|
27526
27630
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27527
27631
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27528
|
-
while (1) {
|
|
27529
|
-
|
|
27530
|
-
|
|
27531
|
-
|
|
27532
|
-
|
|
27533
|
-
|
|
27534
|
-
|
|
27535
|
-
|
|
27536
|
-
|
|
27537
|
-
|
|
27538
|
-
|
|
27539
|
-
|
|
27540
|
-
|
|
27541
|
-
|
|
27542
|
-
|
|
27543
|
-
|
|
27544
|
-
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27548
|
-
|
|
27549
|
-
|
|
27550
|
-
|
|
27551
|
-
|
|
27552
|
-
return _context3.stop();
|
|
27553
|
-
}
|
|
27632
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27633
|
+
case 0:
|
|
27634
|
+
_context3.next = 2;
|
|
27635
|
+
return bssula.request({
|
|
27636
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27637
|
+
method: 'get',
|
|
27638
|
+
converter: function converter(_ref5) {
|
|
27639
|
+
var data = _ref5.data;
|
|
27640
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27641
|
+
return {
|
|
27642
|
+
text: item.name,
|
|
27643
|
+
value: item.id,
|
|
27644
|
+
level: item.level,
|
|
27645
|
+
id: item.id
|
|
27646
|
+
};
|
|
27647
|
+
}) : [];
|
|
27648
|
+
return handleData;
|
|
27649
|
+
}
|
|
27650
|
+
});
|
|
27651
|
+
case 2:
|
|
27652
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27653
|
+
case 3:
|
|
27654
|
+
case "end":
|
|
27655
|
+
return _context3.stop();
|
|
27554
27656
|
}
|
|
27555
27657
|
}, _callee3);
|
|
27556
27658
|
})),
|
|
@@ -27578,32 +27680,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27578
27680
|
notChangeOnSelect: true,
|
|
27579
27681
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27580
27682
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27581
|
-
while (1) {
|
|
27582
|
-
|
|
27583
|
-
|
|
27584
|
-
|
|
27585
|
-
|
|
27586
|
-
|
|
27587
|
-
|
|
27588
|
-
|
|
27589
|
-
|
|
27590
|
-
|
|
27591
|
-
|
|
27592
|
-
|
|
27593
|
-
|
|
27594
|
-
|
|
27595
|
-
|
|
27596
|
-
|
|
27597
|
-
|
|
27598
|
-
|
|
27599
|
-
|
|
27600
|
-
|
|
27601
|
-
|
|
27602
|
-
|
|
27603
|
-
|
|
27604
|
-
|
|
27605
|
-
return _context4.stop();
|
|
27606
|
-
}
|
|
27683
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27684
|
+
case 0:
|
|
27685
|
+
_context4.next = 2;
|
|
27686
|
+
return bssula.request({
|
|
27687
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27688
|
+
method: 'get',
|
|
27689
|
+
converter: function converter(_ref7) {
|
|
27690
|
+
var data = _ref7.data;
|
|
27691
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27692
|
+
return {
|
|
27693
|
+
text: item.name,
|
|
27694
|
+
value: item.id,
|
|
27695
|
+
level: item.level,
|
|
27696
|
+
id: item.id
|
|
27697
|
+
};
|
|
27698
|
+
}) : [];
|
|
27699
|
+
return handleData;
|
|
27700
|
+
}
|
|
27701
|
+
});
|
|
27702
|
+
case 2:
|
|
27703
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27704
|
+
case 3:
|
|
27705
|
+
case "end":
|
|
27706
|
+
return _context4.stop();
|
|
27607
27707
|
}
|
|
27608
27708
|
}, _callee4);
|
|
27609
27709
|
})),
|
|
@@ -28720,8 +28820,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28720
28820
|
});
|
|
28721
28821
|
}
|
|
28722
28822
|
}
|
|
28723
|
-
|
|
28724
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28725
28823
|
}, {
|
|
28726
28824
|
key: "render",
|
|
28727
28825
|
value: function render() {
|
|
@@ -29552,6 +29650,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29552
29650
|
callBack(ruleClassData);
|
|
29553
29651
|
});
|
|
29554
29652
|
};
|
|
29653
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29555
29654
|
_this.coverToParallel = function (treeData, result) {
|
|
29556
29655
|
treeData.forEach(function (el) {
|
|
29557
29656
|
result.push(el);
|
|
@@ -29807,6 +29906,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29807
29906
|
callBack(ruleClassData);
|
|
29808
29907
|
});
|
|
29809
29908
|
};
|
|
29909
|
+
// 场景需要返回值2022.11.15
|
|
29810
29910
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
|
|
29811
29911
|
var _ruleReturnConfig$rig;
|
|
29812
29912
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -30104,32 +30204,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30104
30204
|
notChangeOnSelect: true,
|
|
30105
30205
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30106
30206
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30107
|
-
while (1) {
|
|
30108
|
-
|
|
30109
|
-
|
|
30110
|
-
|
|
30111
|
-
|
|
30112
|
-
|
|
30113
|
-
|
|
30114
|
-
|
|
30115
|
-
|
|
30116
|
-
|
|
30117
|
-
|
|
30118
|
-
|
|
30119
|
-
|
|
30120
|
-
|
|
30121
|
-
|
|
30122
|
-
|
|
30123
|
-
|
|
30124
|
-
|
|
30125
|
-
|
|
30126
|
-
|
|
30127
|
-
|
|
30128
|
-
|
|
30129
|
-
|
|
30130
|
-
|
|
30131
|
-
return _context.stop();
|
|
30132
|
-
}
|
|
30207
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30208
|
+
case 0:
|
|
30209
|
+
_context.next = 2;
|
|
30210
|
+
return bssula.request({
|
|
30211
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30212
|
+
method: 'get',
|
|
30213
|
+
converter: function converter(_ref2) {
|
|
30214
|
+
var data = _ref2.data;
|
|
30215
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30216
|
+
return {
|
|
30217
|
+
text: item.name,
|
|
30218
|
+
value: item.id,
|
|
30219
|
+
level: item.level,
|
|
30220
|
+
id: item.id
|
|
30221
|
+
};
|
|
30222
|
+
}) : [];
|
|
30223
|
+
return handleData;
|
|
30224
|
+
}
|
|
30225
|
+
});
|
|
30226
|
+
case 2:
|
|
30227
|
+
return _context.abrupt("return", _context.sent);
|
|
30228
|
+
case 3:
|
|
30229
|
+
case "end":
|
|
30230
|
+
return _context.stop();
|
|
30133
30231
|
}
|
|
30134
30232
|
}, _callee);
|
|
30135
30233
|
})),
|
|
@@ -30463,6 +30561,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30463
30561
|
}
|
|
30464
30562
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
30465
30563
|
};
|
|
30564
|
+
//添加同一层级条件
|
|
30466
30565
|
_this.addPeerRule = function (itemDetail) {
|
|
30467
30566
|
var ruleClassData = _this.state.ruleClassData;
|
|
30468
30567
|
var _this$props4 = _this.props,
|
|
@@ -30483,6 +30582,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30483
30582
|
callBack(ruleClassData);
|
|
30484
30583
|
});
|
|
30485
30584
|
};
|
|
30585
|
+
//添加子层级条件
|
|
30486
30586
|
_this.addChildRules = function (itemDetail) {
|
|
30487
30587
|
var ruleClassData = _this.state.ruleClassData;
|
|
30488
30588
|
var callBack = _this.props.callBack;
|
|
@@ -30558,6 +30658,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30558
30658
|
callBack(ruleClassData);
|
|
30559
30659
|
});
|
|
30560
30660
|
};
|
|
30661
|
+
// 新增执行顺序
|
|
30561
30662
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30562
30663
|
callback();
|
|
30563
30664
|
var callBack = _this.props.callBack;
|
|
@@ -30714,26 +30815,26 @@ exports.AddSkuSelect = AddSkuSelect;
|
|
|
30714
30815
|
exports.AddSpuSelect = AddSpuSelect;
|
|
30715
30816
|
exports.BillEntry = BillEntry;
|
|
30716
30817
|
exports.BsCascader = BsCascader;
|
|
30717
|
-
exports.BsLayout = index$
|
|
30818
|
+
exports.BsLayout = index$6;
|
|
30718
30819
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
30719
30820
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
30720
30821
|
exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
|
|
30721
|
-
exports.CheckOneUser = index$
|
|
30822
|
+
exports.CheckOneUser = index$2;
|
|
30722
30823
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
30723
30824
|
exports.CommodityEntry = CommodityEntry;
|
|
30724
30825
|
exports.DataImport = DataImport;
|
|
30725
30826
|
exports.DataValidation = DataValidation;
|
|
30726
|
-
exports.DetailPageWrapper = index$
|
|
30827
|
+
exports.DetailPageWrapper = index$4;
|
|
30727
30828
|
exports.EllipsisTooltip = EllipsisTooltip;
|
|
30728
30829
|
exports.ExportIcon = ExportIcon;
|
|
30729
30830
|
exports.GuideWrapper = GuideWrapper;
|
|
30730
|
-
exports.HomePageWrapper = index$
|
|
30831
|
+
exports.HomePageWrapper = index$5;
|
|
30731
30832
|
exports.JsonQueryTable = JsonQueryTable;
|
|
30732
|
-
exports.MoreTreeTable = index$
|
|
30833
|
+
exports.MoreTreeTable = index$7;
|
|
30733
30834
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
30734
30835
|
exports.RuleComponent = RuleObjectComponent;
|
|
30735
30836
|
exports.SearchSelect = SearchSelect;
|
|
30736
|
-
exports.StateFlow = index$
|
|
30837
|
+
exports.StateFlow = index$3;
|
|
30737
30838
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
30738
30839
|
exports.TableColumnSetting = TableColumnSetting;
|
|
30739
30840
|
exports.TreeSearchSelect = TreeSearchSelect;
|