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
10c1b787
Commit
10c1b787
authored
Mar 17, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
4dfda08a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
23 deletions
+66
-23
common.css
src/assets/css/common.css
+4
-1
courseoffer.vue
src/pages/sale/courseoffer.vue
+49
-15
myoffer.vue
src/pages/sale/myoffer.vue
+13
-7
No files found.
src/assets/css/common.css
View file @
10c1b787
...
@@ -87,4 +87,7 @@
...
@@ -87,4 +87,7 @@
.addTiMuList
:hover
{
.addTiMuList
:hover
{
opacity
:
0.7
;
opacity
:
0.7
;
}
}
/* 控制下拉长度 */
\ No newline at end of file
.q-menu
{
max-height
:
29vh
;
}
\ No newline at end of file
src/pages/sale/courseoffer.vue
View file @
10c1b787
...
@@ -119,6 +119,11 @@
...
@@ -119,6 +119,11 @@
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
label=
"报价单名称"
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
label=
"报价单名称"
@
clear=
"resetSearch"
maxlength=
"20"
/>
@
clear=
"resetSearch"
maxlength=
"20"
/>
</div>
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
option-value=
"Id"
@
input=
"resetSearch"
option-label=
"EmployeeName"
ref=
"ID"
v-model=
"msg.CreateBy"
:options=
"EmployeeList"
label=
"直属上级"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
...
@@ -127,9 +132,6 @@
...
@@ -127,9 +132,6 @@
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
课程报价单
</div>
<div
class=
"col-2 q-table__title"
>
课程报价单
</div>
<q-space
/>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"创建报价单"
@
click=
"editQuotation(null)"
/>
</div>
</
template
>
</
template
>
<
template
v-slot:body-cell-OrderIdList=
"props"
>
<
template
v-slot:body-cell-OrderIdList=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
...
@@ -165,6 +167,9 @@
...
@@ -165,6 +167,9 @@
<q-dialog
v-model=
"showEditPrice"
persistent
>
<q-dialog
v-model=
"showEditPrice"
persistent
>
<edittransorder-form
:obj=
"offerObj"
@
save=
"refreshPage()"
></edittransorder-form>
<edittransorder-form
:obj=
"offerObj"
@
save=
"refreshPage()"
></edittransorder-form>
</q-dialog>
</q-dialog>
<!-- 查看报价单 -->
<viewquotation-form
v-if=
"isShowviewQuo"
:rId=
"rId"
@
close=
"closeQuota"
>
</viewquotation-form>
</div>
</div>
</template>
</template>
...
@@ -172,9 +177,15 @@
...
@@ -172,9 +177,15 @@
import
quotationForm
from
'../../components/sale/quotation-form'
import
quotationForm
from
'../../components/sale/quotation-form'
import
offertransorderForm
from
'../../components/sale/offertransorder-form'
import
offertransorderForm
from
'../../components/sale/offertransorder-form'
import
edittransorderForm
from
'../../components/sale/edittransorder-form'
import
edittransorderForm
from
'../../components/sale/edittransorder-form'
import
viewquotationForm
from
'../../components/sale/viewquotation-form'
import
{
import
{
queryCourseOfferPage
,
queryCourseOfferPage
,
}
from
'../../api/course/index'
}
from
'../../api/course/index'
//员工
import
{
queryEmployee
}
from
'../../api/users/user'
import
{
import
{
mapState
mapState
}
from
"vuex"
;
}
from
"vuex"
;
...
@@ -186,7 +197,8 @@
...
@@ -186,7 +197,8 @@
components
:
{
components
:
{
quotationForm
,
quotationForm
,
offertransorderForm
,
offertransorderForm
,
edittransorderForm
edittransorderForm
,
viewquotationForm
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -198,6 +210,7 @@
...
@@ -198,6 +210,7 @@
pageSize
:
10
,
pageSize
:
10
,
rowsPerPage
:
10
,
rowsPerPage
:
10
,
Name
:
""
,
Name
:
""
,
CreateBy
:
0
,
IsGetDetails
:
1
,
IsGetDetails
:
1
,
CreateBy
:
0
CreateBy
:
0
},
},
...
@@ -265,6 +278,12 @@
...
@@ -265,6 +278,12 @@
align
:
"left"
,
align
:
"left"
,
format
:
(
val
,
row
)
=>
`
${
val
}
`
format
:
(
val
,
row
)
=>
`
${
val
}
`
},
},
{
name
:
"CreateByName"
,
label
:
"销售"
,
field
:
"CreateByName"
,
align
:
"left"
,
},
{
{
name
:
"CreateTimeStr"
,
name
:
"CreateTimeStr"
,
label
:
"报价时间"
,
label
:
"报价时间"
,
...
@@ -285,6 +304,9 @@
...
@@ -285,6 +304,9 @@
showOrderForm
:
false
,
//是否显示转订单表单
showOrderForm
:
false
,
//是否显示转订单表单
commonId
:
0
,
commonId
:
0
,
showEditPrice
:
false
,
//是否显示改价表单
showEditPrice
:
false
,
//是否显示改价表单
EmployeeList
:[],
//员工列表
isShowviewQuo
:
false
,
rId
:
0
}
}
},
},
computed
:
mapState
({
computed
:
mapState
({
...
@@ -308,9 +330,30 @@
...
@@ -308,9 +330,30 @@
}
else
{
}
else
{
this
.
msg
.
CreateBy
=
this
.
commonId
;
this
.
msg
.
CreateBy
=
this
.
commonId
;
}
}
this
.
Employee
();
this
.
getcourseofferpage
();
this
.
getcourseofferpage
();
},
},
methods
:
{
methods
:
{
closeQuota
(){
this
.
isShowviewQuo
=
false
;
},
Employee
()
{
var
qMsg
=
{
EmployeeName
:
''
}
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
EmployeeList
=
res
.
Data
;
var
obj
=
{
EmployeeName
:
'请选择'
,
Id
:
0
}
this
.
EmployeeList
.
unshift
(
obj
);
}
}).
catch
(()
=>
{
})
},
//跳转到订单列表
//跳转到订单列表
goOrderList
(
item
)
{
goOrderList
(
item
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -338,17 +381,8 @@
...
@@ -338,17 +381,8 @@
this
.
getcourseofferpage
();
this
.
getcourseofferpage
();
},
},
gotoDetails
(
item
)
{
gotoDetails
(
item
)
{
this
.
$router
.
push
({
this
.
rId
=
item
.
Id
;
path
:
"/sale/quotation"
,
this
.
isShowviewQuo
=
true
;
query
:
{
Id
:
item
.
Id
}
});
},
//显示报价单
editQuotation
(
item
)
{
this
.
showForm
=
true
;
this
.
offerObj
=
item
;
},
},
//重新查询
//重新查询
resetSearch
()
{
resetSearch
()
{
...
...
src/pages/sale/myoffer.vue
View file @
10c1b787
...
@@ -183,6 +183,9 @@
...
@@ -183,6 +183,9 @@
<q-dialog
v-model=
"showEditPrice"
persistent
>
<q-dialog
v-model=
"showEditPrice"
persistent
>
<edittransorder-form
:obj=
"offerObj"
@
save=
"refreshPage()"
></edittransorder-form>
<edittransorder-form
:obj=
"offerObj"
@
save=
"refreshPage()"
></edittransorder-form>
</q-dialog>
</q-dialog>
<!-- 查看报价单 -->
<viewquotation-form
v-if=
"isShowviewQuo"
:rId=
"rId"
@
close=
"closeQuota"
>
</viewquotation-form>
</div>
</div>
</template>
</template>
...
@@ -190,6 +193,7 @@
...
@@ -190,6 +193,7 @@
import
quotationForm
from
'../../components/sale/quotation-form'
import
quotationForm
from
'../../components/sale/quotation-form'
import
offertransorderForm
from
'../../components/sale/offertransorder-form'
import
offertransorderForm
from
'../../components/sale/offertransorder-form'
import
edittransorderForm
from
'../../components/sale/edittransorder-form'
import
edittransorderForm
from
'../../components/sale/edittransorder-form'
import
viewquotationForm
from
'../../components/sale/viewquotation-form'
import
{
import
{
queryCourseOfferPage
,
queryCourseOfferPage
,
}
from
'../../api/course/index'
}
from
'../../api/course/index'
...
@@ -204,7 +208,8 @@
...
@@ -204,7 +208,8 @@
components
:
{
components
:
{
quotationForm
,
quotationForm
,
offertransorderForm
,
offertransorderForm
,
edittransorderForm
edittransorderForm
,
viewquotationForm
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -303,6 +308,8 @@
...
@@ -303,6 +308,8 @@
showOrderForm
:
false
,
//是否显示转订单表单
showOrderForm
:
false
,
//是否显示转订单表单
commonId
:
0
,
commonId
:
0
,
showEditPrice
:
false
,
//是否显示改价表单
showEditPrice
:
false
,
//是否显示改价表单
isShowviewQuo
:
false
,
rId
:
0
}
}
},
},
...
@@ -312,6 +319,9 @@
...
@@ -312,6 +319,9 @@
this
.
getcourseofferpage
();
this
.
getcourseofferpage
();
},
},
methods
:
{
methods
:
{
closeQuota
(){
this
.
isShowviewQuo
=
false
;
},
//跳转到订单列表
//跳转到订单列表
goOrderList
(
item
)
{
goOrderList
(
item
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -339,12 +349,8 @@
...
@@ -339,12 +349,8 @@
this
.
getcourseofferpage
();
this
.
getcourseofferpage
();
},
},
gotoDetails
(
item
)
{
gotoDetails
(
item
)
{
this
.
$router
.
push
({
this
.
rId
=
item
.
Id
;
path
:
"/sale/quotation"
,
this
.
isShowviewQuo
=
true
;
query
:
{
Id
:
item
.
Id
}
});
},
},
//显示报价单
//显示报价单
editQuotation
(
item
)
{
editQuotation
(
item
)
{
...
...
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