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
692ce8ea
Commit
692ce8ea
authored
Dec 04, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
a88682d7
cf6eff75
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
153 additions
and
82 deletions
+153
-82
package.json
package.json
+1
-1
NumberRange.tsx
src/components/NiceForm/components/NumberRange.tsx
+1
-0
index.less
src/pages/home/components/AdvertisementSpace/index.less
+1
-1
index.tsx
src/pages/home/components/AdvertisementSpace/index.tsx
+0
-0
index.less
src/pages/home/components/LatestAnnounces/index.less
+12
-0
index.tsx
src/pages/home/components/LatestAnnounces/index.tsx
+0
-0
index.less
src/pages/home/components/RecentVisit/index.less
+1
-0
index.less
src/pages/home/index.less
+78
-26
index.tsx
src/pages/home/index.tsx
+31
-28
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+8
-3
applyWithdraw.tsx
...yandSettle/capitalAccounts/accountLists/applyWithdraw.tsx
+1
-1
index.tsx
...chaseOrder/orderCollect/components/invoiceModal/index.tsx
+0
-0
schema.ts
...chaseOrder/orderCollect/components/invoiceModal/schema.ts
+13
-21
index.tsx
...Order/orderCollect/components/productModalTable/index.tsx
+6
-1
No files found.
package.json
View file @
692ce8ea
...
...
@@ -88,7 +88,7 @@
"
chalk
"
:
"^4.1.0"
,
"
clone
"
:
"^2.1.2"
,
"
connect-history-api-fallback
"
:
"^1.6.0"
,
"
cross-env
"
:
"^7.0.
2
"
,
"
cross-env
"
:
"^7.0.
3
"
,
"
events
"
:
"^3.2.0"
,
"
express
"
:
"^4.17.1"
,
"
fs-extra
"
:
"^9.0.1"
,
...
...
src/components/NiceForm/components/NumberRange.tsx
View file @
692ce8ea
...
...
@@ -69,6 +69,7 @@ const NumberRange = (props) => {
borderLeft
:
0
,
borderRight
:
0
,
pointerEvents
:
'none'
,
background
:
'#fff'
,
}
}
placeholder=
"~"
disabled
...
...
src/pages/home/components/AdvertisementSpace/index.less
View file @
692ce8ea
...
...
@@ -39,7 +39,7 @@
// }
// }
.advertisementSpace {
width: 38
6px;
margin-bottom: 1
6px;
height: 217px;
.img {
width: 100%;
...
...
src/pages/home/components/AdvertisementSpace/index.tsx
View file @
692ce8ea
src/pages/home/components/LatestAnnounces/index.less
View file @
692ce8ea
...
...
@@ -2,6 +2,7 @@
padding: 24px;
background-color: #fff;
border-radius: 8px;
height: 361px;
.header {
display: flex;
flex-direction: row;
...
...
@@ -25,6 +26,10 @@
display: flex;
flex-direction: row;
align-items: center;
&:last-of-type {
margin-bottom: 0px;
}
.date {
margin-right: 16px;
padding: 2px 6px;
...
...
@@ -42,6 +47,13 @@
}
.content {
cursor: pointer;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
}
}
...
...
src/pages/home/components/LatestAnnounces/index.tsx
View file @
692ce8ea
src/pages/home/components/RecentVisit/index.less
View file @
692ce8ea
...
...
@@ -2,6 +2,7 @@
background-color: #fff;
padding: 24px;
border-radius: 8px;
height: 235px;
.header {
.title {
...
...
src/pages/home/index.less
View file @
692ce8ea
.
userGuaid
{
margin-bottom: 24px
;
.
grid_container
{
display: grid
;
}
.main {
// display: flex;
// flex-direction: row;
.mainSide {
// flex: 1;
// display: flex;
// flex-direction: column;
.ability {
margin-top: 24px;
}
}
.rightSide {
.actions {
display: flex;
}
.announce {
margin-top: 24px;
}
.controller {
.ability {
margin-top: 16px;
}
.controller {
background-color: @main-color;
height: 48px;
display: flex;
...
...
@@ -43,6 +23,78 @@
.text {
margin-left: 8px;
}
}
.advertise {
margin-top: 16px;
}
@media (min-width: 1600px) {
.grid_container {
// display: grid;
// grid-template-columns: 75% 25%;
// grid-template-columns: repeat(24, 1fr);
// grid-auto-flow: column dense;
// grid-column-gap: 16px;
.top {
display: grid;
grid-template-columns: repeat(24, 1fr);
grid-column-gap: 16px;
grid-row-gap: 16px;
.userCenter {
grid-column-start: 1;
grid-column-end: 19;
grid-row-start: 1;
}
.actions {
grid-column-start: 19;
grid-column-end: 25;
grid-row-start: 1;
}
.announce {
grid-column-start: 19;
grid-column-end: 25;
margin-top: -200px;
}
.recentVisit {
grid-column-start: 19;
grid-column-end: 25;
}
}
}
.bottom {
display: grid;
grid-template-columns: repeat(24, 1fr);
grid-column-gap: 16px;
grid-row-gap: 16px;
.otherCenter {
grid-column-start: 1;
grid-column-end: 19;
grid-row-start: 1;
margin-top: -425px;
}
.anyQuestion {
grid-column-start: 19;
grid-column-end: 25;
margin-top: 16px;
}
.advertise {
grid-column-start: 19;
grid-column-end: 25;
}
}
}
@media (max-width: 1599px) {
.userCenter {
margin: 16px 0;
}
.recentVisit {
margin-top: 16px;
}
}
src/pages/home/index.tsx
View file @
692ce8ea
...
...
@@ -57,12 +57,35 @@ const Home: React.FC<{}> = () => {
<
div
className=
{
styles
.
userGuaid
}
style=
{
{
display
:
visible
?
'none'
:
'none'
}
}
>
<
UseGuaid
/>
</
div
>
<
div
className=
{
styles
.
main
}
>
<
Row
gutter=
{
[
16
,
16
]
}
>
<
Col
className=
{
styles
.
mainSide
}
sm=
{
24
}
md=
{
24
}
lg=
{
24
}
xl=
{
16
}
xxl=
{
18
}
>
<
div
>
<
div
className=
{
styles
.
grid_container
}
>
<
div
className=
{
styles
.
top
}
>
<
div
className=
{
styles
.
actions
}
>
<
Row
gutter=
{
24
}
>
<
Col
span=
{
12
}
>
<
CustomWorkBench
handleChangeOrder=
{
handleChangeOrder
}
layouts=
{
layout
}
/></
Col
>
<
Col
span=
{
12
}
>
<
div
className=
{
styles
.
controller
}
onClick=
{
()
=>
setVisible
((
state
)
=>
!
state
)
}
>
<
CompassFilled
className=
{
styles
.
icon
}
/>
<
span
className=
{
styles
.
text
}
>
使用向导
</
span
>
</
div
>
</
Col
>
</
Row
>
</
div
>
<
div
className=
{
styles
.
userCenter
}
>
<
UserCenter
/>
</
div
>
<
div
className=
{
styles
.
announce
}
>
<
LatestAnnounce
/>
</
div
>
<
div
className=
{
styles
.
recentVisit
}
>
<
RecentVisit
/>
</
div
>
</
div
>
<
div
className=
{
styles
.
bottom
}
>
<
div
className=
{
styles
.
otherCenter
}
>
{
layout
.
map
((
item
)
=>
{
const
RenderComponent
=
ComponentSelect
[
item
.
name
]
...
...
@@ -80,36 +103,16 @@ const Home: React.FC<{}> = () => {
)
})
}
</
Col
>
<
Col
className=
{
styles
.
rightSide
}
sm=
{
24
}
md=
{
24
}
lg=
{
24
}
xl=
{
8
}
xxl=
{
6
}
>
<
Row
gutter=
{
24
}
>
<
Col
span=
{
12
}
>
<
CustomWorkBench
handleChangeOrder=
{
handleChangeOrder
}
layouts=
{
layout
}
/></
Col
>
<
Col
span=
{
12
}
>
<
div
className=
{
styles
.
controller
}
onClick=
{
()
=>
setVisible
((
state
)
=>
!
state
)
}
>
<
CompassFilled
className=
{
styles
.
icon
}
/>
<
span
className=
{
styles
.
text
}
>
使用向导
</
span
>
</
div
>
</
Col
>
</
Row
>
<
div
className=
{
styles
.
announce
}
>
<
LatestAnnounce
/>
</
div
>
<
div
className=
{
styles
.
announce
}
>
<
RecentVisit
/>
</
div
>
<
div
className=
{
styles
.
announce
}
>
<
div
className=
{
styles
.
anyQuestion
}
>
<
AnyQuestion
/>
</
div
>
<
div
className=
{
styles
.
announc
e
}
>
<
div
className=
{
styles
.
advertis
e
}
>
<
AdvertisementContainer
/>
</
div
>
</
Col
>
</
Row
>
</
div
>
</
div
>
</>
</
PageHeaderWrapper
>
)
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
692ce8ea
...
...
@@ -364,13 +364,13 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
idList
=
[...
idList
,
...
item
.
checkedList
]
}
if
(
idList
.
length
<=
0
)
{
message
.
info
(
"请选择要
移动
的商品"
)
message
.
info
(
"请选择要
删除
的商品"
)
return
false
}
Modal
.
confirm
({
centered
:
true
,
className
:
styles
.
mallComfirm
,
content
:
`是否从进货单中
移
除选中的商品?`
,
content
:
`是否从进货单中
删
除选中的商品?`
,
onOk
:
()
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
postSearchShopPurchaseDeletePurchase
({
idList
:
idList
}).
then
(
res
=>
{
...
...
@@ -393,16 +393,21 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
* @param ids
*/
const
deleteListItems
=
(
ids
:
number
[])
=>
{
console
.
log
(
ids
,
"ids"
)
const
newOrderList
=
JSON
.
parse
(
JSON
.
stringify
(
orderList
))
const
result
=
[]
for
(
const
item
of
newOrderList
)
{
const
newItem
=
item
newItem
.
checkedList
=
newItem
.
checkedList
.
filter
(
checkItem
=>
!
ids
.
includes
(
checkItem
))
newItem
.
orderList
=
newItem
.
orderList
.
filter
(
orderItem
=>
!
ids
.
includes
(
orderItem
.
id
))
if
(
newItem
.
orderList
.
length
>
0
)
{
result
.
push
(
newItem
)
}
}
setOrderList
(
result
)
if
(
result
.
every
(
resItem
=>
resItem
.
checkedList
.
length
===
0
)){
setIndeterminate
(
false
)
}
}
/**
...
...
@@ -750,7 +755,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
<
Checkbox
value=
{
item
.
id
}
className=
"common_checkbox"
indeterminate=
{
!!
item
.
checkedList
.
length
&&
item
.
checkedList
.
length
<
item
.
defaultCheckedList
.
length
}
indeterminate=
{
!!
item
.
checkedList
.
length
&&
item
.
checkedList
.
length
<
item
.
defaultCheckedList
.
length
&&
item
.
checkedList
.
length
>
0
}
onChange=
{
(
e
)
=>
onCheckChildAllChange
(
e
,
item
.
id
)
}
></
Checkbox
>
<
label
>
{
item
.
shopname
}
</
label
>
...
...
src/pages/payandSettle/capitalAccounts/accountLists/applyWithdraw.tsx
View file @
692ce8ea
...
...
@@ -173,7 +173,7 @@ const AccountDetail: React.FC<{}> = () => {
</
div
>
</
div
>
<
div
className=
{
styles
[
'repayment-right'
]
}
>
<
Button
ghost
onClick=
{
handleSubmitApply
}
loading=
{
btnLoading
}
>
提交
</
Button
>
<
Button
ghost
onClick=
{
handleSubmitApply
}
loading=
{
btnLoading
}
disabled=
{
bankDetail
?
false
:
true
}
>
提交
</
Button
>
</
div
>
</
div
>
</
Col
>
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/invoiceModal/index.tsx
View file @
692ce8ea
src/pages/transaction/purchaseOrder/orderCollect/components/invoiceModal/schema.ts
View file @
692ce8ea
...
...
@@ -12,11 +12,12 @@ const addressSchema: ISchema = {
labelAlign
:
'left'
,
labelCol
:
4
,
wrapperCol
:
20
,
full
:
true
full
:
true
,
},
properties
:
{
type
:
{
type
:
'radio'
,
required
:
true
,
title
:
'开具类型'
,
enum
:
[
{
...
...
@@ -29,12 +30,6 @@ const addressSchema: ISchema = {
}
],
default
:
1
,
"x-rules"
:
[
{
required
:
true
,
message
:
'请选择开具类型'
},
],
"x-linkages"
:
[
{
type
:
'value:visible'
,
...
...
@@ -45,6 +40,7 @@ const addressSchema: ISchema = {
},
kind
:
{
type
:
'radio'
,
required
:
true
,
title
:
'发票种类'
,
enum
:
[
{
...
...
@@ -57,39 +53,35 @@ const addressSchema: ISchema = {
}
],
default
:
1
,
"x-rules"
:
[
{
required
:
true
,
message
:
'请选择开具类型'
}
]
},
invoiceTitle
:
{
type
:
'string'
,
required
:
true
,
title
:
'发票抬头'
,
"x-rules"
:
[
{
required
:
true
,
message
:
'请输入发票抬头'
},
{
limitByte
:
true
,
maxByte
:
40
},
{
required
:
true
,
message
:
'请输入发票抬头'
}
]
},
taxNo
:
{
type
:
'string'
,
required
:
true
,
title
:
'纳税号'
,
"x-rules"
:
[
{
required
:
true
,
message
:
'请输入纳税号'
},
{
limitByte
:
true
,
maxByte
:
20
},
{
required
:
true
,
message
:
'请输入纳税号'
}
]
},
bankOfDeposit
:
{
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/productModalTable/index.tsx
View file @
692ce8ea
...
...
@@ -138,7 +138,12 @@ const ProductModalTable:React.FC<ProductModalTableProps> = (props) => {
const
handleConfirmProduct
=
async
()
=>
{
// 判断所选择的商品是否属于同一个工作流
const
res
=
await
PublicApi
.
postOrderIsWorkFlow
({
memberId
:
rowSelectionCtl
.
selectRow
[
0
].
memberId
,
productIds
:
rowSelectionCtl
.
selectedRowKeys
},
{
ctlType
:
'none'
})
const
res
=
await
PublicApi
.
postOrderIsWorkFlow
({
memberId
:
rowSelectionCtl
.
selectRow
[
0
].
memberId
,
memberRoleId
:
rowSelectionCtl
.
selectRow
[
0
].
memberRoleId
,
productIds
:
rowSelectionCtl
.
selectedRowKeys
,
orderModel
:
schemaAction
.
getFieldValue
(
'orderModel'
)
},
{
ctlType
:
'none'
})
if
(
res
.
code
===
1000
)
{
const
productData
=
schemaAction
.
getFieldValue
(
'orderProductRequests'
)
...
...
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