Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
total-platform
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
物业总平台
total-platform
Commits
a5b5a426
提交
a5b5a426
authored
7月 18, 2023
作者:
何忠建
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
访问域名设置
上级
ff4b2de2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
9 行删除
+39
-9
validate.js
src/utils/validate.js
+6
-0
PropertyDetails.vue
src/views/settled/PropertyDetails.vue
+33
-9
没有找到文件。
src/utils/validate.js
浏览文件 @
a5b5a426
...
...
@@ -39,3 +39,9 @@ export function isURL (s) {
export
function
validateCreditCode
(
s
)
{
return
/^
[^
_IOZSVa-z
\W]{2}\d{6}[^
_IOZSVa-z
\W]{10}
$/g
.
test
(
s
)
}
/* 校验字母*/
export
function
alphanumeric
(
s
)
{
return
/^
[
a-zA-Z
]
+$/
.
test
(
s
)
}
src/views/settled/PropertyDetails.vue
浏览文件 @
a5b5a426
...
...
@@ -9,7 +9,7 @@
</div>
</div>
<j-form-container
:disabled=
"pageType=='detail'"
>
<j-form-container
:disabled=
"pageType=='detail'
|| pageType=='audit'
"
>
<a-form-model
ref=
"form"
:model=
"model"
:rules=
"validatorRules"
slot=
"detail"
>
<a-card
title=
"物业集团基本信息"
>
<a-row>
...
...
@@ -71,7 +71,8 @@
<a-col
:span=
"24"
>
<a-form-model-item
label=
"集团介绍"
:labelCol=
"
{ xs:{ span: 24 }, sm:{ span: 3 } }" :wrapperCol="wrapperCol"
prop="groupInfo">
<a-textarea
v-model=
"model.groupInfo"
placeholder=
"请输入集团介绍"
:maxLength=
"500"
:auto-size=
"
{ minRows: 3, maxRows: 5 }" />
<a-textarea
v-model=
"model.groupInfo"
placeholder=
"请输入集团介绍"
:maxLength=
"500"
:auto-size=
"
{ minRows: 3, maxRows: 5 }" />
</a-form-model-item>
</a-col>
</a-row>
...
...
@@ -117,6 +118,17 @@
<a-input
v-model=
"model.adminPassword"
placeholder=
"请输入管理员密码"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"12"
>
<a-form-model-item
label=
"访问域名前缀"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"accessAddress"
v-if=
"pageType=='add' || pageType=='edit'"
>
<a-input
v-model=
"model.accessAddress"
placeholder=
"请输入访问域名前缀"
addon-after=
".property.hjxbc.cn"
></a-input>
</a-form-model-item>
<a-form-model-item
label=
"访问域名"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"accessAddress"
:disabled=
"false"
v-else
>
<p
v-if=
"model.accessAddress"
>
{{
model
.
accessAddress
}}
.property.hjxbc.cn
</p>
</a-form-model-item>
</a-col>
</a-row>
</a-card>
<a-card
title=
"合同附件"
>
...
...
@@ -139,7 +151,7 @@ const mapZoom = [5, 8, 10, 12]
let
timer
=
null
import
{
getPropertyChargruleListApi
,
getPropertyDetailApi
,
auditPropertyApi
}
from
'@/api/api'
import
{
httpAction
,
getAction
}
from
'@/api/manage'
import
{
isMobile
,
validateCreditCode
}
from
'@/utils/validate'
import
{
isMobile
,
validateCreditCode
,
alphanumeric
}
from
'@/utils/validate'
export
default
{
name
:
'PropertySettledForm'
,
...
...
@@ -159,7 +171,13 @@ export default {
callback
(
'社会统一信用代码输入错误'
)
}
}
const
isAlphanumeric
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
&&
alphanumeric
(
value
))
{
callback
()
}
else
{
callback
(
'请输入带字母的域名前缀'
)
}
}
return
{
title
:
''
,
pageType
:
''
,
...
...
@@ -190,6 +208,7 @@ export default {
adminPassword
:
'123456'
,
longitude
:
''
,
latitude
:
''
,
accessAddress
:
''
,
},
labelCol
:
{
xs
:
{
span
:
24
},
...
...
@@ -219,6 +238,10 @@ export default {
chargingStandardId
:
[{
required
:
true
,
message
:
'请选择收费标准'
,
trigger
:
'change'
}],
adminLoginName
:
[{
required
:
true
,
message
:
'请输入管理员账号'
,
trigger
:
'blur'
}],
adminPassword
:
[{
required
:
true
,
message
:
'请输入管理员密码'
,
trigger
:
'blur'
}],
accessAddress
:
[
{
required
:
true
,
message
:
'请输入访问域名前缀'
,
trigger
:
'blur'
},
{
validator
:
isAlphanumeric
},
],
contractUrl
:
[{
required
:
true
,
message
:
'请上传合同附件'
,
trigger
:
'change'
}],
},
url
:
{
...
...
@@ -291,10 +314,11 @@ export default {
}
},
onCancel
()
{
this
.
closeCurrent
()
this
.
$store
.
dispatch
(
'tags/delView'
,
this
.
$route
.
path
)
this
.
$router
.
go
(
-
1
)
},
contactPhoneChange
(
e
)
{
if
(
!
this
.
model
.
adminLoginName
)
{
if
(
!
this
.
model
.
adminLoginName
)
{
this
.
model
.
adminLoginName
=
e
.
target
.
value
}
},
...
...
@@ -312,7 +336,7 @@ export default {
}).
then
((
res
)
=>
{
that
.
$message
.
success
(
'审核通过成功'
)
that
.
$emit
(
'ok'
)
this
.
closeCurrent
()
this
.
onCancel
()
})
}
else
if
(
type
==
2
)
{
return
auditPropertyApi
({
...
...
@@ -320,7 +344,7 @@ export default {
auditStatus
:
'refuse'
,
}).
then
((
res
)
=>
{
that
.
$message
.
success
(
'审核驳回成功'
)
this
.
closeCurrent
()
this
.
onCancel
()
})
}
},
...
...
@@ -435,7 +459,7 @@ export default {
if
(
res
.
success
)
{
that
.
$message
.
success
(
res
.
message
)
that
.
$emit
(
'ok'
)
this
.
closeCurrent
()
this
.
onCancel
()
}
else
{
that
.
$message
.
warning
(
res
.
message
)
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论