Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gavel-oa-app
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
李苏
gavel-oa-app
Commits
618f557e
Commit
618f557e
authored
Dec 05, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
3f82e231
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
89 additions
and
70 deletions
+89
-70
index.vue
pages/kqgl/gzrb/gzrbxq/index.vue
+18
-18
index.vue
pages/kqgl/gzrb/index.vue
+10
-11
index.vue
pages/kqgl/gzrb/xjgzrb/index.vue
+45
-25
index.vue
pages/kqgl/gzrb/xzsj/index.vue
+9
-9
index.vue
pages/kqgl/gzrb/xzxm/index.vue
+7
-7
No files found.
pages/kqgl/gzrb/gzrbxq/index.vue
View file @
618f557e
<
template
>
<
template
>
<view
class=
"bg-white"
>
<view
class=
"bg-white"
>
<cu-custom
bgColor=
"bg-gradual-blue"
:isBack=
"true"
>
<cu-custom
bgColor=
"bg-gradual-blue"
:isBack=
"true"
>
<block
slot=
"backText"
>
返回
</block>
<block
slot=
"backText"
>
返回
</block>
<block
slot=
"content"
>
{{
$Route
.
meta
.
title
}}
</block>
<block
slot=
"content"
>
{{
$Route
.
meta
.
title
}}
</block>
...
@@ -48,34 +48,34 @@
...
@@ -48,34 +48,34 @@
</u-form-item>
</u-form-item>
</u-form>
</u-form>
<!-- 附件列表 -->
<!-- 附件列表 -->
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
eventBus
from
'@/common/util/eventBus.js'
export
default
{
export
default
{
async
onLoad
(){
async
onLoad
(){
this
.
query
=
this
.
$Route
.
query
this
.
query
=
this
.
$Route
.
query
this
.
typeMap
=
await
this
.
$match
({
this
.
typeMap
=
await
this
.
$match
({
url
:
'kqgl/gzrb/init/type'
url
:
'kqgl/gzrb/init/type'
})
})
},
},
data
(){
data
(){
return
{
return
{
typeMap
:{},
typeMap
:{},
onload
:
false
,
onload
:
false
,
/* 传递的信息 */
/* 传递的信息 */
query
:{
query
:{
},
},
/* 完成表单 */
/* 完成表单 */
rules
:{
rules
:{
sjwcsj
:[{
sjwcsj
:[{
required
:
true
,
required
:
true
,
...
@@ -84,26 +84,26 @@
...
@@ -84,26 +84,26 @@
wxwcjg
:[{
wxwcjg
:[{
required
:
true
,
required
:
true
,
message
:
'请选择维修完成结果'
,
message
:
'请选择维修完成结果'
,
}],
}],
sjgz
:[{
sjgz
:[{
required
:
true
,
required
:
true
,
message
:
'请输入实际故障'
,
message
:
'请输入实际故障'
,
}],
}],
wxfy
:[{
wxfy
:[{
required
:
true
,
required
:
true
,
message
:
'请输入维修费用'
,
message
:
'请输入维修费用'
,
}]
}]
}
}
}
}
},
},
methods
:{
methods
:{
submit
(){
submit
(){
this
.
$refs
.
form
.
validate
().
then
(
res
=>
{
this
.
$refs
.
form
.
validate
().
then
(
res
=>
{
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'是否继续操作。'
,
content
:
'是否继续操作。'
,
...
@@ -128,10 +128,10 @@
...
@@ -128,10 +128,10 @@
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
});
});
}
}
})
})
}
}
}
}
});
});
...
@@ -146,9 +146,9 @@
...
@@ -146,9 +146,9 @@
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
</
style
>
</
style
>
\ No newline at end of file
pages/kqgl/gzrb/index.vue
View file @
618f557e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<u-icon
@
tap=
'xjgzrb'
name=
"plus"
color=
"#fff"
size=
"20"
></u-icon>
<u-icon
@
tap=
'xjgzrb'
name=
"plus"
color=
"#fff"
size=
"20"
></u-icon>
</
template
>
</
template
>
</cu-custom>
</cu-custom>
<!-- 待维修任务 -->
<!-- 待维修任务 -->
<view
class=
"padding10"
style=
"padding-top: 10px;position: relative;"
>
<view
class=
"padding10"
style=
"padding-top: 10px;position: relative;"
>
<!-- 搜索条件 -->
<!-- 搜索条件 -->
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</text>
</text>
</view>
</view>
</
template
>
</
template
>
</ac-card>
</ac-card>
...
@@ -106,12 +106,12 @@
...
@@ -106,12 +106,12 @@
</template>
</template>
<
script
>
<
script
>
import
eventBus
from
'@/common/util/eventBus.js'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
/* tags标签页需求属性 */
/* tags标签页需求属性 */
/* 待维修任务 */
/* 待维修任务 */
dwxQueryParams
:
{
dwxQueryParams
:
{
djid
:
''
,
djid
:
''
,
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
})
})
},
},
dwxSearch
()
{
dwxSearch
()
{
this
.
dwxQueryParams
.
pageNo
=
1
;
this
.
dwxQueryParams
.
pageNo
=
1
;
this
.
dwxList
=
[];
this
.
dwxList
=
[];
this
.
dwxToltal
=
0
this
.
dwxToltal
=
0
...
@@ -174,13 +174,12 @@
...
@@ -174,13 +174,12 @@
})
})
},
},
},
},
async
onLoad
()
{
async
onLoad
()
{
this
.
apiGetDwxList
()
this
.
apiGetDwxList
()
eventBus
.
$on
(
'save'
,
()
=>
{
uni
.
$on
(
'save'
,
()
=>
{
this
.
dwxSearch
()
this
.
dwxSearch
()
})
})
this
.
ztMap
=
await
this
.
$match
({
this
.
ztMap
=
await
this
.
$match
({
...
@@ -189,12 +188,12 @@
...
@@ -189,12 +188,12 @@
this
.
kqlxMap
=
await
this
.
$match
({
this
.
kqlxMap
=
await
this
.
$match
({
url
:
'kqgl/gzrb/init/type'
url
:
'kqgl/gzrb/init/type'
})
})
},
},
onUnload
()
{
onUnload
()
{
eventBus
.
$off
(
'save'
)
uni
.
$off
(
'save'
)
},
},
}
}
</
script
>
</
script
>
...
...
pages/kqgl/gzrb/xjgzrb/index.vue
View file @
618f557e
...
@@ -5,22 +5,24 @@
...
@@ -5,22 +5,24 @@
<block
slot=
"backText"
>
返回
</block>
<block
slot=
"backText"
>
返回
</block>
<block
slot=
"content"
>
{{
$Route
.
meta
.
title
}}
</block>
<block
slot=
"content"
>
{{
$Route
.
meta
.
title
}}
</block>
</cu-custom>
</cu-custom>
<!-- 提交提示 -->
<u-notify
ref=
"uNotify"
></u-notify>
<view
class=
"padding10"
>
<view
class=
"padding10"
>
<!-- 填写报修信息 -->
<!-- 填写报修信息 -->
<u-form
ref=
"form"
:model=
'form'
:rules=
'rules'
labelPosition=
'top'
<u-form
ref=
"form"
:model=
'form'
:rules=
'rules'
labelPosition=
'top'
:labelStyle=
"
{fontSize:'15px',fontWeight:550}" labelWidth='200px'>
:labelStyle=
"
{fontSize:'15px',fontWeight:550}" labelWidth='200px'>
<u-form-item
label=
"工作日期"
prop=
'ywrq'
>
<u-form-item
required
label=
"工作日期"
prop=
'ywrq'
>
<ac-timeselect
mode=
'date'
height=
'35px'
style=
"width: 100%;"
v-model=
"form.ywrq"
/>
<ac-timeselect
mode=
'date'
height=
'35px'
style=
"width: 100%;"
v-model=
"form.ywrq"
/>
</u-form-item>
</u-form-item>
<u-form-item
label=
"考勤类型"
prop=
'type'
>
<u-form-item
required
label=
"考勤类型"
prop=
'type'
>
<ac-relselect
url=
'kqgl/gzrb/init/type'
v-model=
"form.type"
/>
<ac-relselect
url=
'kqgl/gzrb/init/type'
v-model=
"form.type"
/>
</u-form-item>
</u-form-item>
<u-form-item
label=
"项目"
prop=
'xmid'
>
<u-form-item
required
label=
"项目"
prop=
'xmid'
>
<u-input
@
tap
.
native=
'xzxm'
readonly
class=
"ac-border"
style=
"height: 33px;"
border=
""
<u-input
@
tap
.
native=
'xzxm'
readonly
class=
"ac-border"
style=
"height: 33px;"
border=
""
suffixIcon=
"search"
v-model=
"form.xmName"
></u-input>
suffixIcon=
"search"
v-model=
"form.xmName"
></u-input>
</u-form-item>
</u-form-item>
<u-form-item
label=
"工时(天)"
prop=
'gs'
>
<u-form-item
required
label=
"工时(天)"
prop=
'gs'
>
<u-input
type=
'number'
class=
"ac-border"
style=
"height: 33px;"
border=
""
<u-input
type=
'number'
class=
"ac-border"
style=
"height: 33px;"
border=
""
v-model=
"form.gs"
></u-input>
v-model=
"form.gs"
></u-input>
</u-form-item>
</u-form-item>
...
@@ -37,18 +39,18 @@
...
@@ -37,18 +39,18 @@
<u-form-item
label=
"商机描述"
>
<u-form-item
label=
"商机描述"
>
<u-textarea
:maxlength=
'1500'
v-model=
"form.sjwhSjms"
placeholder=
"请输入内容"
count
></u-textarea>
<u-textarea
:maxlength=
'1500'
v-model=
"form.sjwhSjms"
placeholder=
"请输入内容"
count
></u-textarea>
</u-form-item>
</u-form-item>
<u-form-item
label=
"工作内容"
prop=
'gznr'
>
<u-form-item
required
label=
"工作内容"
prop=
'gznr'
>
<u-textarea
:maxlength=
'1500'
v-model=
"form.gznr"
placeholder=
"请输入内容"
count
></u-textarea>
<u-textarea
:maxlength=
'1500'
v-model=
"form.gznr"
placeholder=
"请输入内容"
count
></u-textarea>
</u-form-item>
</u-form-item>
<u-form-item
label=
"下一步计划"
prop=
'gzjh'
>
<u-form-item
label=
"下一步计划"
prop=
'gzjh'
>
<u-textarea
:maxlength=
'1500'
v-model=
"form.gzjh"
placeholder=
"请输入内容"
count
></u-textarea>
<u-textarea
:maxlength=
'1500'
v-model=
"form.gzjh"
placeholder=
"请输入内容"
count
></u-textarea>
</u-form-item>
</u-form-item>
<u-form-item
label=
"汇报人"
prop=
'hbrid'
>
<u-form-item
required
label=
"汇报人"
prop=
'hbrid'
>
<ac-personselectcode
mode=
'date'
height=
'35px'
style=
"width: 100%;"
v-model=
"form.hbrid"
/>
<ac-personselectcode
mode=
'date'
height=
'35px'
style=
"width: 100%;"
v-model=
"form.hbrid"
/>
</u-form-item>
</u-form-item>
<!--
<ac-upload
accept=
'image'
ref=
"uploadimage"
/>
<!--
<ac-upload
accept=
'image'
ref=
"uploadimage"
/>
<ac-upload
accept=
'video'
ref=
"uploadvideo"
/>
-->
<ac-upload
accept=
'video'
ref=
"uploadvideo"
/>
-->
<u-button
@
tap=
'submit'
type=
"primary"
style=
"width: 60vw;height: 40px;margin-top: 15px;"
<u-button
@
tap=
'submit'
type=
"primary"
style=
"width: 60vw;height: 40px;margin-top: 15px;"
...
@@ -65,7 +67,7 @@
...
@@ -65,7 +67,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
eventBus
from
'@/common/util/eventBus.js'
export
default
{
export
default
{
onLoad
()
{
onLoad
()
{
uni
.
getStorage
({
uni
.
getStorage
({
...
@@ -75,22 +77,22 @@
...
@@ -75,22 +77,22 @@
this
.
form
.
hbrid
=
res
.
data
.
userid
this
.
form
.
hbrid
=
res
.
data
.
userid
}
}
});
});
eventBus
.
$on
(
'xzxm'
,
(
xmxx
)
=>
{
uni
.
$on
(
'xzxm'
,
(
xmxx
)
=>
{
this
.
form
.
xmid
=
xmxx
.
id
this
.
form
.
xmid
=
xmxx
.
id
this
.
form
.
xmName
=
xmxx
.
name
this
.
form
.
xmName
=
xmxx
.
name
})
})
eventBus
.
$on
(
'xzsj'
,
(
sjxx
)
=>
{
uni
.
$on
(
'xzsj'
,
(
sjxx
)
=>
{
this
.
form
.
sjwhid
=
sjxx
.
id
this
.
form
.
sjwhid
=
sjxx
.
id
this
.
form
.
sjwhName
=
sjxx
.
sjms
this
.
form
.
sjwhName
=
sjxx
.
sjms
})
})
},
},
onUnload
()
{
onUnload
()
{
eventBus
.
$off
(
'xzxm'
)
uni
.
$off
(
'xzxm'
)
eventBus
.
$off
(
'xzsj'
)
uni
.
$off
(
'xzsj'
)
},
},
data
()
{
data
()
{
return
{
return
{
btext
:
'提交日报'
,
btext
:
'提交日报'
,
/* 表单信息 */
/* 表单信息 */
form
:
{
form
:
{
xmName
:
''
,
xmName
:
''
,
...
@@ -149,11 +151,11 @@
...
@@ -149,11 +151,11 @@
})
})
},
},
submit
()
{
submit
()
{
this
.
$refs
.
form
.
validate
().
then
(
res
=>
{
this
.
$refs
.
form
.
validate
().
then
(
res
=>
{
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'是否继续操作。'
,
content
:
'是否继续操作。'
,
...
@@ -171,7 +173,8 @@
...
@@ -171,7 +173,8 @@
})
})
const
wfdata
=
addres
.
data
.
records
[
0
]
const
wfdata
=
addres
.
data
.
records
[
0
]
wfdata
.
wfoperate
=
'1'
wfdata
.
wfoperate
=
'1'
let
userres
=
await
this
.
$post
(
'kqgl/gzrb/wfnextinfo'
,
wfdata
)
let
userres
=
await
this
.
$post
(
'kqgl/gzrb/wfnextinfo'
,
wfdata
)
const
tjlist
=
userres
.
data
.
records
[
0
]
const
tjlist
=
userres
.
data
.
records
[
0
]
this
.
$post
(
'kqgl/gzrb/wfgo'
,
{
this
.
$post
(
'kqgl/gzrb/wfgo'
,
{
nextinfo
:
tjlist
,
nextinfo
:
tjlist
,
...
@@ -179,16 +182,33 @@
...
@@ -179,16 +182,33 @@
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
btext
=
'继续提交'
this
.
btext
=
'继续提交'
this
.
$tip
.
toast
(
'提交成功'
)
this
.
$refs
.
uNotify
.
show
({
this
.
form
.
gznr
=
''
top
:
10
,
this
.
form
.
gzjh
=
''
type
:
'success'
,
message
:
'日报提交成功!'
,
duration
:
1000
*
3
,
fontSize
:
14
,
safeAreaInsetTop
:
true
})
this
.
form
.
gznr
=
''
this
.
form
.
gzjh
=
''
this
.
form
.
xmid
=
''
this
.
form
.
xmName
=
''
}
}
})
})
}
else
{
}
else
{
this
.
$tip
.
toast
(
'提交失败'
)
this
.
$refs
.
uNotify
.
show
({
top
:
10
,
type
:
'error'
,
message
:
'日报提交失败!'
,
duration
:
1000
*
3
,
fontSize
:
14
,
safeAreaInsetTop
:
true
})
}
}
})
})
...
@@ -203,4 +223,4 @@
...
@@ -203,4 +223,4 @@
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
</
style
>
</
style
>
\ No newline at end of file
pages/kqgl/gzrb/xzsj/index.vue
View file @
618f557e
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<u-input
class=
"ac-border search-input"
v-model=
"queryParams.xmmc"
></u-input>
<u-input
class=
"ac-border search-input"
v-model=
"queryParams.xmmc"
></u-input>
</u-form-item>
</u-form-item>
</u-col>
</u-col>
</u-row>
</u-row>
<!--
<u-row>
<!--
<u-row>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
{{
item
.
sjms
}}
{{
item
.
sjms
}}
</view>
</view>
</view>
</view>
<view
class=
"ac-card-item "
style=
"text-align: right;padding-right: 10px;padding-top: 0px;"
>
<view
class=
"ac-card-item "
style=
"text-align: right;padding-right: 10px;padding-top: 0px;"
>
<text
@
tap=
'handleIt(item)'
class=
"tap"
>
<text
@
tap=
'handleIt(item)'
class=
"tap"
>
选择
选择
...
@@ -107,9 +107,9 @@
...
@@ -107,9 +107,9 @@
</template>
</template>
<
script
>
<
script
>
import
eventBus
from
'@/common/util/eventBus.js'
export
default
{
export
default
{
async
onLoad
(){
async
onLoad
(){
this
.
ztMap
=
await
this
.
$match
({
this
.
ztMap
=
await
this
.
$match
({
url
:
'/xmgl/gcxm/init/zt'
url
:
'/xmgl/gcxm/init/zt'
...
@@ -118,12 +118,12 @@
...
@@ -118,12 +118,12 @@
// url:'device/sbdxj/dxjrw/init/zt'
// url:'device/sbdxj/dxjrw/init/zt'
// })
// })
this
.
dwxSearch
()
this
.
dwxSearch
()
eventBus
.
$on
(
'save'
,
()
=>
{
uni
.
$on
(
'save'
,
()
=>
{
this
.
dwxSearch
()
this
.
dwxSearch
()
})
})
},
},
onUnload
()
{
onUnload
()
{
eventBus
.
$off
(
'save'
)
uni
.
$off
(
'save'
)
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
/* 获取待点检任务 */
/* 获取待点检任务 */
apiGetList
()
{
apiGetList
()
{
this
.
$post
(
'crm/sjwh/query'
,
{
this
.
$post
(
'crm/sjwh/query'
,
{
...
this
.
queryParams
...
this
.
queryParams
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
total
=
res
.
data
.
total
||
0
this
.
total
=
res
.
data
.
total
||
0
...
@@ -165,8 +165,8 @@
...
@@ -165,8 +165,8 @@
},
},
/* 处理点检任务 */
/* 处理点检任务 */
handleIt
(
item
)
{
handleIt
(
item
)
{
eventBus
.
$emit
(
'xzsj'
,
item
)
uni
.
$emit
(
'xzsj'
,
item
)
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
});
});
...
...
pages/kqgl/gzrb/xzxm/index.vue
View file @
618f557e
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<u-input
class=
"ac-border search-input"
v-model=
"queryParams.xmmc"
></u-input>
<u-input
class=
"ac-border search-input"
v-model=
"queryParams.xmmc"
></u-input>
</u-form-item>
</u-form-item>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row>
<u-row>
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
</template>
</template>
<
script
>
<
script
>
import
eventBus
from
'@/common/util/eventBus.js'
export
default
{
export
default
{
async
onLoad
(){
async
onLoad
(){
this
.
ztMap
=
await
this
.
$match
({
this
.
ztMap
=
await
this
.
$match
({
...
@@ -140,12 +140,12 @@
...
@@ -140,12 +140,12 @@
// url:'device/sbdxj/dxjrw/init/zt'
// url:'device/sbdxj/dxjrw/init/zt'
// })
// })
this
.
dwxSearch
()
this
.
dwxSearch
()
eventBus
.
$on
(
'save'
,
()
=>
{
uni
.
$on
(
'save'
,
()
=>
{
this
.
dwxSearch
()
this
.
dwxSearch
()
})
})
},
},
onUnload
()
{
onUnload
()
{
eventBus
.
$off
(
'save'
)
uni
.
$off
(
'save'
)
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -176,7 +176,7 @@
...
@@ -176,7 +176,7 @@
/* 获取待点检任务 */
/* 获取待点检任务 */
apiGetList
()
{
apiGetList
()
{
this
.
$post
(
'xmgl/gcxm/query'
,
{
this
.
$post
(
'xmgl/gcxm/query'
,
{
...
this
.
queryParams
...
this
.
queryParams
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
total
=
res
.
data
.
total
||
0
this
.
total
=
res
.
data
.
total
||
0
...
@@ -187,8 +187,8 @@
...
@@ -187,8 +187,8 @@
},
},
/* 处理点检任务 */
/* 处理点检任务 */
handleIt
(
item
)
{
handleIt
(
item
)
{
eventBus
.
$emit
(
'xzxm'
,
item
)
uni
.
$emit
(
'xzxm'
,
item
)
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
});
});
...
...
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