Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mocp-uniapp
Overview
Overview
Details
Activity
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
pangchong
mocp-uniapp
Commits
75e09545
You need to sign in or sign up before continuing.
Commit
75e09545
authored
Jul 16, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 代码提示
parent
2cdf10ee
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
524 additions
and
253 deletions
+524
-253
components.d.ts
+4
-1
src/mocp/api/work-assignment.js
+34
-0
src/mocp/store/user.js
+1
-1
src/mocp/store/work-assignment.js
+36
-0
src/pages.json
+263
-251
src/pages/modules/mocp/panel/work-assignment/list.vue
+76
-0
src/pages/modules/mocp/panel/work-assignment/search.vue
+110
-0
No files found.
components.d.ts
View file @
75e09545
...
...
@@ -4,7 +4,10 @@
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export
{}
import
'@dcloudio/types'
import
'@uni-helper/uni-app-types'
import
'@uni-helper/uni-ui-types'
import
'uview-plus/types'
declare
module
'vue'
{
export
interface
GlobalComponents
{
// 全局组件
...
...
src/mocp/api/work-assignment.js
0 → 100644
View file @
75e09545
import
{
http
}
from
'mocp/utils/http'
export
const
getDecisionApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/workbench/getDecision'
,
data
,
config
})
}
export
const
updateDecisionApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/workbench/updateDecision'
,
data
,
config
})
}
export
const
updateMcoDirectorInfoApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/workbench/updateMcoDirectorInfo'
,
data
,
config
})
}
export
const
updateApproverInfoApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/workbench/updateApproverInfo'
,
data
,
config
})
}
src/mocp/store/user.js
View file @
75e09545
...
...
@@ -4,7 +4,7 @@ const menuList = ref([
{
id
:
1
,
name
:
'信息通报'
,
icon
:
'xxtb'
,
group
:
'技术支援'
,
count
:
12
},
{
id
:
2
,
name
:
'机队状态'
,
icon
:
'jdzt'
,
group
:
'技术支援'
,
count
:
0
},
{
id
:
3
,
name
:
'支援申请'
,
icon
:
'zysq'
,
group
:
'技术支援'
,
count
:
0
},
{
id
:
4
,
name
:
'工作指令'
,
icon
:
'gzzl'
,
group
:
'技术支援'
,
count
:
0
},
{
id
:
4
,
name
:
'工作指令'
,
icon
:
'gzzl'
,
group
:
'技术支援'
,
count
:
0
,
url
:
'/panel/work-assignment/search'
},
{
id
:
5
,
name
:
'技术评估'
,
icon
:
'jspg'
,
group
:
'技术支援'
,
count
:
0
,
url
:
'/panel/technology-evaluation/list'
},
{
id
:
6
,
name
:
'运行调查'
,
icon
:
'yxdc'
,
group
:
'维修控制'
,
count
:
0
},
{
id
:
7
,
name
:
'运行决策'
,
icon
:
'yxjc'
,
group
:
'维修控制'
,
count
:
0
,
url
:
'/panel/move-decision/list'
},
...
...
src/mocp/store/work-assignment.js
0 → 100644
View file @
75e09545
import
{
defineStore
}
from
'pinia'
const
useWorkAssignmentStore
=
defineStore
(
'workAssignment'
,
{
state
:
()
=>
{
return
{
searchData
:
{
state
:
1
,
presenter
:
''
,
seat
:
''
,
workType
:
null
,
startDateTime
:
null
,
endDateTime
:
null
},
details
:
undefined
}
},
getters
:
{},
actions
:
{
resetForm
()
{
this
.
searchData
=
{
state
:
1
,
presenter
:
''
,
seat
:
''
,
workType
:
null
,
startDateTime
:
null
,
endDateTime
:
null
}
},
setState
(...
args
)
{
this
.
$patch
({
[
args
[
0
]]:
args
[
1
]
})
}
},
// 配置持久化
persist
:
false
})
export
default
useWorkAssignmentStore
src/pages.json
View file @
75e09545
{
//
组件自动导入
"easycom"
:
{
"autoscan"
:
true
,
"custom"
:
{
//
uni-ui
规则如下配置
"^uni-(.*)"
:
"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
,
//
uview-plus
规则如下配置
"^u--(.*)"
:
"uview-plus/components/u-$1/u-$1.vue"
,
"^up-(.*)"
:
"uview-plus/components/u-$1/u-$1.vue"
,
"^u-([^-].*)"
:
"uview-plus/components/u-$1/u-$1.vue"
,
//
mocp全局组件
规则如下配置
"^global-(.*)"
:
"mocp/components/global-$1/global-$1.vue"
,
//
mocp自定义组件
规则如下配置
"^custom-(.*)"
:
"mocp/components/widget/custom-$1.vue"
}
},
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/modules/mocp/login/index"
,
"style"
:
{
"navigationBarTitleText"
:
"登录"
}
},
{
"path"
:
"pages/modules/mocp/panel/index"
,
"style"
:
{
"navigationBarTitleText"
:
"工作台"
}
},
{
"path"
:
"pages/modules/mocp/panel/app-center/index"
,
"style"
:
{
"navigationBarTitleText"
:
"应用中心"
}
},
{
"path"
:
"pages/modules/mocp/chat/index"
,
"style"
:
{
"navigationBarTitleText"
:
"沟通"
}
},
{
"path"
:
"pages/modules/mocp/home/index"
,
"style"
:
{
"navigationBarTitleText"
:
"首页"
}
},
{
"path"
:
"pages/modules/mocp/tab/index"
,
"style"
:
{
"navigationBarTitleText"
:
"tab页面"
,
"app-plus"
:
{
"bounce"
:
"none"
//关闭窗口回弹效果
}
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/list"
,
"style"
:
{
"navigationBarTitleText"
:
"考核记录"
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/details"
,
"style"
:
{
"navigationBarTitleText"
:
"考核记录详情"
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/edit-rqm-opinion"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/edit-rqm-data"
,
"style"
:
{
"navigationBarTitleText"
:
"申诉状态"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/list"
,
"style"
:
{
"navigationBarTitleText"
:
"布置工作"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/details"
,
"style"
:
{
"navigationBarTitleText"
:
"布置工作详情"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-work"
,
"style"
:
{
"navigationBarTitleText"
:
"添加工作反馈"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-decompose"
,
"style"
:
{
"navigationBarTitleText"
:
"添加分解计划"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-approval"
,
"style"
:
{
"navigationBarTitleText"
:
"添加领导批示"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-gzFeedback"
,
"style"
:
{
"navigationBarTitleText"
:
"跟踪反馈"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-followUpFeedback"
,
"style"
:
{
"navigationBarTitleText"
:
"后续措施反馈"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-validate"
,
"style"
:
{
"navigationBarTitleText"
:
"工作验证"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-gzApproval"
,
"style"
:
{
"navigationBarTitleText"
:
"跟踪批示"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/list"
,
"style"
:
{
"navigationBarTitleText"
:
"运行决策"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/details"
,
"style"
:
{
"navigationBarTitleText"
:
"查看运行决策"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/edit-mco-director"
,
"style"
:
{
"navigationBarTitleText"
:
"MCO主任意见"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/edit-approver"
,
"style"
:
{
"navigationBarTitleText"
:
"公司值班经理意见"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/list"
,
"style"
:
{
"navigationBarTitleText"
:
"技术评估"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/details"
,
"style"
:
{
"navigationBarTitleText"
:
"技术评估详情"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/add-engineering"
,
"style"
:
{
"navigationBarTitleText"
:
"第二类超出持续适航文件的缺陷,需完成工程评估"
}
},{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/add-opinion"
,
"style"
:
{
"navigationBarTitleText"
:
"经理或授权人意见"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/add-support-file"
,
"style"
:
{
"navigationBarTitleText"
:
"厂家提供技术支援文件"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/add-ratify"
,
"style"
:
{
"navigationBarTitleText"
:
"客户工程授权人意见"
}
},
{
"path"
:
"pages/modules/mocp/panel/my-toDo/index"
,
"style"
:
{
"navigationBarTitleText"
:
"我的待办"
}
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
"uni-app"
,
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
,
"navigationBarRightButton"
:
{
"hide"
:
true
}
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
1
,
//当前激活的模式(list
的索引项)
"list"
:
[
{
"name"
:
"test"
,
//模式名称
"path"
:
"pages/modules/mocp/tab/index"
//启动页面,必选
},
{
"name"
:
"login"
,
//模式名称
"path"
:
"pages/modules/mocp/login/index"
//启动页面,必选
}
]
}
}
\ No newline at end of file
//
组件自动导入
"easycom"
:
{
"autoscan"
:
true
,
"custom"
:
{
//
uni-ui
规则如下配置
"^uni-(.*)"
:
"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
,
//
uview-plus
规则如下配置
"^u--(.*)"
:
"uview-plus/components/u-$1/u-$1.vue"
,
"^up-(.*)"
:
"uview-plus/components/u-$1/u-$1.vue"
,
"^u-([^-].*)"
:
"uview-plus/components/u-$1/u-$1.vue"
,
//
mocp全局组件
规则如下配置
"^global-(.*)"
:
"mocp/components/global-$1/global-$1.vue"
,
//
mocp自定义组件
规则如下配置
"^custom-(.*)"
:
"mocp/components/widget/custom-$1.vue"
}
},
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/modules/mocp/login/index"
,
"style"
:
{
"navigationBarTitleText"
:
"登录"
}
},
{
"path"
:
"pages/modules/mocp/panel/index"
,
"style"
:
{
"navigationBarTitleText"
:
"工作台"
}
},
{
"path"
:
"pages/modules/mocp/panel/app-center/index"
,
"style"
:
{
"navigationBarTitleText"
:
"应用中心"
}
},
{
"path"
:
"pages/modules/mocp/chat/index"
,
"style"
:
{
"navigationBarTitleText"
:
"沟通"
}
},
{
"path"
:
"pages/modules/mocp/home/index"
,
"style"
:
{
"navigationBarTitleText"
:
"首页"
}
},
{
"path"
:
"pages/modules/mocp/tab/index"
,
"style"
:
{
"navigationBarTitleText"
:
"tab页面"
,
"app-plus"
:
{
"bounce"
:
"none"
//关闭窗口回弹效果
}
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/list"
,
"style"
:
{
"navigationBarTitleText"
:
"考核记录"
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/details"
,
"style"
:
{
"navigationBarTitleText"
:
"考核记录详情"
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/edit-rqm-opinion"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/modules/mocp/panel/appraisal-record/edit-rqm-data"
,
"style"
:
{
"navigationBarTitleText"
:
"申诉状态"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/list"
,
"style"
:
{
"navigationBarTitleText"
:
"布置工作"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/details"
,
"style"
:
{
"navigationBarTitleText"
:
"布置工作详情"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-work"
,
"style"
:
{
"navigationBarTitleText"
:
"添加工作反馈"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-decompose"
,
"style"
:
{
"navigationBarTitleText"
:
"添加分解计划"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-approval"
,
"style"
:
{
"navigationBarTitleText"
:
"添加领导批示"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-gzFeedback"
,
"style"
:
{
"navigationBarTitleText"
:
"跟踪反馈"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-followUpFeedback"
,
"style"
:
{
"navigationBarTitleText"
:
"后续措施反馈"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-validate"
,
"style"
:
{
"navigationBarTitleText"
:
"工作验证"
}
},
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-gzApproval"
,
"style"
:
{
"navigationBarTitleText"
:
"跟踪批示"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/list"
,
"style"
:
{
"navigationBarTitleText"
:
"运行决策"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/details"
,
"style"
:
{
"navigationBarTitleText"
:
"查看运行决策"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/edit-mco-director"
,
"style"
:
{
"navigationBarTitleText"
:
"MCO主任意见"
}
},
{
"path"
:
"pages/modules/mocp/panel/move-decision/edit-approver"
,
"style"
:
{
"navigationBarTitleText"
:
"公司值班经理意见"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/list"
,
"style"
:
{
"navigationBarTitleText"
:
"技术评估"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/details"
,
"style"
:
{
"navigationBarTitleText"
:
"技术评估详情"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/add-engineering"
,
"style"
:
{
"navigationBarTitleText"
:
"第二类超出持续适航文件的缺陷,需完成工程评估"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/add-opinion"
,
"style"
:
{
"navigationBarTitleText"
:
"经理或授权人意见"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/add-support-file"
,
"style"
:
{
"navigationBarTitleText"
:
"厂家提供技术支援文件"
}
},
{
"path"
:
"pages/modules/mocp/panel/technology-evaluation/add-ratify"
,
"style"
:
{
"navigationBarTitleText"
:
"客户工程授权人意见"
}
},
{
"path"
:
"pages/modules/mocp/panel/my-toDo/index"
,
"style"
:
{
"navigationBarTitleText"
:
"我的待办"
}
},
{
"path"
:
"pages/modules/mocp/panel/work-assignment/search"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选"
}
},
{
"path"
:
"pages/modules/mocp/panel/work-assignment/list"
,
"style"
:
{
"navigationBarTitleText"
:
"工作任务指令"
}
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
"uni-app"
,
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
,
"navigationBarRightButton"
:
{
"hide"
:
true
}
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
1
,
//当前激活的模式(list
的索引项)
"list"
:
[
{
"name"
:
"test"
,
//模式名称
"path"
:
"pages/modules/mocp/tab/index"
//启动页面,必选
},
{
"name"
:
"login"
,
//模式名称
"path"
:
"pages/modules/mocp/login/index"
//启动页面,必选
}
]
}
}
src/pages/modules/mocp/panel/work-assignment/list.vue
0 → 100644
View file @
75e09545
<
template
>
<global-page
title=
"工作任务指令"
isDataList
refresherEnabled
loadingMoreEnabled
auto
ref=
"paging"
:params=
"searchData"
showNavRight
navRightType=
"icon"
navRightIcon=
"saixuan-01"
@
handleRightClick=
"handleRightClick"
:api=
"getDecisionApi"
:padding=
"24"
>
<template
#="
{ dataList }">
<view
class=
"item"
v-for=
"item in dataList"
:key=
"item.id"
@
tap=
"goDetails(item)"
>
<view
class=
"item-title"
>
<view
class=
"left"
>
<custom-state
:value=
"useGetDictByValue('md_state', item.state)"
></custom-state>
</view>
<view
class=
"right"
>
<text
class=
"txt u-line-1"
v-if=
"item.machineNumber"
>
{{
item
.
machineNumber
}}
</text>
<text
class=
"txt u-line-1"
v-if=
"item.aviation"
>
{{
item
.
aviation
}}
</text>
</view>
</view>
<view
class=
"item-content u-line-3"
>
{{
item
.
faultDescription
||
'无'
}}
</view>
<view
class=
"item-footer"
>
<view
class=
"label"
>
<global-icon
icon=
"calendar"
></global-icon>
<text
class=
"txt"
>
{{
timeStampFormat
(
item
.
filledTime
,
{
format
:
'YYYY/MM/DD HH:mm'
}
)
}}
<
/text
>
<
/view
>
<
/view
>
<
/view
>
<
/template
>
<
/global-page
>
<
/template
>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
{
getDecisionApi
}
from
'mocp/api/move-decision'
import
{
useGetDictByValue
}
from
'mocp/hooks/use-dict/useDict'
import
useMoveDecisionStore
from
'mocp/store/move-decision'
import
{
storeToRefs
}
from
'pinia'
import
{
onUnload
}
from
'@dcloudio/uni-app'
//跳转
const
moveDecisionStore
=
useMoveDecisionStore
()
const
{
searchData
}
=
storeToRefs
(
moveDecisionStore
)
const
goDetails
=
(
data
)
=>
{
uni
.
$mocpJump
.
navigateTo
(
'/panel/work-assignment/details'
,
{
id
:
data
.
id
}
).
then
(()
=>
{
moveDecisionStore
.
setState
(
'details'
,
data
)
}
)
}
//筛选
const
handleRightClick
=
()
=>
{
uni
.
$mocpJump
.
redirectTo
(
'/panel/work-assignment/search'
)
}
//刷新
const
paging
=
ref
()
uni
.
$on
(
'workAssignmentReload'
,
()
=>
{
paging
.
value
?.
reload
()
}
)
onUnload
(()
=>
{
uni
.
$off
(
'workAssignmentReload'
)
}
)
<
/script
>
<
style
lang
=
"scss"
scoped
>
@
import
'mocpStatic/css/list.scss'
;
<
/style
>
src/pages/modules/mocp/panel/work-assignment/search.vue
0 → 100644
View file @
75e09545
<
template
>
<global-page
title=
"筛选"
>
<view
class=
"search-form"
>
<up-form
labelPosition=
"left"
labelWidth=
"auto"
>
<up-form-item
label=
"状态"
prop=
"state"
:borderBottom=
"true"
>
<global-picker
v-model=
"formData.state"
pickAlign=
"right"
clearable
dictkey=
"md_state"
></global-picker>
</up-form-item>
<up-form-item
label=
"航站"
prop=
"terminal"
:borderBottom=
"true"
>
<global-picker
pickAlign=
"right"
v-model=
"formData.terminal"
clearable
:options=
"baseStore.getTerminalSelect"
filter
></global-picker>
</up-form-item>
<up-form-item
label=
"是否有效"
prop=
"valid"
:borderBottom=
"true"
>
<global-picker
v-model=
"formData.valid"
pickAlign=
"right"
:options=
"[
{ label: '有效', value: '1' },
{ label: '无效', value: '0' }
]"
clearable
>
</global-picker>
</up-form-item>
<up-form-item
label=
"决策结果"
prop=
"decisionState"
:borderBottom=
"true"
>
<global-picker
v-model=
"formData.decisionState"
pickAlign=
"right"
:options=
"[
{ label: '同意', value: '1' },
{ label: '不同意', value: '0' }
]"
clearable
>
</global-picker>
</up-form-item>
<up-form-item
label=
"航司"
prop=
"aviation"
:borderBottom=
"true"
>
<global-picker
v-model=
"formData.aviation"
pickAlign=
"right"
:options=
"baseStore.getAirlineSelect"
clearable
filter
></global-picker>
</up-form-item>
<up-form-item
label=
"机号"
prop=
"machineNumber"
:borderBottom=
"true"
>
<global-picker
pickAlign=
"right"
v-model=
"formData.machineNumber"
:options=
"deviceNumList"
clearable
filter
></global-picker>
</up-form-item>
<up-form-item
label=
"日期"
:borderBottom=
"true"
>
<global-calendar
pickAlign=
"right"
v-model:startTime=
"formData.startDateTime"
v-model:endTime=
"formData.endDateTime"
clearable
></global-calendar>
</up-form-item>
</up-form>
</view>
<template
#
bottom
>
<view
class=
"footer-btn"
>
<up-row
gutter=
"10"
>
<up-col
span=
"6"
>
<global-button
type=
"light"
size=
"large"
:radius=
"5"
@
tap=
"handleReset"
>
重置
</global-button>
</up-col>
<up-col
span=
"6"
><global-button
type=
"primary"
size=
"large"
:radius=
"5"
@
tap=
"handleConfirm"
>
确定
</global-button></up-col>
</up-row>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
useBaseStore
from
'mocp/store/base'
import
useMoveDecisionStore
from
'mocp/store/move-decision'
import
{
storeToRefs
}
from
'pinia'
import
{
cloneDeep
}
from
'lodash'
import
{
ref
}
from
'vue'
//获取下拉框选项
const
baseStore
=
useBaseStore
()
const
{
selectList
:
{
deviceNumList
}
}
=
useBaseStore
()
const
moveDecisionStore
=
useMoveDecisionStore
()
//获取查询表单数据
const
{
searchData
}
=
storeToRefs
(
moveDecisionStore
)
const
formData
=
ref
(
cloneDeep
(
searchData
.
value
))
const
handleReset
=
()
=>
{
moveDecisionStore
.
resetForm
()
uni
.
$mocpJump
.
redirectTo
(
'/panel/work-assignment/list'
)
uni
.
$emit
(
'workAssignmentReload'
)
}
const
handleConfirm
=
()
=>
{
moveDecisionStore
.
setState
(
'searchData'
,
formData
.
value
)
uni
.
$mocpJump
.
redirectTo
(
'/panel/work-assignment/list'
)
uni
.
$emit
(
'workAssignmentReload'
)
}
</
script
>
<
style
lang=
"scss"
scoped
>
.search-form
{
padding
:
24
rpx
24
rpx
0
24
rpx
;
background
:
#fff
;
}
.footer-btn
{
padding
:
24
rpx
32
rpx
;
background-color
:
#fff
;
}
</
style
>
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