Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
zhengke
jz_Travel
Commits
55b84043
Commit
55b84043
authored
Jul 23, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
e6c47cd4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
25 deletions
+65
-25
productInfor1.vue
pages/teamLeader/components/report/productInfor1.vue
+16
-10
productInfor2.vue
pages/teamLeader/components/report/productInfor2.vue
+28
-13
productInfor3.vue
pages/teamLeader/components/report/productInfor3.vue
+11
-1
productInfor4.vue
pages/teamLeader/components/report/productInfor4.vue
+10
-0
reimbursementInfor.vue
pages/teamLeader/reimbursementInfor.vue
+0
-1
No files found.
pages/teamLeader/components/report/productInfor1.vue
View file @
55b84043
...
...
@@ -174,8 +174,8 @@
<text>
金额
</text>
</view>
<view
class=
"inputBoxRight"
>
<input
class=
"text-right"
type=
"number"
v-model=
"item.UnitPrice"
@
input=
"handleInput($event, item, 'UnitPrice')"
@
blur=
"handleBlur(item, 'UnitPrice')"
/>
<input
class=
"text-right"
type=
"number"
v-model=
"item.UnitPrice"
@
input=
"handleInput($event, item, 'UnitPrice')"
@
blur=
"handleBlur(item, 'UnitPrice')"
/>
</view>
</view>
<view
class=
"inputBox row justify-between noBorder"
>
...
...
@@ -247,10 +247,17 @@
}
},
watch
:
{
data
Index1
:
{
data
:
{
handler
(
newVal
,
oldVal
)
{
if
(
oldVal
!=
newVal
)
{
this
.
initData
()
console
.
log
(
"newVal"
,
newVal
);
if
(
oldVal
.
dataIndex1
!=
newVal
.
dataIndex1
)
{
this
.
initData
();
}
else
{
var
newCrrId
=
newVal
.
BusList
[
this
.
dataIndex1
].
ReimburseList
.
CurrencyId
;
var
oldCurrId
=
oldVal
.
BusList
[
this
.
dataIndex1
].
ReimburseList
.
CurrencyId
;
if
(
newCrrId
!=
oldCurrId
)
{
this
.
initData
();
}
}
},
deep
:
true
,
...
...
@@ -264,19 +271,17 @@
// 在模板中的使用示例
handleInput
(
e
,
item
,
field
)
{
const
value
=
e
.
detail
.
value
;
console
.
log
(
"handleInput"
,
value
)
const
validValue
=
this
.
$utils
.
checkInteger
(
value
,
true
);
const
validValue
=
this
.
$utils
.
checkInteger
(
value
,
true
);
// 更新数据
item
[
field
]
=
validValue
;
// 触发其他逻辑(如计算)
this
.
getTotal
();
},
handleBlur
(
item
,
field
)
{
console
.
log
(
"handleBlur"
,
item
[
field
])
const
formattedValue
=
this
.
$utils
.
checkPrice
(
item
[
field
],
true
);
const
formattedValue
=
this
.
$utils
.
checkPrice
(
item
[
field
],
true
);
// 更新数据
item
[
field
]
=
formattedValue
;
this
.
$set
(
item
,
field
,
formattedValue
);
this
.
$set
(
item
,
field
,
formattedValue
);
// 触发其他逻辑
this
.
getTotal
();
},
...
...
@@ -291,6 +296,7 @@
},
getTotal
()
{
let
total
=
0
;
this
.
datas
.
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
total
+=
x
.
UserNum
*
x
.
UnitPrice
})
...
...
pages/teamLeader/components/report/productInfor2.vue
View file @
55b84043
...
...
@@ -229,7 +229,13 @@
optionVisible
:
false
,
optionObj
:
{},
params
:
{},
datas
:
null
,
//展示数据
datas
:
{
HotelOrderList
:
[{
ReimburseList
:
{
ReimburseDetailsList
:
[],
}
}],
},
//展示数据
dataIndex
:
0
,
ReimIndex
:
0
,
ReimDatas
:
{},
...
...
@@ -237,7 +243,6 @@
}
},
watch
:
{
data
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
&&
oldVal
)
{
...
...
@@ -250,6 +255,16 @@
this
.
dataIndex2
]
.
hotelIndex
)
{
this
.
initData
();
}
//判断币种是否切换
else
{
var
newindex
=
oldVal
.
HotelOrderListReport
[
this
.
dataIndex2
].
hotelIndex
;
var
oldCrrId
=
oldVal
.
HotelOrderListReport
[
this
.
dataIndex2
].
HotelOrderList
[
newindex
]
.
CurrencyId
;
var
newCrrid
=
newVal
.
HotelOrderListReport
[
this
.
dataIndex2
].
HotelOrderList
[
newindex
]
.
CurrencyId
;
if
(
oldCrrId
!=
newCrrid
)
{
this
.
initData
();
}
}
}
},
...
...
@@ -265,7 +280,9 @@
this
.
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
))
this
.
HotelOrderListReport
=
this
.
params
.
HotelOrderListReport
//酒店信息,合团
this
.
dataIndex
=
this
.
dataIndex2
;
this
.
getRenderingData
()
this
.
datas
=
this
.
HotelOrderListReport
[
this
.
dataIndex
]
this
.
ReimDatas
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
ReimburseDetailsList
[
0
]))
this
.
getTotal
()
},
getNum
()
{
...
...
@@ -273,10 +290,13 @@
},
getTotal
()
{
let
total
=
0
if
(
this
.
datas
&&
this
.
datas
.
HotelOrderList
&&
this
.
datas
.
HotelOrderList
.
length
>
0
&&
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
)
{
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
total
+=
x
.
UserNum
*
x
.
UnitPrice
})
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
TotalMoney
=
total
;
}
this
.
updateData
()
},
delInfor
(
index
)
{
...
...
@@ -296,12 +316,7 @@
this
.
params
.
HotelOrderListReport
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
HotelOrderListReport
))
this
.
$emit
(
'change'
,
this
.
params
)
},
// 酒店
getRenderingData
()
{
this
.
datas
=
this
.
HotelOrderListReport
[
this
.
dataIndex
]
this
.
ReimDatas
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
ReimburseDetailsList
[
0
]))
},
showOptionVisible
(
index
)
{
this
.
optionVisible
=
true
this
.
ReimIndex
=
index
...
...
pages/teamLeader/components/report/productInfor3.vue
View file @
55b84043
...
...
@@ -242,6 +242,7 @@
data
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
&&
oldVal
)
{
//切换用餐日期
if
(
newVal
.
dataIndex3
!=
oldVal
.
dataIndex3
)
{
this
.
initData
();
...
...
@@ -250,6 +251,15 @@
else
if
(
oldVal
.
DiningList
[
this
.
dataIndex3
].
diningIndex
!=
newVal
.
DiningList
[
this
.
dataIndex3
]
.
diningIndex
)
{
this
.
initData
();
}
else
{
var
newindex
=
oldVal
.
DiningList
[
this
.
dataIndex3
].
diningIndex
;
var
oldCrrId
=
oldVal
.
DiningList
[
this
.
dataIndex3
].
DiningSummaryList
[
newindex
].
ReimburseList
.
CurrencyId
;
var
newCrrid
=
newVal
.
DiningList
[
this
.
dataIndex3
].
DiningSummaryList
[
newindex
].
ReimburseList
.
CurrencyId
;
if
(
oldCrrId
!=
newCrrid
)
{
this
.
initData
();
}
}
}
},
...
...
pages/teamLeader/components/report/productInfor4.vue
View file @
55b84043
...
...
@@ -249,6 +249,16 @@
.
scenicIndex
)
{
this
.
initData
();
}
else
{
var
newindex
=
oldVal
.
ScenicList
[
this
.
dataIndex4
].
scenicIndex
;
var
oldCrrId
=
oldVal
.
ScenicList
[
this
.
dataIndex4
].
ScenicStatisticsList
[
newindex
].
ReimburseList
.
CurrencyId
;
var
newCrrid
=
newVal
.
ScenicList
[
this
.
dataIndex4
].
ScenicStatisticsList
[
newindex
].
ReimburseList
.
CurrencyId
;
if
(
oldCrrId
!=
newCrrid
)
{
this
.
initData
();
}
}
}
},
deep
:
true
,
...
...
pages/teamLeader/reimbursementInfor.vue
View file @
55b84043
...
...
@@ -620,7 +620,6 @@
});
}
});
console
.
log
(
"this.params.HotelOrderListReport"
,
this
.
params
.
HotelOrderListReport
)
}
if
(
this
.
params
&&
this
.
params
.
DiningList
&&
this
.
params
.
DiningList
.
length
>
0
)
{
...
...
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