tplus-components-touch 1.25.6 → 1.25.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.
Files changed (170) hide show
  1. package/README.md +16 -16
  2. package/dist/components/addLog/AddLogProcessor.js +6 -6
  3. package/dist/components/addLog/AddLogProcessor.js.map +1 -1
  4. package/dist/components/addLog/OperationLogApi.js +3 -3
  5. package/dist/components/addLog/OperationLogApi.js.map +1 -1
  6. package/dist/components/autoComplete/index.js +14 -14
  7. package/dist/components/autoComplete/index.js.map +1 -1
  8. package/dist/components/autoComplete/index.less +89 -89
  9. package/dist/components/autoComplete/option.js.map +1 -1
  10. package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
  11. package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
  12. package/dist/components/autoCompleteWithKeyboard/index.less +4 -4
  13. package/dist/components/billSearch/api.js +26 -26
  14. package/dist/components/billSearch/api.js.map +1 -1
  15. package/dist/components/billSearch/index.js +6 -6
  16. package/dist/components/billSearch/index.js.map +1 -1
  17. package/dist/components/billSearch/index.less +573 -573
  18. package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
  19. package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
  20. package/dist/components/cloudPrint/api.js.map +1 -1
  21. package/dist/components/cloudPrint/index.js +4 -0
  22. package/dist/components/cloudPrint/index.js.map +1 -1
  23. package/dist/components/cloudPrint/printDispatch.js +14 -11
  24. package/dist/components/cloudPrint/printDispatch.js.map +1 -1
  25. package/dist/components/commonForm/autoComplete/index.js.map +1 -1
  26. package/dist/components/commonForm/autoComplete/style.less +7 -7
  27. package/dist/components/commonForm/datePicker/index.js.map +1 -1
  28. package/dist/components/commonForm/datePicker/style.less +10 -10
  29. package/dist/components/commonForm/formControl/index.js +7 -7
  30. package/dist/components/commonForm/formControl/index.js.map +1 -1
  31. package/dist/components/commonForm/formControl/style.less +7 -7
  32. package/dist/components/commonForm/index.js +4 -4
  33. package/dist/components/commonForm/index.js.map +1 -1
  34. package/dist/components/commonForm/inputNumber/index.js.map +1 -1
  35. package/dist/components/commonForm/inputNumber/style.less +16 -16
  36. package/dist/components/commonForm/radio/index.js.map +1 -1
  37. package/dist/components/commonForm/radio/style.less +10 -10
  38. package/dist/components/commonForm/style.less +11 -11
  39. package/dist/components/deliverySearch/api.js +21 -21
  40. package/dist/components/deliverySearch/api.js.map +1 -1
  41. package/dist/components/deliverySearch/index.js +6 -6
  42. package/dist/components/deliverySearch/index.js.map +1 -1
  43. package/dist/components/deliverySearch/index.less +623 -623
  44. package/dist/components/form/index.js.map +1 -1
  45. package/dist/components/hotKey/config.js +23 -23
  46. package/dist/components/hotKey/config.js.map +1 -1
  47. package/dist/components/hotKey/hotKeyModal.js.map +1 -1
  48. package/dist/components/hotKey/index.js +26 -26
  49. package/dist/components/hotKey/index.js.map +1 -1
  50. package/dist/components/hotKey/localConfig.js.map +1 -1
  51. package/dist/components/hotKey/style.less +99 -99
  52. package/dist/components/hotKey/utils.js.map +1 -1
  53. package/dist/components/input/index.js +6 -6
  54. package/dist/components/input/index.js.map +1 -1
  55. package/dist/components/input/style.less +107 -107
  56. package/dist/components/input/tplusInput/index.js +30 -30
  57. package/dist/components/input/tplusInput/index.js.map +1 -1
  58. package/dist/components/input/tplusInput/inputContent.js.map +1 -1
  59. package/dist/components/input/tplusInput/inputs.js +7 -7
  60. package/dist/components/input/tplusInput/inputs.js.map +1 -1
  61. package/dist/components/input/tplusInput/style.less +194 -194
  62. package/dist/components/input/utils/index.js.map +1 -1
  63. package/dist/components/inventorySearch/api.js +58 -58
  64. package/dist/components/inventorySearch/api.js.map +1 -1
  65. package/dist/components/inventorySearch/index.js +3 -3
  66. package/dist/components/inventorySearch/index.js.map +1 -1
  67. package/dist/components/inventorySearch/index.less +243 -243
  68. package/dist/components/inventorySearch/store.js.map +1 -1
  69. package/dist/components/inventorySearch/tab.js.map +1 -1
  70. package/dist/components/keyboard/index.js.map +1 -1
  71. package/dist/components/keyboard/index.less +555 -555
  72. package/dist/components/keyboard/letterKeyboard.js +2 -2
  73. package/dist/components/keyboard/letterKeyboard.js.map +1 -1
  74. package/dist/components/keyboard/numKeyboard.js +4 -4
  75. package/dist/components/keyboard/numKeyboard.js.map +1 -1
  76. package/dist/components/keyboard/numKeyboardDigit.js +4 -4
  77. package/dist/components/keyboard/numKeyboardDigit.js.map +1 -1
  78. package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
  79. package/dist/components/keyboard/numberButtonInteger.js +5 -5
  80. package/dist/components/keyboard/numberButtonInteger.js.map +1 -1
  81. package/dist/components/keyboard/numberButton_input.js +5 -5
  82. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  83. package/dist/components/keyboard/onlyKeyboard.js +7 -7
  84. package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
  85. package/dist/components/keyboard/onlyLetterButton.js +2 -2
  86. package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
  87. package/dist/components/keyboard/onlyLetterButton2.js +2 -2
  88. package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
  89. package/dist/components/keyboard/onlyLetterButton2.less +183 -183
  90. package/dist/components/keyboard/onlyNumberButton.js +2 -2
  91. package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
  92. package/dist/components/keyboard/onlyNumberButton2.js +3 -3
  93. package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
  94. package/dist/components/keyboard/textKeyboard.js.map +1 -1
  95. package/dist/components/layout/hamburger.js.map +1 -1
  96. package/dist/components/layout/index.js +10 -10
  97. package/dist/components/layout/index.js.map +1 -1
  98. package/dist/components/layout/layout.js.map +1 -1
  99. package/dist/components/layout/sider.js +12 -12
  100. package/dist/components/layout/sider.js.map +1 -1
  101. package/dist/components/layout/style.less +83 -83
  102. package/dist/components/loading/index.js +15 -15
  103. package/dist/components/loading/index.js.map +1 -1
  104. package/dist/components/loading/loadingContent.js.map +1 -1
  105. package/dist/components/loading/style.less +51 -51
  106. package/dist/components/loading/utils.js.map +1 -1
  107. package/dist/components/message/index.js +8 -8
  108. package/dist/components/message/index.js.map +1 -1
  109. package/dist/components/message/index.less +150 -150
  110. package/dist/components/modal/index.js.map +1 -1
  111. package/dist/components/modal/index.less +19 -19
  112. package/dist/components/modalVertical/style.less +114 -114
  113. package/dist/components/modalWraper/style.less +363 -363
  114. package/dist/components/modalWraper/utils.js.map +1 -1
  115. package/dist/components/notification/index.js +4 -4
  116. package/dist/components/notification/index.js.map +1 -1
  117. package/dist/components/notification/index.less +57 -57
  118. package/dist/components/overflowTip/index.js +15 -15
  119. package/dist/components/overflowTip/index.js.map +1 -1
  120. package/dist/components/overflowTip/style.less +66 -66
  121. package/dist/components/page/index.js.map +1 -1
  122. package/dist/components/page/index.less +25 -25
  123. package/dist/components/product/detail.js.map +1 -1
  124. package/dist/components/product/getCard.js +5 -5
  125. package/dist/components/product/getCard.js.map +1 -1
  126. package/dist/components/product/index.less +354 -354
  127. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  128. package/dist/components/progressState/ProgressState.js +10 -10
  129. package/dist/components/progressState/ProgressState.js.map +1 -1
  130. package/dist/components/progressState/index.js.map +1 -1
  131. package/dist/components/progressState/style.less +65 -65
  132. package/dist/components/scan/index.js.map +1 -1
  133. package/dist/components/scan/index.less +33 -33
  134. package/dist/components/select/index.js.map +1 -1
  135. package/dist/components/select/index.less +11 -11
  136. package/dist/components/settlement/asyncModal.js.map +1 -1
  137. package/dist/components/settlement/index.js.map +1 -1
  138. package/dist/components/settlement/settlement.js +5 -5
  139. package/dist/components/settlement/settlement.js.map +1 -1
  140. package/dist/components/settlement/settlement.less +1604 -1604
  141. package/dist/components/settlement/settlementStore.js +10 -10
  142. package/dist/components/settlement/settlementStore.js.map +1 -1
  143. package/dist/components/settlement/utils.js.map +1 -1
  144. package/dist/components/socket/index.js +11 -11
  145. package/dist/components/socket/index.js.map +1 -1
  146. package/dist/components/spin/index.js +6 -6
  147. package/dist/components/spin/index.js.map +1 -1
  148. package/dist/components/spin/spin-style.less +436 -436
  149. package/dist/components/test/index.js +3 -3
  150. package/dist/components/test/index.js.map +1 -1
  151. package/dist/components/ticon/iconfont/demo_index.html +4765 -4765
  152. package/dist/components/ticon/iconfont/iconfont.css +811 -811
  153. package/dist/components/ticon/iconfont/iconfont.svg +572 -572
  154. package/dist/components/ticon/index.js.map +1 -1
  155. package/dist/components/touchScroll/index.js +9 -9
  156. package/dist/components/touchScroll/index.js.map +1 -1
  157. package/dist/components/touchTable/AuthProcess.js.map +1 -1
  158. package/dist/components/touchTable/generateWater.js.map +1 -1
  159. package/dist/components/touchTable/index.js +9 -9
  160. package/dist/components/touchTable/index.js.map +1 -1
  161. package/dist/components/touchTable/index.less +189 -189
  162. package/dist/components/touchTable/utils.js.map +1 -1
  163. package/dist/demo/PopOverDemo.js.map +1 -1
  164. package/dist/index.js.map +1 -1
  165. package/dist/util/tools.js.map +1 -1
  166. package/locales/zh/tplus-components-touch.json +1 -1
  167. package/locales/zh-CN/tplus-components-touch.json +1 -1
  168. package/mocks/memberInfo.json +79 -79
  169. package/package.json +38 -38
  170. package/tsconfig.json +26 -26
@@ -42,13 +42,13 @@ var _debounce2 = _interopRequireDefault(_debounce);
42
42
 
43
43
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
44
44
 
45
- var setTimerState = null; /*
46
- * @Descripttion:
47
- * @version:
48
- * @Author: chenlongad
49
- * @Date: 2020-10-29 09:43:18
50
- * @LastEditors: chenlongad
51
- * @LastEditTime: 2020-12-29 13:17:04
45
+ var setTimerState = null; /*
46
+ * @Descripttion:
47
+ * @version:
48
+ * @Author: chenlongad
49
+ * @Date: 2020-10-29 09:43:18
50
+ * @LastEditors: chenlongad
51
+ * @LastEditTime: 2020-12-29 13:17:04
52
52
  */
53
53
 
54
54
 
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-components-touch/components/input/tplusInput/inputs.js"],"names":["Inputs","setTimerState","NativeInput","props","placeholder","onChange","value","onFocus","onBlur","noAutocomplete","nativeFocus","nativeBlur","password","disabled","className","inputRef","htmlType","size","prefix","suffix","isPasswordFixedInput","onClear","prop","isShowOtherInput","setShowOtherInput","handleChange","e","disPlayTextInput","target","replace","clearTimeout","setTimeout","dismissOtherInput","handleFocus","handleBlur","clearValue","textInput","classNames","isPassword","type","input","length","fontSize","NoAutocomplete","SelectInput","children","createInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;kBA6GwBA,M;;;;;;AArGxB;;;;AACA;;AAEA;;;;;;AAEA,IAAIC,gBAAgB,IAApB,C,CAbA;;;;;;;;;;AAgBA,IAAMC,cAAc,SAAdA,WAAc,CAACC,KAAD,EAAW;AAAA,MAEtBC,WAFsB,GAEyMD,KAFzM,CAEtBC,WAFsB;AAAA,MAETC,QAFS,GAEyMF,KAFzM,CAETE,QAFS;AAAA,MAECC,KAFD,GAEyMH,KAFzM,CAECG,KAFD;AAAA,MAEQC,OAFR,GAEyMJ,KAFzM,CAEQI,OAFR;AAAA,MAEiBC,MAFjB,GAEyML,KAFzM,CAEiBK,MAFjB;AAAA,MAEyBC,cAFzB,GAEyMN,KAFzM,CAEyBM,cAFzB;AAAA,MAEyCC,WAFzC,GAEyMP,KAFzM,CAEyCO,WAFzC;AAAA,MAEsDC,UAFtD,GAEyMR,KAFzM,CAEsDQ,UAFtD;AAAA,MAEkEC,QAFlE,GAEyMT,KAFzM,CAEkES,QAFlE;AAAA,wBAEyMT,KAFzM,CAE4EU,QAF5E;AAAA,MAE4EA,QAF5E,mCAEuF,KAFvF;AAAA,MAE8FC,SAF9F,GAEyMX,KAFzM,CAE8FW,SAF9F;AAAA,MAEyGC,QAFzG,GAEyMZ,KAFzM,CAEyGY,QAFzG;AAAA,wBAEyMZ,KAFzM,CAEmHa,QAFnH;AAAA,MAEmHA,QAFnH,mCAE8H,MAF9H;AAAA,oBAEyMb,KAFzM,CAEsIc,IAFtI;AAAA,MAEsIA,IAFtI,+BAE6I,EAF7I;AAAA,MAEgJC,MAFhJ,GA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AAO,MAAK,UAAZ;AAFK,GAAP;AAID,CALD;;AAOA,IAAMyC,cAAc,SAAdA,WAAc,CAACzC,KAAD,EAAW;AAAA,MACtB0C,QADsB,GACD1C,KADC,CACtB0C,QADsB;AAAA,MACTvB,IADS,0CACDnB,KADC;;AAE7B,SAAO;AAAA;AAAYmB,QAAZ;AAAmBuB;AAAnB,GAAP;AACD,CAHD;;AAKe,SAAS7C,MAAT,CAAgBG,KAAhB,EAAuB;AAAA,MAC7BoC,IAD6B,GACZpC,KADY,CAC7BoC,IAD6B;AAAA,MACpBjB,IADoB,0CACZnB,KADY;;;AAGpC,MAAM2C,cAAc,SAAdA,WAAc,CAACP,IAAD,EAAU;AAC5B,YAAQA,IAAR;AACE,WAAK,QAAL;AACE,eAAO,8BAAC,WAAD,EAAiBjB,IAAjB,CAAP;AACF,WAAK,QAAL;AACE,eAAO,8BAAC,WAAD,EAAiBA,IAAjB,CAAP;AACF;AACE,eAAO,qDAAiBnB,KAAjB,CAAP;AANJ;AAQD,GATD;AAUA,SAAO2C,YAAYP,IAAZ,CAAP;AACD","file":"inputs.js","sourcesContent":["/*\r\n * @Descripttion: \r\n * @version: \r\n * @Author: chenlongad\r\n * @Date: 2020-10-29 09:43:18\r\n * @LastEditors: chenlongad\r\n * @LastEditTime: 2020-12-29 13:17:04\r\n */\r\nimport React, {Fragment,useState} from 'react';\r\nimport {Ticon} from '../../../index';\r\nimport {FormControl, Select} from 'tinper-bee';\r\nimport debounce from 'lodash/debounce';\r\n\r\nlet setTimerState = null;\r\n\r\n\r\nconst NativeInput = (props) => {\r\n\r\n const {placeholder, onChange, value, onFocus, onBlur, noAutocomplete, nativeFocus, nativeBlur, password, disabled = false, className, inputRef, htmlType = 'text', size = '',prefix,suffix,isPasswordFixedInput , onClear, ...prop} = props;\r\n\r\n const [isShowOtherInput, setShowOtherInput] = useState(false);\r\n\r\n const handleChange = (e) => {\r\n if(disPlayTextInput) disPlayTextInput.value = e.target.value && e.target.value.replace(/./g,'*');\r\n if(setTimerState) clearTimeout(setTimerState);\r\n setTimerState = setTimeout(() => {\r\n dismissOtherInput();\r\n }, 2000);\r\n setShowOtherInput(true);\r\n // debounceDismissOtherInput();\r\n onChange && onChange(e);\r\n };\r\n const handleFocus = (e) => {\r\n nativeFocus();\r\n onFocus && onFocus(e);\r\n };\r\n const handleBlur = (e) => {\r\n nativeBlur();\r\n onBlur && onBlur(e);\r\n };\r\n const clearValue = (e) => {\r\n onClear && onClear(e);\r\n };\r\n\r\n const dismissOtherInput = () => {\r\n setShowOtherInput(false)\r\n return true;\r\n }\r\n\r\n let textInput = null;\r\n let disPlayTextInput;\r\n \r\n let classNames = `tplus-inout-native ${className}`;\r\n switch (size) {\r\n case 'sm':\r\n classNames += ' sm';\r\n break;\r\n case 'lg':\r\n classNames += ' lg';\r\n break;\r\n default:\r\n classNames += ' md';\r\n }\r\n const isPassword = password ? {type: 'password'} : {};\r\n return <Fragment>\r\n {!!noAutocomplete && <NoAutocomplete />}\r\n <input\r\n ref={(input) => { textInput = input; }}\r\n {...isPassword}\r\n placeholder={placeholder}\r\n disabled={disabled}\r\n onChange={handleChange}\r\n value={value}\r\n onFocus={handleFocus}\r\n onBlur={handleBlur}\r\n className={classNames}\r\n ref={inputRef}\r\n type={htmlType}\r\n {...prop}\r\n />\r\n <input\r\n ref={(input) => { disPlayTextInput = input; }}\r\n placeholder={placeholder}\r\n disabled={disabled}\r\n type = \"password\"\r\n style={{'display':isShowOtherInput && htmlType == 'password' && isPasswordFixedInput ?'block':'none','marginRight':suffix?'30px':'','marginLeft':prefix?'30px':''}}\r\n className={`${classNames} otherInput`}\r\n />\r\n {onClear && !!(value || '').length && <Ticon\r\n icon='guanbi-yuan'\r\n className='tplus-input-icon tplus-input-clear'\r\n onClick={clearValue}\r\n style={{fontSize: 14}}\r\n />}\r\n </Fragment>;\r\n};\r\n\r\nconst NoAutocomplete = (props) => {\r\n return <div className=\"tplus-input-noAutocomplete\">\r\n <input />\r\n <input type=\"password\" />\r\n </div>;\r\n}\r\n\r\nconst SelectInput = (props) => {\r\n const {children, ...prop} = props;\r\n return <Select {...prop}>{children}</Select>;\r\n};\r\n\r\nexport default function Inputs(props) {\r\n const {type, ...prop} = props;\r\n\r\n const createInput = (type) => {\r\n switch (type) {\r\n case 'native':\r\n return <NativeInput {...prop}/>;\r\n case 'select':\r\n return <SelectInput {...prop}/>;\r\n default:\r\n return <FormControl {...props}/>;\r\n }\r\n };\r\n return createInput(type);\r\n};\r\n\r\n"]}
1
+ {"version":3,"sources":["tplus-components-touch/components/input/tplusInput/inputs.js"],"names":["Inputs","setTimerState","NativeInput","props","placeholder","onChange","value","onFocus","onBlur","noAutocomplete","nativeFocus","nativeBlur","password","disabled","className","inputRef","htmlType","size","prefix","suffix","isPasswordFixedInput","onClear","prop","isShowOtherInput","setShowOtherInput","handleChange","e","disPlayTextInput","target","replace","clearTimeout","setTimeout","dismissOtherInput","handleFocus","handleBlur","clearValue","textInput","classNames","isPassword","type","input","length","fontSize","NoAutocomplete","SelectInput","children","createInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;kBA6GwBA,M;;;;;;AArGxB;;;;AACA;;AAEA;;;;;;AAEA,IAAIC,gBAAgB,IAApB,C,CAbA;;;;;;;;;;AAgBA,IAAMC,cAAc,SAAdA,WAAc,CAACC,KAAD,EAAW;AAAA,MAEtBC,WAFsB,GAEyMD,KAFzM,CAEtBC,WAFsB;AAAA,MAETC,QAFS,GAEyMF,KAFzM,CAETE,QAFS;AAAA,MAECC,KAFD,GAEyMH,KAFzM,CAECG,KAFD;AAAA,MAEQC,OAFR,GAEyMJ,KAFzM,CAEQI,OAFR;AAAA,MAEiBC,MAFjB,GAEyML,KAFzM,CAEiBK,MAFjB;AAAA,MAEyBC,cAFzB,GAEyMN,KAFzM,CAEyBM,cAFzB;AAAA,MAEyCC,WAFzC,GAEyMP,KAFzM,CAEyCO,WAFzC;AAAA,MAEsDC,UAFtD,GAEyMR,KAFzM,CAEsDQ,UAFtD;AAAA,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,cAAaD,SAAO,MAAP,GAAc,EAAxJ,EALT;AAME,iBAAcmB,UAAd;AANF,MAhBK;AAwBJhB,eAAW,CAAC,CAAC,CAACf,SAAS,EAAV,EAAcmC,MAA3B,IAAqC,8BAAC,YAAD;AACpC,YAAK,aAD+B;AAEpC,iBAAU,oCAF0B;AAGpC,eAASN,UAH2B;AAIpC,aAAO,EAACO,UAAU,EAAX;AAJ6B;AAxBjC,GAAP;AA+BD,CA/ED;;AAiFA,IAAMC,iBAAiB,SAAjBA,cAAiB,CAACxC,KAAD,EAAW;AAChC,SAAO;AAAA;AAAA,MAAK,WAAU,4BAAf;AACL,gDADK;AAEL,6CAAO,MAAK,UAAZ;AAFK,GAAP;AAID,CALD;;AAOA,IAAMyC,cAAc,SAAdA,WAAc,CAACzC,KAAD,EAAW;AAAA,MACtB0C,QADsB,GACD1C,KADC,CACtB0C,QADsB;AAAA,MACTvB,IADS,0CACDnB,KADC;;AAE7B,SAAO;AAAA;AAAYmB,QAAZ;AAAmBuB;AAAnB,GAAP;AACD,CAHD;;AAKe,SAAS7C,MAAT,CAAgBG,KAAhB,EAAuB;AAAA,MAC7BoC,IAD6B,GACZpC,KADY,CAC7BoC,IAD6B;AAAA,MACpBjB,IADoB,0CACZnB,KADY;;;AAGpC,MAAM2C,cAAc,SAAdA,WAAc,CAACP,IAAD,EAAU;AAC5B,YAAQA,IAAR;AACE,WAAK,QAAL;AACE,eAAO,8BAAC,WAAD,EAAiBjB,IAAjB,CAAP;AACF,WAAK,QAAL;AACE,eAAO,8BAAC,WAAD,EAAiBA,IAAjB,CAAP;AACF;AACE,eAAO,qDAAiBnB,KAAjB,CAAP;AANJ;AAQD,GATD;AAUA,SAAO2C,YAAYP,IAAZ,CAAP;AACD","file":"inputs.js","sourcesContent":["/*\n * @Descripttion: \n * @version: \n * @Author: chenlongad\n * @Date: 2020-10-29 09:43:18\n * @LastEditors: chenlongad\n * @LastEditTime: 2020-12-29 13:17:04\n */\nimport React, {Fragment,useState} from 'react';\nimport {Ticon} from '../../../index';\nimport {FormControl, Select} from 'tinper-bee';\nimport debounce from 'lodash/debounce';\n\nlet setTimerState = null;\n\n\nconst NativeInput = (props) => {\n\n const {placeholder, onChange, value, onFocus, onBlur, noAutocomplete, nativeFocus, nativeBlur, password, disabled = false, className, inputRef, htmlType = 'text', size = '',prefix,suffix,isPasswordFixedInput , onClear, ...prop} = props;\n\n const [isShowOtherInput, setShowOtherInput] = useState(false);\n\n const handleChange = (e) => {\n if(disPlayTextInput) disPlayTextInput.value = e.target.value && e.target.value.replace(/./g,'*');\n if(setTimerState) clearTimeout(setTimerState);\n setTimerState = setTimeout(() => {\n dismissOtherInput();\n }, 2000);\n setShowOtherInput(true);\n // debounceDismissOtherInput();\n onChange && onChange(e);\n };\n const handleFocus = (e) => {\n nativeFocus();\n onFocus && onFocus(e);\n };\n const handleBlur = (e) => {\n nativeBlur();\n onBlur && onBlur(e);\n };\n const clearValue = (e) => {\n onClear && onClear(e);\n };\n\n const dismissOtherInput = () => {\n setShowOtherInput(false)\n return true;\n }\n\n let textInput = null;\n let disPlayTextInput;\n \n let classNames = `tplus-inout-native ${className}`;\n switch (size) {\n case 'sm':\n classNames += ' sm';\n break;\n case 'lg':\n classNames += ' lg';\n break;\n default:\n classNames += ' md';\n }\n const isPassword = password ? {type: 'password'} : {};\n return <Fragment>\n {!!noAutocomplete && <NoAutocomplete />}\n <input\n ref={(input) => { textInput = input; }}\n {...isPassword}\n placeholder={placeholder}\n disabled={disabled}\n onChange={handleChange}\n value={value}\n onFocus={handleFocus}\n onBlur={handleBlur}\n className={classNames}\n ref={inputRef}\n type={htmlType}\n {...prop}\n />\n <input\n ref={(input) => { disPlayTextInput = input; }}\n placeholder={placeholder}\n disabled={disabled}\n type = \"password\"\n style={{'display':isShowOtherInput && htmlType == 'password' && isPasswordFixedInput ?'block':'none','marginRight':suffix?'30px':'','marginLeft':prefix?'30px':''}}\n className={`${classNames} otherInput`}\n />\n {onClear && !!(value || '').length && <Ticon\n icon='guanbi-yuan'\n className='tplus-input-icon tplus-input-clear'\n onClick={clearValue}\n style={{fontSize: 14}}\n />}\n </Fragment>;\n};\n\nconst NoAutocomplete = (props) => {\n return <div className=\"tplus-input-noAutocomplete\">\n <input />\n <input type=\"password\" />\n </div>;\n}\n\nconst SelectInput = (props) => {\n const {children, ...prop} = props;\n return <Select {...prop}>{children}</Select>;\n};\n\nexport default function Inputs(props) {\n const {type, ...prop} = props;\n\n const createInput = (type) => {\n switch (type) {\n case 'native':\n return <NativeInput {...prop}/>;\n case 'select':\n return <SelectInput {...prop}/>;\n default:\n return <FormControl {...props}/>;\n }\n };\n return createInput(type);\n};\n\n"]}
@@ -1,194 +1,194 @@
1
- @t_select_disabled_bgc:#fff;
2
- .tplus-input-container{
3
- display: flex;
4
- position: relative;
5
- .tplus-input-title{
6
- flex: 0 0 auto;
7
- padding: 0px 4px;
8
- line-height: 32px;
9
- font-size: 14px;
10
- text-align: right;
11
- margin-right: 10px;
12
- }
13
- .tplus-input-wrapper{
14
- flex: 1;
15
- position: relative;
16
- }
17
-
18
- .otherInput{
19
- top: 0;
20
- left: 0;
21
- position: absolute;
22
- height: 100%;
23
- flex:1;
24
- background-color: #fff;
25
- font-size: 12px;
26
- line-height: 24px;
27
- }
28
-
29
- .otherInput{
30
- position: absolute;
31
- height: 100%;
32
- width: calc(100% -32px);
33
- background-color: #fff;
34
- font-size: 12px;
35
- padding: 0px 20px;
36
- }
37
- }
38
- .tplus-input-noAutocomplete{
39
- position: fixed;
40
- top: -999999px;
41
- }
42
- .tplus-input-wrapper {
43
- position: relative;
44
- display: flex;
45
- border: 1px solid #DADADA;
46
- border-radius: 3px;
47
- height: 34px;
48
- box-sizing: border-box;
49
- input{
50
- border: none;
51
- outline: none;
52
- flex: auto;
53
- background: transparent;
54
- }
55
- ._tplus-animation-ease_{
56
- -webkit-transition: all 0.3s ease-in-out;
57
- -o-transition: all 0.3s ease-in-out;
58
- transition: all 0.3s ease-in-out;
59
- };
60
- ._tplus-animation-ease_;
61
- &.select-has-prefix-icon {
62
- .u-select-selection-rendered{
63
- padding-left: 22px;
64
- }
65
- }
66
- &.tplus-input-bottom-line{
67
- border: none;
68
- border-radius: 0px;
69
- border-bottom: 1px solid #DADADA;
70
- &.u-select{
71
- .u-select-selection{
72
- border: none;
73
- }
74
- }
75
- &.tplus-input-disabled{
76
- background-color:@t_select_disabled_bgc;
77
- }
78
- .u-select-disabled.u-select{
79
- .u-select-selection{
80
- background-color: @t_select_disabled_bgc;
81
- }
82
- }
83
- }
84
- .tplus-select-arrow-placeholder{
85
- position: absolute;
86
- height: 100%;
87
- width: 20px;
88
- right: 0px;
89
- top: 0px;
90
- z-index: 9;
91
- cursor: pointer;
92
- }
93
- .tplus-input-icon{
94
- color: rgba(0, 0, 0, 0.25);
95
- font-size: 16px;
96
- flex: 0 0 32px;
97
- line-height: 32px;
98
- text-align: center;
99
- }
100
- input {
101
- padding: 0px 10px;
102
- }
103
- .tplus-input-clear{
104
- color: #c8c8cd;
105
- }
106
- .tplus-input-prefix{
107
- left: 5px;
108
- }
109
- .tplus-input-suffix{
110
- right: 6px;
111
- }
112
- .has-prefix-icon{
113
- //padding-left: 28px;
114
- }
115
- .has-suffix-icon{
116
- //padding-right: 28px;
117
- }
118
- .u-select{
119
- padding-left: 10px;
120
- .u-select-selection{
121
- border: none;
122
- .u-select-selection-rendered{
123
- line-height: 32px;
124
- }
125
- }
126
- }
127
- &.tplus-input-focus{
128
- border: 1px solid #fea166;
129
- }
130
- &.tplus-input-bottom-line.tplus-input-focus{
131
- border: none;
132
- border-bottom: 1px solid #fea166;
133
- }
134
- &.tplus-input-disabled{
135
- background-color: #f7f9fb;
136
- border-color: #c9c9c9;
137
- color: #666666;
138
- cursor: not-allowed;
139
- input{
140
- cursor: not-allowed;
141
- }
142
- }
143
- &.tplus-input-error{
144
- border: 1px solid #FF3830;
145
- }
146
- &.tplus-input-bottom-line.tplus-input-error{
147
- border: none;
148
- border-bottom: 1px solid #FF3830;
149
- }
150
- .tplus-input-error-text{
151
- position: absolute;
152
- right: 0px;
153
- bottom: -18px;
154
- margin: 0px;
155
- font-size: 12px;
156
- color: #FF3830;
157
- }
158
- .u-select-disabled{
159
- .u-select-selection{
160
- background-color: transparent;
161
- }
162
- }
163
- .tplus-select-placeholder{
164
- position: absolute;
165
- left: 0px;
166
- right: 0px;
167
- top: 0px;
168
- bottom: 0px;
169
- z-index: 9;
170
- cursor: pointer;
171
- }
172
- }
173
-
174
- .vertical-input-container{
175
- .tplus-input-title{
176
- font-size: 28px;
177
- line-height: 64px;
178
- }
179
- .tplus-input-wrapper{
180
- height: 64px;
181
- input{
182
- font-size: 26px;
183
- padding: 0px 20px;
184
- }
185
- .tplus-input-icon {
186
- font-size: 32px;
187
- line-height: 64px;
188
- }
189
- .tplus-input-suffix{
190
- right: 12px;
191
- position: relative;
192
- }
193
- }
194
- }
1
+ @t_select_disabled_bgc:#fff;
2
+ .tplus-input-container{
3
+ display: flex;
4
+ position: relative;
5
+ .tplus-input-title{
6
+ flex: 0 0 auto;
7
+ padding: 0px 4px;
8
+ line-height: 32px;
9
+ font-size: 14px;
10
+ text-align: right;
11
+ margin-right: 10px;
12
+ }
13
+ .tplus-input-wrapper{
14
+ flex: 1;
15
+ position: relative;
16
+ }
17
+
18
+ .otherInput{
19
+ top: 0;
20
+ left: 0;
21
+ position: absolute;
22
+ height: 100%;
23
+ flex:1;
24
+ background-color: #fff;
25
+ font-size: 12px;
26
+ line-height: 24px;
27
+ }
28
+
29
+ .otherInput{
30
+ position: absolute;
31
+ height: 100%;
32
+ width: calc(100% -32px);
33
+ background-color: #fff;
34
+ font-size: 12px;
35
+ padding: 0px 20px;
36
+ }
37
+ }
38
+ .tplus-input-noAutocomplete{
39
+ position: fixed;
40
+ top: -999999px;
41
+ }
42
+ .tplus-input-wrapper {
43
+ position: relative;
44
+ display: flex;
45
+ border: 1px solid #DADADA;
46
+ border-radius: 3px;
47
+ height: 34px;
48
+ box-sizing: border-box;
49
+ input{
50
+ border: none;
51
+ outline: none;
52
+ flex: auto;
53
+ background: transparent;
54
+ }
55
+ ._tplus-animation-ease_{
56
+ -webkit-transition: all 0.3s ease-in-out;
57
+ -o-transition: all 0.3s ease-in-out;
58
+ transition: all 0.3s ease-in-out;
59
+ };
60
+ ._tplus-animation-ease_;
61
+ &.select-has-prefix-icon {
62
+ .u-select-selection-rendered{
63
+ padding-left: 22px;
64
+ }
65
+ }
66
+ &.tplus-input-bottom-line{
67
+ border: none;
68
+ border-radius: 0px;
69
+ border-bottom: 1px solid #DADADA;
70
+ &.u-select{
71
+ .u-select-selection{
72
+ border: none;
73
+ }
74
+ }
75
+ &.tplus-input-disabled{
76
+ background-color:@t_select_disabled_bgc;
77
+ }
78
+ .u-select-disabled.u-select{
79
+ .u-select-selection{
80
+ background-color: @t_select_disabled_bgc;
81
+ }
82
+ }
83
+ }
84
+ .tplus-select-arrow-placeholder{
85
+ position: absolute;
86
+ height: 100%;
87
+ width: 20px;
88
+ right: 0px;
89
+ top: 0px;
90
+ z-index: 9;
91
+ cursor: pointer;
92
+ }
93
+ .tplus-input-icon{
94
+ color: rgba(0, 0, 0, 0.25);
95
+ font-size: 16px;
96
+ flex: 0 0 32px;
97
+ line-height: 32px;
98
+ text-align: center;
99
+ }
100
+ input {
101
+ padding: 0px 10px;
102
+ }
103
+ .tplus-input-clear{
104
+ color: #c8c8cd;
105
+ }
106
+ .tplus-input-prefix{
107
+ left: 5px;
108
+ }
109
+ .tplus-input-suffix{
110
+ right: 6px;
111
+ }
112
+ .has-prefix-icon{
113
+ //padding-left: 28px;
114
+ }
115
+ .has-suffix-icon{
116
+ //padding-right: 28px;
117
+ }
118
+ .u-select{
119
+ padding-left: 10px;
120
+ .u-select-selection{
121
+ border: none;
122
+ .u-select-selection-rendered{
123
+ line-height: 32px;
124
+ }
125
+ }
126
+ }
127
+ &.tplus-input-focus{
128
+ border: 1px solid #fea166;
129
+ }
130
+ &.tplus-input-bottom-line.tplus-input-focus{
131
+ border: none;
132
+ border-bottom: 1px solid #fea166;
133
+ }
134
+ &.tplus-input-disabled{
135
+ background-color: #f7f9fb;
136
+ border-color: #c9c9c9;
137
+ color: #666666;
138
+ cursor: not-allowed;
139
+ input{
140
+ cursor: not-allowed;
141
+ }
142
+ }
143
+ &.tplus-input-error{
144
+ border: 1px solid #FF3830;
145
+ }
146
+ &.tplus-input-bottom-line.tplus-input-error{
147
+ border: none;
148
+ border-bottom: 1px solid #FF3830;
149
+ }
150
+ .tplus-input-error-text{
151
+ position: absolute;
152
+ right: 0px;
153
+ bottom: -18px;
154
+ margin: 0px;
155
+ font-size: 12px;
156
+ color: #FF3830;
157
+ }
158
+ .u-select-disabled{
159
+ .u-select-selection{
160
+ background-color: transparent;
161
+ }
162
+ }
163
+ .tplus-select-placeholder{
164
+ position: absolute;
165
+ left: 0px;
166
+ right: 0px;
167
+ top: 0px;
168
+ bottom: 0px;
169
+ z-index: 9;
170
+ cursor: pointer;
171
+ }
172
+ }
173
+
174
+ .vertical-input-container{
175
+ .tplus-input-title{
176
+ font-size: 28px;
177
+ line-height: 64px;
178
+ }
179
+ .tplus-input-wrapper{
180
+ height: 64px;
181
+ input{
182
+ font-size: 26px;
183
+ padding: 0px 20px;
184
+ }
185
+ .tplus-input-icon {
186
+ font-size: 32px;
187
+ line-height: 64px;
188
+ }
189
+ .tplus-input-suffix{
190
+ right: 12px;
191
+ position: relative;
192
+ }
193
+ }
194
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-components-touch/components/input/utils/index.js"],"names":["generatorClass","classes","arguments","forEach","currentArg","push","join","trim"],"mappings":";;;;;;;;;;QAAgBA,c,GAAAA,c;;;;AAAT,SAASA,cAAT,GAA0B;AAC/B,MAAIC,UAAU,EAAd;AACA,uCAAIC,SAAJ,GAAeC,OAAf,CAAuB,sBAAc;AACnC,QAAI,OAAOC,UAAP,KAAsB,QAA1B,EAAoC;AAClCH,cAAQI,IAAR,CAAaD,UAAb;AACD,KAFD,MAEO;AACLH,cAAQI,IAAR,iDAAgBD,UAAhB;AACD;AACF,GAND;AAOA,SAAOH,QAAQK,IAAR,CAAa,GAAb,EAAkBC,IAAlB,EAAP;AACD","file":"index.js","sourcesContent":["export function generatorClass() {\r\n var classes = [];\r\n [...arguments].forEach(currentArg => {\r\n if (typeof currentArg === 'string') {\r\n classes.push(currentArg);\r\n } else {\r\n classes.push(...currentArg);\r\n }\r\n })\r\n return classes.join(' ').trim();\r\n}\r\n"]}
1
+ {"version":3,"sources":["tplus-components-touch/components/input/utils/index.js"],"names":["generatorClass","classes","arguments","forEach","currentArg","push","join","trim"],"mappings":";;;;;;;;;;QAAgBA,c,GAAAA,c;;;;AAAT,SAASA,cAAT,GAA0B;AAC/B,MAAIC,UAAU,EAAd;AACA,uCAAIC,SAAJ,GAAeC,OAAf,CAAuB,sBAAc;AACnC,QAAI,OAAOC,UAAP,KAAsB,QAA1B,EAAoC;AAClCH,cAAQI,IAAR,CAAaD,UAAb;AACD,KAFD,MAEO;AACLH,cAAQI,IAAR,iDAAgBD,UAAhB;AACD;AACF,GAND;AAOA,SAAOH,QAAQK,IAAR,CAAa,GAAb,EAAkBC,IAAlB,EAAP;AACD","file":"index.js","sourcesContent":["export function generatorClass() {\n var classes = [];\n [...arguments].forEach(currentArg => {\n if (typeof currentArg === 'string') {\n classes.push(currentArg);\n } else {\n classes.push(...currentArg);\n }\n })\n return classes.join(' ').trim();\n}\n"]}
@@ -34,9 +34,9 @@ var InventorySearchApi = function () {
34
34
  key: 'getPOSSearchDesigns',
35
35
 
36
36
 
37
- /**
38
- *
39
- * @param {string} ViewName 获取库存栏目
37
+ /**
38
+ *
39
+ * @param {string} ViewName 获取库存栏目
40
40
  */
41
41
  value: function () {
42
42
  var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(ViewName) {
@@ -66,9 +66,9 @@ var InventorySearchApi = function () {
66
66
 
67
67
  return getPOSSearchDesigns;
68
68
  }()
69
- /**
70
- *
71
- * @param {object} SearchParams 获取查询库存查询结果
69
+ /**
70
+ *
71
+ * @param {object} SearchParams 获取查询库存查询结果
72
72
  */
73
73
 
74
74
  }, {
@@ -102,58 +102,58 @@ var InventorySearchApi = function () {
102
102
  return searchInventoryAvailableQuantity;
103
103
  }()
104
104
 
105
- /**
106
- * POS端查询栏目宽度设置
107
- * @param {string} ViewType 查询视图名称,支持:Retail,Member,Inventory
108
- * @param {array} DesignFieldWidth 需要设置的字段和对应宽度
109
- * DesignFieldWidth说明:
110
- * 参数名
111
- * 值类型
112
- * 说明
113
- * Key string 字段名
114
- * Value decimal 字段宽度
115
- * @returns {bool} 布尔值true|false
116
- *
117
- * 示例:
118
- call:newRetailBaseInfo/SavePOSSearchDesignFieldWidth
119
- post:
120
- {
121
- "POSParam": {
122
- "ViewType": "Inventory",
123
- "DesignFieldWidth": [{
124
- "Key": "InventoryCode",
125
- "Value": "150"
126
- }, {
127
- "Key": "InventoryName",
128
- "Value": "150"
129
- }, {
130
- "Key": "Specification",
131
- "Value": "150"
132
- }, {
133
- "Key": "BarCode",
134
- "Value": "150"
135
- }, {
136
- "Key": "Shorthand",
137
- "Value": "150"
138
- }, {
139
- "Key": "UnitName",
140
- "Value": "150"
141
- }, {
142
- "Key": "Batch",
143
- "Value": "150"
144
- }, {
145
- "Key": "ExpiryDate",
146
- "Value": "150"
147
- }, {
148
- "Key": "ExistingQuantity",
149
- "Value": "150"
150
- }, {
151
- "Key": "AvailableQuantity",
152
- "Value": "150"
153
- }]
154
- }
155
- }
156
- result:true
105
+ /**
106
+ * POS端查询栏目宽度设置
107
+ * @param {string} ViewType 查询视图名称,支持:Retail,Member,Inventory
108
+ * @param {array} DesignFieldWidth 需要设置的字段和对应宽度
109
+ * DesignFieldWidth说明:
110
+ * 参数名
111
+ * 值类型
112
+ * 说明
113
+ * Key string 字段名
114
+ * Value decimal 字段宽度
115
+ * @returns {bool} 布尔值true|false
116
+ *
117
+ * 示例:
118
+ call:newRetailBaseInfo/SavePOSSearchDesignFieldWidth
119
+ post:
120
+ {
121
+ "POSParam": {
122
+ "ViewType": "Inventory",
123
+ "DesignFieldWidth": [{
124
+ "Key": "InventoryCode",
125
+ "Value": "150"
126
+ }, {
127
+ "Key": "InventoryName",
128
+ "Value": "150"
129
+ }, {
130
+ "Key": "Specification",
131
+ "Value": "150"
132
+ }, {
133
+ "Key": "BarCode",
134
+ "Value": "150"
135
+ }, {
136
+ "Key": "Shorthand",
137
+ "Value": "150"
138
+ }, {
139
+ "Key": "UnitName",
140
+ "Value": "150"
141
+ }, {
142
+ "Key": "Batch",
143
+ "Value": "150"
144
+ }, {
145
+ "Key": "ExpiryDate",
146
+ "Value": "150"
147
+ }, {
148
+ "Key": "ExistingQuantity",
149
+ "Value": "150"
150
+ }, {
151
+ "Key": "AvailableQuantity",
152
+ "Value": "150"
153
+ }]
154
+ }
155
+ }
156
+ result:true
157
157
  */
158
158
 
159
159
  }, {
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-components-touch/components/inventorySearch/api.js"],"names":["InventorySearchApi","ViewName","result","SearchParams","DesignFieldWidth","ViewType","Inventory","number","length","undefined","parseInt","indexOf","substring"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;IAEqBA,kB;;;;;;;;;AAEnB;;;;;2GAIiCC,Q;;;;;;;uBACZ,oBAAK,EAAEA,kBAAF,EAAL,EAAmB,0CAAnB,EAA+D,KAA/D,EAAsE,KAAtE,C;;;AAAfC,sB;iDACGA,M;;;;;;;;;;;;;;;;AAET;;;;;;;;6GAI8CC,Y;;;;;;;uBACzB,oBAAK,EAAEA,0BAAF,EAAL,EAAuB,kEAAvB,EAA2F,KAA3F,EAAkG,KAAlG,C;;;AAAfD,sB;kDACGA,M;;;;;;;;;;;;;;;;;AAGT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6GA0D2CE,gB;;;;;;;uBACtB,oBAAK;AACtBC,4BAAUC,SADY;AAEtBF,oCAAkBA;AAFI,iBAAL,EAGhB,oDAHgB,EAGsC,KAHtC,EAG6C,KAH7C,C;;;AAAfF,sB;kDAIGA,M;;;;;;;;;;;;;;;;;;iCAIWK,M,EAAQC,M,EAAQ;AAClC,UAAID,WAAW,EAAX,IAAiBA,WAAWE,SAAhC,EAA2C;AACzC,eAAOF,MAAP;AACD;AACDA,gBAAU,EAAV;AACA,UAAIC,UAAU,CAAd,EAAiB;AACf,eAAOE,SAASH,MAAT,CAAP;AACD;AACD,UAAIA,OAAOI,OAAP,CAAe,GAAf,IAAsB,CAA1B,EAA6B;AAC3BJ,kBAAU,YAAV;AACD,OAFD,MAEO;AACLA,kBAAU,aAAV;AACD;AACD,aAAOA,OAAOK,SAAP,CAAiB,CAAjB,EAAmBL,OAAOI,OAAP,CAAe,GAAf,IAAsB,CAACH,MAAvB,GAAgC,CAAnD,CAAP;AACD;;;;;kBApGkBR,kB","file":"api.js","sourcesContent":["import { tApi } from 'tplus-api';\r\n\r\nexport default class InventorySearchApi {\r\n\r\n /**\r\n * \r\n * @param {string} ViewName 获取库存栏目\r\n */\r\n static async getPOSSearchDesigns(ViewName) {\r\n let result = await tApi({ ViewName }, 'chanjet.RE.newRetail.GetPOSSearchDesigns', false, false);\r\n return result;\r\n }\r\n /**\r\n * \r\n * @param {object} SearchParams 获取查询库存查询结果\r\n */\r\n static async searchInventoryAvailableQuantity(SearchParams) {\r\n let result = await tApi({ SearchParams }, 'chanjet.AA.DR.NewRetailBaseInfo.SearchInventoryAvailableQuantity', false, false);\r\n return result;\r\n }\r\n\r\n /**\r\n * POS端查询栏目宽度设置\r\n * @param {string} ViewType 查询视图名称,支持:Retail,Member,Inventory\r\n * @param {array} DesignFieldWidth 需要设置的字段和对应宽度 \r\n * DesignFieldWidth说明:\r\n * 参数名\r\n * 值类型\r\n * 说明\r\n * Key\tstring\t字段名\r\n * Value\tdecimal\t字段宽度\r\n * @returns {bool} 布尔值true|false\r\n * \r\n * 示例:\r\n\r\n call:newRetailBaseInfo/SavePOSSearchDesignFieldWidth\r\n\r\n post:\r\n\r\n {\r\n \"POSParam\": {\r\n \"ViewType\": \"Inventory\",\r\n \"DesignFieldWidth\": [{\r\n \"Key\": \"InventoryCode\",\r\n \"Value\": \"150\"\r\n\r\n }, {\r\n \"Key\": \"InventoryName\",\r\n \"Value\": \"150\"\r\n }, {\r\n \"Key\": \"Specification\",\r\n \"Value\": \"150\"\r\n }, {\r\n \"Key\": \"BarCode\",\r\n \"Value\": \"150\"\r\n }, {\r\n \"Key\": \"Shorthand\",\r\n \"Value\": \"150\"\r\n }, {\r\n \"Key\": \"UnitName\",\r\n \"Value\": \"150\"\r\n }, {\r\n \"Key\": \"Batch\",\r\n \"Value\": \"150\"\r\n }, {\r\n \"Key\": \"ExpiryDate\",\r\n \"Value\": \"150\"\r\n }, {\r\n \"Key\": \"ExistingQuantity\",\r\n \"Value\": \"150\"\r\n }, {\r\n \"Key\": \"AvailableQuantity\",\r\n \"Value\": \"150\"\r\n }]\r\n }\r\n }\r\n\r\n result:true\r\n */\r\n static async savePOSSearchDesignFieldWidth(DesignFieldWidth) {\r\n let result = await tApi({\r\n ViewType: Inventory,\r\n DesignFieldWidth: DesignFieldWidth\r\n }, 'chanjet.RE.newRetail.SavePOSSearchDesignFieldWidth', false, false);\r\n return result;\r\n }\r\n\r\n\r\n static formatNumber(number, length) {\r\n if (number === '' || number === undefined) {\r\n return number;\r\n }\r\n number += '';\r\n if (length == 0) {\r\n return parseInt(number);\r\n }\r\n if (number.indexOf('.') > 0) {\r\n number += '0000000000';\r\n } else {\r\n number += '.0000000000'\r\n }\r\n return number.substring(0,number.indexOf(\".\") + +length + 1)\r\n }\r\n\r\n}"]}
1
+ {"version":3,"sources":["tplus-components-touch/components/inventorySearch/api.js"],"names":["InventorySearchApi","ViewName","result","SearchParams","DesignFieldWidth","ViewType","Inventory","number","length","undefined","parseInt","indexOf","substring"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;IAEqBA,kB;;;;;;;;;AAEnB;;;;;2GAIiCC,Q;;;;;;;uBACZ,oBAAK,EAAEA,kBAAF,EAAL,EAAmB,0CAAnB,EAA+D,KAA/D,EAAsE,KAAtE,C;;;AAAfC,sB;iDACGA,M;;;;;;;;;;;;;;;;AAET;;;;;;;;6GAI8CC,Y;;;;;;;uBACzB,oBAAK,EAAEA,0BAAF,EAAL,EAAuB,kEAAvB,EAA2F,KAA3F,EAAkG,KAAlG,C;;;AAAfD,sB;kDACGA,M;;;;;;;;;;;;;;;;;AAGT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6GA0D2CE,gB;;;;;;;uBACtB,oBAAK;AACtBC,4BAAUC,SADY;AAEtBF,oCAAkBA;AAFI,iBAAL,EAGhB,oDAHgB,EAGsC,KAHtC,EAG6C,KAH7C,C;;;AAAfF,sB;kDAIGA,M;;;;;;;;;;;;;;;;;;iCAIWK,M,EAAQC,M,EAAQ;AAClC,UAAID,WAAW,EAAX,IAAiBA,WAAWE,SAAhC,EAA2C;AACzC,eAAOF,MAAP;AACD;AACDA,gBAAU,EAAV;AACA,UAAIC,UAAU,CAAd,EAAiB;AACf,eAAOE,SAASH,MAAT,CAAP;AACD;AACD,UAAIA,OAAOI,OAAP,CAAe,GAAf,IAAsB,CAA1B,EAA6B;AAC3BJ,kBAAU,YAAV;AACD,OAFD,MAEO;AACLA,kBAAU,aAAV;AACD;AACD,aAAOA,OAAOK,SAAP,CAAiB,CAAjB,EAAmBL,OAAOI,OAAP,CAAe,GAAf,IAAsB,CAACH,MAAvB,GAAgC,CAAnD,CAAP;AACD;;;;;kBApGkBR,kB","file":"api.js","sourcesContent":["import { tApi } from 'tplus-api';\n\nexport default class InventorySearchApi {\n\n /**\n * \n * @param {string} ViewName 获取库存栏目\n */\n static async getPOSSearchDesigns(ViewName) {\n let result = await tApi({ ViewName }, 'chanjet.RE.newRetail.GetPOSSearchDesigns', false, false);\n return result;\n }\n /**\n * \n * @param {object} SearchParams 获取查询库存查询结果\n */\n static async searchInventoryAvailableQuantity(SearchParams) {\n let result = await tApi({ SearchParams }, 'chanjet.AA.DR.NewRetailBaseInfo.SearchInventoryAvailableQuantity', false, false);\n return result;\n }\n\n /**\n * POS端查询栏目宽度设置\n * @param {string} ViewType 查询视图名称,支持:Retail,Member,Inventory\n * @param {array} DesignFieldWidth 需要设置的字段和对应宽度 \n * DesignFieldWidth说明:\n * 参数名\n * 值类型\n * 说明\n * Key\tstring\t字段名\n * Value\tdecimal\t字段宽度\n * @returns {bool} 布尔值true|false\n * \n * 示例:\n\n call:newRetailBaseInfo/SavePOSSearchDesignFieldWidth\n\n post:\n\n {\n \"POSParam\": {\n \"ViewType\": \"Inventory\",\n \"DesignFieldWidth\": [{\n \"Key\": \"InventoryCode\",\n \"Value\": \"150\"\n\n }, {\n \"Key\": \"InventoryName\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"Specification\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"BarCode\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"Shorthand\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"UnitName\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"Batch\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"ExpiryDate\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"ExistingQuantity\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"AvailableQuantity\",\n \"Value\": \"150\"\n }]\n }\n }\n\n result:true\n */\n static async savePOSSearchDesignFieldWidth(DesignFieldWidth) {\n let result = await tApi({\n ViewType: Inventory,\n DesignFieldWidth: DesignFieldWidth\n }, 'chanjet.RE.newRetail.SavePOSSearchDesignFieldWidth', false, false);\n return result;\n }\n\n\n static formatNumber(number, length) {\n if (number === '' || number === undefined) {\n return number;\n }\n number += '';\n if (length == 0) {\n return parseInt(number);\n }\n if (number.indexOf('.') > 0) {\n number += '0000000000';\n } else {\n number += '.0000000000'\n }\n return number.substring(0,number.indexOf(\".\") + +length + 1)\n }\n\n}"]}
@@ -45,9 +45,9 @@ var _inherits2 = require('babel-runtime/helpers/inherits');
45
45
 
46
46
  var _inherits3 = _interopRequireDefault(_inherits2);
47
47
 
48
- var _class; /**
49
- * 库存查询
50
- * @param {func} onClick 点击行 返回两个参数,1 (数据), 2 (1 本店库存 2 周边店推荐)
48
+ var _class; /**
49
+ * 库存查询
50
+ * @param {func} onClick 点击行 返回两个参数,1 (数据), 2 (1 本店库存 2 周边店推荐)
51
51
  */
52
52
 
53
53
  require('tinper-bee/dist/Tabs/index.css');