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
4e48cc96
Commit
4e48cc96
authored
Dec 15, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改待新增物流单
parent
d58f0659
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
173 additions
and
4 deletions
+173
-4
logisticsRoutes.ts
config/routes/logisticsRoutes.ts
+7
-0
index.tsx
src/components/ModalTable/index.tsx
+5
-2
index.ts
src/components/ModalTable/schema/index.ts
+61
-0
columns.ts
src/pages/logistics/addLogistics/columns.ts
+24
-0
index.less
src/pages/logistics/addLogistics/index.less
+74
-0
index.tsx
src/pages/logistics/addLogistics/index.tsx
+0
-0
modalAnchor.tsx
...on/demandPosts/demandAdd/components/Modal/modalAnchor.tsx
+0
-0
details.tsx
src/pages/transaction/inquiryQuote/components/details.tsx
+2
-2
No files found.
config/routes/logisticsRoutes.ts
View file @
4e48cc96
...
...
@@ -127,6 +127,13 @@ const LogisticsRoute: RouterChild = {
path
:
'/memberCenter/logisticsAbility/logisticsSubmit'
,
name
:
'logisticsSubmit'
,
routes
:
[
// 新增
{
path
:
'/memberCenter/logisticsAbility/logisticsSubmit/addLogistics'
,
name
:
'addToOrderSubmit'
,
component
:
'@/pages/logistics/addLogistics'
,
hideInMenu
:
true
},
// 快递单查询
{
path
:
'/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList'
,
...
...
src/components/ModalTable/index.tsx
View file @
4e48cc96
...
...
@@ -3,7 +3,7 @@ import {StandardTable} from 'god';
import
NestTable
from
'@/components/NestTable'
;
import
{
IStandardTableProps
}
from
'god/dist/src/standard-table'
;
import
{
Row
,
Col
,
Modal
}
from
'antd'
;
import
{
productModalSchema
,
productModalByMemberSchema
,
memberModalSchema
,
inquirySchema
,
demandSchema
,
enquirySchema
,
mergeOrderSchema
,
goodsModalSchema
,
demandNumberSchema
,
logisticsDeliverySearchSchema
,
addOrderModalSchema
}
from
'./schema'
;
import
{
productModalSchema
,
productModalByMemberSchema
,
memberModalSchema
,
inquirySchema
,
demandSchema
,
enquirySchema
,
mergeOrderSchema
,
goodsModalSchema
,
demandNumberSchema
,
logisticsDeliverySearchSchema
,
addOrderModalSchema
,
logisticsSelectGoodsSearchSchema
}
from
'./schema'
;
import
Search
from
'../NiceForm/components/Search'
;
import
SearchSelect
from
'../NiceForm/components/SearchSelect'
;
import
Submit
from
'../NiceForm/components/Submit'
;
...
...
@@ -18,7 +18,7 @@ export interface ModalTableProps extends IStandardTableProps<any> {
cancel
?(),
visible
?:
boolean
,
resetModal
?:
object
,
modalType
?:
'productByDefault'
|
'productByMember'
|
'memberByDefault'
|
'inquiryByDefault'
|
'demandByDefault'
|
'enquiryModel'
|
'MergeOrderByDefault'
|
'goodsModalSchema'
|
'demandNumberSchema'
|
'logisticsDelivery'
|
'addOrderModalSchema'
|
'none'
,
modalType
?:
'productByDefault'
|
'productByMember'
|
'memberByDefault'
|
'inquiryByDefault'
|
'demandByDefault'
|
'enquiryModel'
|
'MergeOrderByDefault'
|
'goodsModalSchema'
|
'demandNumberSchema'
|
'logisticsDelivery'
|
'addOrderModalSchema'
|
'
selectGoodsSchema'
|
'
none'
,
useNestTable
?:
boolean
,
// 是否使用嵌套表格
nestColumns
?:
any
[],
nestTableProps
?:
any
,
...
...
@@ -82,6 +82,9 @@ const ModalTable:React.FC<ModalTableProps> = (props) => {
case
'addOrderModalSchema'
:
{
return
addOrderModalSchema
}
case
'selectGoodsSchema'
:
{
return
logisticsSelectGoodsSearchSchema
}
case
'none'
:
{
return
{}
}
...
...
src/components/ModalTable/schema/index.ts
View file @
4e48cc96
...
...
@@ -673,3 +673,64 @@ export const logisticsDeliverySearchSchema: ISchema = {
}
}
}
export
const
logisticsSelectGoodsSearchSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
productName
:
{
type
:
'string'
,
'x-component'
:
'ModalSearch'
,
'x-component-props'
:
{
placeholder
:
'商品名称'
,
align
:
'flex-left'
,
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'flex-layout'
,
'x-component-props'
:
{
rowStyle
:
{
flexWrap
:
'nowrap'
,
style
:
{
marginRight
:
0
}
},
colStyle
:
{
marginTop
:
20
,
},
},
properties
:
{
brand
:
{
type
:
'string'
,
"x-component-props"
:
{
placeholder
:
'商品品牌'
,
style
:
{
width
:
160
}
}
},
category
:
{
type
:
'string'
,
"x-component"
:
'SearchSelect'
,
'x-component-props'
:
{
placeholder
:
'商品品类'
,
fetchSearch
:
PublicApi
.
getWarehouseInvoicesTypeAll
,
style
:
{
width
:
160
}
},
},
submit
:
{
"x-component"
:
'Submit'
,
"x-mega-props"
:
{
span
:
1
},
"x-component-props"
:
{
children
:
'查询'
}
}
}
}
}
}
src/pages/logistics/addLogistics/columns.ts
0 → 100644
View file @
4e48cc96
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
export
const
SelectGoodsColumns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'商品ID'
,
key
:
'productId'
,
dataIndex
:
'productId'
,
},
{
title
:
'商品名称'
,
key
:
'productName'
,
dataIndex
:
'productName'
,
},
{
title
:
'品类'
,
key
:
'category'
,
dataIndex
:
'category'
,
},
{
title
:
'品牌'
,
key
:
'brand'
,
dataIndex
:
'brand'
,
}
]
src/pages/logistics/addLogistics/index.less
0 → 100644
View file @
4e48cc96
.revise_style {
:global {
.ant-form-item-label {
width: 174px;
label {
color:#6B778C
}
}
.ant-form-item-control {
width: 500px;
.ant-form-item-control-input-content {
position: relative;
.ant-btn-link {
position: absolute;
right: -120px;
}
.ant-picker {
width: 100%;
}
}
.ant-input-group-addon {
.ant-input-search-button {
background-color: #6B778C;
border-color: #6B778C;
}
}
}
.ant-radio-group-solid {
.ant-radio-button-wrapper-checked {
background: #6B778C;
border-color: #6B778C;
&:hover {
background: #6B778C;
border-color: #6B778C;
}
}
}
}
.upload_item {
padding: 5px 8px;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #FAFBFC;
.upload_left {
display: flex;
align-items: center;
color: #303133;
:global {
.anticon-file-word {
color: #4279df;
font-size: 20px;
margin-right: 8px;
}
}
}
.upload_right {
color: #00B37A;
cursor: pointer;
:global {
.anticon-delete {
margin-left: 19px;
color: #C0C4CC;
}
}
}
}
}
\ No newline at end of file
src/pages/logistics/addLogistics/index.tsx
0 → 100644
View file @
4e48cc96
This diff is collapsed.
Click to expand it.
src/pages/transaction/demandPosts/demandAdd/components/Modal/modalAnchor.tsx
View file @
4e48cc96
This diff is collapsed.
Click to expand it.
src/pages/transaction/inquiryQuote/components/details.tsx
View file @
4e48cc96
...
...
@@ -434,7 +434,7 @@ const Details: React.FC<parmas> = (props) => {
{
Object
.
keys
(
data
).
length
>
0
&&
<>
{
type
!==
'quote
'
?
{
type
===
'rfq
'
?
<
TabPane
tab=
"外部流转"
key=
"1"
>
<
Steps
style=
{
{
padding
:
'20px 0'
}
}
...
...
@@ -578,7 +578,7 @@ const Details: React.FC<parmas> = (props) => {
</
div
>
<
div
className=
{
style
.
item_wrap
}
>
{
type
!==
'quote
'
?
type
===
'rfq
'
?
<>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转记录
</
div
>
<
Table
columns=
{
flowRecord
.
external
}
rowKey=
'id'
pagination=
{
false
}
dataSource=
{
data
.
externalInquiryListLogResponses
}
/>
...
...
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