kts-component-invoice-operate 3.2.189 → 3.2.191
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 +9 -4
- package/dist/index.js +9 -4
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +21 -2
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +1 -1
- package/src/Invoice/Invoice-digtal/index.md +8 -6
- package/src/Invoice/ui/digtal/Architecture/index.less +8 -4
- package/src/Invoice/ui/digtal/Architecture/index.tsx +1 -1
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +2 -0
package/dist/index.esm.js
CHANGED
|
@@ -17662,7 +17662,9 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17662
17662
|
}
|
|
17663
17663
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17664
17664
|
colon: false
|
|
17665
|
-
}, getFieldDecorator('buyerBankAccountFlag', {
|
|
17665
|
+
}, getFieldDecorator('buyerBankAccountFlag', {
|
|
17666
|
+
valuePropName: 'checked'
|
|
17667
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17666
17668
|
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17667
17669
|
disabled: isReadOnly('buyerBankAccountFlag'),
|
|
17668
17670
|
style: {
|
|
@@ -17783,7 +17785,9 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17783
17785
|
}
|
|
17784
17786
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17785
17787
|
colon: false
|
|
17786
|
-
}, getFieldDecorator('sellerBankAccountFlag', {
|
|
17788
|
+
}, getFieldDecorator('sellerBankAccountFlag', {
|
|
17789
|
+
valuePropName: 'checked'
|
|
17790
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17787
17791
|
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17788
17792
|
disabled: isReadOnly('sellerBankAccountFlag'),
|
|
17789
17793
|
style: {
|
|
@@ -24278,7 +24282,7 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
24278
24282
|
return MyNY;
|
|
24279
24283
|
}(React.Component);
|
|
24280
24284
|
|
|
24281
|
-
var css_248z$s = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n";
|
|
24285
|
+
var css_248z$s = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-real-estate-info-digtal .break-word {\n word-break: break-word;\n}\n";
|
|
24282
24286
|
styleInject(css_248z$s);
|
|
24283
24287
|
|
|
24284
24288
|
/** 特殊信息-建筑服务 */
|
|
@@ -24334,7 +24338,8 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
24334
24338
|
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24335
24339
|
span: 6
|
|
24336
24340
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24337
|
-
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24341
|
+
label: "\u8BE6\u7EC6\u5730\u5740",
|
|
24342
|
+
className: "break-word"
|
|
24338
24343
|
}, getFieldDecorator('constructDetailAddress', {
|
|
24339
24344
|
rules: readOnly ? [] : [{
|
|
24340
24345
|
required: true,
|
package/dist/index.js
CHANGED
|
@@ -17672,7 +17672,9 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17672
17672
|
}
|
|
17673
17673
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17674
17674
|
colon: false
|
|
17675
|
-
}, getFieldDecorator('buyerBankAccountFlag', {
|
|
17675
|
+
}, getFieldDecorator('buyerBankAccountFlag', {
|
|
17676
|
+
valuePropName: 'checked'
|
|
17677
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17676
17678
|
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17677
17679
|
disabled: isReadOnly('buyerBankAccountFlag'),
|
|
17678
17680
|
style: {
|
|
@@ -17793,7 +17795,9 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17793
17795
|
}
|
|
17794
17796
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17795
17797
|
colon: false
|
|
17796
|
-
}, getFieldDecorator('sellerBankAccountFlag', {
|
|
17798
|
+
}, getFieldDecorator('sellerBankAccountFlag', {
|
|
17799
|
+
valuePropName: 'checked'
|
|
17800
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17797
17801
|
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17798
17802
|
disabled: isReadOnly('sellerBankAccountFlag'),
|
|
17799
17803
|
style: {
|
|
@@ -24288,7 +24292,7 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
24288
24292
|
return MyNY;
|
|
24289
24293
|
}(React__default['default'].Component);
|
|
24290
24294
|
|
|
24291
|
-
var css_248z$s = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n";
|
|
24295
|
+
var css_248z$s = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-real-estate-info-digtal .break-word {\n word-break: break-word;\n}\n";
|
|
24292
24296
|
styleInject(css_248z$s);
|
|
24293
24297
|
|
|
24294
24298
|
/** 特殊信息-建筑服务 */
|
|
@@ -24344,7 +24348,8 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24344
24348
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24345
24349
|
span: 6
|
|
24346
24350
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24347
|
-
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24351
|
+
label: "\u8BE6\u7EC6\u5730\u5740",
|
|
24352
|
+
className: "break-word"
|
|
24348
24353
|
}, getFieldDecorator('constructDetailAddress', {
|
|
24349
24354
|
rules: readOnly ? [] : [{
|
|
24350
24355
|
required: true,
|
package/package.json
CHANGED
|
@@ -6,11 +6,30 @@ export default () => {
|
|
|
6
6
|
const callback = (e: any) => {
|
|
7
7
|
console.log(e.target.checked)
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
const controller = React.useMemo(() => new Invoice.InvoiceController(), [])
|
|
11
|
+
|
|
12
|
+
React.useEffect(() => {
|
|
13
|
+
(async () => {
|
|
14
|
+
window.setTimeout(async () => {
|
|
15
|
+
await controller.formList.get('stakeholder')?.setFieldsValue({
|
|
16
|
+
buyerName: '国能供应链内蒙古有限公司',
|
|
17
|
+
buyerTaxId: '91150291552838725H',
|
|
18
|
+
buyerAddress: '内蒙古自治区包头稀士高新区总部经济园区9号楼204号',
|
|
19
|
+
buyerPhone: '0472-5368680',
|
|
20
|
+
buyerBank: '11050167360000000932中国银行股份有限公司包头开发区支行',
|
|
21
|
+
buyerBankAccountFlag: true,
|
|
22
|
+
})
|
|
23
|
+
}, 1000)
|
|
24
|
+
|
|
25
|
+
})()
|
|
26
|
+
}, [controller])
|
|
9
27
|
return (
|
|
10
28
|
<Invoice
|
|
11
29
|
invoiceType='digtal'
|
|
12
|
-
|
|
13
|
-
|
|
30
|
+
controller={controller}
|
|
31
|
+
stakeholder={<Invoice.Stakeholder leqi={true} invoiceMarkCallback={callback} />}
|
|
32
|
+
invoiceHeader={
|
|
14
33
|
<Invoice.InvoiceHeader
|
|
15
34
|
title='自定义'
|
|
16
35
|
/>
|
|
@@ -9,7 +9,7 @@ export default () => {
|
|
|
9
9
|
|
|
10
10
|
React.useEffect(() => {
|
|
11
11
|
(async () => {
|
|
12
|
-
await controller.run(async s => { s.model = 'readOnly' }); // 设置只读
|
|
12
|
+
// await controller.run(async s => { s.model = 'readOnly' }); // 设置只读
|
|
13
13
|
// await controller.run(async s => { s.stakeholder.enables = ['remarks'] });
|
|
14
14
|
await controller.formList.get('invoiceHeader')?.setFieldsValue({
|
|
15
15
|
no: '2029292029201920291029',
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# 数电
|
|
2
2
|
|
|
3
|
-
## 简单用法
|
|
4
|
-
<code src="./_test/easiest/index.tsx"></code>
|
|
3
|
+
<!-- ## 简单用法
|
|
4
|
+
<code src="./_test/easiest/index.tsx"></code> -->
|
|
5
|
+
|
|
6
|
+
## 建筑服务
|
|
7
|
+
<code src="./_test/architecture/index.tsx"></code>
|
|
5
8
|
|
|
6
9
|
<!-- ## 只读模式
|
|
7
|
-
<code src="./_test/readOnly/index.tsx"></code>
|
|
10
|
+
<code src="./_test/readOnly/index.tsx"></code> -->
|
|
8
11
|
|
|
9
|
-
## 发票号码 & 开票日期 & 标签
|
|
12
|
+
<!-- ## 发票号码 & 开票日期 & 标签
|
|
10
13
|
<code src="./_test/header/index.tsx"></code>
|
|
11
14
|
|
|
12
15
|
## 导入关系人
|
|
@@ -33,8 +36,7 @@
|
|
|
33
36
|
## 不动产经营租赁服务
|
|
34
37
|
<code src="./_test/realEstateInfo/index.tsx"></code>
|
|
35
38
|
|
|
36
|
-
|
|
37
|
-
<code src="./_test/architecture/index.tsx"></code>
|
|
39
|
+
|
|
38
40
|
|
|
39
41
|
## 货物运输服务
|
|
40
42
|
<code src="./_test/freight/index.tsx"></code> -->
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
.kts-invoice-operate-real-estate-info-digtal {
|
|
2
|
-
padding
|
|
2
|
+
padding: 20px;
|
|
3
3
|
border-bottom: 2px solid #9F613E;
|
|
4
|
-
border-left
|
|
5
|
-
border-right
|
|
4
|
+
border-left: 2px solid #9F613E;
|
|
5
|
+
border-right: 2px solid #9F613E;
|
|
6
6
|
|
|
7
7
|
.real-estate-info-digtal-label {
|
|
8
|
-
color
|
|
8
|
+
color: #9F613E;
|
|
9
9
|
font-weight: bold;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.ktsAnt3x-row.ktsAnt3x-form-item {
|
|
13
13
|
margin-bottom: 0;
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
.break-word {
|
|
17
|
+
word-break: break-word;
|
|
18
|
+
}
|
|
15
19
|
}
|
|
@@ -74,7 +74,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
74
74
|
</Form.Item>
|
|
75
75
|
</Col>
|
|
76
76
|
<Col span={6} >
|
|
77
|
-
<Form.Item label='详细地址' >
|
|
77
|
+
<Form.Item label='详细地址' className="break-word">
|
|
78
78
|
{getFieldDecorator('constructDetailAddress', {
|
|
79
79
|
rules: readOnly ? [] : [
|
|
80
80
|
{ required: true, message: '请输入详细地址' },
|
|
@@ -232,6 +232,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
232
232
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
233
233
|
<Form.Item colon={false}>
|
|
234
234
|
{getFieldDecorator('buyerBankAccountFlag', {
|
|
235
|
+
valuePropName: 'checked',
|
|
235
236
|
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerBankAccountFlag')} style={{whiteSpace:'nowrap'}}>是否展示</Checkbox>)}
|
|
236
237
|
</Form.Item>
|
|
237
238
|
</Col>
|
|
@@ -312,6 +313,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
312
313
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
313
314
|
<Form.Item colon={false}>
|
|
314
315
|
{getFieldDecorator('sellerBankAccountFlag', {
|
|
316
|
+
valuePropName: 'checked',
|
|
315
317
|
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerBankAccountFlag')} style={{whiteSpace:'nowrap'}}>是否展示</Checkbox>)}
|
|
316
318
|
</Form.Item>
|
|
317
319
|
</Col>
|