Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
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 996f4244
authored
Jan 04, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
0c9a6d16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
src/services/order.js
src/views/work/order.vue
src/services/order.js
View file @
996f424
...
...
@@ -70,3 +70,8 @@ export const GET_CLASSIFYNAME_INFO = (params) => {
export
const
GET_WORKORDER_OPERLOG
=
(
params
)
=>
{
return
request
(
params
,
"/trialdrive/workorder/operlog"
);
};
// 工单管理-工单列表-获取工单状态
export
const
GET_WORKORDER_STATUSOPTION
=
(
params
)
=>
{
return
request
(
params
,
"/trialdrive/workorder/status/option"
);
};
src/views/work/order.vue
View file @
996f424
...
...
@@ -15,7 +15,7 @@
</div>
</el-form-item>
<el-form-item
label=
"是否需要安装"
>
<el-select
v-model=
"searchForm.
test
"
class=
"small_select"
>
<el-select
v-model=
"searchForm.
needInstall
"
class=
"small_select"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"无需安装"
value=
"Y"
></el-option>
<el-option
label=
"需要安装"
value=
"N"
></el-option>
...
...
@@ -39,12 +39,12 @@
<el-form-item
label=
"系统工单状态:"
>
<el-select
v-model=
"searchForm.orderStatus2"
class=
"small_select"
placeholder=
"请选择"
>
<el-option
label=
"全部"
value=
""
></el-option>
<
!--
<el-option
label=
"草稿"
:value=
"1"
></el-option>
--
>
<el-option
label=
"已提交"
value=
"2"
></el-option>
<
el-option
v-for=
"(item,index) in statusList"
:key=
"`s_$
{index}`" :label="item.name" :value="item.id">
</el-option
>
<
!--
<
el-option
label=
"已提交"
value=
"2"
></el-option>
<el-option
label=
"已派单"
value=
"3"
></el-option>
<el-option
label=
"已激活"
value=
"4"
></el-option>
<el-option
label=
"已取消"
value=
"5"
></el-option>
<el-option
label=
"已拆除"
:value=
"6"
></el-option>
<el-option
label=
"已拆除"
:value=
"6"
></el-option>
-->
</el-select>
</el-form-item>
<el-form-item
label=
"关键字:"
>
...
...
@@ -171,6 +171,7 @@ import {
GET_WORKORDER_BATCHEXPORTPICS
,
GET_WORKORDER_TEMPLATEFILE
,
IMPORT_WORKORDER_FILES
,
GET_WORKORDER_STATUSOPTION
}
from
"@/services/order"
;
import
{
deepClone
,
showToast
,
showModal
}
from
"@/utils/util"
;
import
store
from
"@/store"
;
...
...
@@ -220,6 +221,7 @@ export default {
2
:
"编辑工单"
,
3
:
"激活工单"
,
},
statusList
:[]
};
},
watch
:
{
...
...
@@ -236,6 +238,7 @@ export default {
created
()
{
let
token
=
localStorage
.
getItem
(
"token"
);
this
.
uploadHeaders
=
{
Authorization
:
token
};
this
.
getStatus
()
},
mounted
()
{
this
.
getList
();
...
...
@@ -447,6 +450,14 @@ export default {
this
.
aloading
=
true
;
this
.
$refs
.
editOrderCom
.
activeDevice
();
},
// 获取工单状态
getStatus
(){
GET_WORKORDER_STATUSOPTION
().
then
(
res
=>
{
this
.
statusList
=
res
.
data
||
[]
})
}
},
};
</
script
>
...
...
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