Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
9fb0caef
Commit
9fb0caef
authored
Mar 12, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
9488d898
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
quotation-form.vue
src/components/sale/quotation-form.vue
+21
-12
No files found.
src/components/sale/quotation-form.vue
View file @
9fb0caef
...
...
@@ -217,24 +217,22 @@
field
:
row
=>
row
.
ActualPrice
.
toFixed
(
2
)
}
],
TreeCategoryList
:
[],
TreeCategoryList
:
[],
//课程系列列表
pageInfo
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
},
course
s
:
[],
course
List
:
[],
//课程列表
courseOptions
:
[],
chosenCategory
:
null
,
chosenCourse
:
null
,
chosenCategory
:
null
,
//选中的系列
chosenCourse
:
null
,
//选中的课程
categoryOptions
:
[],
chosenCourses
:
[]
};
},
computed
:
{
quomodel
()
{
}
},
created
()
{
this
.
getCategorytree
();
...
...
@@ -269,6 +267,7 @@
};
if
(
tempObj
.
OfferDetails
&&
tempObj
.
OfferDetails
.
length
>
0
)
{
this
.
model
.
OfferDetails
=
tempObj
.
OfferDetails
;
this
.
chosenCourses
=
tempObj
.
OfferDetails
}
}
})
...
...
@@ -291,6 +290,7 @@
};
}
},
//保存报价单
saveOffice
()
{
this
.
$refs
.
EffectiveEnd
.
validate
();
this
.
$refs
.
CustomerType
.
validate
();
...
...
@@ -337,6 +337,7 @@
});
}
},
//获取课程系列
getCategorytree
()
{
this
.
TreeCategoryList
=
[];
var
qMsg
=
{};
...
...
@@ -346,18 +347,20 @@
this
.
getCourses
();
});
},
//获取课程列表
getCourses
()
{
this
.
course
s
=
[];
this
.
course
List
=
[];
var
qMsg
=
{
CourseName
:
""
,
CateId
:
0
,
IsQPrice
:
1
};
queryCourseDropdownList
(
qMsg
).
then
(
res
=>
{
this
.
course
s
=
res
.
Data
;
this
.
courseOptions
=
this
.
course
s
;
this
.
course
List
=
res
.
Data
;
this
.
courseOptions
=
this
.
course
List
;
});
},
//系列筛选
filterFn
(
val
,
update
,
abort
)
{
update
(()
=>
{
this
.
categoryOptions
=
this
.
TreeCategoryList
.
filter
(
...
...
@@ -365,24 +368,27 @@
);
});
},
//课程筛选
filterCourseFn
(
val
,
update
,
abort
)
{
update
(()
=>
{
this
.
courseOptions
=
this
.
course
s
.
filter
(
this
.
courseOptions
=
this
.
course
List
.
filter
(
v
=>
v
.
CourseName
.
indexOf
(
val
)
>
-
1
);
});
},
//系列改变
changeCategory
()
{
this
.
courseOptions
=
this
.
course
s
.
filter
(
this
.
courseOptions
=
this
.
course
List
.
filter
(
v
=>
v
.
CateId
==
this
.
chosenCategory
);
this
.
$forceUpdate
();
},
//添加课程
addCourse
()
{
this
.
$refs
.
JoinNum
.
validate
();
this
.
$refs
.
CustomerType
.
validate
();
if
(
!
this
.
$refs
.
JoinNum
.
hasError
&&
!
this
.
$refs
.
CustomerType
.
hasError
)
{
let
val
=
this
.
course
s
.
find
(
x
=>
x
.
CourseId
==
this
.
chosenCourse
);
let
val
=
this
.
course
List
.
find
(
x
=>
x
.
CourseId
==
this
.
chosenCourse
);
if
(
val
)
{
let
temp
=
this
.
chosenCourses
.
find
(
x
=>
x
.
CourseId
==
val
.
CourseId
);
if
(
!
temp
)
{
...
...
@@ -532,6 +538,9 @@
});
return
result
;
},
},
watch
:
{
}
};
...
...
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