Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6bc908a3
authored
Dec 24, 2021
by
peii
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
显示样式及提交后提示
(cherry picked from commit
0d650bdf
)
parent
c37a622c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
15 deletions
src/pages/settlement/detail.styl
src/pages/settlement/detail.tsx
src/pages/settlement/reject.tsx
src/pages/settlement/saleDetail.tsx
src/pages/settlement/detail.styl
View file @
6bc908a3
...
@@ -35,6 +35,10 @@
...
@@ -35,6 +35,10 @@
margin-bottom 10px
margin-bottom 10px
justify-content space-between
justify-content space-between
&__text
flex 1
font-size 16px
.card
.card
@extend .row
@extend .row
align-items center
align-items center
...
@@ -51,9 +55,14 @@
...
@@ -51,9 +55,14 @@
color second_text_color
color second_text_color
font-size 15px
font-size 15px
margin-bottom 5px
margin-bottom 5px
flex-wrap nowrap
flex 1
&-key
&-key
width 60px
color second_text_color
font-size 15px
margin-bottom 5px
width 55px
&-select
&-select
@extend .middle
@extend .middle
...
...
src/pages/settlement/detail.tsx
View file @
6bc908a3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @FilePath: /BoneHouse_Business_APP/src/pages/settlement/detail.tsx
* @FilePath: /BoneHouse_Business_APP/src/pages/settlement/detail.tsx
* @Author: peii
* @Author: peii
* @Date: 2021-12-20 15:27:45
* @Date: 2021-12-20 15:27:45
* @LastEditTime: 2021-12-2
3 12:15:45
* @LastEditTime: 2021-12-2
4 17:27:08
* @LastEditors: peii
* @LastEditors: peii
* @Vision: 1.0
* @Vision: 1.0
* @Description: 结算详情
* @Description: 结算详情
...
@@ -124,7 +124,10 @@ class Detail extends React.Component<IProps, IState> {
...
@@ -124,7 +124,10 @@ class Detail extends React.Component<IProps, IState> {
this
.
setState
({
submitting
:
false
})
this
.
setState
({
submitting
:
false
})
if
(
res
.
error_code
!==
0
)
return
if
(
res
.
error_code
!==
0
)
return
show
(
'确认成功!'
)
setTimeout
(()
=>
{
this
.
props
.
navigation
.
pop
(
2
)
this
.
props
.
navigation
.
pop
(
2
)
},
1000
)
}
}
refreshHandler
()
{
refreshHandler
()
{
...
@@ -181,19 +184,19 @@ class Detail extends React.Component<IProps, IState> {
...
@@ -181,19 +184,19 @@ class Detail extends React.Component<IProps, IState> {
onPress=
{
()
=>
this
.
itemPressHandler
(
item
)
}
onPress=
{
()
=>
this
.
itemPressHandler
(
item
)
}
>
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
Text
style=
{
g
(
styles
,
'card-text
'
,
'card-text
-key'
)
}
>
销售单:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text-key'
)
}
>
销售单:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
order_number
}
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
order_number
}
</
Text
>
</
View
>
</
View
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
Text
style=
{
g
(
styles
,
'card-text
'
,
'card-text
-key'
)
}
>
出库单:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text-key'
)
}
>
出库单:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
source_header_number
}
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
source_header_number
}
</
Text
>
</
View
>
</
View
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
Text
style=
{
g
(
styles
,
'card-text
'
,
'card-text
-key'
)
}
>
数量:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text-key'
)
}
>
数量:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
sum_quantity
}
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
sum_quantity
}
</
Text
>
</
View
>
</
View
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
Text
style=
{
g
(
styles
,
'card-text
'
,
'card-text
-key'
)
}
>
金额:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text-key'
)
}
>
金额:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
sum_settlement_amount
}
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
sum_settlement_amount
}
</
Text
>
</
View
>
</
View
>
</
TouchableOpacity
>
</
TouchableOpacity
>
...
...
src/pages/settlement/reject.tsx
View file @
6bc908a3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @FilePath: /BoneHouse_Business_APP/src/pages/settlement/reject.tsx
* @FilePath: /BoneHouse_Business_APP/src/pages/settlement/reject.tsx
* @Author: peii
* @Author: peii
* @Date: 2021-12-18 17:12:57
* @Date: 2021-12-18 17:12:57
* @LastEditTime: 2021-12-24 1
0:09:52
* @LastEditTime: 2021-12-24 1
7:28:59
* @LastEditors: peii
* @LastEditors: peii
* @Vision: 1.0
* @Vision: 1.0
* @Description: 结算驳回
* @Description: 结算驳回
...
@@ -18,7 +18,7 @@ import { FieldType } from '../../enums'
...
@@ -18,7 +18,7 @@ import { FieldType } from '../../enums'
import
Header
from
'../../components/header/header'
import
Header
from
'../../components/header/header'
import
Form
from
'../../components/form/index'
import
Form
from
'../../components/form/index'
import
Resolution
from
'../../components/common/Resolution'
import
Resolution
from
'../../components/common/Resolution'
import
{
g
,
getFormItem
}
from
'../../utils/utils'
import
{
g
,
getFormItem
,
show
}
from
'../../utils/utils'
import
{
SettlementProcessCode
}
from
'../../enums'
import
{
SettlementProcessCode
}
from
'../../enums'
import
api
from
'../../services/api'
import
api
from
'../../services/api'
import
styles
from
'./reject.styl'
import
styles
from
'./reject.styl'
...
@@ -80,13 +80,15 @@ class Reject extends React.Component<IProps, IState> {
...
@@ -80,13 +80,15 @@ class Reject extends React.Component<IProps, IState> {
const
params
=
{
const
params
=
{
process_code
:
SettlementProcessCode
.
USER_REJECT
,
process_code
:
SettlementProcessCode
.
USER_REJECT
,
sale_settlement_number
:
order
.
settlement_number
,
sale_settlement_number
:
order
.
settlement_number
,
reject_reason
:
data
.
reject_reason
reject_reason
:
data
.
reject_reason
,
}
}
const
res
=
await
api
.
postSettlementProcess
(
params
)
const
res
=
await
api
.
postSettlementProcess
(
params
)
if
(
res
.
error_code
!==
0
)
return
if
(
res
.
error_code
!==
0
)
return
show
(
'驳回理由提交成功!'
)
setTimeout
(()
=>
{
this
.
props
.
navigation
.
pop
(
3
)
this
.
props
.
navigation
.
pop
(
3
)
},
1000
)
}
}
render
()
{
render
()
{
...
...
src/pages/settlement/saleDetail.tsx
View file @
6bc908a3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @FilePath: /BoneHouse_Business_APP/src/pages/settlement/saleDetail.tsx
* @FilePath: /BoneHouse_Business_APP/src/pages/settlement/saleDetail.tsx
* @Author: peii
* @Author: peii
* @Date: 2021-12-20 15:27:45
* @Date: 2021-12-20 15:27:45
* @LastEditTime: 2021-12-24 1
1:18:49
* @LastEditTime: 2021-12-24 1
7:19:24
* @LastEditors: peii
* @LastEditors: peii
* @Vision: 1.0
* @Vision: 1.0
* @Description: 结算销售物料详情
* @Description: 结算销售物料详情
...
@@ -99,8 +99,8 @@ class SaleDetail extends React.Component<IProps, IState> {
...
@@ -99,8 +99,8 @@ class SaleDetail extends React.Component<IProps, IState> {
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
specification
}
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
specification
}
</
Text
>
</
View
>
</
View
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
Text
style=
{
g
(
styles
,
'card-text-key'
)
}
>
序列号
:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text-key'
)
}
>
存储条件
:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
s
erial_number
}
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
s
torage_condition_name
}
</
Text
>
</
View
>
</
View
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
<
View
style=
{
g
(
styles
,
'card-line'
)
}
>
...
@@ -125,8 +125,8 @@ class SaleDetail extends React.Component<IProps, IState> {
...
@@ -125,8 +125,8 @@ class SaleDetail extends React.Component<IProps, IState> {
</
View
>
</
View
>
<
View
style=
{
g
(
styles
,
'card-line-half'
,
'ml20'
)
}
>
<
View
style=
{
g
(
styles
,
'card-line-half'
,
'ml20'
)
}
>
<
Text
style=
{
g
(
styles
,
'card-text-key'
)
}
>
存储条件
:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text-key'
)
}
>
序号
:
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
storage_condition_name
}
</
Text
>
<
Text
style=
{
g
(
styles
,
'card-text'
)
}
>
{
item
.
production_serial_number
}
</
Text
>
</
View
>
</
View
>
</
View
>
</
View
>
...
...
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