kts-component-invoice-operate 3.2.157 → 3.2.158
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
|
@@ -17729,16 +17729,6 @@ var RULES$1 = {
|
|
|
17729
17729
|
}];
|
|
17730
17730
|
}
|
|
17731
17731
|
};
|
|
17732
|
-
|
|
17733
|
-
var formatCompanyName$1 = function formatCompanyName(e) {
|
|
17734
|
-
var _e$target;
|
|
17735
|
-
|
|
17736
|
-
var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
17737
|
-
|
|
17738
|
-
if (value) {
|
|
17739
|
-
return value.replace('(', '(').replace(')', ')').replace(' ', '');
|
|
17740
|
-
}
|
|
17741
|
-
};
|
|
17742
17732
|
/** 农产品干系人 */
|
|
17743
17733
|
|
|
17744
17734
|
|
|
@@ -17816,12 +17806,28 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
17816
17806
|
label: "\u540D\u79F0",
|
|
17817
17807
|
colon: false
|
|
17818
17808
|
}, getFieldDecorator('supplierName', {
|
|
17819
|
-
rules: getRules('supplierName', RULES$1.companyName('销售方名称'))
|
|
17820
|
-
|
|
17821
|
-
})( /*#__PURE__*/React.createElement(
|
|
17809
|
+
rules: getRules('supplierName', RULES$1.companyName('销售方名称')) // getValueFromEvent: formatCompanyName
|
|
17810
|
+
|
|
17811
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
|
|
17812
|
+
myform: form,
|
|
17813
|
+
fieldName: 'supplierName',
|
|
17822
17814
|
readOnly: isReadOnly('supplierName'),
|
|
17823
17815
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17824
|
-
autoComplete: "off"
|
|
17816
|
+
autoComplete: "off",
|
|
17817
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
|
|
17818
|
+
type: 'link',
|
|
17819
|
+
style: {
|
|
17820
|
+
padding: 0,
|
|
17821
|
+
width: 20,
|
|
17822
|
+
height: '100%'
|
|
17823
|
+
},
|
|
17824
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
17825
|
+
component: SvgPlus$1
|
|
17826
|
+
}),
|
|
17827
|
+
onClick: function onClick() {
|
|
17828
|
+
onClickImportButton && onClickImportButton(controller);
|
|
17829
|
+
}
|
|
17830
|
+
})
|
|
17825
17831
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17826
17832
|
span: 24
|
|
17827
17833
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
package/dist/index.js
CHANGED
|
@@ -17739,16 +17739,6 @@ var RULES$1 = {
|
|
|
17739
17739
|
}];
|
|
17740
17740
|
}
|
|
17741
17741
|
};
|
|
17742
|
-
|
|
17743
|
-
var formatCompanyName$1 = function formatCompanyName(e) {
|
|
17744
|
-
var _e$target;
|
|
17745
|
-
|
|
17746
|
-
var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
17747
|
-
|
|
17748
|
-
if (value) {
|
|
17749
|
-
return value.replace('(', '(').replace(')', ')').replace(' ', '');
|
|
17750
|
-
}
|
|
17751
|
-
};
|
|
17752
17742
|
/** 农产品干系人 */
|
|
17753
17743
|
|
|
17754
17744
|
|
|
@@ -17826,12 +17816,28 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
|
|
|
17826
17816
|
label: "\u540D\u79F0",
|
|
17827
17817
|
colon: false
|
|
17828
17818
|
}, getFieldDecorator('supplierName', {
|
|
17829
|
-
rules: getRules('supplierName', RULES$1.companyName('销售方名称'))
|
|
17830
|
-
|
|
17831
|
-
})( /*#__PURE__*/React__default['default'].createElement(
|
|
17819
|
+
rules: getRules('supplierName', RULES$1.companyName('销售方名称')) // getValueFromEvent: formatCompanyName
|
|
17820
|
+
|
|
17821
|
+
})( /*#__PURE__*/React__default['default'].createElement(BuyerNameInput$2, {
|
|
17822
|
+
myform: form,
|
|
17823
|
+
fieldName: 'supplierName',
|
|
17832
17824
|
readOnly: isReadOnly('supplierName'),
|
|
17833
17825
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17834
|
-
autoComplete: "off"
|
|
17826
|
+
autoComplete: "off",
|
|
17827
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
17828
|
+
type: 'link',
|
|
17829
|
+
style: {
|
|
17830
|
+
padding: 0,
|
|
17831
|
+
width: 20,
|
|
17832
|
+
height: '100%'
|
|
17833
|
+
},
|
|
17834
|
+
icon: /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
17835
|
+
component: SvgPlus$1
|
|
17836
|
+
}),
|
|
17837
|
+
onClick: function onClick() {
|
|
17838
|
+
onClickImportButton && onClickImportButton(controller);
|
|
17839
|
+
}
|
|
17840
|
+
})
|
|
17835
17841
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17836
17842
|
span: 24
|
|
17837
17843
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
package/package.json
CHANGED
|
@@ -140,8 +140,28 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
140
140
|
<Form.Item label='名称' colon={false}>
|
|
141
141
|
{getFieldDecorator('supplierName', {
|
|
142
142
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
143
|
-
getValueFromEvent: formatCompanyName
|
|
144
|
-
})
|
|
143
|
+
// getValueFromEvent: formatCompanyName
|
|
144
|
+
})
|
|
145
|
+
// (<MyInput readOnly={isReadOnly('supplierName')} placeholder="请输入名称" autoComplete="off" />)
|
|
146
|
+
(
|
|
147
|
+
<BuyerNameInput
|
|
148
|
+
myform={form}
|
|
149
|
+
fieldName='supplierName'
|
|
150
|
+
readOnly={isReadOnly('supplierName')}
|
|
151
|
+
placeholder="请输入名称"
|
|
152
|
+
autoComplete="off"
|
|
153
|
+
suffix={
|
|
154
|
+
isShowImportButton === true &&
|
|
155
|
+
<Button
|
|
156
|
+
type='link'
|
|
157
|
+
style={{ padding: 0, width: 20, height: '100%' }}
|
|
158
|
+
icon={<Icon component={PlusSvg} />}
|
|
159
|
+
onClick={() => { onClickImportButton && onClickImportButton(controller) }}
|
|
160
|
+
/>
|
|
161
|
+
}
|
|
162
|
+
/>
|
|
163
|
+
)
|
|
164
|
+
}
|
|
145
165
|
</Form.Item>
|
|
146
166
|
</Col>
|
|
147
167
|
|