kts-component-invoice-operate 3.2.26 → 3.2.27
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 +3 -15
- package/dist/index.js +3 -15
- package/package.json +1 -1
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +4 -11
package/dist/index.esm.js
CHANGED
|
@@ -14815,19 +14815,7 @@ var css_248z$d = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display:
|
|
|
14815
14815
|
styleInject(css_248z$d);
|
|
14816
14816
|
|
|
14817
14817
|
var RULES = {
|
|
14818
|
-
|
|
14819
|
-
return [{
|
|
14820
|
-
required: true,
|
|
14821
|
-
message: "".concat(label, "\u5FC5\u586B")
|
|
14822
|
-
}, {
|
|
14823
|
-
max: 300,
|
|
14824
|
-
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
14825
|
-
}, {
|
|
14826
|
-
pattern: /^([A-Za-z()\u4e00-\u9fa5])*$/g,
|
|
14827
|
-
message: "".concat(label, "\u4EC5\u80FD\u4E2D\u6587\u3001\u82F1\u6587\u3001\u62EC\u53F7")
|
|
14828
|
-
}];
|
|
14829
|
-
},
|
|
14830
|
-
companyNameByNormal: function companyNameByNormal(label) {
|
|
14818
|
+
companyName: function companyName(label) {
|
|
14831
14819
|
return [{
|
|
14832
14820
|
required: true,
|
|
14833
14821
|
message: "".concat(label, "\u5FC5\u586B")
|
|
@@ -14954,7 +14942,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
14954
14942
|
label: "\u540D\u79F0",
|
|
14955
14943
|
colon: false
|
|
14956
14944
|
}, getFieldDecorator('buyerName', {
|
|
14957
|
-
rules: getRules('buyerName',
|
|
14945
|
+
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
14958
14946
|
})(React.createElement(BuyerNameInput$1, {
|
|
14959
14947
|
myform: form,
|
|
14960
14948
|
fieldName: 'buyerName',
|
|
@@ -15062,7 +15050,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
15062
15050
|
label: "\u540D\u79F0",
|
|
15063
15051
|
colon: false
|
|
15064
15052
|
}, getFieldDecorator('supplierName', {
|
|
15065
|
-
rules: getRules('supplierName', RULES.
|
|
15053
|
+
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
15066
15054
|
getValueFromEvent: formatCompanyName
|
|
15067
15055
|
})(React.createElement(MyInput$1, {
|
|
15068
15056
|
readOnly: isReadOnly('supplierName'),
|
package/dist/index.js
CHANGED
|
@@ -14825,19 +14825,7 @@ var css_248z$d = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display:
|
|
|
14825
14825
|
styleInject(css_248z$d);
|
|
14826
14826
|
|
|
14827
14827
|
var RULES = {
|
|
14828
|
-
|
|
14829
|
-
return [{
|
|
14830
|
-
required: true,
|
|
14831
|
-
message: "".concat(label, "\u5FC5\u586B")
|
|
14832
|
-
}, {
|
|
14833
|
-
max: 300,
|
|
14834
|
-
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
14835
|
-
}, {
|
|
14836
|
-
pattern: /^([A-Za-z()\u4e00-\u9fa5])*$/g,
|
|
14837
|
-
message: "".concat(label, "\u4EC5\u80FD\u4E2D\u6587\u3001\u82F1\u6587\u3001\u62EC\u53F7")
|
|
14838
|
-
}];
|
|
14839
|
-
},
|
|
14840
|
-
companyNameByNormal: function companyNameByNormal(label) {
|
|
14828
|
+
companyName: function companyName(label) {
|
|
14841
14829
|
return [{
|
|
14842
14830
|
required: true,
|
|
14843
14831
|
message: "".concat(label, "\u5FC5\u586B")
|
|
@@ -14964,7 +14952,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
14964
14952
|
label: "\u540D\u79F0",
|
|
14965
14953
|
colon: false
|
|
14966
14954
|
}, getFieldDecorator('buyerName', {
|
|
14967
|
-
rules: getRules('buyerName',
|
|
14955
|
+
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
14968
14956
|
})(React__default['default'].createElement(BuyerNameInput$1, {
|
|
14969
14957
|
myform: form,
|
|
14970
14958
|
fieldName: 'buyerName',
|
|
@@ -15072,7 +15060,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
15072
15060
|
label: "\u540D\u79F0",
|
|
15073
15061
|
colon: false
|
|
15074
15062
|
}, getFieldDecorator('supplierName', {
|
|
15075
|
-
rules: getRules('supplierName', RULES.
|
|
15063
|
+
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
15076
15064
|
getValueFromEvent: formatCompanyName
|
|
15077
15065
|
})(React__default['default'].createElement(MyInput$1, {
|
|
15078
15066
|
readOnly: isReadOnly('supplierName'),
|
package/package.json
CHANGED
|
@@ -14,12 +14,7 @@ import Invoice from "../../../../Invoice";
|
|
|
14
14
|
import './index.less';
|
|
15
15
|
|
|
16
16
|
const RULES = {
|
|
17
|
-
|
|
18
|
-
{ required: true, message: `${label}必填` },
|
|
19
|
-
{ max: 300, message: `${label}内容超长` },
|
|
20
|
-
{ pattern: /^([A-Za-z()\u4e00-\u9fa5])*$/g, message: `${label}仅能中文、英文、括号` }
|
|
21
|
-
],
|
|
22
|
-
companyNameByNormal: (label: string) => [
|
|
17
|
+
companyName: (label: string) => [
|
|
23
18
|
{ required: true, message: `${label}必填` },
|
|
24
19
|
{ max: 200, message: `${label}内容超长` }
|
|
25
20
|
],
|
|
@@ -120,9 +115,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
120
115
|
<Col span={24} >
|
|
121
116
|
<Form.Item label='名称' colon={false}>
|
|
122
117
|
{getFieldDecorator('buyerName', {
|
|
123
|
-
rules: getRules('buyerName',
|
|
124
|
-
RULES.companyNameByNormal('购买方名称') :
|
|
125
|
-
RULES.companyNameBySpecial('购买方名称')),
|
|
118
|
+
rules: getRules('buyerName', RULES.companyName('购买方名称')),
|
|
126
119
|
})(
|
|
127
120
|
<BuyerNameInput
|
|
128
121
|
myform={form}
|
|
@@ -224,7 +217,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
224
217
|
<Col span={24} >
|
|
225
218
|
<Form.Item label='名称' colon={false}>
|
|
226
219
|
{getFieldDecorator('supplierName', {
|
|
227
|
-
rules: getRules('supplierName', RULES.
|
|
220
|
+
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
228
221
|
getValueFromEvent: formatCompanyName
|
|
229
222
|
})(<MyInput readOnly={isReadOnly('supplierName')} placeholder="请输入" autoComplete="off" />)}
|
|
230
223
|
</Form.Item>
|
|
@@ -353,4 +346,4 @@ class Discontinue {
|
|
|
353
346
|
clearTimeout(Discontinue.timer);
|
|
354
347
|
Discontinue.timer = setTimeout(resolve, interval);
|
|
355
348
|
})
|
|
356
|
-
}
|
|
349
|
+
}
|