Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-front
Overview
Overview
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
platform
hg-front
Commits
ed9fb6a1
Commit
ed9fb6a1
authored
Aug 01, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节功能优化
parent
140c2825
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
185 additions
and
53 deletions
+185
-53
androidPrivacy.json
androidPrivacy.json
+1
-1
payment-order.js
api/payment-order.js
+18
-1
manifest.json
manifest.json
+3
-3
home.vue
pages/home/home.vue
+1
-0
add.vue
pages/payment-order/add.vue
+57
-9
edit.vue
pages/payment-order/edit.vue
+104
-39
list.vue
pages/payment-order/list.vue
+1
-0
No files found.
androidPrivacy.json
View file @
ed9fb6a1
{
"prompt"
:
"template"
"prompt"
:
"template"
}
api/payment-order.js
View file @
ed9fb6a1
...
...
@@ -199,6 +199,13 @@ export const getSelectList = (params,pageData) => {
return
http
.
post
(
url
,
d
)
}
export
const
getMerchantList
=
(
params
,
pageData
)
=>
{
let
url
=
`/service/S_CG_SH_01`
let
d
=
setParamsData
(
params
,
pageData
)
return
http
.
post
(
url
,
d
)
}
export
const
getSubList
=
(
params
,
pageData
)
=>
{
let
url
=
`/service/S_CW_FK_05`
...
...
@@ -212,12 +219,22 @@ export const save = (data) => {
return
http
.
post
(
url
,
d
)
}
// 审核
export
const
updateSubmitStatus
=
(
data
)
=>
{
let
url
=
`/service/S_XS_KK_03`
let
url
=
`/service/S_CW_FK_02`
let
d
=
setResultData
(
data
);
return
http
.
post
(
url
,
d
)
}
// 核销
export
const
updateWriteoffStatus
=
(
data
)
=>
{
let
url
=
`/service/S_CW_FK_04`
let
d
=
setResultData
(
data
);
return
http
.
post
(
url
,
d
)
}
export
const
getProList
=
(
params
,
pageData
)
=>
{
let
url
=
`/service/S_CW_SP_03`
let
d
=
setParamsData
(
params
,
pageData
)
...
...
manifest.json
View file @
ed9fb6a1
...
...
@@ -66,9 +66,9 @@
"splashscreen"
:
{
"androidStyle"
:
"default"
,
"android"
:
{
"hdpi"
:
"C:/Users/w/Desktop/引导页/引导页
/引导页
.png"
,
"xhdpi"
:
"C:/Users/w/Desktop/引导页/引导页
/引导页
.png"
,
"xxhdpi"
:
"C:/Users/w/Desktop/引导页/引导页
/引导页
.png"
"hdpi"
:
"C:/Users/w/Desktop/引导页/引导页.png"
,
"xhdpi"
:
"C:/Users/w/Desktop/引导页/引导页.png"
,
"xxhdpi"
:
"C:/Users/w/Desktop/引导页/引导页.png"
},
"useOriginalMsgbox"
:
true
,
"iosStyle"
:
"storyboard"
,
...
...
pages/home/home.vue
View file @
ed9fb6a1
...
...
@@ -445,6 +445,7 @@
}
.swiper-box
{
width
:
100%
;
height
:
168px
;
.swiper-item{
width
:
100%
;
height
:
100%
;
...
...
pages/payment-order/add.vue
View file @
ed9fb6a1
...
...
@@ -164,14 +164,14 @@
<view
v-else
class=
"form-content-box"
>
<form>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
<view
class=
"title
title-2
"
>
<text
class=
"text-xl text-red"
>
*
</text>
<text>
公司名称:
</text>
</view>
<view
class=
"text-blue"
>
<picker
@
change=
"onFactoryChange"
:value=
"factoryIndex"
:range=
"factoryList"
range-key=
"label"
>
<view
class=
"uni-input"
>
<view
class=
"
flex-row-center
uni-input"
>
<text
class=
"text-blue"
>
{{
factoryIndex
>=
0
?
factoryList
[
factoryIndex
].
label
:
'请选择'
}}
</text>
<text
class=
"cuIcon-right"
></text>
...
...
@@ -179,8 +179,26 @@
</picker>
</view>
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
<view
class=
"title title-2"
>
<text
class=
"text-xl text-red"
>
*
</text>
<text>
供应商名称:
</text>
</view>
<view
class=
"text-blue"
>
<picker
@
change=
"onMerchantChange"
:value=
"merchantIndex"
:range=
"merchantList"
range-key=
"label"
>
<view
class=
"uni-input"
>
<text
class=
"text-blue"
>
{{
merchantIndex
>=
0
?
merchantList
[
merchantIndex
].
label
:
'请选择'
}}
</text>
<text
class=
"cuIcon-right"
></text>
</view>
</picker>
</view>
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title title-2"
>
<text
class=
"text-xl text-red"
>
*
</text>
<text>
付款总额:
</text>
</view>
...
...
@@ -190,7 +208,7 @@
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
<view
class=
"title
title-2
"
>
<text
class=
"text-xl text-red"
>
*
</text>
<text>
付款日期:
</text>
</view>
...
...
@@ -224,6 +242,7 @@
}
from
"@/api/index.js"
import
{
save
,
getMerchantList
,
saveBySelect
}
from
"@/api/payment-order.js"
;
import
{
...
...
@@ -243,10 +262,18 @@
signingDate
:
''
,
totalContractPriceIncluding
:
''
,
reviewStatus
:
'3'
,
contractDate
:
moment
().
format
(
"YYYY-MM-DD"
)
signingDate
:
moment
().
format
(
"YYYY-MM-DD"
)
},
queryData
:
{},
pageData
:{
showCount
:
"true"
,
limit
:
500
,
offset
:
0
},
factoryList
:
[],
factoryIndex
:
-
1
,
merchantList
:
[],
merchantIndex
:
-
1
,
selectList
:[],
editIndex
:
''
};
...
...
@@ -264,13 +291,29 @@
}
})
})
getMerchantList
(
this
.
queryData
,
this
.
pageData
).
then
(
res
=>
{
let
list
=
toJsonData
(
res
.
data
.
__blocks__
.
result
.
rows
,
res
.
data
.
__blocks__
.
result
.
meta
.
columns
);
if
(
list
.
length
){
this
.
merchantList
=
list
.
map
(
item
=>
{
return
{
value
:
item
.
supCode
,
label
:
item
.
supName
}
})
}
console
.
log
(
this
.
merchantList
,
9999
)
})
},
onFactoryChange
(
e
)
{
let
index
=
Number
(
e
.
target
.
value
)
if
(
this
.
factoryIndex
===
index
)
return
;
this
.
factoryIndex
=
index
;
},
onMerchantChange
(
e
){
let
index
=
Number
(
e
.
target
.
value
)
if
(
this
.
merchantIndex
===
index
)
return
;
this
.
merchantIndex
=
index
;
},
onNavToSelect
()
{
let
checkedId
=
''
;
if
(
this
.
selectList
.
length
){
...
...
@@ -339,7 +382,10 @@
...
this
.
orderInfo
,
companyName
:
this
.
factoryList
[
this
.
factoryIndex
].
label
,
companyCode
:
this
.
factoryList
[
this
.
factoryIndex
].
value
,
signingDate
:
moment
(
this
.
orderInfo
.
signingDate
).
format
(
"YYYYMMDD"
)
partyA
:
this
.
merchantList
[
this
.
merchantIndex
].
label
,
signingDate
:
moment
(
this
.
orderInfo
.
signingDate
).
format
(
"YYYYMMDD"
),
cancelStatus
:
'1'
,
reviewStatus
:
"0"
}).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
...
...
@@ -595,14 +641,16 @@
.cu-form-group
{
height
:
32px
;
min-height
:
32px
;
padding
:
1
upx
20
upx
1
upx
30
upx
;
.title
{
display
:
flex
;
flex-direction
:
row
;
width
:
260
upx
;
align-items
:
center
;
}
.title-2
{
width
:
224
upx
;
}
.text-blue
{
white-space
:
normal
;
}
...
...
pages/payment-order/edit.vue
View file @
ed9fb6a1
...
...
@@ -9,6 +9,11 @@
<block
slot=
"content"
>
<text
class=
"text-white"
>
结算单详情
</text>
</block>
<block
slot=
"right"
>
<view
v-if=
"subList && subList.length"
class=
"right-btn"
@
tap=
"onEditOrSave"
>
<text
class=
"text-white"
>
{{
isEdit
?
'保存'
:
'编辑'
}}
</text>
</view>
</block>
</cu-custom>
<view
v-if=
"statusBarHeight>0"
class=
"content-black"
:style=
"
{height:statusBarHeight+45+'px'}">
...
...
@@ -62,24 +67,25 @@
<text>
{{
orderInfo
.
signingDate
}}
</text>
</view>
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
<text>
核销
状态:
</text>
<text>
审核
状态:
</text>
</view>
<view
class=
""
>
<text>
{{
cancelStatusEnum
[
orderInfo
.
cancel
Status
]
}}
</text>
<text>
{{
reviewStatusEnum
[
orderInfo
.
review
Status
]
}}
</text>
</view>
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
<text>
审批
状态:
</text>
<text>
核销
状态:
</text>
</view>
<view
class=
""
>
<text>
{{
reviewStatusEnum
[
orderInfo
.
review
Status
]
}}
</text>
<text>
{{
cancelStatusEnum
[
orderInfo
.
cancel
Status
]
}}
</text>
</view>
</view>
</form>
</view>
</view>
...
...
@@ -119,7 +125,12 @@
<view
class=
"title"
>
<text>
收款总额:
</text>
</view>
<view
class=
""
>
<view
v-if=
"isEdit && item.isEdit"
class=
""
>
<u-input
v-model=
"item.totalContractPriceIncluding"
color=
"#0081ff"
inputAlign=
"right"
type=
"number"
:border=
"border"
placeholder=
"请输入付款总额"
/>
</view>
<view
v-else
class=
""
>
<text>
{{
item
.
totalContractPriceIncluding
}}
</text>
</view>
</view>
...
...
@@ -134,8 +145,13 @@
</view>
</view>
<view
v-if=
"orderInfo.reviewStatus && orderInfo.reviewStatus!=3"
class=
"footer-box"
>
<button
class=
"cu-btn block bg-blue"
@
tap=
"onSubmit(1)"
>
提交
</button>
<view
class=
"footer-box"
>
<button
v-if=
"orderInfo.reviewStatus == '0'"
class=
"cu-btn block bg-blue"
@
tap=
"onSubmit(1)"
>
审核通过
</button>
<button
v-if=
"orderInfo.reviewStatus == '1' && orderInfo.cancelStatus == '1' "
class=
"cu-btn block bg-blue"
@
tap=
"onSubmit(2)"
>
核销通过
</button>
<button
v-if=
"orderInfo.reviewStatus == '0'"
class=
"cu-btn block bg-blue"
@
tap=
"onNavToSelect"
>
选择采购收票
</button>
</view>
<u-calendar
:show=
"show2"
mode=
"single"
:defaultDate=
"orderInfo.signingDate"
:minDate=
"minDate"
:monthNum=
'4'
@
confirm=
"onConfirm"
@
close=
"onCancel"
></u-calendar>
...
...
@@ -153,7 +169,7 @@
import
{
getParamsData
}
from
"@/api/product-warehousing.js"
;
import
{
getList
,
getSubList
}
from
"@/api/payment-order.js"
;
import
{
getList
,
getSubList
,
updateSubmitStatus
,
updateWriteoffStatus
}
from
"@/api/payment-order.js"
;
export
default
{
data
()
{
...
...
@@ -167,19 +183,10 @@
statusBarHeight
:
uni
.
getStorageSync
(
"statusHeight"
)
||
0
,
orderInfo
:
{},
id
:
''
,
submitStatusEnum
:{
3
:
'已提交'
,
2
:
'未提交'
,
1
:
'已提交'
,
0
:
"待审核"
},
settlementTypeEnum
:{
1
:
'部分结算'
,
2
:
'最终结算'
},
reviewStatusEnum
:{},
cancelStatusEnum
:{},
subList
:[]
subList
:[],
isEdit
:
false
};
},
onLoad
(
option
)
{
...
...
@@ -192,7 +199,40 @@
},
methods
:
{
onEditOrSave
(){
if
(
this
.
isEdit
){
this
.
submitType
=
3
;
this
.
content
=
'请确认是否进行数据保存操作?'
this
.
show
=
true
}
else
{
this
.
isEdit
=
true
;
this
.
subList
=
this
.
subList
.
map
(
item
=>
{
return
{
...
item
,
isEdit
:
true
}
})
}
},
onNavToSelect
()
{
let
checkedId
=
''
;
if
(
this
.
selectList
.
length
){
checkedId
=
this
.
selectList
.
map
(
item
=>
item
.
id
).
join
();
}
uni
.
navigateTo
({
url
:
`/pages/payment-order/index?checkedId=
${
checkedId
}
`
,
events
:
{
acceptDataFromOpenedPage
:
(
data
)
=>
{
this
.
selectList
=
data
.
data
;
this
.
$forceUpdate
();
}
}
})
},
onSubmit
(
t
)
{
this
.
submitType
=
t
;
this
.
content
=
this
.
submitType
==
1
?
'请确认是否进行审核通过操作?'
:
"请确认是否进行核销通过操作?"
this
.
show
=
true
},
onOpenCalendar
()
{
...
...
@@ -211,22 +251,35 @@
uni
.
showLoading
({
title
:
"加载中..."
})
updateSubmitStatus
({
...
this
.
orderInfo
,
reviewStatus
:
3
,
signingDate
:
moment
(
this
.
orderInfo
.
signingDate
).
format
(
"YYYYMMDD"
)
}).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
uni
.
showToast
({
icon
:
"success"
,
title
:
"提交成功"
})
setTimeout
(()
=>
{
this
.
onBack
();
},
1500
)
}
})
if
(
this
.
submitType
==
1
){
updateSubmitStatus
(
this
.
orderInfo
).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
uni
.
showToast
({
icon
:
"success"
,
title
:
"操作成功"
})
setTimeout
(()
=>
{
this
.
onGetList
();
},
1500
)
}
})
}
else
if
(
this
.
submitType
==
2
)
{
updateWriteoffStatus
(
this
.
orderInfo
).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
uni
.
showToast
({
icon
:
"success"
,
title
:
"操作成功"
})
setTimeout
(()
=>
{
this
.
onGetList
();
},
1500
)
}
})
}
else
if
(
this
.
submitType
==
3
){
this
.
isEdit
=
false
;
}
},
onBack
()
{
uni
.
redirectTo
({
...
...
@@ -290,7 +343,12 @@
let
list
=
toJsonData
(
res
.
data
.
__blocks__
.
result
.
rows
,
res
.
data
.
__blocks__
.
result
.
meta
.
columns
);
if
(
list
&&
list
.
length
)
{
this
.
subList
=
list
this
.
subList
=
list
.
map
(
item
=>
{
return
{
...
item
,
totalContractPriceIncluding
:
Number
(
item
.
totalContractPriceIncluding
)
}
})
}
})
...
...
@@ -608,14 +666,14 @@
display
:
flex
;
flex-direction
:
row
;
width
:
100%
;
padding
:
24
upx
36
upx
;
padding
:
0
36
upx
;
background-color
:
#ffffff
;
z-index
:
8
;
.cu-btn
{
display
:
flex
;
flex
:
1
;
margin
:
0
20
upx
;
margin
:
24
upx
20
upx
;
}
}
...
...
@@ -652,4 +710,10 @@
.cu-form-group
uni-picker
::after
{
color
:
transparent
;
}
.right-btn
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
padding
:
0
24
upx
;
}
</
style
>
\ No newline at end of file
pages/payment-order/list.vue
View file @
ed9fb6a1
...
...
@@ -246,6 +246,7 @@
let
createdTime
=
item
.
createdTime
?
item
.
createdTime
.
split
(
''
):[];
return
{
...
item
,
signingDate
:
moment
(
item
.
signingDate
).
format
(
"YYYY-MM-DD"
),
contractDate
:
item
.
contractDate
?
moment
(
item
.
contractDate
).
format
(
"YYYY-MM-DD"
):
''
,
createdTime
:
createdTime
.
length
>=
13
?
`
${
createdTime
[
0
]}${
createdTime
[
1
]}${
createdTime
[
2
]}${
createdTime
[
3
]}
/
${
createdTime
[
4
]}${
createdTime
[
5
]}
/
${
createdTime
[
6
]}${
createdTime
[
7
]}
${
createdTime
[
8
]}${
createdTime
[
9
]}
:
${
createdTime
[
10
]}${
createdTime
[
11
]}
:
${
createdTime
[
12
]}${
createdTime
[
13
]}
`
:
''
}
...
...
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