@kmkf-fe-packages/basic-components 2.10.9 → 2.10.10

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/index.esm.js CHANGED
@@ -8671,7 +8671,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
8671
8671
  WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8672
8672
  JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
8673
8673
  JST_WAREHOUSING_STATUS: 'jstInStockStatusItemList',
8674
- WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
8674
+ WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList',
8675
+ KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList'
8675
8676
  };
8676
8677
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8677
8678
  };
@@ -9521,6 +9522,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9521
9522
  WLN_WAREHOUSING_STATUS: processSceneStatus,
9522
9523
  JKY_WAREHOUSING_STATUS: processSceneStatus,
9523
9524
  JST_WAREHOUSING_STATUS: processSceneStatus,
9525
+ KM_WAREHOUSING_STATUS: processSceneStatus,
9524
9526
  BS_LOGISTICS: processErpLogistics,
9525
9527
  WLN_LOGISTICS: processErpLogistics,
9526
9528
  WDT_LOGISTICS: processErpLogistics,
@@ -21017,9 +21019,20 @@ var getColumns$2 = function getColumns(_ref) {
21017
21019
  };
21018
21020
 
21019
21021
  var getYesOrNo$4 = function getYesOrNo(val) {
21020
- if (isNull(val)) return null;
21021
- return val ? '是' : '否';
21022
+ switch (val) {
21023
+ case true:
21024
+ case '1':
21025
+ case 1:
21026
+ return '是';
21027
+ case false:
21028
+ case '0':
21029
+ case 0:
21030
+ return '否';
21031
+ default:
21032
+ return null;
21033
+ }
21022
21034
  };
21035
+
21023
21036
  function toNum$1(value) {
21024
21037
  if (typeof value === 'string') {
21025
21038
  return value ? +value : void 0;
@@ -21507,10 +21520,6 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
21507
21520
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21508
21521
  return false;
21509
21522
  };
21510
- var getYesOrNo$5 = function getYesOrNo(val) {
21511
- if (isNull(val)) return null;
21512
- return val ? '是' : '否';
21513
- };
21514
21523
  function toNum$2(value) {
21515
21524
  if (typeof value === 'string') {
21516
21525
  return value ? +value : void 0;
@@ -21622,7 +21631,7 @@ var getColumns$4 = function getColumns(_ref) {
21622
21631
  title: "\u662F\u5426\u53D6\u6D88",
21623
21632
  width: 150,
21624
21633
  render: function render(val) {
21625
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
21634
+ return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21626
21635
  }
21627
21636
  }, {
21628
21637
  dataIndex: 'isGift',
@@ -21641,7 +21650,7 @@ var getColumns$4 = function getColumns(_ref) {
21641
21650
  label: '否',
21642
21651
  value: 0
21643
21652
  }]
21644
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
21653
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21645
21654
  }
21646
21655
  }, {
21647
21656
  dataIndex: 'skuNote',
@@ -21767,7 +21776,7 @@ var getColumns$4 = function getColumns(_ref) {
21767
21776
  label: '否',
21768
21777
  value: 0
21769
21778
  }]
21770
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
21779
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21771
21780
  }
21772
21781
  }].map(function (item) {
21773
21782
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -21896,7 +21905,7 @@ var getColumns$4 = function getColumns(_ref) {
21896
21905
  label: '否',
21897
21906
  value: 0
21898
21907
  }]
21899
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
21908
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21900
21909
  }
21901
21910
  }].map(function (item) {
21902
21911
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -0,0 +1 @@
1
+ export declare const getYesOrNo: (val: boolean | string | number) => "是" | "否" | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.10.9",
3
+ "version": "2.10.10",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "2.10.9",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.10.10",
24
24
  "ahooks": "^3.7.4",
25
25
  "ali-react-table": "2.6.1",
26
26
  "bignumber.js": "^9.1.2",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "2a86cf98f685e6784a6ee41776f4159c0463e76a"
69
+ "gitHead": "a914d8cc8eaff540f93b34e02fc854178bb47aaf"
70
70
  }