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
陈智峰
jinfa-platform
Commits
ceeb2cb3
Commit
ceeb2cb3
authored
Oct 22, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
43b59e4d
b71eb46b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
10 deletions
+20
-10
package.json
package.json
+1
-1
useAsyncSelect.ts
src/formSchema/effects/useAsyncSelect.ts
+2
-0
detail.tsx
src/pages/transaction/enquirySubmit/toAddSubmit/detail.tsx
+13
-5
enquiryGoods.tsx
...on/goodsOffer/addEnquiryOrder/components/enquiryGoods.tsx
+1
-1
index.tsx
...ction/saleOrder/readyConfirmDelevedOrder/detail/index.tsx
+3
-3
No files found.
package.json
View file @
ceeb2cb3
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"build:yxc"
:
"yarn api && yarn scripts:build-yxc && umi build"
,
"build:yxc"
:
"yarn api && yarn scripts:build-yxc && umi build"
,
"build:analyze"
:
"ANALYZE=1 umi build"
,
"build:analyze"
:
"ANALYZE=1 umi build"
,
"build:dev"
:
"pm2 start scripts/devServer.js"
,
"build:dev"
:
"pm2 start scripts/devServer.js"
,
"build:clean"
:
"umi build"
,
"build:clean"
:
"
NODE_OPTIONS=--max_old_space_size=4096
umi build"
,
"postinstall"
:
"umi generate tmp"
,
"postinstall"
:
"umi generate tmp"
,
"prettier"
:
"prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'"
,
"prettier"
:
"prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'"
,
"test"
:
"umi-test"
,
"test"
:
"umi-test"
,
...
...
src/formSchema/effects/useAsyncSelect.ts
View file @
ceeb2cb3
...
@@ -24,6 +24,8 @@ export const useAsyncSelect = async (name, service: () => Promise<any[]>, format
...
@@ -24,6 +24,8 @@ export const useAsyncSelect = async (name, service: () => Promise<any[]>, format
label
:
v
[
labelString
],
label
:
v
[
labelString
],
value
:
v
[
valueString
]
value
:
v
[
valueString
]
}))
}))
}
else
{
enums
=
res
}
}
setFieldState
(
name
,
state
=>
{
setFieldState
(
name
,
state
=>
{
state
.
originAsyncData
=
res
state
.
originAsyncData
=
res
...
...
src/pages/transaction/enquirySubmit/toAddSubmit/detail.tsx
View file @
ceeb2cb3
...
@@ -386,6 +386,7 @@ const Detail: React.FC<{}> = () => {
...
@@ -386,6 +386,7 @@ const Detail: React.FC<{}> = () => {
* @return {type}
* @return {type}
*/
*/
const
onCustomerCategoryChange
=
(
value
:
any
,
options
:
any
)
=>
{
const
onCustomerCategoryChange
=
(
value
:
any
,
options
:
any
)
=>
{
console
.
log
(
value
,
options
)
let
seletCategoryId
=
value
[
value
.
length
-
1
]
let
seletCategoryId
=
value
[
value
.
length
-
1
]
setcategoryId
(
seletCategoryId
)
setcategoryId
(
seletCategoryId
)
setseletCategoryNameList
(
options
)
setseletCategoryNameList
(
options
)
...
@@ -556,6 +557,7 @@ const Detail: React.FC<{}> = () => {
...
@@ -556,6 +557,7 @@ const Detail: React.FC<{}> = () => {
PublicApi
.
getProductPlatformGetCategoryTree
({
rootNodeId
:
null
}).
then
(
res
=>
{
PublicApi
.
getProductPlatformGetCategoryTree
({
rootNodeId
:
null
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
let
{
data
}
=
res
let
{
data
}
=
res
console
.
log
(
data
,
10086
)
setCategoryTreeOne
(
data
)
setCategoryTreeOne
(
data
)
}
}
})
})
...
@@ -567,8 +569,8 @@ const Detail: React.FC<{}> = () => {
...
@@ -567,8 +569,8 @@ const Detail: React.FC<{}> = () => {
* @description: 收货地址
* @description: 收货地址
* @param {type}
* @param {type}
* @return {type}
* @return {type}
*/
*/
PublicApi
.
getLogisticsSelectList
Shipp
erAddress
().
then
(
res
=>
{
PublicApi
.
getLogisticsSelectList
Receiv
erAddress
().
then
(
res
=>
{
let
list
=
[]
let
list
=
[]
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
list
.
push
({
value
:
item
.
id
,
label
:
item
.
fullAddress
})
list
.
push
({
value
:
item
.
id
,
label
:
item
.
fullAddress
})
...
@@ -621,7 +623,6 @@ const Detail: React.FC<{}> = () => {
...
@@ -621,7 +623,6 @@ const Detail: React.FC<{}> = () => {
}
}
//品类
//品类
if
(
data
.
productCategory
)
{
if
(
data
.
productCategory
)
{
console
.
log
(
10086
,
'============'
)
setcustomerCategoryId
([
data
.
productCategory
.
key
])
setcustomerCategoryId
([
data
.
productCategory
.
key
])
initCreatePro
(
data
.
productCategory
.
key
,
false
)
//生产弹窗
initCreatePro
(
data
.
productCategory
.
key
,
false
)
//生产弹窗
}
}
...
@@ -791,6 +792,7 @@ const Detail: React.FC<{}> = () => {
...
@@ -791,6 +792,7 @@ const Detail: React.FC<{}> = () => {
*/
*/
const
handleSubmitTabForm
=
()
=>
{
const
handleSubmitTabForm
=
()
=>
{
tabForm
.
validateFields
().
then
(
values
=>
{
tabForm
.
validateFields
().
then
(
values
=>
{
console
.
log
(
values
,
`扑母早死仔`
)
if
(
id
)
{
if
(
id
)
{
if
(
!
haschangeCategory
)
{
if
(
!
haschangeCategory
)
{
//不做处理
//不做处理
...
@@ -940,12 +942,18 @@ const Detail: React.FC<{}> = () => {
...
@@ -940,12 +942,18 @@ const Detail: React.FC<{}> = () => {
})
})
}
else
{
}
else
{
Object
.
keys
(
values
).
forEach
((
key
)
=>
{
Object
.
keys
(
values
).
forEach
((
key
)
=>
{
console
.
log
(
values
[
key
],
'嘿嘿嘿'
)
item
[
key
]
=
values
[
key
]
item
[
key
]
=
values
[
key
]
})
})
}
}
// 获得key
for
(
let
k
in
item
)
{
console
.
log
(
k
,
k
)
}
list
.
push
(
item
)
list
.
push
(
item
)
console
.
log
(
list
,
'嘿嘿嘿1000'
)
setproductSource
([...
productSource
,
...
list
])
//新增就要合并
setproductSource
([...
productSource
,
...
list
])
//新增就要合并
setdialogVisible
(
false
)
setdialogVisible
(
false
)
}
}
...
@@ -1157,7 +1165,7 @@ const Detail: React.FC<{}> = () => {
...
@@ -1157,7 +1165,7 @@ const Detail: React.FC<{}> = () => {
</
TabPane
>
</
TabPane
>
<
TabPane
tab=
"添加商品"
key=
'2'
>
<
TabPane
tab=
"添加商品"
key=
'2'
>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
handleOptionBtn
(
1
)
}
type=
'dashed'
>
添加商品
</
Button
>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
handleOptionBtn
(
1
)
}
type=
'dashed'
>
添加商品
</
Button
>
<
Table
rowKey=
{
"
id
"
}
dataSource=
{
productSource
}
columns=
{
equiryColumns
}
pagination=
{
pagination
}
/>
<
Table
rowKey=
{
"
title
"
}
dataSource=
{
productSource
}
columns=
{
equiryColumns
}
pagination=
{
pagination
}
/>
</
TabPane
>
</
TabPane
>
<
TabPane
tab=
"交易条件"
key=
'3'
>
<
TabPane
tab=
"交易条件"
key=
'3'
>
<
Row
>
<
Row
>
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/enquiryGoods.tsx
View file @
ceeb2cb3
...
@@ -171,7 +171,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
...
@@ -171,7 +171,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
const
fetchGoodsList
=
(
params
)
=>
{
const
fetchGoodsList
=
(
params
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getProductCommodityCommonGetCommodityListByBuyer
({...
params
,
priceTypeList
:
2
,
memberId
:
memberList
[
0
].
memberId
}).
then
(
res
=>
{
PublicApi
.
getProductCommodityCommonGetCommodityListByBuyer
({...
params
,
priceTypeList
:
2
,
memberId
:
memberList
[
0
].
memberId
,
shopType
:
1
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
resolve
(
res
.
data
)
}
}
...
...
src/pages/transaction/saleOrder/readyConfirmDelevedOrder/detail/index.tsx
View file @
ceeb2cb3
...
@@ -19,15 +19,15 @@ const ReadyConfirmDelevedOrderDetail: React.FC = () => {
...
@@ -19,15 +19,15 @@ const ReadyConfirmDelevedOrderDetail: React.FC = () => {
const
isHandDeleved
=
formContext
.
data
&&
formContext
.
data
.
purchaseOrderInteriorState
===
SaleOrderInsideWorkState
.
HAND_DELEVED_ORDER
const
isHandDeleved
=
formContext
.
data
&&
formContext
.
data
.
purchaseOrderInteriorState
===
SaleOrderInsideWorkState
.
HAND_DELEVED_ORDER
// 所有发货单都是否已经发货了
// 所有发货单都是否已经发货了
const
isShowBtn
=
formContext
.
data
?.
orderDeliveryDetailsResponses
?.
some
(
v
=>
v
.
interiorState
===
DeliverySideState
.
ADD_LOGISTICS_ORDER
)
const
isShowBtn
=
isHandDeleved
||
formContext
.
data
?.
orderDeliveryDetailsResponses
?.
some
(
v
=>
v
.
interiorState
===
DeliverySideState
.
ADD_LOGISTICS_ORDER
)
const
approvedRef
=
useRef
<
any
>
({})
const
approvedRef
=
useRef
<
any
>
({})
const
handleClick
=
useCallback
(()
=>
{
const
handleClick
=
useCallback
(()
=>
{
if
(
isHandDeleved
)
{
if
(
isHandDeleved
)
{
approvedRef
.
current
.
setVisible
(
true
)
}
else
{
const
deleveBox
=
document
.
querySelector
(
'#deleveBox'
)
as
any
const
deleveBox
=
document
.
querySelector
(
'#deleveBox'
)
as
any
window
.
scrollTo
(
0
,
deleveBox
.
offsetTop
)
window
.
scrollTo
(
0
,
deleveBox
.
offsetTop
)
}
else
{
approvedRef
.
current
.
setVisible
(
true
)
}
}
},
[
isHandDeleved
])
},
[
isHandDeleved
])
...
...
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