kts-component-invoice-operate 3.2.257 → 3.2.259
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/Invoice/Invoice-digtal/_test/passenger/index.d.ts +4 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IColumnsReplenish/index.d.ts +6 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IGood/index.d.ts +24 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/index.d.ts +44 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +5 -0
- package/dist/Invoice/InvoiceController/fns/addPassenger.d.ts +6 -0
- package/dist/Invoice/InvoiceController/fns/delPassenger.d.ts +6 -0
- package/dist/Invoice/InvoiceController/fns/saveEditPassenger.d.ts +6 -0
- package/dist/Invoice/InvoiceController/fns/setEditPassenger.d.ts +6 -0
- package/dist/Invoice/InvoiceController/index.d.ts +12 -0
- package/dist/Invoice/index.d.ts +2 -0
- package/dist/Invoice/ui/components/CustomCascader/index.d.ts +20 -0
- package/dist/Invoice/ui/default/ImportPassengerDrawer/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/PassengerList/hook/useColumns/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/PassengerList/hook/useColumns/ui/TitleText/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/PassengerList/hook/useOnRow/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/PassengerList/hook/useRowSelection/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/PassengerList/hook/useWindowClick/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/PassengerList/index.d.ts +18 -0
- package/dist/Invoice/ui/digtal/PassengerList/ui/AddRowButton/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/PassengerList/ui/BatchImportButton/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/PassengerList/ui/TableRow/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/PassengerList/ui/TableVirtual/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +2 -0
- package/dist/index.esm.js +3501 -45
- package/dist/index.js +3491 -35
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +12 -0
- package/src/Invoice/Invoice-digtal/_test/passenger/index.tsx +14602 -0
- package/src/Invoice/Invoice-digtal/index.md +3 -0
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +11 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IColumnsReplenish/index.ts +10 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IGood/index.ts +34 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/index.ts +179 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +8 -2
- package/src/Invoice/InvoiceController/fns/addPassenger.ts +11 -0
- package/src/Invoice/InvoiceController/fns/delPassenger.ts +38 -0
- package/src/Invoice/InvoiceController/fns/saveEditPassenger.ts +24 -0
- package/src/Invoice/InvoiceController/fns/setEditPassenger.ts +16 -0
- package/src/Invoice/InvoiceController/index.ts +23 -1
- package/src/Invoice/index.tsx +5 -0
- package/src/Invoice/ui/components/CustomCascader/index.tsx +356 -0
- package/src/Invoice/ui/default/ImportPassengerDrawer/index.tsx +214 -0
- package/src/Invoice/ui/digtal/PassengerList/hook/useColumns/index.tsx +428 -0
- package/src/Invoice/ui/digtal/PassengerList/hook/useColumns/ui/TitleText/index.tsx +20 -0
- package/src/Invoice/ui/digtal/PassengerList/hook/useOnRow/index.tsx +37 -0
- package/src/Invoice/ui/digtal/PassengerList/hook/useRowSelection/index.tsx +120 -0
- package/src/Invoice/ui/digtal/PassengerList/hook/useWindowClick/index.tsx +23 -0
- package/src/Invoice/ui/digtal/PassengerList/index.less +73 -0
- package/src/Invoice/ui/digtal/PassengerList/index.tsx +152 -0
- package/src/Invoice/ui/digtal/PassengerList/ui/AddRowButton/index.tsx +75 -0
- package/src/Invoice/ui/digtal/PassengerList/ui/BatchImportButton/index.tsx +74 -0
- package/src/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -0
- package/src/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -0
- package/src/Invoice/ui/digtal/PassengerList/ui/TableRow/index.less +29 -0
- package/src/Invoice/ui/digtal/PassengerList/ui/TableRow/index.tsx +21 -0
- package/src/Invoice/ui/digtal/PassengerList/ui/TableVirtual/index.less +39 -0
- package/src/Invoice/ui/digtal/PassengerList/ui/TableVirtual/index.tsx +109 -0
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +22 -17
|
@@ -72,6 +72,9 @@ export interface IStakeholder {
|
|
|
72
72
|
/** 购方,销方银行信息 勾选按钮是否显示 **/
|
|
73
73
|
leqi?: boolean;
|
|
74
74
|
|
|
75
|
+
/** 是否允许编辑勾选按钮 */
|
|
76
|
+
allowEditFlag?: boolean;
|
|
77
|
+
|
|
75
78
|
/** 购方,销方地址电话 勾选按钮是否显示 **/
|
|
76
79
|
riskData?: boolean;
|
|
77
80
|
|
|
@@ -81,7 +84,7 @@ export interface IStakeholder {
|
|
|
81
84
|
/** 干系人 */
|
|
82
85
|
export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.create())(props => {
|
|
83
86
|
|
|
84
|
-
const { form, isShowImportButton, onClickImportButton, isVatNormal = false } = props;
|
|
87
|
+
const { form, isShowImportButton, allowEditFlag, onClickImportButton, isVatNormal = false } = props;
|
|
85
88
|
|
|
86
89
|
const [isExpand, setExpand] = React.useState(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
87
90
|
|
|
@@ -120,6 +123,8 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
120
123
|
|
|
121
124
|
const isReadOnly = React.useCallback(field => readOnly || disableds.indexOf(field) >= 0, [disableds, readOnly]);
|
|
122
125
|
|
|
126
|
+
const isReadOnly2 = React.useCallback(field => model === 'readOnly' || (model === 'prefab' && !allowEditFlag), [allowEditFlag, model]);
|
|
127
|
+
|
|
123
128
|
const getRules = React.useCallback((field, defaultRules) => {
|
|
124
129
|
if (isReadOnly(field)) return [];
|
|
125
130
|
return rulesMap[field] || defaultRules;
|
|
@@ -137,7 +142,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
137
142
|
<div>
|
|
138
143
|
{'购买方信息'.split('').map(e => <span>{e}</span>)}
|
|
139
144
|
{
|
|
140
|
-
!readOnly &&
|
|
145
|
+
// !readOnly &&
|
|
141
146
|
<Icon
|
|
142
147
|
className="digtal-stakeholder-expand-button"
|
|
143
148
|
component={isExpand ? ArrowUpSvg : ArrowDownSvg}
|
|
@@ -200,7 +205,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
200
205
|
</Form.Item>
|
|
201
206
|
</Col>
|
|
202
207
|
|
|
203
|
-
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
208
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
204
209
|
<Form.Item label='购买方地址' colon={false}>
|
|
205
210
|
{getFieldDecorator('buyerAddress', {
|
|
206
211
|
rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
|
|
@@ -208,7 +213,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
208
213
|
</Form.Item>
|
|
209
214
|
</Col>
|
|
210
215
|
|
|
211
|
-
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
216
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
212
217
|
<Form.Item label='电话' colon={false} className='telephone'>
|
|
213
218
|
{getFieldDecorator('buyerPhone', {
|
|
214
219
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
@@ -217,10 +222,10 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
217
222
|
</Col>
|
|
218
223
|
{(props.leqi) &&
|
|
219
224
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
220
|
-
<Form.Item
|
|
225
|
+
<Form.Item colon={false}>
|
|
221
226
|
{getFieldDecorator('buyerAddressPhoneFlag', {
|
|
222
227
|
valuePropName: 'checked',
|
|
223
|
-
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={
|
|
228
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly2('buyerAddressPhoneFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
224
229
|
</Form.Item>
|
|
225
230
|
</Col>
|
|
226
231
|
}
|
|
@@ -241,10 +246,10 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
241
246
|
</Col>
|
|
242
247
|
{(props.leqi) &&
|
|
243
248
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
244
|
-
<Form.Item
|
|
249
|
+
<Form.Item colon={false}>
|
|
245
250
|
{getFieldDecorator('buyerBankAccountFlag', {
|
|
246
251
|
valuePropName: 'checked',
|
|
247
|
-
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={
|
|
252
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly2('buyerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
248
253
|
</Form.Item>
|
|
249
254
|
</Col>
|
|
250
255
|
}
|
|
@@ -254,7 +259,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
254
259
|
<div>
|
|
255
260
|
{'销售方信息'.split('').map(e => <span>{e}</span>)}
|
|
256
261
|
{
|
|
257
|
-
!readOnly &&
|
|
262
|
+
// !readOnly &&
|
|
258
263
|
<Icon
|
|
259
264
|
className="digtal-stakeholder-expand-button"
|
|
260
265
|
component={isExpand ? ArrowUpSvg : ArrowDownSvg}
|
|
@@ -290,7 +295,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
290
295
|
</Form.Item>
|
|
291
296
|
</Col>
|
|
292
297
|
|
|
293
|
-
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
298
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
294
299
|
<Form.Item label='销售方地址' colon={false}>
|
|
295
300
|
{getFieldDecorator('sellerAddress', {
|
|
296
301
|
rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
|
|
@@ -298,19 +303,19 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
298
303
|
</Form.Item>
|
|
299
304
|
</Col>
|
|
300
305
|
|
|
301
|
-
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
306
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
302
307
|
<Form.Item label='电话' colon={false} className='telephone' >
|
|
303
308
|
{getFieldDecorator('sellerPhone', {
|
|
304
309
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
305
310
|
})(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
306
311
|
</Form.Item>
|
|
307
312
|
</Col>
|
|
308
|
-
|
|
313
|
+
{(props.leqi) &&
|
|
309
314
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
310
|
-
<Form.Item
|
|
315
|
+
<Form.Item colon={false}>
|
|
311
316
|
{getFieldDecorator('sellerAddressPhoneFlag', {
|
|
312
317
|
valuePropName: 'checked',
|
|
313
|
-
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={
|
|
318
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly2('sellerAddressPhoneFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
314
319
|
</Form.Item>
|
|
315
320
|
</Col>
|
|
316
321
|
}
|
|
@@ -329,12 +334,12 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
329
334
|
})(<MyInput readOnly={isReadOnly('sellerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
|
|
330
335
|
</Form.Item>
|
|
331
336
|
</Col>
|
|
332
|
-
{(props.leqi
|
|
337
|
+
{(props.leqi) &&
|
|
333
338
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
334
339
|
<Form.Item colon={false}>
|
|
335
340
|
{getFieldDecorator('sellerBankAccountFlag', {
|
|
336
|
-
|
|
337
|
-
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={
|
|
341
|
+
valuePropName: 'checked',
|
|
342
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly2('sellerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
338
343
|
</Form.Item>
|
|
339
344
|
</Col>
|
|
340
345
|
}
|