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
ba7470f2
Commit
ba7470f2
authored
Mar 19, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
52583c18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
26 deletions
+83
-26
index.js
src/api/studyabroad/index.js
+35
-0
studyabroad.vue
src/pages/studyAbroad/studyabroad.vue
+48
-26
No files found.
src/api/studyabroad/index.js
View file @
ba7470f2
...
...
@@ -127,3 +127,38 @@ export function saveBatchStudyAbroad(data) {
data
})
}
/**
* 留学就业提交审核
*/
export
function
saveSaleState
(
data
)
{
return
request
({
url
:
'/StudyAbroad/SetSaleState'
,
method
:
'post'
,
data
})
}
/**
* 部门主管审核
*/
export
function
saveDirectorAudit
(
data
)
{
return
request
({
url
:
'/StudyAbroad/SetDirectorAudit'
,
method
:
'post'
,
data
})
}
/**
* 部门负责人审核
*/
export
function
saveManagerAudit
(
data
)
{
return
request
({
url
:
'/StudyAbroad/SetManagerAudit'
,
method
:
'post'
,
data
})
}
src/pages/studyAbroad/studyabroad.vue
View file @
ba7470f2
...
...
@@ -7,9 +7,9 @@
@
clear=
"resetSearch"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
class=
"q-pb-lg q-pr-lg"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.SaleState"
ref=
"SaleState"
:options=
"saleDownList"
label=
"销售状态"
:dense=
"false"
emit-value
map-options
>
<q-select
class=
"q-pb-lg q-pr-lg"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.SaleState"
ref=
"SaleState"
:options=
"saleDownList"
label=
"销售状态"
:dense=
"false"
emit-value
map-options
>
</q-select>
</div>
</div>
...
...
@@ -28,7 +28,8 @@
<q-td>
<div>
{{
props
.
row
.
SupplierName
}}
</div>
<div>
<a
:href=
"props.row.SupplierContract"
style=
"color:#2961FE;text-decoration:none;"
v-if=
"props.row.SupplierContract"
>
<a
:href=
"props.row.SupplierContract"
style=
"color:#2961FE;text-decoration:none;"
v-if=
"props.row.SupplierContract"
>
查看合同
</a>
</div>
...
...
@@ -109,7 +110,8 @@
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
<studyAbroad-form
v-if=
"isShowStudy"
:save-obj=
"studyObj"
:Type=
"1"
@
close=
"closeStudyForm"
@
success=
"refreshPage"
>
<studyAbroad-form
v-if=
"isShowStudy"
:save-obj=
"studyObj"
:Type=
"1"
@
close=
"closeStudyForm"
@
success=
"refreshPage"
>
</studyAbroad-form>
<studyAbroadprice-form
v-if=
"isShowStudyPrice"
:save-obj=
"studyObj"
@
close=
"closeStudyForm"
@
success=
"refreshPage"
>
...
...
@@ -120,7 +122,8 @@
<
script
>
import
{
queryStudyAbroadPage
queryStudyAbroadPage
,
saveSaleState
}
from
'../../api/studyabroad/index'
import
studyAbroadForm
from
'../../components/studyAbroad/studyAbroad-form'
import
studyAbroadpriceForm
from
'../../components/studyAbroad/studyAbroadprice-form'
...
...
@@ -142,7 +145,7 @@
rowsPerPage
:
10
,
Name
:
""
,
IsQPrice
:
1
,
SaleState
:
0
//销售状态
SaleState
:
0
//销售状态
},
dataList
:
[],
loading
:
true
,
...
...
@@ -158,12 +161,6 @@
field
:
'SupplierName'
,
align
:
'left'
},
// {
// name: 'SupplierContract',
// label: '供应商合同',
// field: 'SupplierContract',
// align: 'left'
// },
{
name
:
'SuggestPrice'
,
label
:
'建议卖价'
,
...
...
@@ -206,9 +203,9 @@
align
:
'left'
},
{
name
:
'SaleState'
,
name
:
'SaleState
Name
'
,
label
:
'销售状态'
,
field
:
'SaleState'
,
field
:
'SaleState
Name
'
,
align
:
'left'
},
{
...
...
@@ -222,15 +219,15 @@
studyObj
:
{},
//留学对象
isShowStudyPrice
:
false
,
//是否显示价格设置
saleDownList
:[{
Id
:
0
,
Name
:
'不限'
},{
Id
:
1
,
Name
:
'销售中'
},{
Id
:
2
,
Name
:
'已下架'
saleDownList
:
[{
Id
:
0
,
Name
:
'不限'
},
{
Id
:
1
,
Name
:
'销售中'
},
{
Id
:
2
,
Name
:
'已下架'
}],
//销售状态下拉
}
},
...
...
@@ -253,7 +250,6 @@
this
.
loading
=
false
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
PageCount
=
res
.
Data
.
PageCount
;
console
.
log
(
res
,
'数据'
);
})
.
catch
(()
=>
{
this
.
loading
=
false
;
...
...
@@ -288,7 +284,33 @@
this
.
isShowStudyPrice
=
true
;
},
//申请审核
applyApply
(
obj
){
applyApply
(
obj
)
{
let
applyMsg
=
{
Id
:
obj
.
Id
,
SaleState
:
2
};
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
'是否要提交审核?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
saveSaleState
(
applyMsg
).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功'
,
position
:
'top'
})
this
.
refreshPage
();
})
}).
onCancel
(()
=>
{
});
}
}
...
...
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