Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 28aab8c9
authored
Aug 09, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
选择适用类型清空使用年限
1 parent
20500911
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
10 deletions
src/views/addCards/index.vue
src/views/worryFree/index.vue
src/views/addCards/index.vue
View file @
28aab8c
...
@@ -124,7 +124,14 @@ export default {
...
@@ -124,7 +124,14 @@ export default {
}
}
],
],
getWorryBatcnList
:
this
.
$apis
.
addWorryFree
.
getWorryBatcnList
,
getWorryBatcnList
:
this
.
$apis
.
addWorryFree
.
getWorryBatcnList
,
addDialogForm
:
{},
addDialogForm
:
{
batchType
:
''
,
packageCode
:
''
,
quantity
:
''
,
actualPrice
:
''
,
servicePeriod
:
''
,
remark
:
''
},
addDialog
:
false
,
addDialog
:
false
,
addPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
addPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
dialogEditOptions
:
[
dialogEditOptions
:
[
...
@@ -234,6 +241,7 @@ export default {
...
@@ -234,6 +241,7 @@ export default {
}
else
{
}
else
{
this
.
dialogYearOptions
=
[...
arr
]
this
.
dialogYearOptions
=
[...
arr
]
}
}
this
.
addDialogForm
.
servicePeriod
=
''
},
},
//批量下载
//批量下载
download
(
e
)
{
download
(
e
)
{
...
@@ -254,9 +262,15 @@ export default {
...
@@ -254,9 +262,15 @@ export default {
},
},
// 关闭弹窗界面
// 关闭弹窗界面
cancelDetailDialog
()
{
cancelDetailDialog
()
{
console
.
log
(
'1'
)
this
.
addDialog
=
false
this
.
addDialog
=
false
this
.
addDialogForm
=
{}
this
.
addDialogForm
=
{
batchType
:
''
,
packageCode
:
''
,
quantity
:
''
,
actualPrice
:
''
,
servicePeriod
:
''
,
remark
:
''
}
},
},
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
...
@@ -267,8 +281,7 @@ export default {
...
@@ -267,8 +281,7 @@ export default {
message
:
'操作成功'
,
message
:
'操作成功'
,
type
:
'success'
type
:
'success'
})
})
this
.
addDialog
=
false
this
.
cancelDetailDialog
()
this
.
addDialogForm
=
{}
this
.
$refs
.
detailTable
.
refreshTable
()
this
.
$refs
.
detailTable
.
refreshTable
()
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
...
...
src/views/worryFree/index.vue
View file @
28aab8c
...
@@ -114,17 +114,18 @@ export default {
...
@@ -114,17 +114,18 @@ export default {
actualPrice
:
''
,
actualPrice
:
''
,
status
:
''
status
:
''
},
},
detailFormData
:
[
detailFormData
:
[
{
{
type
:
'input'
,
type
:
'input'
,
label
:
'序列号'
,
label
:
'序列号'
,
name
:
'seqNo'
,
name
:
'seqNo'
,
isClear
:
true
isClear
:
true
,
},
},
{
{
label
:
'版本'
,
label
:
'版本'
,
name
:
'batchType'
,
name
:
'batchType'
,
type
:
'select'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[
{
optionList
:
[
{
confId
:
''
,
confId
:
''
,
confName
:
'全部'
confName
:
'全部'
...
@@ -145,6 +146,7 @@ export default {
...
@@ -145,6 +146,7 @@ export default {
label
:
'适用类型'
,
label
:
'适用类型'
,
name
:
'packageCode'
,
name
:
'packageCode'
,
type
:
'select'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[
optionList
:
[
{
{
confId
:
''
,
confId
:
''
,
...
@@ -173,6 +175,7 @@ export default {
...
@@ -173,6 +175,7 @@ export default {
{
{
label
:
'状态'
,
label
:
'状态'
,
name
:
'status'
,
name
:
'status'
,
isClear
:
true
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[
optionList
:
[
{
{
...
@@ -201,6 +204,7 @@ export default {
...
@@ -201,6 +204,7 @@ export default {
label
:
'使用年限'
,
label
:
'使用年限'
,
name
:
'servicePeriod'
,
name
:
'servicePeriod'
,
type
:
'select'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[
optionList
:
[
{
{
confId
:
''
,
confId
:
''
,
...
@@ -463,6 +467,7 @@ export default {
...
@@ -463,6 +467,7 @@ export default {
}
else
{
}
else
{
this
.
dialogYearOptions
=
[...
arr
]
this
.
dialogYearOptions
=
[...
arr
]
}
}
this
.
detailDialogForm
.
servicePeriod
=
''
},
},
check
()
{
check
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
@@ -522,7 +527,6 @@ export default {
...
@@ -522,7 +527,6 @@ export default {
detailFormat
()
{},
detailFormat
()
{},
// 关闭弹窗界面
// 关闭弹窗界面
cancelDetailDialog
()
{
cancelDetailDialog
()
{
console
.
log
(
'1'
)
this
.
detailDialog
=
false
this
.
detailDialog
=
false
this
.
detailDialogForm
=
{}
this
.
detailDialogForm
=
{}
},
},
...
@@ -532,10 +536,8 @@ export default {
...
@@ -532,10 +536,8 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
detailDialogForm
.
batchType
==
'尊享版'
)
{
if
(
this
.
detailDialogForm
.
batchType
==
'尊享版'
)
{
this
.
detailDialogForm
.
batchType
=
'1'
this
.
detailDialogForm
.
batchType
=
'1'
console
.
log
(
'1111'
)
}
else
if
(
this
.
detailDialogForm
.
batchType
==
'畅享版'
)
{
}
else
if
(
this
.
detailDialogForm
.
batchType
==
'畅享版'
)
{
this
.
detailDialogForm
.
batchType
=
'2'
this
.
detailDialogForm
.
batchType
=
'2'
console
.
log
(
'22222'
)
}
}
console
.
log
(
this
.
detailDialogForm
.
batchType
)
console
.
log
(
this
.
detailDialogForm
.
batchType
)
this
.
$apis
.
worryDetailApi
.
modWorryDetailList
(
this
.
detailDialogForm
).
then
(
res
=>
{
this
.
$apis
.
worryDetailApi
.
modWorryDetailList
(
this
.
detailDialogForm
).
then
(
res
=>
{
...
...
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