Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
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
华国豪
CRM
Commits
eb9dc0c2
Commit
eb9dc0c2
authored
May 09, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3455c127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
39 deletions
+71
-39
Agreement.vue
src/components/guestManagement/Agreement.vue
+71
-39
No files found.
src/components/guestManagement/Agreement.vue
View file @
eb9dc0c2
...
@@ -178,7 +178,6 @@
...
@@ -178,7 +178,6 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
class=
"agreement-IncomeMoney-box"
>
<div
class=
"agreement-IncomeMoney-box"
>
{{
scope
.
row
.
IncomeMoney
}}
{{
scope
.
row
.
IncomeMoney
}}
<!-- scope.row.OrderType.split(',').length>1 -->
<i
v-if=
"scope.row.OrderStatus==1"
<i
v-if=
"scope.row.OrderStatus==1"
@
click=
"makeAdocument(scope.row,scope.$index,1)"
@
click=
"makeAdocument(scope.row,scope.$index,1)"
class=
"iconfont iconjia- numIcon"
></i>
class=
"iconfont iconjia- numIcon"
></i>
...
@@ -186,12 +185,12 @@
...
@@ -186,12 +185,12 @@
<div
class=
"float-flag-shape"
></div>
<div
class=
"float-flag-shape"
></div>
<el-checkbox-group
v-model=
"scope.row.checkList"
<el-checkbox-group
v-model=
"scope.row.checkList"
@
change=
"clickMultipleChoice(scope.row,scope.$index,1)"
>
@
change=
"clickMultipleChoice(scope.row,scope.$index,1)"
>
<el-checkbox
v-for=
"(item,index) in MultipleChoiceList"
:key=
"index"
<el-checkbox
v-for=
"(item,index) in
scope.row.
MultipleChoiceList"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-checkbox>
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
<div
class=
"agreement-Cancel"
>
<div
class=
"agreement-Cancel"
>
<span
@
click=
"
scope.row.actuallyReceived=false
"
>
取消
</span>
<span
@
click=
"
popCancelClick(scope.row,scope.$index,1)
"
>
取消
</span>
<span
@
click=
"popClick(scope.$index,1)"
>
确定
</span>
<span
@
click=
"popClick(scope.
row,scope.
$index,1)"
>
确定
</span>
</div>
</div>
</div>
</div>
...
@@ -213,13 +212,13 @@
...
@@ -213,13 +212,13 @@
@
click=
"makeAdocument(scope.row,scope.$index,3)"
class=
"iconfont iconjia- numIcon"
></i>
@
click=
"makeAdocument(scope.row,scope.$index,3)"
class=
"iconfont iconjia- numIcon"
></i>
<div
v-show=
"scope.row.cost"
class=
"agreement-IncomeMoney-pop"
>
<div
v-show=
"scope.row.cost"
class=
"agreement-IncomeMoney-pop"
>
<div
class=
"float-flag-shape"
></div>
<div
class=
"float-flag-shape"
></div>
<el-
checkbox-group
v-model=
"scope.row.checkList"
@
change=
"clickMultipleChoice
"
>
<el-
radio-group
v-model=
"scope.row.selectedType"
@
change=
"clickMultipleChoice(scope.row,scope.$index,3)
"
>
<el-
checkbox
v-for=
"(item,index) in
MultipleChoiceList"
:key=
"index"
<el-
radio
v-for=
"(item,index) in scope.row.
MultipleChoiceList"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-
checkbox
>
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-
radio
>
</el-
checkbox
-group>
</el-
radio
-group>
<div
class=
"agreement-Cancel"
>
<div
class=
"agreement-Cancel"
>
<span
@
click=
"
scope.row.cost=false
"
>
取消
</span>
<span
@
click=
"
popCancelClick(scope.row,scope.$index,3)
"
>
取消
</span>
<span
@
click=
"popClick(scope.$index,3)"
>
确定
</span>
<span
@
click=
"popClick(scope.
row,scope.
$index,3)"
>
确定
</span>
</div>
</div>
</div>
</div>
...
@@ -398,14 +397,26 @@
...
@@ -398,14 +397,26 @@
});
});
},
},
methods
:
{
methods
:
{
//
关闭弹窗
//
取消
popC
lick
(
index
,
num
){
popC
ancelClick
(
row
,
index
,
num
){
if
(
num
==
1
){
if
(
num
==
1
){
this
.
dataList
[
index
].
actuallyReceived
=
false
this
.
dataList
[
index
].
actuallyReceived
=
false
}
}
if
(
num
==
3
){
if
(
num
==
3
){
this
.
dataList
[
index
].
cost
=
false
this
.
dataList
[
index
].
cost
=
false
}
}
this
.
dataList
[
index
].
MultipleChoiceList
=
[]
this
.
dataList
[
index
].
selectedType
=
''
},
// 关闭弹窗
popClick
(
row
,
index
,
num
){
this
.
makeAdocumentFun
(
row
,
index
,
num
)
if
(
num
==
1
){
this
.
dataList
[
index
].
actuallyReceived
=
false
}
if
(
num
==
3
){
this
.
dataList
[
index
].
cost
=
false
}
},
},
// 查看出票凭据
// 查看出票凭据
...
@@ -459,23 +470,25 @@
...
@@ -459,23 +470,25 @@
},
},
// 多选发生变化
// 多选发生变化
clickMultipleChoice
(
row
,
index
,
num
)
{
clickMultipleChoice
(
row
,
index
,
num
)
{
if
(
row
.
checkList
.
slice
(
-
1
)[
0
]
==
4
){
if
(
num
==
1
){
this
.
delType
(
row
,
1
)
if
(
row
.
checkList
.
slice
(
-
1
)[
0
]
==
4
){
this
.
delType
(
row
,
2
)
this
.
delType
(
row
,
1
)
this
.
delType
(
row
,
3
)
this
.
delType
(
row
,
2
)
this
.
delType
(
row
,
5
)
this
.
delType
(
row
,
3
)
}
else
if
(
row
.
checkList
.
slice
(
-
1
)[
0
]
==
5
){
this
.
delType
(
row
,
5
)
this
.
delType
(
row
,
1
)
row
.
selectedType
=
row
.
checkList
.
join
(
','
)
this
.
delType
(
row
,
2
)
}
else
if
(
row
.
checkList
.
slice
(
-
1
)[
0
]
==
5
){
this
.
delType
(
row
,
3
)
this
.
delType
(
row
,
1
)
this
.
delType
(
row
,
4
)
this
.
delType
(
row
,
2
)
}
else
{
this
.
delType
(
row
,
3
)
this
.
delType
(
row
,
4
)
this
.
delType
(
row
,
4
)
this
.
delType
(
row
,
5
)
row
.
selectedType
=
row
.
checkList
.
join
(
','
)
}
else
{
this
.
delType
(
row
,
4
)
this
.
delType
(
row
,
5
)
row
.
selectedType
=
row
.
checkList
.
join
(
','
)
}
}
}
this
.
RelevanceFrId
=
row
.
checkList
.
join
(
','
)
console
.
log
(
this
.
RelevanceFrId
,
'====='
)
},
},
// 删除套餐值
// 删除套餐值
delType
(
row
,
item
)
{
delType
(
row
,
item
)
{
...
@@ -487,20 +500,32 @@
...
@@ -487,20 +500,32 @@
},
},
// 制作单据
// 制作单据
makeAdocument
(
row
,
index
,
num
)
{
makeAdocument
(
row
,
index
,
num
)
{
if
(
row
.
OrderType
.
split
(
','
).
length
>
1
&&
num
==
1
){
let
list
=
row
.
OrderType
&&
row
.
OrderType
.
split
(
','
)
if
(
list
!=
null
&&
list
.
length
!=
0
&&
num
==
1
){
this
.
dataList
.
forEach
(
item
=>
{
this
.
dataList
.
forEach
(
item
=>
{
return
item
.
actuallyReceived
=
false
return
item
.
actuallyReceived
=
false
})
})
if
(
this
.
dataList
[
index
]){
this
.
dataList
[
index
].
actuallyReceived
=
true
this
.
dataList
[
index
].
actuallyReceived
=
true
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
for
(
let
i
=
0
;
i
<
this
.
MultipleChoiceList
.
length
;
i
++
){
if
(
list
[
j
]
==
this
.
MultipleChoiceList
[
i
].
Id
){
this
.
dataList
[
index
].
MultipleChoiceList
.
push
(
this
.
MultipleChoiceList
[
i
])
}
}
}
}
}
}
else
if
(
row
.
OrderType
.
split
(
','
).
length
>
1
&&
num
==
3
){
else
if
(
list
!=
null
&&
list
.
length
!=
0
&&
num
==
3
){
this
.
dataList
.
forEach
(
item
=>
{
this
.
dataList
.
forEach
(
item
=>
{
return
item
.
cost
=
false
return
item
.
cost
=
false
})
})
if
(
this
.
dataList
[
index
]){
this
.
dataList
[
index
].
cost
=
true
this
.
dataList
[
index
].
cost
=
true
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
for
(
let
i
=
0
;
i
<
this
.
MultipleChoiceList
.
length
;
i
++
){
if
(
list
[
j
]
==
this
.
MultipleChoiceList
[
i
].
Id
){
this
.
dataList
[
index
].
MultipleChoiceList
.
push
(
this
.
MultipleChoiceList
[
i
])
}
}
}
}
}
else
{
}
else
{
this
.
makeAdocumentFun
(
row
,
index
,
num
)
this
.
makeAdocumentFun
(
row
,
index
,
num
)
...
@@ -518,7 +543,7 @@
...
@@ -518,7 +543,7 @@
if
(
this
.
isOnline
())
{
if
(
this
.
isOnline
())
{
url
=
'http://yx.oytour.com/#/'
url
=
'http://yx.oytour.com/#/'
}
else
{
}
else
{
url
=
'http://www.test.com:808
4
/#/'
url
=
'http://www.test.com:808
1
/#/'
}
}
let
data
=
[{
let
data
=
[{
path
:
'ChoiceAddFinancialDocuments'
,
path
:
'ChoiceAddFinancialDocuments'
,
...
@@ -527,8 +552,13 @@
...
@@ -527,8 +552,13 @@
ReFinanceId
:
row
.
OrderId
,
ReFinanceId
:
row
.
OrderId
,
ReFinanceId2
:
num
,
ReFinanceId2
:
num
,
GuestId
:
row
.
GuestId
,
GuestId
:
row
.
GuestId
,
RelevanceFrId
:
row
.
OrderType
// 单据类型
RelevanceFrId
:
row
.
selectedType
?
row
.
selectedType
:
row
.
OrderType
// 单据类型
}]
}]
this
.
dataList
.
forEach
(
item
=>
{
item
.
checkList
=
[]
item
.
MultipleChoiceList
=
[]
item
.
selectedType
=
''
})
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
window
.
open
(
href
);
window
.
open
(
href
);
}
}
...
@@ -670,17 +700,19 @@
...
@@ -670,17 +700,19 @@
this
.
msg
,
this
.
msg
,
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
.
pageData
;
;
let
data
=
res
.
data
.
data
.
pageData
;
let
addList
=
function
(
arr
)
{
let
addList
=
function
(
arr
)
{
arr
.
forEach
(
item
=>
{
arr
.
forEach
(
item
=>
{
item
.
More
=
''
item
.
More
=
''
item
.
actuallyReceived
=
false
item
.
actuallyReceived
=
false
item
.
cost
=
''
item
.
cost
=
false
item
.
selectedType
=
''
item
.
checkList
=
[]
item
.
checkList
=
[]
item
.
MultipleChoiceList
=
[]
});
});
};
};
addList
(
data
);
addList
(
data
);
this
.
dataList
=
res
.
data
.
data
.
pageD
ata
;
this
.
dataList
=
d
ata
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
loading
=
false
this
.
loading
=
false
}
else
{
}
else
{
...
...
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