Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
0125a233
提交
0125a233
authored
11月 30, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
入驻,身份证反面识别提示优化,品牌form重置
上级
41bc6bb3
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
40 行增加
和
26 行删除
+40
-26
fillMainInf.vue
src/views/entry/fillMainInf.vue
+25
-12
brand.vue
src/views/system/shop/brand.vue
+15
-14
没有找到文件。
src/views/entry/fillMainInf.vue
浏览文件 @
0125a233
...
...
@@ -537,12 +537,13 @@
getIdcardImgInfoData
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
// 身份证 有效 XXXXXXXX日 => xx-xx-xx
let
endStr
=
res
.
data
.
words_result
[
'失效日期'
].
words
?
res
.
data
.
words_result
[
'失效日期'
].
words
:
''
;
if
(
res
.
data
.
words_result
[
'签发日期'
]
&&
res
.
data
.
words_result
[
'失效日期'
]
)
{
let
beginStr
=
res
.
data
.
words_result
[
'签发日期'
].
words
;
let
endStr
=
res
.
data
.
words_result
[
'失效日期'
].
words
;
if
(
endStr
==
'长期'
)
{
this
.
validityConcreteTime
=
[];
this
.
validityLongTermVal
=
true
;
}
else
{
let
beginStr
=
res
.
data
.
words_result
[
'签发日期'
].
words
?
res
.
data
.
words_result
[
'签发日期'
].
words
:
''
;
let
reg
=
/^
(\d{4})(\d{2})(\d{2})
$/
;
let
begin
=
beginStr
.
replace
(
reg
,
"$1-$2-$3"
);
let
end
=
endStr
.
replace
(
reg
,
"$1-$2-$3"
);
...
...
@@ -563,6 +564,18 @@
}
},
1000
)
}
}
else
{
this
.
isReadFailVisible
=
true
;
this
.
readTime
=
5
;
this
.
TIMER
=
setInterval
(()
=>
{
if
(
this
.
readTime
&&
0
<
this
.
readTime
<=
5
)
{
this
.
readTime
--
}
else
{
this
.
readTime
=
0
;
this
.
isReadFailVisible
=
false
;
}
},
1000
)
}
});
},
handleBackPictureCardPreview2
(
file
)
{
...
...
src/views/system/shop/brand.vue
浏览文件 @
0125a233
...
...
@@ -216,7 +216,7 @@
<el-row>
<el-col
:span=
"16"
:offset=
"3"
>
<el-form-item
label=
"商标注册有效期:"
prop=
"brand_auth_time"
v-if=
"brandForm.brand_type === 2"
>
<el-form-item
label=
"商标注册有效期:"
prop=
"brand_auth_time"
>
<el-date-picker
type=
"date"
placeholder=
"选择日期"
v-model=
"validityConcreteTime"
style=
"width: 300px;"
@
change=
"validityConcreteChange"
></el-date-picker>
<el-checkbox
v-model=
"validityLongTermVal"
style=
"padding-left:15px;"
...
...
@@ -237,6 +237,7 @@
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:clearable =
'false'
/>
</el-form-item>
</el-col>
...
...
@@ -537,11 +538,9 @@
addBrand
()
{
if
(
this
.
total
<=
20
)
{
this
.
isOpen
=
true
;
this
.
reset
(
'brandForm'
)
this
.
brandTitle
=
'新增品牌信息'
;
this
.
indexBrandId
=
0
;
this
.
brandForm
.
brand_auth
=
''
;
this
.
brandForm
.
brand_auth_time
=
''
;
this
.
reset
(
'brandForm'
)
}
else
{
this
.
$message
({
type
:
'warning'
,
message
:
'目前暂时只支持维护20个品牌数据'
});
}
...
...
@@ -555,7 +554,6 @@
getDetails
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
isOpen
=
true
;
this
.
reset
(
'brandForm'
)
this
.
brandTitle
=
'品牌信息详情'
;
this
.
brandForm
=
res
.
data
;
// 品牌审核状态
...
...
@@ -605,9 +603,7 @@
}
// 品牌授权期限
this
.
brandForm
.
brandAuthRangeTime
=
[]
this
.
brandForm
.
brandAuthRangeTime
.
push
(
this
.
timeFormatter
(
this
.
brandForm
.
brand_start_time
))
this
.
brandForm
.
brandAuthRangeTime
.
push
(
this
.
timeFormatter
(
this
.
brandForm
.
brand_end_time
))
this
.
$set
(
this
.
brandForm
,
'brandAuthRangeTime'
,[
this
.
timeFormatter
(
this
.
brandForm
.
brand_start_time
),
this
.
timeFormatter
(
this
.
brandForm
.
brand_end_time
)]);
// 品牌厂商授权 图片
let
factoryArr
=
[];
...
...
@@ -789,8 +785,8 @@
handleQuery
()
{
this
.
queryParams
.
page
=
1
;
this
.
getList
();
},
},
/** 商品注册有效期 具体时间 */
validityConcreteChange
()
{
if
(
this
.
validityConcreteTime
)
{
...
...
@@ -806,8 +802,15 @@
// 通用方法
/** 重置 编辑 表单*/
reset
(
formName
){
this
.
brandImgFileList
=
[];
this
.
certImgFileList
=
[];
this
.
factoryImgFileList
=
[];
this
.
shopImgFileList
=
[];
this
.
validityLongTermVal
=
false
;
this
.
validityConcreteTime
=
''
Object
.
assign
(
this
.
brandForm
,
this
.
$options
.
data
().
brandForm
)
debugger
if
(
this
.
$refs
[
formName
])
{
this
.
$refs
[
formName
].
resetFields
();
}
else
{
...
...
@@ -815,10 +818,8 @@
this
.
$refs
[
formName
].
resetFields
();
})
}
this
.
brandImgFileList
=
[];
this
.
certImgFileList
=
[];
this
.
factoryImgFileList
=
[];
this
.
shopImgFileList
=
[];
// console.log("brandForm:",this.brandForm);
},
/** 上传图片 数量限制 */
limit1
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论