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
2838db1f
Commit
2838db1f
authored
Nov 16, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
3ff59317
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
71 additions
and
25 deletions
+71
-25
UserHeader.tsx
src/layouts/components/UserHeader.tsx
+1
-1
selectProduct.tsx
...pages/commodity/products/addChannelItem/selectProduct.tsx
+2
-0
logisticsForm.tsx
...ages/commodity/products/addProductsItem/logisticsForm.tsx
+23
-3
priceAttributeForm.tsx
...commodity/products/addProductsItem/priceAttributeForm.tsx
+2
-2
directChannel.tsx
src/pages/commodity/products/directChannel.tsx
+3
-1
index.less
src/pages/commodity/products/index.less
+8
-0
index.tsx
src/pages/commodity/products/index.tsx
+3
-1
channelSchema.tsx
src/pages/commodity/products/schema/channelSchema.tsx
+5
-5
PositionSetting.tsx
src/pages/repositories/components/PositionSetting.tsx
+2
-0
index.tsx
...s/transaction/components/orderHandReceivedModal/index.tsx
+8
-8
index.less
src/pages/transaction/purchaseOrder/orderCollect/index.less
+9
-0
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+2
-1
index.tsx
src/pages/transaction/saleOrder/constant/index.tsx
+3
-3
No files found.
src/layouts/components/UserHeader.tsx
View file @
2838db1f
...
...
@@ -24,7 +24,7 @@ const UserHeader: React.FC<UserHeaderProps> = (props) => {
const
getRouteName
=
()
=>
{
switch
(
pathname
)
{
case
'/user/login'
:
setTitle
(
"欢登录"
)
setTitle
(
"欢
迎
登录"
)
break
case
'/user/register'
:
setTitle
(
"欢迎注册"
)
...
...
src/pages/commodity/products/addChannelItem/selectProduct.tsx
View file @
2838db1f
...
...
@@ -58,6 +58,8 @@ const SelectProduct:React.FC<IProps> = (props) => {
title
:
'商品名称'
,
dataIndex
:
'name'
,
key
:
'name'
,
width
:
300
,
ellipsis
:
true
,
},
{
title
:
'品类'
,
...
...
src/pages/commodity/products/addProductsItem/logisticsForm.tsx
View file @
2838db1f
...
...
@@ -37,6 +37,7 @@ const LogisticsForm: React.FC<Iprops> = (props) => {
const
[
carriageType
,
setCarriageType
]
=
useState
<
number
>
()
const
flagRef
=
useRef
<
boolean
>
(
false
)
const
[
banCarriageType
,
setBanCarriageType
]
=
useState
(
false
)
const
[
template
,
setTemplate
]
=
useState
(
false
)
// 是否必填运费模板
const
{
productInfoByEdit
,
selectCategoryId
,
productPriceType
}
=
ProductStore
...
...
@@ -102,6 +103,19 @@ const LogisticsForm: React.FC<Iprops> = (props) => {
logisticsForm
.
setFieldsValue
({
weight
:
null
})
}
const
changeCarriageType
=
(
e
)
=>
{
setCarriageType
(
e
.
target
.
value
)
if
(
e
.
target
.
value
===
2
)
{
setTemplate
(
true
)
setIsTemplate
(
true
)
logisticsForm
.
setFieldsValue
({
useTemplate
:
true
})
}
else
{
setTemplate
(
false
)
setIsTemplate
(
false
)
logisticsForm
.
setFieldsValue
({
useTemplate
:
false
})
}
}
return
(<>
<
Form
{
...
layout
}
...
...
@@ -140,7 +154,7 @@ const LogisticsForm: React.FC<Iprops> = (props) => {
},
]
}
>
<
Radio
.
Group
onChange=
{
(
e
)
=>
setCarriageType
(
e
.
target
.
value
)
}
disabled=
{
banCarriageType
}
>
<
Radio
.
Group
onChange=
{
changeCarriageType
}
disabled=
{
banCarriageType
}
>
<
Radio
value=
{
1
}
>
卖家承担运费(默认)
</
Radio
>
<
Radio
value=
{
2
}
>
买家承担运费
</
Radio
>
</
Radio
.
Group
>
...
...
@@ -170,17 +184,23 @@ const LogisticsForm: React.FC<Iprops> = (props) => {
}
{
carriageType
===
2
&&
<
Form
.
Item
name=
"useTemplate"
name=
"useTemplate"
valuePropName=
"checked"
label=
" "
>
<
Checkbox
onChange=
{
onChangeTemplate
}
>
使用运费模板(只有买家承担运费才能选择)
</
Checkbox
>
<
Checkbox
disabled=
{
template
}
onChange=
{
onChangeTemplate
}
>
使用运费模板(只有买家承担运费才能选择)
</
Checkbox
>
</
Form
.
Item
>
}
{
isTemplate
&&
<
Form
.
Item
name=
"templateId"
label=
"运费模板"
rules=
{
[
{
required
:
template
,
message
:
'请正确输入重量'
,
}
]
}
>
<
Select
placeholder=
"请选择运费模板"
...
...
src/pages/commodity/products/addProductsItem/priceAttributeForm.tsx
View file @
2838db1f
...
...
@@ -330,11 +330,11 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
if
(
updateFlag
.
current
){
// 初次渲染tab 再次进入tab采用缓存数据
_tempObj
[
'单价'
]
=
productInfoByEdit
.
unitPriceAndPicList
[
i
]?.
unitPrice
||
{}
}
else
{
_tempObj
[
'单价'
]
=
_tableDataSource
[
i
]
&&
tableDataSource
[
i
]
[
'单价'
]
||
{}
_tempObj
[
'单价'
]
=
_tableDataSource
[
i
]
&&
tableDataSource
[
i
]
||
{}
}
}
else
{
_tempObj
[
'对应货品'
]
=
selectedGoods
.
length
>
0
?
selectedGoods
[
0
].
id
:
0
_tempObj
[
'单价'
]
=
_tableDataSource
[
i
]
&&
tableDataSource
[
i
][
'单价'
]
||
{}
_tempObj
[
'单价'
]
=
_tableDataSource
[
i
]
&&
tableDataSource
[
i
]
&&
tableDataSource
[
i
]
[
'单价'
]
||
{}
}
// 价格属性变动引发的构建清空价格(仅清空一次)
if
(
clearPrice
.
current
){
...
...
src/pages/commodity/products/directChannel.tsx
View file @
2838db1f
...
...
@@ -26,7 +26,7 @@ import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect'
import
{
searchBrandOptionEffect
,
searchCustomerCategoryOptionEffect
}
from
'./effect'
import
EyePreview
from
'@/components/EyePreview'
import
moment
from
'moment'
import
{
GetProductChannelCommodityGetShopResponse
}
from
'@/services'
import
{
GetProductChannelCommodityGetShopResponse
}
from
'@/services
/ProductApi
'
// 定义选择的行数据的类型
interface
Item
{
...
...
@@ -68,6 +68,8 @@ const DirectChannel: React.FC<{}> = () => {
dataIndex
:
[
'channelCommodity'
,
'commodity'
,
'name'
],
key
:
'id'
,
className
:
'commonPickColor'
,
width
:
300
,
ellipsis
:
true
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/commodityAbility/commodity/products/directChannel/detail?id=${record.id}`
}
>
...
...
src/pages/commodity/products/index.less
View file @
2838db1f
...
...
@@ -257,4 +257,11 @@
background-color: #909399 !important;
}
}
}
.overFlowEllipsis {
width: 300px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
\ No newline at end of file
src/pages/commodity/products/index.tsx
View file @
2838db1f
...
...
@@ -109,7 +109,9 @@ const Products: React.FC<{}> = () => {
dataIndex
:
'name'
,
key
:
'name'
,
className
:
'commonPickColor'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
span
className=
"commonPickColor"
onClick=
{
()
=>
handleSee
(
record
)
}
>
{
text
}
<
EyeOutlined
/></
span
>
width
:
300
,
ellipsis
:
true
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
a
title=
{
text
}
onClick=
{
()
=>
handleSee
(
record
)
}
>
{
text
}
<
EyeOutlined
/></
a
>
},
{
title
:
'品类'
,
...
...
src/pages/commodity/products/schema/channelSchema.tsx
View file @
2838db1f
...
...
@@ -68,7 +68,7 @@ export const channelSchema: ISchema = {
defaultActiveFirstOption
:
false
,
filterOption
:
false
,
notFoundContent
:
null
,
style
:
{
width
:
'174px'
,
lineHeight
:
'32px'
},
//
style: { width: '174px', lineHeight: '32px' },
searchValue
:
null
,
dataoption
:
[],
},
...
...
@@ -83,7 +83,7 @@ export const channelSchema: ISchema = {
defaultActiveFirstOption
:
false
,
filterOption
:
false
,
notFoundContent
:
null
,
style
:
{
width
:
'174px'
,
lineHeight
:
'32px'
},
//
style: { width: '174px', lineHeight: '32px' },
searchValue
:
null
,
dataoption
:
[]
},
...
...
@@ -102,7 +102,7 @@ export const channelSchema: ISchema = {
],
'x-component-props'
:
{
placeholder
:
'商品来源'
,
style
:
{
width
:
'174px'
},
//
style: { width: '174px' },
},
},
statusList
:
{
...
...
@@ -123,7 +123,7 @@ export const channelSchema: ISchema = {
],
'x-component-props'
:
{
placeholder
:
'商品状态'
,
style
:
{
width
:
'174px'
},
//
style: { width: '174px' },
},
},
priceTypeList
:
{
...
...
@@ -144,7 +144,7 @@ export const channelSchema: ISchema = {
],
'x-component-props'
:
{
placeholder
:
'产品定价'
,
style
:
{
width
:
'174px'
},
//
style: { width: '174px' },
},
},
'NO_NAME_FIELD_$2'
:
{
...
...
src/pages/repositories/components/PositionSetting.tsx
View file @
2838db1f
...
...
@@ -306,6 +306,8 @@ const PositionSetting:React.FC<PositionSettingProps> = (props) => {
dataIndex
:
'name'
,
align
:
'center'
,
key
:
'name'
,
width
:
210
,
ellipsis
:
true
,
},
{
title
:
'品类'
,
...
...
src/pages/transaction/components/orderHandReceivedModal/index.tsx
View file @
2838db1f
...
...
@@ -45,20 +45,20 @@ const OrderHandReceivedModal:React.FC<OrderHandReceivedModalProps> = ({currentRe
formData
&&
<>
<
Row
>
<
Col
span=
{
6
}
>
发货地址:
</
Col
>
<
Col
>
{
formData
.
name
}
</
Col
>
<
Col
span=
{
6
}
>
<
p
>
发货地址:
</
p
>
</
Col
>
<
Col
>
<
p
>
{
formData
.
name
}
</
p
>
</
Col
>
</
Row
>
<
Row
>
<
Col
span=
{
6
}
>
发货时间:
</
Col
>
<
Col
>
{
moment
(
formData
.
deliverTime
).
format
(
'YYYY-MM-DD'
)
}
</
Col
>
<
Col
span=
{
6
}
>
<
p
>
发货时间:
</
p
>
</
Col
>
<
Col
>
<
p
>
{
moment
(
formData
.
deliverTime
).
format
(
'YYYY-MM-DD'
)
}
</
p
>
</
Col
>
</
Row
>
<
Row
>
<
Col
span=
{
6
}
>
物流单号:
</
Col
>
<
Col
>
{
formData
.
deliverNo
}
</
Col
>
<
Col
span=
{
6
}
>
<
p
>
物流单号:
</
p
>
</
Col
>
<
Col
>
<
p
><
a
href=
{
`https://www.kuaidi100.com/chaxun?nu=${formData.deliverNo}`
}
target=
"_blank"
>
{
formData
.
deliverNo
}
</
a
></
p
>
</
Col
>
</
Row
>
<
Row
>
<
Col
span=
{
6
}
>
物流公司:
</
Col
>
<
Col
>
{
formData
.
logisticsCompany
}
</
Col
>
<
Col
span=
{
6
}
>
<
p
>
物流公司:
</
p
>
</
Col
>
<
Col
>
<
p
>
{
formData
.
logisticsCompany
}
</
p
>
</
Col
>
</
Row
>
</>
}
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.less
0 → 100644
View file @
2838db1f
.orderCollectCard {
:global {
.ant-form-item-explain-error {
position: absolute;
top: 92%;
}
}
}
\ No newline at end of file
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
2838db1f
...
...
@@ -29,6 +29,7 @@ import { changeRouterTitleByStatus } from '../../_public/order/utils'
import
{
ReadyAddOrderDetailContext
}
from
'../context'
import
AuditProcess
from
'@/components/AuditProcess'
import
styles
from
'./index.less'
export
interface
PurchaseOrderDetailProps
{}
...
...
@@ -329,7 +330,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
[]
}
></
AuditProcess
>
}
<
Card
className=
''
style=
{
{
marginTop
:
24
}
}
>
<
Card
className=
{
styles
.
orderCollectCard
}
style=
{
{
marginTop
:
24
}
}
>
<
NiceForm
loading=
{
formLoading
}
previewPlaceholder=
' '
...
...
src/pages/transaction/saleOrder/constant/index.tsx
View file @
2838db1f
...
...
@@ -28,10 +28,10 @@ export const baseOrderListColumns: any[] = [
key
:
'orderThe'
,
},
{
title
:
'
供应
会员'
,
title
:
'
采购
会员'
,
align
:
'center'
,
dataIndex
:
'
supplyMembers
Name'
,
key
:
'
supplyMembers
Name'
,
dataIndex
:
'
member
Name'
,
key
:
'
member
Name'
,
},
{
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