Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
3dcec200
提交
3dcec200
authored
11月 11, 2025
作者:
吴佳伟
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 农机预约表单样式修改
上级
b30bf170
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
29 行增加
和
2 行删除
+29
-2
apply-dialog.vue
src/pages/nongjifuwu/components/apply-dialog.vue
+29
-2
没有找到文件。
src/pages/nongjifuwu/components/apply-dialog.vue
浏览文件 @
3dcec200
...
@@ -2,11 +2,19 @@
...
@@ -2,11 +2,19 @@
import
{
reactive
}
from
'vue'
import
{
reactive
}
from
'vue'
import
*
as
NongjifuwuAPI
from
'@/api/model/nongjifuwu'
import
*
as
NongjifuwuAPI
from
'@/api/model/nongjifuwu'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
areaOptions
,
getText
}
from
'@/utils/dict/area'
const
{
getUserInfo
}
=
useUserStore
()
const
{
getUserInfo
}
=
useUserStore
()
const
pageData
=
reactive
({
const
pageData
=
reactive
({
show
:
false
,
show
:
false
,
areaShow
:
{
time
:
false
,
classify
:
false
,
address
:
false
,
},
options
:
null
,
scopeText
:
null
,
content
:
''
,
content
:
''
,
form
:
{
form
:
{
machineId
:
''
,
machineId
:
''
,
...
@@ -65,6 +73,7 @@
...
@@ -65,6 +73,7 @@
}
}
function
open
(
params
)
{
function
open
(
params
)
{
reset
()
pageData
.
form
.
machineId
=
params
.
id
pageData
.
form
.
machineId
=
params
.
id
pageData
.
form
.
serviceType
=
params
.
serviceType
pageData
.
form
.
serviceType
=
params
.
serviceType
pageData
.
form
.
userId
=
getUserInfo
.
id
pageData
.
form
.
userId
=
getUserInfo
.
id
...
@@ -72,6 +81,7 @@
...
@@ -72,6 +81,7 @@
}
}
function
close
()
{
function
close
()
{
pageData
.
show
=
false
pageData
.
show
=
false
pageData
.
areaShow
.
address
=
false
}
}
function
reset
()
{
function
reset
()
{
pageData
.
form
=
{
pageData
.
form
=
{
...
@@ -86,6 +96,7 @@
...
@@ -86,6 +96,7 @@
phone
:
''
,
phone
:
''
,
demand
:
''
,
demand
:
''
,
}
}
pageData
.
scopeText
=
null
}
}
const
formRef
=
ref
()
const
formRef
=
ref
()
function
submit
()
{
function
submit
()
{
...
@@ -102,6 +113,14 @@
...
@@ -102,6 +113,14 @@
}
}
})
})
}
}
function
handleChangeAddress
(
e
)
{
pageData
.
form
.
scope
=
e
.
value
.
join
(
','
)
pageData
.
scopeText
=
getText
(
pageData
.
form
.
scope
,
' / '
)
pageData
.
areaShow
.
address
=
false
}
onShow
(()
=>
{
pageData
.
options
=
areaOptions
})
defineExpose
({
defineExpose
({
open
,
open
,
close
,
close
,
...
@@ -116,8 +135,8 @@
...
@@ -116,8 +135,8 @@
</view>
</view>
<view
class=
"text-left"
>
<view
class=
"text-left"
>
<fui-form
ref=
"formRef"
>
<fui-form
ref=
"formRef"
>
<fui-input
marginTop=
"30"
size=
"24"
placeholder=
"请填写手机号码"
v-model=
"pageData.form.phone"
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-input
marginTop=
"30"
size=
"24"
type=
"number"
maxlength=
"11"
placeholder=
"请填写手机号码"
v-model=
"pageData.form.phone"
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-input
marginTop=
"30"
size=
"24"
placeholder=
"请选择作业区域"
v-model=
"pageData.form.scope
"
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-input
marginTop=
"30"
size=
"24"
disabled
@
click=
"pageData.areaShow.address = true"
placeholder=
"请选择作业区域"
v-model=
"pageData.scopeText
"
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-input
marginTop=
"30"
size=
"24"
placeholder=
"请填写详细地址"
v-model=
"pageData.form.address"
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-input
marginTop=
"30"
size=
"24"
placeholder=
"请填写详细地址"
v-model=
"pageData.form.address"
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-input
marginTop=
"30"
size=
"24"
placeholder=
"请选择作业时间"
v-model=
"pageData.form.time"
@
click=
"dict.show.time = true"
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-input
marginTop=
"30"
size=
"24"
placeholder=
"请选择作业时间"
v-model=
"pageData.form.time"
@
click=
"dict.show.time = true"
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-textarea
v-model=
"pageData.form.demand"
:marginTop=
"30"
size=
"24"
placeholder=
"简要说明作业需求"
flexStart
required
placeholderStyle=
"margin-left: 10rpx;"
/>
<fui-textarea
v-model=
"pageData.form.demand"
:marginTop=
"30"
size=
"24"
placeholder=
"简要说明作业需求"
flexStart
required
placeholderStyle=
"margin-left: 10rpx;"
/>
...
@@ -128,6 +147,14 @@
...
@@ -128,6 +147,14 @@
</view>
</view>
</fui-dialog>
</fui-dialog>
<fui-date-picker
:show=
"dict.show.time"
type=
"3"
range
@
change=
"handleTimeChange"
@
cancel=
"handleTimeCancel"
/>
<fui-date-picker
:show=
"dict.show.time"
type=
"3"
range
@
change=
"handleTimeChange"
@
cancel=
"handleTimeCancel"
/>
<fui-picker
:show=
"pageData.areaShow.address"
:options=
"pageData.options"
:linkage=
"true"
:layer=
"3"
@
change=
"handleChangeAddress"
@
cancel=
"pageData.areaShow.address = false"
/>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论