Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
5e8d6570
Commit
5e8d6570
authored
Sep 22, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加 orderType以区分普通订单跟合同订单的展示
parent
e705e159
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
41 additions
and
9 deletions
+41
-9
addDeliverBill.tsx
...changeApplication/exchangePrAddDeliver/addDeliverBill.tsx
+2
-1
deliverBillDetail.tsx
...ngeApplication/exchangePrAddDeliver/deliverBillDetail.tsx
+1
-0
addWarehouseBill.tsx
...Application/exchangePrAddWarehousing/addWarehouseBill.tsx
+1
-0
warehouseBillDetail.tsx
...lication/exchangePrAddWarehousing/warehouseBillDetail.tsx
+1
-0
addDeliverBill.tsx
...ce/exchangeManage/exchangePrAddDeliver/addDeliverBill.tsx
+1
-0
deliverBillDetail.tsx
...exchangeManage/exchangePrAddDeliver/deliverBillDetail.tsx
+1
-0
addWarehouseBill.tsx
...hangeManage/exchangePrAddWarehousing/addWarehouseBill.tsx
+1
-0
warehouseBillDetail.tsx
...geManage/exchangePrAddWarehousing/warehouseBillDetail.tsx
+1
-0
addDeliverBill.tsx
...e/returnApplication/returnPrAddDeliver/addDeliverBill.tsx
+2
-1
deliverBillDetail.tsx
...eturnApplication/returnPrAddDeliver/deliverBillDetail.tsx
+1
-0
addWarehouseBill.tsx
.../returnManage/returnPrAddWarehousing/addWarehouseBill.tsx
+1
-0
warehouseBillDetail.tsx
...turnManage/returnPrAddWarehousing/warehouseBillDetail.tsx
+2
-1
index.tsx
...stockSellStorage/bills/components/BillsFormPage/index.tsx
+2
-2
interface.ts
...ckSellStorage/bills/components/BillsFormPage/interface.ts
+8
-0
schema.ts
...stockSellStorage/bills/components/BillsFormPage/schema.ts
+16
-4
No files found.
src/pages/afterService/exchangeApplication/exchangePrAddDeliver/addDeliverBill.tsx
View file @
5e8d6570
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-19 19:49:57
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-
15 10:01
:18
* @LastEditTime: 2021-09-
22 14:59
:18
* @Description: 新增退货发货单
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -46,6 +46,7 @@ const ExchangeAddDeliverBill = () => {
relatedCount
:
item
.
replaceCount
,
count
:
item
.
replaceCount
,
})),
orderType
:
res
.
data
.
orderType
,
}
);
}
reject();
...
...
src/pages/afterService/exchangeApplication/exchangePrAddDeliver/deliverBillDetail.tsx
View file @
5e8d6570
...
...
@@ -42,6 +42,7 @@ const ExchangeDeliverBillDetail = () => {
count
:
item
.
replaceDeliveryCount
,
})),
remark
:
res
.
data
.
remark
,
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/afterService/exchangeApplication/exchangePrAddWarehousing/addWarehouseBill.tsx
View file @
5e8d6570
...
...
@@ -47,6 +47,7 @@ const ExchangeAddWarehouseBill = () => {
billCount
:
item
.
replaceDeliveryCount
,
count
:
item
.
replaceDeliveryCount
,
})),
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/afterService/exchangeApplication/exchangePrAddWarehousing/warehouseBillDetail.tsx
View file @
5e8d6570
...
...
@@ -43,6 +43,7 @@ const ExchangeWarehouseBillDetail = () => {
count
:
item
.
storageCount
,
})),
remark
:
res
.
data
.
remark
,
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/afterService/exchangeManage/exchangePrAddDeliver/addDeliverBill.tsx
View file @
5e8d6570
...
...
@@ -46,6 +46,7 @@ const ExchangeAddDeliverBill = () => {
relatedCount
:
item
.
replaceCount
,
count
:
item
.
receiveCount
,
})),
orderType
:
res
.
data
.
orderType
,
}
);
}
reject();
...
...
src/pages/afterService/exchangeManage/exchangePrAddDeliver/deliverBillDetail.tsx
View file @
5e8d6570
...
...
@@ -42,6 +42,7 @@ const ExchangeDeliverBillDetail = () => {
count
:
item
.
replaceDeliveryCount
,
})),
remark
:
res
.
data
.
remark
,
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/afterService/exchangeManage/exchangePrAddWarehousing/addWarehouseBill.tsx
View file @
5e8d6570
...
...
@@ -47,6 +47,7 @@ const ExchangeAddWarehouseBill = () => {
billCount
:
item
.
replaceDeliveryCount
,
count
:
item
.
replaceDeliveryCount
,
})),
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/afterService/exchangeManage/exchangePrAddWarehousing/warehouseBillDetail.tsx
View file @
5e8d6570
...
...
@@ -43,6 +43,7 @@ const ExchangeWarehouseBillDetail = () => {
count
:
item
.
storageCount
,
})),
remark
:
res
.
data
.
remark
,
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/afterService/returnApplication/returnPrAddDeliver/addDeliverBill.tsx
View file @
5e8d6570
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-04 15:53:06
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-
15 10:00:55
* @LastEditTime: 2021-09-
22 14:49:33
* @Description: 新增退货发货单
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -46,6 +46,7 @@ const ReturnAddDeliverBill = () => {
relatedCount
:
item
.
returnCount
,
count
:
item
.
returnCount
,
})),
orderType
:
res
.
data
.
orderType
,
}
);
}
reject();
...
...
src/pages/afterService/returnApplication/returnPrAddDeliver/deliverBillDetail.tsx
View file @
5e8d6570
...
...
@@ -42,6 +42,7 @@ const ReturnDeliverBillDetail = () => {
count
:
item
.
returnDeliveryCount
,
})),
remark
:
res
.
data
.
remark
,
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/afterService/returnManage/returnPrAddWarehousing/addWarehouseBill.tsx
View file @
5e8d6570
...
...
@@ -47,6 +47,7 @@ const ReturnAddWarehouseBill = () => {
billCount
:
item
.
returnDeliveryCount
,
count
:
item
.
returnDeliveryCount
,
})),
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/afterService/returnManage/returnPrAddWarehousing/warehouseBillDetail.tsx
View file @
5e8d6570
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-16 15:30:19
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-
15 10:01:4
2
* @LastEditTime: 2021-09-
22 15:06:1
2
* @Description: 退货入库单详情
*/
import
React
from
'react'
;
...
...
@@ -43,6 +43,7 @@ const ReturnWarehouseBillDetail = () => {
count
:
item
.
storageCount
,
})),
remark
:
res
.
data
.
remark
,
orderType
:
res
.
data
.
orderType
,
});
}
reject
();
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsFormPage/index.tsx
View file @
5e8d6570
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-04 11:33:33
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
8-16 15:06:14
* @LastEditTime: 2021-0
9-22 14:56:42
* @Description: 单据表单组件,提供基础的表单内容,单据明细相关由外部传入控制
*/
import
React
,
{
useEffect
,
useState
}
from
'react'
;
...
...
@@ -167,7 +167,7 @@ const BillsFormPage: React.FC<IProps> = (props: IProps) => {
customEffects
?.(
$
,
actions
);
}
}
schema=
{
createSchema
(
relatedType
,
billType
)
}
schema=
{
createSchema
(
relatedType
,
billType
,
relatedInfo
?.
orderType
)
}
editable=
{
!!
editable
}
/>
</
AnchorPage
>
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsFormPage/interface.ts
View file @
5e8d6570
...
...
@@ -104,6 +104,10 @@ export type RelatedInfoDataType = {
* 备注
*/
remark
?:
string
,
/**
* 订单类型
*/
orderType
:
number
,
}
export
type
RelatedInfoType
=
Omit
<
RelatedInfoDataType
,
'billDetails'
>
&
{
...
...
@@ -115,6 +119,10 @@ export type RelatedInfoType = Omit<RelatedInfoDataType, 'billDetails'> & {
* 单据明细数据
*/
billDetails
:
BillDetailsItemValueType
[],
/**
* 订单类型
*/
orderType
:
number
,
}
export
type
BillSubmitValuesType
=
RelatedInfoType
&
{
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsFormPage/schema.ts
View file @
5e8d6570
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-04 13:59:33
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
8-20 17:09:13
* @LastEditTime: 2021-0
9-22 14:55:11
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
...
...
@@ -27,6 +27,11 @@ import {
DEPENDENT_DOC_PRODUCTION
,
DEPENDENT_DOC_INTERNAL
,
}
from
'@/constants/commodity'
;
import
{
ORDER_TYPE_BIDDING_CONTRACT
,
ORDER_TYPE_INQUIRY_CONTRACT
,
ORDER_TYPE_TENDER_CONTRACT
,
}
from
'@/constants/order'
;
export
type
BillDetailSchemaType
=
{
[
key
:
string
]:
ISchema
,
...
...
@@ -96,13 +101,20 @@ const BILL_DIRECTION_REVER_NAME_MAP: { [key: number]: '收货' | '入库' | '发
[
DOC_TYPE_EXCHANGE_RECEIPT
]:
'发货'
,
};
const
createSchema
=
(
relatedType
:
RelatedType
,
billType
:
number
):
ISchema
=>
{
const
createSchema
=
(
relatedType
:
RelatedType
,
billType
:
number
,
orderType
:
number
):
ISchema
=>
{
// 是否是收件人
const
isConsignee
=
(
billType
===
DOC_TYPE_PURCHASE_RECEIPT
||
billType
===
DOC_TYPE_RETURN_RECEIPT
||
billType
===
DOC_TYPE_EXCHANGE_RETURN_RECEIPT
||
billType
===
DOC_TYPE_EXCHANGE_RECEIPT
);
// 是否是合同订单
const
isMateriel
=
(
orderType
===
ORDER_TYPE_INQUIRY_CONTRACT
||
orderType
===
ORDER_TYPE_BIDDING_CONTRACT
||
orderType
===
ORDER_TYPE_TENDER_CONTRACT
);
return
{
type
:
'object'
,
properties
:
{
...
...
@@ -323,7 +335,7 @@ const createSchema = (relatedType: RelatedType, billType: number): ISchema => {
},
},
productId
:
{
title
:
'商品ID
'
,
title
:
!
isMateriel
?
'商品ID'
:
'物料编号
'
,
type
:
'string'
,
'x-component'
:
'Text'
,
'x-component-props'
:
{
...
...
@@ -331,7 +343,7 @@ const createSchema = (relatedType: RelatedType, billType: number): ISchema => {
},
},
productName
:
{
title
:
`
${
BILL_NAME_MAP
[
billType
]}
商品名称
`
,
title
:
!
isMateriel
?
`
${
BILL_NAME_MAP
[
billType
]}
商品名称`
:
`
${
BILL_NAME_MAP
[
billType
]}
物料名称、规格
`
,
type
:
'string'
,
'x-component'
:
'Text'
,
'x-component-props'
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment