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
1c8a6b02
Commit
1c8a6b02
authored
Feb 04, 2021
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
a4d80800
31ad1b5f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
51 additions
and
16 deletions
+51
-16
index.ts
src/constants/index.ts
+2
-1
index.tsx
...pages/afterService/components/ReturnAddressInfo/index.tsx
+23
-12
index.tsx
src/pages/priceManage/effect/index.tsx
+1
-1
PriceModal.tsx
src/pages/priceManage/priceStrategy/component/PriceModal.tsx
+1
-0
PriceSetting.tsx
...ages/priceManage/priceStrategy/component/PriceSetting.tsx
+1
-0
ProductModal.tsx
...ages/priceManage/priceStrategy/component/ProductModal.tsx
+1
-0
index.tsx
src/pages/priceManage/schema/index.tsx
+4
-0
index.tsx
...eOrder/orderCollect/components/productTableCell/index.tsx
+16
-0
index.tsx
...transaction/purchaseOrder/orderCollect/constant/index.tsx
+2
-2
No files found.
src/constants/index.ts
View file @
1c8a6b02
...
...
@@ -1152,7 +1152,8 @@ export const SaleOrderTransformInsideWorkStateTexts = {
13
:
'不接受订单'
,
14
:
'确认未到账'
,
15
:
'审核不通过'
,
16
:
'不接受物流单'
16
:
'不接受物流单'
,
17
:
'审核不通过'
,
}
export
const
PayOutWorkStateTexts
=
{
...
...
src/pages/afterService/components/ReturnAddressInfo/index.tsx
View file @
1c8a6b02
...
...
@@ -2,12 +2,12 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 09:54:04
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-07 13:57:03
* @LastEditTime: 2021-0
2-04 15:32:24
* @Description: 退货地址信息
*/
import
React
from
'react'
;
import
React
,
{
useEffect
}
from
'react'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
{
createFormActions
,
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
create
Async
FormActions
,
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useLinkageUtils
}
from
'@/utils/formEffectUtils'
;
...
...
@@ -15,7 +15,7 @@ import NiceForm from '@/components/NiceForm';
import
{
schema
}
from
'./schema'
;
import
styles
from
'./index.less'
;
const
modalFormActions
=
createFormActions
();
const
modalFormActions
=
create
Async
FormActions
();
const
{
onFieldValueChange$
,
onFieldInputChange$
,
...
...
@@ -74,6 +74,25 @@ const ReturnAddressInfo: React.FC<ReturnAddressInfo> = ({
onSubmit
,
})
=>
{
useEffect
(()
=>
{
const
{
setFieldState
}
=
modalFormActions
;
if
(
isEdit
)
{
setFieldState
(
'deliveryAddress'
,
state
=>
{
state
.
visible
=
true
;
});
setFieldState
(
'deliveryAddressShow'
,
state
=>
{
state
.
visible
=
false
;
});
}
else
{
setFieldState
(
'deliveryAddress'
,
state
=>
{
state
.
visible
=
false
;
});
setFieldState
(
'deliveryAddressShow'
,
state
=>
{
state
.
visible
=
true
;
});
}
},
[
isEdit
]);
const
handleSubmit
=
values
=>
{
};
...
...
@@ -134,14 +153,6 @@ const ReturnAddressInfo: React.FC<ReturnAddressInfo> = ({
onFieldValueChange$
(
'deliveryType'
).
subscribe
(
fieldState
=>
{
const
{
name
,
value
}
=
fieldState
;
if
(
isEdit
)
{
linkage
.
show
(
'deliveryAddress'
);
linkage
.
hide
(
'deliveryAddressShow'
);
}
else
{
linkage
.
hide
(
'deliveryAddress'
);
linkage
.
show
(
'deliveryAddressShow'
);
}
switch
(
value
)
{
// 物流
case
1
:
{
...
...
src/pages/priceManage/effect/index.tsx
View file @
1c8a6b02
...
...
@@ -50,7 +50,7 @@ export const constructTableData = (data: any, ctx: ISchemaFormActions | ISchemaF
let
col
:
any
=
[...
columnsUnitProduct
]
let
temp
:
any
=
[]
console
.
log
(
data
,
'dataSoruce'
)
// 兼容编辑价格策略 新增使用data 编辑使用data[0].commodityUnitPrice
let
_data_column
=
pageStatus
===
PageStatus
.
ADD
?
data
[
0
]
:
data
[
0
][
"commodityUnitPrice"
]
_data_column
.
attributeAndValueList
.
map
(
_item
=>
{
...
...
src/pages/priceManage/priceStrategy/component/PriceModal.tsx
View file @
1c8a6b02
...
...
@@ -130,6 +130,7 @@ const PriceModal:React.FC<PriceModalProps> = (props) => {
)
let
result
=
range
.
map
(
Number
).
reduce
((
a
,
b
)
=>
{
if
(
a
<
b
)
return
b
})
if
(
!
result
)
throw
new
Error
(
'请正确输入阶梯数量范围'
);
if
(
Number
(
range
[
0
])
!==
schemaAction
.
getFieldValue
(
"minOrder"
))
throw
new
Error
(
'阶段的起始值必须为最小起订数'
);
callback
()
}
}
catch
(
err
)
{
...
...
src/pages/priceManage/priceStrategy/component/PriceSetting.tsx
View file @
1c8a6b02
...
...
@@ -91,6 +91,7 @@ const PriceSetting:React.FC<PriceSettingProps> = (props) => {
}
const
handleSetProductPrice
=
(
record
:
any
)
=>
{
console
.
log
(
record
,
'record'
)
if
(
record
?.
id
)
{
priceRef
.
current
.
setVisible
(
true
)
priceRef
.
current
.
setCurrentSetPriceRow
(
record
)
...
...
src/pages/priceManage/priceStrategy/component/ProductModal.tsx
View file @
1c8a6b02
...
...
@@ -66,6 +66,7 @@ const ProductModal:React.FC<ProductModalProps> = (props) => {
schemaAction
.
setFieldValue
(
'productName'
,
selectResult
.
name
)
schemaAction
.
setFieldValue
(
'productId'
,
selectResult
.
id
)
schemaAction
.
setFieldValue
(
'minOrder'
,
selectResult
.
minOrder
)
clearModalParams
()
}
...
...
src/pages/priceManage/schema/index.tsx
View file @
1c8a6b02
...
...
@@ -234,6 +234,10 @@ export const setPriceSchema: ISchema = {
type
:
'string'
,
display
:
false
},
minOrder
:
{
type
:
'number'
,
display
:
false
},
priceType
:
{
type
:
'radio'
,
title
:
'商品定价'
,
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/productTableCell/index.tsx
View file @
1c8a6b02
...
...
@@ -83,6 +83,19 @@ export const ProductTableCell:React.FC<ProductTableCellProps> = ({
}
}
// 校验最小起订
const
validatorNumber
=
(
rule
,
value
,
callback
)
=>
{
try
{
let
_value
=
Number
(
value
)
if
(
isNaN
(
_value
)
||
_value
<
Number
(
record
[
"minOrder"
]))
{
throw
new
Error
(
`数量不小于最小起订数
${
record
[
"minOrder"
]}
`
)
}
callback
()
}
catch
(
err
)
{
callback
(
err
)
}
}
let
childNode
=
children
;
if
(
editable
)
{
childNode
=
...
...
@@ -99,6 +112,9 @@ export const ProductTableCell:React.FC<ProductTableCellProps> = ({
pattern
:
/^
\d
+
(\.\d
{1,3}
)?
$/
,
message
:
'采购数量仅限三位小数'
,
},
{
validator
:
validatorNumber
}
]
}
>
{
chooseFormItem
(
formItem
,
record
[
dataIndex
]
||
''
)
}
...
...
src/pages/transaction/purchaseOrder/orderCollect/constant/index.tsx
View file @
1c8a6b02
...
...
@@ -355,9 +355,9 @@ export const mergeParentTableColumns: any[] = [
},
{
title
:
'采购商名称'
,
dataIndex
:
'
supplyM
embersName'
,
dataIndex
:
'
m
embersName'
,
align
:
'center'
,
key
:
'
supplyM
embersName'
,
key
:
'
m
embersName'
,
},
{
title
:
'下单时间'
,
...
...
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