Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 21c8ae49
authored
Apr 27, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
空数据,小数长度
1 parent
754fb6ff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
27 deletions
src/assets/order-empty.png
src/assets/order-step-one.png
src/components/d2-search/index.vue
src/views/orderManage/components/relateOneStep.vue
src/views/orderManage/orderSupplement.vue
src/assets/order-empty.png
0 → 100644
View file @
21c8ae4
2.8 KB
src/assets/order-step-one.png
View file @
21c8ae4
5.33 KB
|
W:
|
H:
5.55 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/d2-search/index.vue
View file @
21c8ae4
...
...
@@ -46,6 +46,7 @@
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
style=
"width: 130px"
:popper-append-to-body=
"false"
slot=
"prepend"
placeholder=
"请选择"
@
change=
"item.handleSelectChange"
...
...
src/views/orderManage/components/relateOneStep.vue
View file @
21c8ae4
...
...
@@ -3,19 +3,23 @@
<div
class=
"box"
>
<div
class=
"container checked-box"
>
<div
class=
"title"
>
已选项
</div>
<div
class=
"content"
>
<div
v-show=
"!checkedList.trade.length && !checkedList.order.length"
class=
"empty-box"
>
<img
style=
"margin-top: 60px;"
class=
"order-empty"
src=
"@/assets/order-empty.png"
>
<div>
暂无选项,请在下方数据列中选择
</div>
</div>
<div
v-show=
"checkedList.trade.length || checkedList.order.length"
class=
"content"
>
<div
class=
"block"
v-for=
"(item, index) in tableFormData"
:key=
"index"
>
<div
class=
"row"
v-for=
"(row, rowIdx) in checkedList[item.type]"
:key=
"rowIdx"
>
<el-checkbox
class=
"check-box"
v-model=
"row.checked"
@
change=
"handleChecked(item.type, item.tableParams.uniqueKey, row, rowIdx, true)"
></el-checkbox>
<div>
<div
v-for=
"(subItem, subIndex) in item.tableParams.tableColumns"
:key=
"subIndex"
>
<div>
<span
class=
"label"
>
{{
subItem
.
label
}}
:
</span>
{{
row
[
subItem
.
prop
]
}}
</div>
<div
class=
"row"
v-for=
"(row, rowIdx) in checkedList[item.type]"
:key=
"rowIdx"
>
<el-checkbox
class=
"check-box"
v-model=
"row.checked"
@
change=
"handleChecked(item.type, item.tableParams.uniqueKey, row, rowIdx, true)"
></el-checkbox>
<div>
<div
v-for=
"(subItem, subIndex) in item.tableParams.tableColumns"
:key=
"subIndex"
>
<div>
<span
class=
"label"
>
{{
subItem
.
label
}}
:
</span>
<span>
{{
subItem
.
prefix
}}
</span>
{{
row
[
subItem
.
prop
]
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -28,14 +32,18 @@
<d2-search
ref=
"showSearch"
class=
"search-box"
:search-form=
"searchForm[item.type]"
:search-select-obj=
"searchSelectObj"
:form-data=
"searchFormData[item.type]"
/>
<el-button
@
click=
"handleSearch(item)"
size=
"small"
type=
"primary"
>
搜索
</el-button>
</div>
<div>
<div
v-show=
"!baseData[item.type].length"
class=
"empty-box"
>
<img
style=
"margin-top: 132px;"
class=
"order-empty"
src=
"@/assets/order-empty.png"
>
<div>
没有找到相关结果
</div>
</div>
<div
v-show=
"baseData[item.type].length"
>
<div
class=
"row"
v-for=
"(row, rowIdx) in baseData[item.type]"
:key=
"rowIdx"
>
<el-checkbox
:disabled=
"checkedList[item.type].length >= checkedMaxLen"
class=
"check-box"
v-model=
"row.checked"
@
change=
"handleChecked(item.type, item.tableParams.uniqueKey, row, rowIdx)"
></el-checkbox>
<div>
<div
v-for=
"(subItem, subIndex) in item.tableParams.tableColumns"
:key=
"subIndex"
>
<div>
<span
class=
"label"
>
{{
subItem
.
label
}}
:
</span>
{{
row
[
subItem
.
prop
]
}}
<span>
{{
subItem
.
prefix
}}
</span>
{{
row
[
subItem
.
prop
]
}}
</div>
</div>
</div>
...
...
@@ -49,7 +57,7 @@
<div
class=
"flex"
>
<div
class=
"footer"
>
<el-button
:disabled=
"!checkedList.trade.length || !checkedList.order.length || price.trade != price.order"
type=
"primary"
@
click=
"handleNext"
>
下一步
</el-button>
<div
v-if=
"checkedList.trade.length || checkedList.order.length"
:class=
"[price.trade == price.order ? 'success-txt' : 'red-txt']"
>
交易金额=
{{
price
.
trade
}}
,主订单金额=
{{
price
.
order
}}
,金额校验
{{
price
.
trade
==
price
.
order
?
'通过'
:
'不通过'
}}
!
</div>
<div
v-if=
"checkedList.trade.length || checkedList.order.length"
:class=
"[price.trade == price.order ? 'success-txt' : 'red-txt']"
>
交易金额=
¥
{{
price
.
trade
}}
,主订单金额=¥
{{
price
.
order
}}
,金额校验
{{
price
.
trade
==
price
.
order
?
'通过'
:
'不通过'
}}
!
</div>
</div>
</div>
</div>
...
...
@@ -81,7 +89,7 @@ export default {
type
:
'selectInput'
,
selectName
:
'trade'
,
isClear
:
true
,
maxlength
:
2
0
,
maxlength
:
5
0
,
selectOption
:
[{
label
:
'交易参考号'
,
name
:
'tradeNo'
...
...
@@ -97,7 +105,7 @@ export default {
type
:
'selectInput'
,
selectName
:
'order'
,
isClear
:
true
,
maxlength
:
2
0
,
maxlength
:
5
0
,
selectOption
:
[{
label
:
'主订单号'
,
name
:
'orderCode'
...
...
@@ -123,7 +131,8 @@ export default {
prop
:
'accountDateTxt'
},
{
label
:
'交易金额'
,
prop
:
'totalFee'
prop
:
'totalFee'
,
prefix
:
'¥'
}]
}
},
{
...
...
@@ -140,7 +149,8 @@ export default {
prop
:
'orderTimeTxt'
},
{
label
:
'交易金额'
,
prop
:
'totalPrice'
prop
:
'totalPrice'
,
prefix
:
'¥'
}]
}
}],
...
...
@@ -207,16 +217,16 @@ export default {
}
this
.
price
[
type
]
=
this
.
checkedList
[
type
].
length
?
this
.
checkedList
[
type
].
map
(
item
=>
item
[
addValNameObj
[
type
]]).
reduce
((
prev
,
cur
)
=>
{
return
prev
+
cur
})
:
0
})
.
toFixed
(
2
)
:
0
},
// 选中/取消
handleChecked
(
type
,
uniqueKey
,
row
,
rowIdx
,
changeListStatus
)
{
let
checkedIdx
=
this
.
checkedList
[
type
].
findIndex
(
k
=>
k
[
uniqueKey
]
==
row
[
uniqueKey
])
checkedIdx
==
-
1
?
this
.
checkedList
[
type
].
push
(
JSON
.
parse
(
JSON
.
stringify
(
row
)))
:
this
.
checkedList
[
type
].
splice
(
checkedIdx
,
1
)
// 已选项,取消选项后,改变原来list的选中状态
if
(
changeListStatus
)
{
if
(
changeListStatus
)
{
let
idx
=
this
.
baseData
[
type
].
findIndex
(
k
=>
k
[
uniqueKey
]
==
row
[
uniqueKey
])
if
(
idx
!=
-
1
)
{
if
(
idx
!=
-
1
)
{
this
.
baseData
[
type
][
idx
].
checked
=
!
this
.
baseData
[
type
][
idx
].
checked
}
}
...
...
@@ -314,6 +324,17 @@ export default {
overflow-y
:
scroll
;
padding
:
16px
;
}
.empty-box
{
width
:
100%
;
text-align
:
center
;
color
:
#666666
;
font-size
:
14px
;
.order-empty
{
width
:
64px
;
height
:
40px
;
margin-bottom
:
16px
;
}
}
.checked-box
.content
{
display
:
flex
;
height
:
256px
;
...
...
@@ -326,8 +347,8 @@ export default {
height
:
32px
;
line-height
:
32px
;
margin-bottom
:
16px
;
.el-input
__inner
{
width
:
22
0px
;
.el-input
-group
{
width
:
35
0px
;
}
}
.row
{
...
...
src/views/orderManage/orderSupplement.vue
View file @
21c8ae4
...
...
@@ -54,7 +54,7 @@
<!--
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '1'"
@
click=
"orderDetail(scope.scope)"
>
订单详情
</el-button>
-->
<
auth-button
v-if=
"scope.scope.inputStatus == '1'"
:show-btn-ids=
"['9040204']"
:data=
"scope.scope"
/
>
<
!--
<auth-button
v-if=
"scope.scope.inputStatus == '1'"
:show-btn-ids=
"['9040204']"
:data=
"scope.scope"
/>
--
>
<!--
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '0'"
@
click=
"relatActivityOrder(scope.scope)"
>
...
...
@@ -478,7 +478,6 @@ export default {
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
console
.
log
(
'this.baseData[item.optionsName]'
,
item
.
optionsName
)
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
...
...
@@ -508,7 +507,7 @@ export default {
},
handleSearch
()
{
this
.
$refs
.
recordTable
.
refreshTable
()
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
this
.
getCount
()
},
handleReset
()
{
...
...
@@ -530,7 +529,7 @@ export default {
}
}
this
.
baseData
.
storeIdList
=
[]
this
.
$refs
.
recordTable
.
refreshTable
()
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
this
.
getAllServiceStore
()
this
.
getCount
()
},
...
...
@@ -594,9 +593,8 @@ export default {
},
setTableFinishFun
(
data
)
{
console
.
log
(
data
,
'data---'
)
data
.
forEach
(
item
=>
{
item
.
inputtedOrderCodeList
=
item
.
inputtedOrderCode
.
split
(
','
)
||
[]
item
.
inputtedOrderCodeList
=
item
.
inputtedOrderCode
?
item
.
inputtedOrderCode
.
split
(
','
)
:
[]
})
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment