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.
- package/README.md +16 -16
- package/dist/components/addLog/AddLogProcessor.js +6 -6
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +3 -3
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/autoComplete/index.js +14 -14
- package/dist/components/autoComplete/index.js.map +1 -1
- package/dist/components/autoComplete/index.less +89 -89
- package/dist/components/autoComplete/option.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +4 -4
- package/dist/components/billSearch/api.js +26 -26
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +6 -6
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +573 -573
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js +4 -0
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +14 -11
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/autoComplete/index.js.map +1 -1
- package/dist/components/commonForm/autoComplete/style.less +7 -7
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/style.less +10 -10
- package/dist/components/commonForm/formControl/index.js +7 -7
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/formControl/style.less +7 -7
- package/dist/components/commonForm/index.js +4 -4
- package/dist/components/commonForm/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/style.less +16 -16
- package/dist/components/commonForm/radio/index.js.map +1 -1
- package/dist/components/commonForm/radio/style.less +10 -10
- package/dist/components/commonForm/style.less +11 -11
- package/dist/components/deliverySearch/api.js +21 -21
- package/dist/components/deliverySearch/api.js.map +1 -1
- package/dist/components/deliverySearch/index.js +6 -6
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.less +623 -623
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/hotKey/config.js +23 -23
- package/dist/components/hotKey/config.js.map +1 -1
- package/dist/components/hotKey/hotKeyModal.js.map +1 -1
- package/dist/components/hotKey/index.js +26 -26
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/hotKey/style.less +99 -99
- package/dist/components/hotKey/utils.js.map +1 -1
- package/dist/components/input/index.js +6 -6
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/style.less +107 -107
- package/dist/components/input/tplusInput/index.js +30 -30
- package/dist/components/input/tplusInput/index.js.map +1 -1
- package/dist/components/input/tplusInput/inputContent.js.map +1 -1
- package/dist/components/input/tplusInput/inputs.js +7 -7
- package/dist/components/input/tplusInput/inputs.js.map +1 -1
- package/dist/components/input/tplusInput/style.less +194 -194
- package/dist/components/input/utils/index.js.map +1 -1
- package/dist/components/inventorySearch/api.js +58 -58
- package/dist/components/inventorySearch/api.js.map +1 -1
- package/dist/components/inventorySearch/index.js +3 -3
- package/dist/components/inventorySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/index.less +243 -243
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +555 -555
- package/dist/components/keyboard/letterKeyboard.js +2 -2
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +4 -4
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardDigit.js +4 -4
- package/dist/components/keyboard/numKeyboardDigit.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
- package/dist/components/keyboard/numberButtonInteger.js +5 -5
- package/dist/components/keyboard/numberButtonInteger.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +5 -5
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/onlyKeyboard.js +7 -7
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton.js +2 -2
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.js +2 -2
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +183 -183
- package/dist/components/keyboard/onlyNumberButton.js +2 -2
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
- package/dist/components/keyboard/onlyNumberButton2.js +3 -3
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
- package/dist/components/keyboard/textKeyboard.js.map +1 -1
- package/dist/components/layout/hamburger.js.map +1 -1
- package/dist/components/layout/index.js +10 -10
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/sider.js +12 -12
- package/dist/components/layout/sider.js.map +1 -1
- package/dist/components/layout/style.less +83 -83
- package/dist/components/loading/index.js +15 -15
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +51 -51
- package/dist/components/loading/utils.js.map +1 -1
- package/dist/components/message/index.js +8 -8
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +150 -150
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/modal/index.less +19 -19
- package/dist/components/modalVertical/style.less +114 -114
- package/dist/components/modalWraper/style.less +363 -363
- package/dist/components/modalWraper/utils.js.map +1 -1
- package/dist/components/notification/index.js +4 -4
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/index.less +57 -57
- package/dist/components/overflowTip/index.js +15 -15
- package/dist/components/overflowTip/index.js.map +1 -1
- package/dist/components/overflowTip/style.less +66 -66
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/page/index.less +25 -25
- package/dist/components/product/detail.js.map +1 -1
- package/dist/components/product/getCard.js +5 -5
- package/dist/components/product/getCard.js.map +1 -1
- package/dist/components/product/index.less +354 -354
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +10 -10
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/progressState/index.js.map +1 -1
- package/dist/components/progressState/style.less +65 -65
- package/dist/components/scan/index.js.map +1 -1
- package/dist/components/scan/index.less +33 -33
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/index.less +11 -11
- package/dist/components/settlement/asyncModal.js.map +1 -1
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/settlement.js +5 -5
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1604 -1604
- package/dist/components/settlement/settlementStore.js +10 -10
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +11 -11
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +4765 -4765
- package/dist/components/ticon/iconfont/iconfont.css +811 -811
- package/dist/components/ticon/iconfont/iconfont.svg +572 -572
- package/dist/components/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +9 -9
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/AuthProcess.js.map +1 -1
- package/dist/components/touchTable/generateWater.js.map +1 -1
- package/dist/components/touchTable/index.js +9 -9
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +189 -189
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js.map +1 -1
- package/locales/zh/tplus-components-touch.json +1 -1
- package/locales/zh-CN/tplus-components-touch.json +1 -1
- package/mocks/memberInfo.json +79 -79
- package/package.json +38 -38
- 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":";;;;;;;;;;;;;;;;;;;;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AT,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":["/*\
|
|
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,GAEy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Content":["/*\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() {\
|
|
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
|
-
|
|
119
|
-
|
|
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
|
-
|
|
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';\
|
|
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');
|