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
shenshaokai
jinfa-platform
Commits
b7c26878
Commit
b7c26878
authored
Apr 13, 2022
by
rainbowmorel@163.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220418' into 20418order
parents
c9fce1ed
aa6a3d5e
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
40 additions
and
38 deletions
+40
-38
add.tsx
...r/deliveryNoticeManagement/deliveryNoticeAwaitB2B/add.tsx
+4
-1
edit.tsx
.../deliveryNoticeManagement/deliveryNoticeAwaitB2B/edit.tsx
+3
-3
add.tsx
...r/deliveryNoticeManagement/deliveryNoticeAwaitSRM/add.tsx
+4
-1
edit.tsx
.../deliveryNoticeManagement/deliveryNoticeAwaitSRM/edit.tsx
+3
-3
index.tsx
...ents/detail/components/demandPlanMaterialLayout/index.tsx
+2
-2
index.tsx
.../transaction/purchaseAbility/purchaseBid/detail/index.tsx
+3
-3
material.tsx
...bility/purchaseInquiry/addInquiry/components/material.tsx
+3
-4
index.tsx
...urchaseAbility/purchaseInquiry/addInquiry/modal/index.tsx
+16
-9
material.tsx
...ty/purchaseInquiry/addMallInquiry/components/material.tsx
+1
-2
index.tsx
...aseAbility/purchaseInquiry/addMallInquiry/modal/index.tsx
+1
-10
No files found.
src/pages/order/deliveryNoticeManagement/deliveryNoticeAwaitB2B/add.tsx
View file @
b7c26878
...
...
@@ -2,10 +2,13 @@
* 订单能力 - 送货通知单管理 - 新增待提交送货通知单B2B
* @author: Gavin
*/
import
React
,
{
useRef
}
from
'react'
import
React
,
{
useRef
}
from
'react'
import
{
history
}
from
'umi'
import
AddEditContent
from
'./components/AddEditContent'
const
DeliveryNoticeManagementAwaitB2BAdd
:
React
.
FC
=
()
=>
{
const
[
time
]
=
history
.
location
?.
query
?.
time
return
(
<
AddEditContent
type=
'add'
/>
)
...
...
src/pages/order/deliveryNoticeManagement/deliveryNoticeAwaitB2B/edit.tsx
View file @
b7c26878
...
...
@@ -2,12 +2,12 @@
* 订单能力 - 送货通知单管理 - 修改待提交送货通知单B2B
* @author: Gavin
*/
import
React
,
{
useRef
}
from
'react'
import
{
history
}
from
'umi'
import
React
,
{
useRef
}
from
'react'
import
{
history
}
from
'umi'
import
AddEditContent
from
'./components/AddEditContent'
const
DeliveryNoticeManagementAwaitB2BEdit
:
React
.
FC
=
()
=>
{
const
[
id
]
=
history
.
location
?.
query
?.
id
const
[
id
]
=
history
.
location
?.
query
?.
id
return
(
<
AddEditContent
...
...
src/pages/order/deliveryNoticeManagement/deliveryNoticeAwaitSRM/add.tsx
View file @
b7c26878
...
...
@@ -3,10 +3,13 @@
* @author: Gavin
* @description: 与B2B内容大致相同,文件分开方便后续对接以及日后变动修改二开
*/
import
React
,
{
useRef
}
from
'react'
import
React
,
{
useRef
}
from
'react'
import
{
history
}
from
'umi'
import
AddEditContent
from
'./components/AddEditContent'
const
DeliveryNoticeManagementAwaitSRMAdd
:
React
.
FC
=
()
=>
{
const
[
time
]
=
history
.
location
?.
query
?.
time
return
(
<
AddEditContent
type=
'add'
/>
)
...
...
src/pages/order/deliveryNoticeManagement/deliveryNoticeAwaitSRM/edit.tsx
View file @
b7c26878
...
...
@@ -3,12 +3,12 @@
* @author: Gavin
* @description: 与B2B内容大致相同,文件分开方便后续对接以及日后变动修改二开
*/
import
React
,
{
useRef
}
from
'react'
import
{
history
}
from
'umi'
import
React
,
{
useRef
}
from
'react'
import
{
history
}
from
'umi'
import
AddEditContent
from
'./components/AddEditContent'
const
DeliveryNoticeManagementAwaitSRMEdit
:
React
.
FC
=
()
=>
{
const
[
id
]
=
history
.
location
?.
query
?.
id
const
[
id
]
=
history
.
location
?.
query
?.
id
return
(
<
AddEditContent
...
...
src/pages/transaction/purchaseAbility/components/detail/components/demandPlanMaterialLayout/index.tsx
View file @
b7c26878
...
...
@@ -32,9 +32,9 @@ const DemandPlanMaterialLayout: React.FC<IPROPS> = (props: any) => {
key
:
'number'
,
dataIndex
:
'number'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
size=
{
0
}
>
<
Space
size=
{
0
}
>
<
Typography
.
Text
>
{
text
}
</
Typography
.
Text
>
<
Typography
.
Text
>
{
record
.
name
}
</
Typography
.
Text
>
<
Typography
.
Text
>
/
{
record
.
name
}
</
Typography
.
Text
>
</
Space
>
)
},
...
...
src/pages/transaction/purchaseAbility/purchaseBid/detail/index.tsx
View file @
b7c26878
...
...
@@ -296,7 +296,7 @@ const SearchDetail = () => {
switch
(
pathPci
)
{
case
'readyAdd'
:
case
'readyAddShop'
:
if
(
button
===
1
)
{
if
(
button
===
'1'
)
{
return
(
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'table.purchase.popconfirm1'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'detail.purchase.okText'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'detail.purchase.cancelText'
})
}
onConfirm=
{
fetchSubmitBatch
}
>
<
Button
type=
'primary'
>
...
...
@@ -321,7 +321,7 @@ const SearchDetail = () => {
case
'readySubmitExamineResult'
:
return
(
<
Button
onClick=
{
()
=>
setUploadBidResultVisible
(
true
)
}
type=
'primary'
>
<
CheckCircleOutlined
/>
{
button
===
1
?
intl
.
formatMessage
({
id
:
'table.purchase.eidt'
})
:
intl
.
formatMessage
({
id
:
'table.purchase.submit'
})
}{
intl
.
formatMessage
({
id
:
'detail.purchase.bidResultLayout'
})
}
<
CheckCircleOutlined
/>
{
button
===
'1'
?
intl
.
formatMessage
({
id
:
'table.purchase.eidt'
})
:
intl
.
formatMessage
({
id
:
'table.purchase.submit'
})
}{
intl
.
formatMessage
({
id
:
'detail.purchase.bidResultLayout'
})
}
</
Button
>
)
case
'readyConfirm'
:
...
...
@@ -600,7 +600,7 @@ const SearchDetail = () => {
signUpIdea
,
urls
}
const
_fetch
=
button
===
1
?
postPurchaseBiddingUpdateBiddingReturn
:
postPurchaseBiddingSubmitExamineBiddingReturn
;
const
_fetch
=
button
===
'1'
?
postPurchaseBiddingUpdateBiddingReturn
:
postPurchaseBiddingSubmitExamineBiddingReturn
;
setConfirmLoading
(
true
)
_fetch
(
_params
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/material.tsx
View file @
b7c26878
...
...
@@ -76,8 +76,8 @@ const Material: React.FC<Iprops> = (props: any) => {
},
{
title
:
intl
.
formatMessage
({
id
:
'detail.purchase.goodsGroup'
}),
key
:
'
goods
Group'
,
dataIndex
:
'
goods
Group'
key
:
'
material
Group'
,
dataIndex
:
'
material
Group'
},
{
title
:
intl
.
formatMessage
({
id
:
'detail.purchase.nameCode'
}),
...
...
@@ -162,7 +162,7 @@ const Material: React.FC<Iprops> = (props: any) => {
name
:
'material'
,
data
:
{
materielMode
:
res
.
materielMode
,
materiels
:
{
...
dataSource
,
goodsGroup
:
dataSource
.
materialGroup
?.
name
}
,
materiels
:
dataSource
,
},
})
onBadge
(
0
,
1
)
...
...
@@ -186,7 +186,6 @@ const Material: React.FC<Iprops> = (props: any) => {
}
},
[
fetchdata
])
return
(
<>
<
Form
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/index.tsx
View file @
b7c26878
...
...
@@ -11,6 +11,7 @@ import TableModal from '@/pages/transaction/components/tableModal';
import
{
ColumnType
}
from
'rc-table/lib/interface'
;
import
{
getProductCustomerGetCustomerCategoryTree
,
getProductGoodsGetGoodsList
,
getProductSelectGetSelectBrand
,
getProductSelectGetSelectCustomerCategory
}
from
'@/services/ProductV2Api'
;
import
{
getIntl
}
from
'umi'
;
import
{
useAsyncCascader
,
fetchTreeData
}
from
'../../../effect'
;
const
layout
:
any
=
{
colon
:
false
,
...
...
@@ -121,6 +122,7 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
unit
:
edit
.
unit
,
ids
:
edit
.
ids
,
purchaseCount
:
edit
.
purchaseCount
,
goodsGroup
:
edit
?.
materialGroup
})
setFiles
(
edit
.
urls
)
}
...
...
@@ -162,6 +164,7 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
model
:
data
.
type
,
brand
:
data
.
brand
&&
data
.
brand
.
name
,
unit
:
data
.
unitName
,
goodsGroup
:
data
?.
materialGroup
?.
name
})
setProduct
(
data
);
setSearchVisible
(
false
);
...
...
@@ -179,6 +182,8 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
number
:
Object
.
keys
(
product
).
length
>
0
?
product
.
code
:
res
.
number
,
name
:
Object
.
keys
(
product
).
length
>
0
?
product
.
name
:
res
.
name
,
category
:
Object
.
keys
(
product
).
length
>
0
?
product
.
customerCategory
.
name
:
edit
.
category
,
materialGroup
:
Object
.
keys
(
product
).
length
>
0
?
product
?.
materialGroup
?.
name
:
edit
.
materialGroup
,
goodsGroup
:
Object
.
keys
(
product
).
length
>
0
?
product
?.
materialGroup
?.
name
:
edit
.
materialGroup
,
ids
:
res
.
ids
,
categoryId
:
(
Object
.
keys
(
product
).
length
>
0
&&
!
isEmpty
(
product
.
customerCategory
.
category
))
?
product
.
customerCategory
.
category
.
id
:
edit
.
categoryId
,
memberCategoryId
:
Object
.
keys
(
product
).
length
>
0
?
product
.
customerCategory
.
id
:
edit
.
memberCategoryId
,
...
...
@@ -205,8 +210,9 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
}
const
fetchGoodsData
=
(
params
:
any
)
=>
{
const
materialGroupId
=
params
.
materialGroupId
?
params
.
materialGroupId
[
params
.
materialGroupId
.
length
-
1
]
:
undefined
return
new
Promise
(
resolve
=>
{
getProductGoodsGetGoodsList
(
params
).
then
(
res
=>
{
getProductGoodsGetGoodsList
(
{
...
params
,
materialGroupId
,
ids
:
[
99
]
}
).
then
(
res
=>
{
const
{
data
}
=
res
resolve
(
data
)
}).
catch
(
error
=>
{
...
...
@@ -229,7 +235,7 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
{
title
:
intl
.
formatMessage
({
id
:
'detail.purchase.goodsGroup'
}),
key
:
'goodsGroup'
,
dataIndex
:
'goodsGroup'
dataIndex
:
[
'materialGroup'
,
'name'
]
},
{
title
:
intl
.
formatMessage
({
id
:
'detail.purchase.nameCode'
}),
...
...
@@ -437,6 +443,7 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
columns=
{
columns
}
effects=
{
(
$
,
actions
)
=>
{
actions
.
reset
()
useAsyncCascader
(
'materialGroupId'
,
fetchTreeData
)
useStateFilterSearchLinkageEffect
(
$
,
actions
,
"name"
,
FORM_FILTER_PATH
)
}
}
schema=
{
{
...
...
@@ -514,14 +521,14 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
},
materialGroupId
:
{
type
:
'string'
,
"x-component"
:
'SearchSelect
'
,
"x-component-props"
:
{
'x-component'
:
'Cascader
'
,
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'detail.purchase.message93'
}),
fetchSearch
:
getProductSelectGetSelectCustomerCategory
,
style
:
{
width
:
160
}
}
allowClear
:
true
,
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
style
:
{
width
:
'150px'
},
showSearch
:
true
}
,
},
type
:
{
type
:
'string'
,
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addMallInquiry/components/material.tsx
View file @
b7c26878
...
...
@@ -163,7 +163,7 @@ const Material: React.FC<Iprops> = (props: any) => {
name
:
'material'
,
data
:
{
materielMode
:
res
.
materielMode
,
materiels
:
{
...
dataSource
,
goodsGroup
:
dataSource
.
materialGroup
?.
name
}
,
materiels
:
dataSource
,
},
})
onBadge
(
0
,
1
)
...
...
@@ -187,7 +187,6 @@ const Material: React.FC<Iprops> = (props: any) => {
}
},
[
fetchdata
])
return
(
<>
<
Form
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addMallInquiry/modal/index.tsx
View file @
b7c26878
...
...
@@ -122,6 +122,7 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
unit
:
edit
.
unit
,
ids
:
edit
.
ids
,
purchaseCount
:
edit
.
purchaseCount
,
goodsGroup
:
edit
?.
materialGroup
})
setFiles
(
edit
.
urls
)
}
...
...
@@ -530,16 +531,6 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
style
:
{
width
:
'150px'
},
showSearch
:
true
},
// type: 'string',
// "x-component": 'SearchSelect',
// "x-component-props":
{
// placeholder: intl.formatMessage(
{
id
:
'detail.purchase.message93'
}),
// fetchSearch: getProductSelectGetSelectCustomerCategory,
// style:
{
// width: 160
//
}
//
}
},
type
:
{
type
:
'string'
,
...
...
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