Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
c8d0ab6e
提交
c8d0ab6e
编写于
12月 07, 2021
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release' into testing/3.23
上级
73ad95bc
c306d24a
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
604 行增加
和
284 行删除
+604
-284
educationApi.js
src/utils/education/educationApi.js
+11
-0
item-shield.vue
src/views/education/item-shield.vue
+120
-0
create-shop.vue
src/views/shop/create-shop.vue
+386
-271
shop-list.vue
src/views/shop/shop-list.vue
+87
-13
未找到文件。
src/utils/education/educationApi.js
浏览文件 @
c8d0ab6e
...
@@ -46,4 +46,15 @@ export const uploadPersonExcel = (data, projectId) => {
...
@@ -46,4 +46,15 @@ export const uploadPersonExcel = (data, projectId) => {
description
:
'上传excel文件'
,
description
:
'上传excel文件'
,
})
})
// })
// })
}
export
const
uploadShieldExcel
=
(
data
,
projectId
)
=>
{
return
fetch
({
headers
:
{
token
:
localStorage
.
getItem
(
'storageToken'
),
},
url
:
getBaseUrl
(
'aggregate/black/setPeopleBlackStatus/batch/'
+
projectId
),
method
:
'post'
,
data
:
data
,
description
:
'上传excel文件'
,
})
}
}
\ No newline at end of file
src/views/education/item-shield.vue
浏览文件 @
c8d0ab6e
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
</el-col>
</el-col>
<el-col
:span=
"6"
style=
"padding:0;text-align:right;padding-right:10px;"
>
<el-col
:span=
"6"
style=
"padding:0;text-align:right;padding-right:10px;"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"searchList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"searchList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"importOrder()"
v-if=
"shieldType == 1"
>
批量导入
</el-button>
</el-col>
</el-col>
</el-form>
</el-form>
</el-row>
</el-row>
...
@@ -103,12 +104,60 @@
...
@@ -103,12 +104,60 @@
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
<!-- 导入屏蔽人员名单 -->
<el-dialog
class=
"exportlogistics-dialog"
title=
"批量导入"
:visible=
"isShowImport"
@
close=
"isShowImport = false"
width=
"600px"
>
<el-form
label-width=
"120px"
>
<el-form-item
label=
"导入文档:"
>
<el-upload
class=
"upload-excel"
action=
"#"
accept=
".xlsx"
multiple
:limit=
"1"
:show-file-list=
"true"
:before-upload=
"uploadfile"
>
<div
class=
"upload-container"
>
<el-input
class=
"file-name"
v-model=
"fileData.fileName"
size=
"mini"
readonly
></el-input
>
<el-button
type=
"primary"
size=
"mini"
>
选择文件
</el-button>
</div>
</el-upload>
</el-form-item>
<el-form-item
label=
"模板:"
>
<a
class=
"import-url"
:href=
"logisticsUrl"
style=
"color: #449284"
>
批量导入模板.xlxs
</a>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelImport"
>
取消
</el-button>
<el-button
size=
"small"
:loading=
"isLoading"
type=
"primary"
@
click=
"confirmImport"
>
确认
</el-button
>
</div>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
BreadCrumb
from
"../../components/breadcrumb.vue"
;
import
BreadCrumb
from
"../../components/breadcrumb.vue"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
uploadShieldExcel
}
from
"@/utils/education/educationApi"
;
import
*
as
commonUtil
from
"../../utils/utils"
;
import
*
as
commonUtil
from
"../../utils/utils"
;
import
*
as
operationData
from
"../../utils/operation"
;
import
*
as
operationData
from
"../../utils/operation"
;
let
vm
=
null
;
let
vm
=
null
;
...
@@ -118,6 +167,14 @@ export default {
...
@@ -118,6 +167,14 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isShowImport
:
false
,
isLoading
:
false
,
logisticsUrl
:
'https://files.yunqueyi.com/template/portal_template.xlsx'
,
fileData
:
{
ext
:
''
,
file
:
""
,
fileName
:
""
,
},
curmbFirst
:
"教培项目"
,
curmbFirst
:
"教培项目"
,
curmbSecond
:
"屏蔽"
,
curmbSecond
:
"屏蔽"
,
projectId
:
""
,
projectId
:
""
,
...
@@ -232,6 +289,69 @@ export default {
...
@@ -232,6 +289,69 @@ export default {
// }
// }
// },
// },
methods
:
{
methods
:
{
// 批量导入
importOrder
()
{
this
.
isShowImport
=
true
;
},
uploadfile
(
file
)
{
console
.
log
(
file
,
'导入file'
);
let
_this
=
this
;
let
arr
=
file
.
name
.
split
(
"."
);
let
ext
=
"."
+
arr
[
1
];
let
name
=
file
.
name
;
let
reader
=
new
FileReader
();
reader
.
onload
=
function
(
e
)
{
_this
.
fileData
.
fileName
=
name
;
_this
.
fileData
.
file
=
e
.
target
.
result
.
substr
(
e
.
target
.
result
.
indexOf
(
"base64,"
)
+
7
);
_this
.
fileData
.
ext
=
ext
;
console
.
log
(
"fileJson"
,
_this
.
fileData
);
};
reader
.
readAsDataURL
(
file
);
},
// 确认导入
confirmImport
()
{
this
.
isLoading
=
true
;
let
parmas
=
{
base64
:
this
.
fileData
,
type
:
''
}
uploadShieldExcel
(
parmas
,
this
.
projectId
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
data
==
''
)
{
this
.
isLoading
=
false
;
this
.
isShowImport
=
false
;
this
.
$message
({
message
:
'导入成功'
,
type
:
'success'
});
}
else
{
let
a
=
document
.
createElement
(
'a'
);
let
href
=
res
.
data
;
a
.
setAttribute
(
'href'
,
href
);
a
.
click
();
this
.
isLoading
=
false
;
this
.
$message
.
error
(
'导入失败'
);
}
}
else
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
}
}).
catch
(
error
=>
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
error
.
message
);
})
},
// 取消导入
cancelImport
()
{
this
.
fileData
=
{
file
:
""
,
fileName
:
""
,
};
this
.
isShowImport
=
false
;
},
handleChange
(
value
)
{
handleChange
(
value
)
{
let
areaId
=
"000"
;
let
areaId
=
"000"
;
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
)
{
...
...
src/views/shop/create-shop.vue
浏览文件 @
c8d0ab6e
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
></el-input>
></el-input>
<span
class=
"word-num"
<span
class=
"word-num"
>
{{
>
{{
formData
.
storeDescription
.
replace
(
/
\s
+/g
,
""
).
length
formData
.
storeDescription
?
formData
.
storeDescription
.
replace
(
/
\s
+/g
,
""
).
length
:
''
}}
/400
</span
}}
/400
</span
>
>
</el-col>
</el-col>
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
v-if=
"formData.storeType != 3"
prop=
"storeType"
>
<el-form-item>
<el-button
class=
"ml"
size=
"small"
type=
"primary"
@
click=
"nextStepFirst('second')"
>
下一步
</el-button>
<el-button
class=
"ml"
size=
"small"
type=
"primary"
@
click=
"nextStepFirst('second')"
>
下一步
</el-button>
</el-form-item>
</el-form-item>
</el-tab-pane>
</el-tab-pane>
...
@@ -320,17 +320,17 @@
...
@@ -320,17 +320,17 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-form-item
<!--
<el-form-item-->
label=
"医疗资质"
<!-- label="医疗资质"-->
prop=
"storeQualityUrl"
<!-- prop="storeQualityUrl"-->
>
<!-- >--
>
<el-input
<!--
<el-input-->
size=
"small"
<!-- size="small"-->
v-model=
"formData.storeQualityUrl"
<!-- v-model="formData.storeQualityUrl"-->
placeholder=
"请填写URL,仅对批发商品生效"
<!-- placeholder="请填写URL,仅对批发商品生效"-->
style=
"width: 35%"
<!-- style="width: 35%"-->
></el-input
>
<!-- >
</el-input>
--
>
</el-form-item
>
<!--
</el-form-item>
--
>
</div>
</div>
</div>
</div>
<el-form-item
<el-form-item
...
@@ -344,7 +344,6 @@
...
@@ -344,7 +344,6 @@
placeholder=
"请选择企业类型类型"
placeholder=
"请选择企业类型类型"
size=
"small"
size=
"small"
clearable
clearable
:disabled=
"isDisabled"
style=
"width: 35%"
style=
"width: 35%"
>
>
<el-option
<el-option
...
@@ -392,8 +391,8 @@
...
@@ -392,8 +391,8 @@
prop=
"certifyReq.bizScope"
prop=
"certifyReq.bizScope"
>
>
<el-cascader
<el-cascader
v-model=
"bizScopeCasValue"
ref=
"cascaderBizScope"
ref=
"cascaderBizScope"
v-model=
"formData.certifyReq.bizScope"
style=
"width: 360px"
style=
"width: 360px"
size=
"small"
size=
"small"
:options=
"orgScopeLIST"
:options=
"orgScopeLIST"
...
@@ -411,7 +410,7 @@
...
@@ -411,7 +410,7 @@
</p>
</p>
<div>
<div>
<div>
<div>
<el-form-item
prop=
"imgUrlC1"
>
<el-form-item
prop=
"imgUrlC1"
ref=
"imgUrlC1"
>
<el-upload
<el-upload
v-model=
"formData.imgUrlC1"
v-model=
"formData.imgUrlC1"
:disabled=
"Boolean(formData.imgUrlC1)"
:disabled=
"Boolean(formData.imgUrlC1)"
...
@@ -491,6 +490,7 @@
...
@@ -491,6 +490,7 @@
<div
v-if=
"formData.storeType == 1"
>
<div
v-if=
"formData.storeType == 1"
>
<div>
委托人身份证
</div>
<div>
委托人身份证
</div>
<div
class=
"flex-wrap"
>
<div
class=
"flex-wrap"
>
<el-form-item
prop=
"imgUrlC4"
ref=
"fIdCard"
>
<el-upload
<el-upload
v-model=
"formData.imgUrlC4"
v-model=
"formData.imgUrlC4"
:disabled=
"Boolean(formData.imgUrlC4)"
:disabled=
"Boolean(formData.imgUrlC4)"
...
@@ -520,6 +520,8 @@
...
@@ -520,6 +520,8 @@
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
</el-upload>
</el-upload>
</el-form-item>
<el-form-item
prop=
"imgUrlC5"
ref=
"fIdCardBack"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlC5)"
:disabled=
"Boolean(formData.imgUrlC5)"
v-model=
"formData.imgUrlC5"
v-model=
"formData.imgUrlC5"
...
@@ -549,6 +551,7 @@
...
@@ -549,6 +551,7 @@
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
</el-upload>
</el-upload>
</el-form-item>
</div>
</div>
<div
class=
"img-data"
>
<div
class=
"img-data"
>
<el-form-item
<el-form-item
...
@@ -591,42 +594,44 @@
...
@@ -591,42 +594,44 @@
<div
v-if=
"formData.certifyReq.certType == 2|| formData.storeType == 2 "
class=
"flex-upload"
>
<div
v-if=
"formData.certifyReq.certType == 2|| formData.storeType == 2 "
class=
"flex-upload"
>
<p
v-if=
"certifyValidDtoList(5)"
class=
"red"
>
{{
certifyValidDtoList
(
5
)
}}
</p>
<p
v-if=
"certifyValidDtoList(5)"
class=
"red"
>
{{
certifyValidDtoList
(
5
)
}}
</p>
<div>
委托书
</div>
<div>
委托书
</div>
<el-form-item
prop=
"imgUrlP5"
ref=
"pIdCardBack"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlP
7
)"
:disabled=
"Boolean(formData.imgUrlP
5
)"
v-model=
"formData.imgUrlP
7
"
v-model=
"formData.imgUrlP
5
"
class=
"bg-uploader"
class=
"bg-uploader"
action=
"#"
action=
"#"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
7
')}"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
5
')}"
>
>
<el-image
<el-image
class=
"bg-img"
class=
"bg-img"
v-if=
"formData.imgUrlP
7
"
v-if=
"formData.imgUrlP
5
"
:src=
"formData.imgUrlP
7
"
:src=
"formData.imgUrlP
5
"
@
mouseover
.
stop=
"imgMouseOverP
7
= true"
@
mouseover
.
stop=
"imgMouseOverP
5
= true"
:preview-src-list=
"[formData.imgUrlP
7
]"
>
:preview-src-list=
"[formData.imgUrlP
5
]"
>
</el-image>
</el-image>
<img
<img
v-if=
"!formData.imgUrlP
7
"
v-if=
"!formData.imgUrlP
5
"
class=
"bg-img"
class=
"bg-img"
src=
"../../assets/image/small.png"
src=
"../../assets/image/small.png"
/>
/>
<div
<div
class=
"img-delete"
class=
"img-delete"
v-show=
"imgMouseOverP
7
"
v-show=
"imgMouseOverP
5
"
@
click
.
stop=
"deleteImg('imgUrlP
7
')"
@
click
.
stop=
"deleteImg('imgUrlP
5
')"
@
mouseout
.
stop=
"imgMouseOverP
7
= false"
@
mouseout
.
stop=
"imgMouseOverP
5
= false"
>
>
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
</el-upload>
</el-upload>
</el-form-item>
</div>
</div>
<div
v-if=
"formData.storeType == 1 && formData.certifyReq.certType === 1"
>
<div
v-if=
"formData.storeType == 1 && formData.certifyReq.certType === 1"
>
<p
v-if=
"certifyValidDtoList(6)"
class=
"red"
>
{{
certifyValidDtoList
(
6
)
}}
</p>
<p
v-if=
"certifyValidDtoList(6)"
class=
"red"
>
{{
certifyValidDtoList
(
6
)
}}
</p>
<div>
法人身份证
</div>
<div>
法人身份证
</div>
<div
class=
"flex-wrap"
>
<div
class=
"flex-wrap"
>
<el-form-item
prop=
"imgUrlC2"
>
<el-form-item
prop=
"imgUrlC2"
ref=
"idCard"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlC2)"
:disabled=
"Boolean(formData.imgUrlC2)"
v-model=
"formData.imgUrlC2"
v-model=
"formData.imgUrlC2"
...
@@ -658,7 +663,7 @@
...
@@ -658,7 +663,7 @@
<div>
身份证正面
</div>
<div>
身份证正面
</div>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"imgUrlC3"
>
<el-form-item
prop=
"imgUrlC3"
ref=
"idCardBack"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlC3)"
:disabled=
"Boolean(formData.imgUrlC3)"
v-model=
"formData.imgUrlC3"
v-model=
"formData.imgUrlC3"
...
@@ -690,6 +695,9 @@
...
@@ -690,6 +695,9 @@
<div>
身份证反面
</div>
<div>
身份证反面
</div>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item>
<div
v-show=
"idCardError"
style=
"color:#F56C6C"
>
身份证内容识别失败,请手动输入
</div>
</el-form-item>
</div>
</div>
<div
class=
"img-data"
>
<div
class=
"img-data"
>
...
@@ -733,7 +741,7 @@
...
@@ -733,7 +741,7 @@
<p
v-if=
"certifyValidDtoList(6)"
class=
"red"
>
{{
certifyValidDtoList
(
6
)
}}
</p>
<p
v-if=
"certifyValidDtoList(6)"
class=
"red"
>
{{
certifyValidDtoList
(
6
)
}}
</p>
<div>
法人身份证
</div>
<div>
法人身份证
</div>
<div
class=
"flex-wrap"
>
<div
class=
"flex-wrap"
>
<el-form-item>
<el-form-item
ref=
"idCard"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlC2)"
:disabled=
"Boolean(formData.imgUrlC2)"
v-model=
"formData.imgUrlC2"
v-model=
"formData.imgUrlC2"
...
@@ -765,7 +773,7 @@
...
@@ -765,7 +773,7 @@
<div>
身份证正面
</div>
<div>
身份证正面
</div>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item
ref=
"idCardBack"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlC3)"
:disabled=
"Boolean(formData.imgUrlC3)"
v-model=
"formData.imgUrlC3"
v-model=
"formData.imgUrlC3"
...
@@ -797,6 +805,9 @@
...
@@ -797,6 +805,9 @@
<div>
身份证反面
</div>
<div>
身份证反面
</div>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item>
<div
v-show=
"idCardError"
style=
"color:#F56C6C"
>
身份证内容识别失败,请手动输入
</div>
</el-form-item>
</div>
</div>
<div
class=
"img-data"
>
<div
class=
"img-data"
>
...
@@ -840,32 +851,32 @@
...
@@ -840,32 +851,32 @@
<div
v-if=
"controlLicense.includes('1') || formData.storeType == 2"
>
<div
v-if=
"controlLicense.includes('1') || formData.storeType == 2"
>
<p
v-if=
"certifyValidDtoList(7)"
class=
"red"
>
{{
certifyValidDtoList
(
7
)
}}
</p>
<p
v-if=
"certifyValidDtoList(7)"
class=
"red"
>
{{
certifyValidDtoList
(
7
)
}}
</p>
<p
class=
"tips"
>
药品经营许可证
</p>
<p
class=
"tips"
>
药品经营许可证
</p>
<el-form-item
prop=
"imgUrlP
1
"
>
<el-form-item
prop=
"imgUrlP
7
"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlP
1
)"
:disabled=
"Boolean(formData.imgUrlP
7
)"
v-model=
"formData.imgUrlP
1
"
v-model=
"formData.imgUrlP
7
"
class=
"bg-uploader"
class=
"bg-uploader"
action=
"#"
action=
"#"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
1
')}"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
7
')}"
>
>
<el-image
<el-image
class=
"bg-img"
class=
"bg-img"
v-if=
"formData.imgUrlP
1
"
v-if=
"formData.imgUrlP
7
"
:src=
"formData.imgUrlP
1
"
:src=
"formData.imgUrlP
7
"
@
mouseover
.
stop=
"imgMouseOverP
1
= true"
@
mouseover
.
stop=
"imgMouseOverP
7
= true"
:preview-src-list=
"[formData.imgUrlP
1
]"
>
:preview-src-list=
"[formData.imgUrlP
7
]"
>
</el-image>
</el-image>
<img
<img
v-if=
"!formData.imgUrlP
1
"
v-if=
"!formData.imgUrlP
7
"
class=
"bg-img"
class=
"bg-img"
src=
"../../assets/image/small.png"
src=
"../../assets/image/small.png"
/>
/>
<div
<div
class=
"img-delete"
class=
"img-delete"
v-show=
"imgMouseOverP
1
"
v-show=
"imgMouseOverP
7
"
@
click
.
stop=
"deleteImg('imgUrlP
1
')"
@
click
.
stop=
"deleteImg('imgUrlP
7
')"
@
mouseout
.
stop=
"imgMouseOverP
1
= false"
@
mouseout
.
stop=
"imgMouseOverP
7
= false"
>
>
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
...
@@ -875,60 +886,11 @@
...
@@ -875,60 +886,11 @@
v-if=
"formData.storeType == 1"
v-if=
"formData.storeType == 1"
label=
"有效日期"
label=
"有效日期"
label-width=
"100px"
label-width=
"100px"
prop=
"imgUrlP
1
Date"
prop=
"imgUrlP
7
Date"
>
>
<el-date-picker
<el-date-picker
v-model=
"formData.imgUrlP1Date"
v-model=
"formData.imgUrlP7Date"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP1')}"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP7')}"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</el-form-item>
</div>
<div
v-if=
"controlLicense.includes('1')"
>
<p
v-if=
"certifyValidDtoList(8)"
class=
"red"
>
{{
certifyValidDtoList
(
8
)
}}
</p>
<p
class=
"tips"
>
药品经营质量管理规范认证证书
</p>
<el-form-item
prop=
"imgUrlP2"
>
<el-upload
:disabled=
"Boolean(formData.imgUrlP2)"
v-model=
"formData.imgUrlP2"
class=
"bg-uploader"
action=
"#"
:show-file-list=
"false"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP2')}"
>
<el-image
class=
"bg-img"
v-if=
"formData.imgUrlP2"
:src=
"formData.imgUrlP2"
@
mouseover
.
stop=
"imgMouseOverP2 = true"
:preview-src-list=
"[formData.imgUrlP2]"
>
</el-image>
<img
v-if=
"!formData.imgUrlP2"
class=
"bg-img"
src=
"../../assets/image/small.png"
/>
<div
class=
"img-delete"
v-show=
"imgMouseOverP2"
@
click
.
stop=
"deleteImg('imgUrlP2')"
@
mouseout
.
stop=
"imgMouseOverP2 = false"
>
<i
class=
"el-icon-delete"
></i>
</div>
</el-upload>
</el-form-item>
<el-form-item
label=
"有效日期"
label-width=
"100px"
prop=
"imgUrlP2Date"
>
<el-date-picker
v-model=
"formData.imgUrlP2Date"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP2')}"
type="daterange"
type="daterange"
range-separator="至"
range-separator="至"
start-placeholder="开始日期"
start-placeholder="开始日期"
...
@@ -936,35 +898,84 @@
...
@@ -936,35 +898,84 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</div>
</div>
<!--
<div
v-if=
"controlLicense.includes('1')"
>
-->
<!--
<p
v-if=
"certifyValidDtoList(8)"
class=
"red"
>
{{
certifyValidDtoList
(
8
)
}}
</p>
-->
<!--
<p
class=
"tips"
>
药品经营质量管理规范认证证书
</p>
-->
<!--
<el-form-item
prop=
"imgUrlP8"
>
-->
<!--
<el-upload-->
<!-- :disabled="Boolean(formData.imgUrlP8)"-->
<!-- v-model="formData.imgUrlP8"-->
<!-- class="bg-uploader"-->
<!-- action="#"-->
<!-- :show-file-list="false"-->
<!-- :before-upload="(file) =>
{this.beforeUploadProve(file, 'imgUrlP8')}"-->
<!-- >-->
<!--
<el-image-->
<!-- class="bg-img"-->
<!-- v-if="formData.imgUrlP8"-->
<!-- :src="formData.imgUrlP8"-->
<!-- @mouseover.stop="imgMouseOverP8 = true"-->
<!-- :preview-src-list="[formData.imgUrlP8]">-->
<!--
</el-image>
-->
<!--
<img-->
<!-- v-if="!formData.imgUrlP8"-->
<!-- class="bg-img"-->
<!-- src="../../assets/image/small.png"-->
<!-- />-->
<!--
<div-->
<!-- class="img-delete"-->
<!-- v-show="imgMouseOverP8"-->
<!-- @click.stop="deleteImg('imgUrlP8')"-->
<!-- @mouseout.stop="imgMouseOverP8 = false"-->
<!-- >-->
<!--
<i
class=
"el-icon-delete"
></i>
-->
<!--
</div>
-->
<!--
</el-upload>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item-->
<!-- label="有效日期"-->
<!-- label-width="100px"-->
<!-- prop="imgUrlP8Date"-->
<!-- >-->
<!--
<el-date-picker-->
<!-- v-model="formData.imgUrlP8Date"-->
<!-- @change="(v) =>
{this.orgDate(v, 'imgUrlP8')}"-->
<!-- type="daterange"-->
<!-- range-separator="至"-->
<!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期">-->
<!--
</el-date-picker>
-->
<!--
</el-form-item>
-->
<!--
</div>
-->
<div
v-if=
"controlLicense.includes('3')"
>
<div
v-if=
"controlLicense.includes('3')"
>
<p
v-if=
"certifyValidDtoList(9)"
class=
"red"
>
{{
certifyValidDtoList
(
9
)
}}
</p>
<p
v-if=
"certifyValidDtoList(9)"
class=
"red"
>
{{
certifyValidDtoList
(
9
)
}}
</p>
<p
class=
"tips"
>
食品经营(流通)许可证
</p>
<p
class=
"tips"
>
食品经营(流通)许可证
</p>
<el-form-item
prop=
"imgUrlP
3
"
>
<el-form-item
prop=
"imgUrlP
9
"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlP
3
)"
:disabled=
"Boolean(formData.imgUrlP
9
)"
v-model=
"formData.imgUrlP
3
"
v-model=
"formData.imgUrlP
9
"
class=
"bg-uploader"
class=
"bg-uploader"
action=
"#"
action=
"#"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
3
')}"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
9
')}"
>
>
<el-image
<el-image
class=
"bg-img"
class=
"bg-img"
v-if=
"formData.imgUrlP
3
"
v-if=
"formData.imgUrlP
9
"
:src=
"formData.imgUrlP
3
"
:src=
"formData.imgUrlP
9
"
@
mouseover
.
stop=
"imgMouseOverP
3
= true"
@
mouseover
.
stop=
"imgMouseOverP
9
= true"
:preview-src-list=
"[formData.imgUrlP
3
]"
>
:preview-src-list=
"[formData.imgUrlP
9
]"
>
</el-image>
</el-image>
<img
<img
v-if=
"!formData.imgUrlP
3
"
v-if=
"!formData.imgUrlP
9
"
class=
"bg-img"
class=
"bg-img"
src=
"../../assets/image/small.png"
src=
"../../assets/image/small.png"
/>
/>
<div
<div
class=
"img-delete"
class=
"img-delete"
v-show=
"imgMouseOverP
3
"
v-show=
"imgMouseOverP
9
"
@
click
.
stop=
"deleteImg('imgUrlP
3
')"
@
click
.
stop=
"deleteImg('imgUrlP
9
')"
@
mouseout
.
stop=
"imgMouseOverP
3
= false"
@
mouseout
.
stop=
"imgMouseOverP
9
= false"
>
>
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
...
@@ -973,11 +984,11 @@
...
@@ -973,11 +984,11 @@
<el-form-item
<el-form-item
label=
"有效日期"
label=
"有效日期"
label-width=
"100px"
label-width=
"100px"
prop=
"imgUrlP
3
Date"
prop=
"imgUrlP
9
Date"
>
>
<el-date-picker
<el-date-picker
v-model=
"formData.imgUrlP
3
Date"
v-model=
"formData.imgUrlP
9
Date"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP
3
')}"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP
9
')}"
type="daterange"
type="daterange"
range-separator="至"
range-separator="至"
start-placeholder="开始日期"
start-placeholder="开始日期"
...
@@ -985,35 +996,35 @@
...
@@ -985,35 +996,35 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</div>
</div>
<div
v-if=
"controlLicense.includes('2')"
>
<div
v-if=
"controlLicense.includes(
3) && controlLicense.includes(
'2')"
>
<p
v-if=
"certifyValidDtoList(10)"
class=
"red"
>
{{
certifyValidDtoList
(
10
)
}}
</p>
<p
v-if=
"certifyValidDtoList(10)"
class=
"red"
>
{{
certifyValidDtoList
(
10
)
}}
</p>
<p
class=
"tips"
>
医疗器械经营许可证
</p>
<p
class=
"tips"
>
医疗器械经营许可证
</p>
<el-form-item
prop=
"imgUrlP
4
"
>
<el-form-item
prop=
"imgUrlP
10
"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlP
4
)"
:disabled=
"Boolean(formData.imgUrlP
10
)"
v-model=
"formData.imgUrlP
4
"
v-model=
"formData.imgUrlP
10
"
class=
"bg-uploader"
class=
"bg-uploader"
action=
"#"
action=
"#"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
4
')}"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
10
')}"
>
>
<el-image
<el-image
class=
"bg-img"
class=
"bg-img"
v-if=
"formData.imgUrlP
4
"
v-if=
"formData.imgUrlP
10
"
:src=
"formData.imgUrlP
4
"
:src=
"formData.imgUrlP
10
"
@
mouseover
.
stop=
"imgMouseOverP
4
= true"
@
mouseover
.
stop=
"imgMouseOverP
10
= true"
:preview-src-list=
"[formData.imgUrlP
4
]"
>
:preview-src-list=
"[formData.imgUrlP
10
]"
>
</el-image>
</el-image>
<img
<img
v-if=
"!formData.imgUrlP
4
"
v-if=
"!formData.imgUrlP
10
"
class=
"bg-img"
class=
"bg-img"
src=
"../../assets/image/small.png"
src=
"../../assets/image/small.png"
/>
/>
<div
<div
class=
"img-delete"
class=
"img-delete"
v-show=
"imgMouseOverP
4
"
v-show=
"imgMouseOverP
10
"
@
click
.
stop=
"deleteImg('imgUrlP
4
')"
@
click
.
stop=
"deleteImg('imgUrlP
10
')"
@
mouseout
.
stop=
"imgMouseOverP
4
= false"
@
mouseout
.
stop=
"imgMouseOverP
10
= false"
>
>
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
...
@@ -1022,11 +1033,11 @@
...
@@ -1022,11 +1033,11 @@
<el-form-item
<el-form-item
label=
"有效日期"
label=
"有效日期"
label-width=
"100px"
label-width=
"100px"
prop=
"imgUrlP
4
Date"
prop=
"imgUrlP
10
Date"
>
>
<el-date-picker
<el-date-picker
v-model=
"formData.imgUrlP
4
Date"
v-model=
"formData.imgUrlP
10
Date"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP
4
')}"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP
10
')}"
type="daterange"
type="daterange"
range-separator="至"
range-separator="至"
start-placeholder="开始日期"
start-placeholder="开始日期"
...
@@ -1036,32 +1047,32 @@
...
@@ -1036,32 +1047,32 @@
</div>
</div>
<div
v-if=
"controlLicense.includes('2')"
>
<div
v-if=
"controlLicense.includes('2')"
>
<p
class=
"tips"
>
医疗器械网络销售备案
</p>
<p
class=
"tips"
>
医疗器械网络销售备案
</p>
<el-form-item
prop=
"imgUrlP
5
"
>
<el-form-item
prop=
"imgUrlP
13
"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlP
5
)"
:disabled=
"Boolean(formData.imgUrlP
13
)"
v-model=
"formData.imgUrlP
5
"
v-model=
"formData.imgUrlP
13
"
class=
"bg-uploader"
class=
"bg-uploader"
action=
"#"
action=
"#"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
5
')}"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
13
')}"
>
>
<el-image
<el-image
class=
"bg-img"
class=
"bg-img"
v-if=
"formData.imgUrlP
5
"
v-if=
"formData.imgUrlP
13
"
:src=
"formData.imgUrlP
5
"
:src=
"formData.imgUrlP
13
"
@
mouseover
.
stop=
"imgMouseOverP
5
= true"
@
mouseover
.
stop=
"imgMouseOverP
13
= true"
:preview-src-list=
"[formData.imgUrlP
5
]"
>
:preview-src-list=
"[formData.imgUrlP
13
]"
>
</el-image>
</el-image>
<img
<img
v-if=
"!formData.imgUrlP
5
"
v-if=
"!formData.imgUrlP
13
"
class=
"bg-img"
class=
"bg-img"
src=
"../../assets/image/small.png"
src=
"../../assets/image/small.png"
/>
/>
<div
<div
class=
"img-delete"
class=
"img-delete"
v-show=
"imgMouseOverP
5
"
v-show=
"imgMouseOverP
13
"
@
click
.
stop=
"deleteImg('imgUrlP
5
')"
@
click
.
stop=
"deleteImg('imgUrlP
13
')"
@
mouseout
.
stop=
"imgMouseOverP
5
= false"
@
mouseout
.
stop=
"imgMouseOverP
13
= false"
>
>
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
...
@@ -1070,11 +1081,11 @@
...
@@ -1070,11 +1081,11 @@
<el-form-item
<el-form-item
label=
"有效日期"
label=
"有效日期"
label-width=
"100px"
label-width=
"100px"
prop=
"imgUrlP
5
Date"
prop=
"imgUrlP
13
Date"
>
>
<el-date-picker
<el-date-picker
v-model=
"formData.imgUrlP
5
Date"
v-model=
"formData.imgUrlP
13
Date"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP
5
')}"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP
13
')}"
type="daterange"
type="daterange"
range-separator="至"
range-separator="至"
start-placeholder="开始日期"
start-placeholder="开始日期"
...
@@ -1082,35 +1093,35 @@
...
@@ -1082,35 +1093,35 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</div>
</div>
<div
v-if=
"controlLicense.includes('2')"
>
<div
v-if=
"controlLicense.includes(
2) && controlLicense.includes(
'2')"
>
<p
v-if=
"certifyValidDtoList(11)"
class=
"red"
>
{{
certifyValidDtoList
(
11
)
}}
</p>
<p
v-if=
"certifyValidDtoList(11)"
class=
"red"
>
{{
certifyValidDtoList
(
11
)
}}
</p>
<p
class=
"tips"
>
二类医疗器械经营备案凭证
</p>
<p
class=
"tips"
>
二类医疗器械经营备案凭证
</p>
<el-form-item
prop=
"imgUrlP
6
"
>
<el-form-item
prop=
"imgUrlP
11
"
>
<el-upload
<el-upload
:disabled=
"Boolean(formData.imgUrlP
6
)"
:disabled=
"Boolean(formData.imgUrlP
11
)"
v-model=
"formData.imgUrlP
6
"
v-model=
"formData.imgUrlP
11
"
class=
"bg-uploader"
class=
"bg-uploader"
action=
"#"
action=
"#"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
6
')}"
:before-upload=
"(file) =>
{this.beforeUploadProve(file, 'imgUrlP
11
')}"
>
>
<el-image
<el-image
class=
"bg-img"
class=
"bg-img"
v-if=
"formData.imgUrlP
6
"
v-if=
"formData.imgUrlP
11
"
:src=
"formData.imgUrlP
6
"
:src=
"formData.imgUrlP
11
"
@
mouseover
.
stop=
"imgMouseOverP
6
= true"
@
mouseover
.
stop=
"imgMouseOverP
11
= true"
:preview-src-list=
"[formData.imgUrlP
6
]"
>
:preview-src-list=
"[formData.imgUrlP
11
]"
>
</el-image>
</el-image>
<img
<img
v-if=
"!formData.imgUrlP
6
"
v-if=
"!formData.imgUrlP
11
"
class=
"bg-img"
class=
"bg-img"
src=
"../../assets/image/small.png"
src=
"../../assets/image/small.png"
/>
/>
<div
<div
class=
"img-delete"
class=
"img-delete"
v-show=
"imgMouseOverP
6
"
v-show=
"imgMouseOverP
11
"
@
click
.
stop=
"deleteImg('imgUrlP
6
')"
@
click
.
stop=
"deleteImg('imgUrlP
11
')"
@
mouseout
.
stop=
"imgMouseOverP
6
= false"
@
mouseout
.
stop=
"imgMouseOverP
11
= false"
>
>
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
...
@@ -1119,11 +1130,11 @@
...
@@ -1119,11 +1130,11 @@
<el-form-item
<el-form-item
label=
"有效日期"
label=
"有效日期"
label-width=
"100px"
label-width=
"100px"
prop=
"imgUrlP
6
Date"
prop=
"imgUrlP
11
Date"
>
>
<el-date-picker
<el-date-picker
v-model=
"formData.imgUrlP
6
Date"
v-model=
"formData.imgUrlP
11
Date"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP
6
')}"
@
change=
"(v) =>
{this.orgDate(v, 'imgUrlP
11
')}"
type="daterange"
type="daterange"
range-separator="至"
range-separator="至"
start-placeholder="开始日期"
start-placeholder="开始日期"
...
@@ -1326,6 +1337,7 @@ import { checkMobile } from "@/utils/patients/checkValid";
...
@@ -1326,6 +1337,7 @@ import { checkMobile } from "@/utils/patients/checkValid";
import
*
as
operationData
from
"../../utils/operation"
;
import
*
as
operationData
from
"../../utils/operation"
;
import
storejs
from
'storejs'
import
storejs
from
'storejs'
let
vm
=
null
;
let
vm
=
null
;
// 图片type:1: 公司信息,2:营业执照,3:上一年年度报告,4:委托人身份证照片,5:委托书,6:法人身份证照片,7:药品经营许可证,8:药品经营质量管理规范认证证书,9:食品经营许可证,10:医疗器械经营许可证,11:二级医疗器械经营备案凭证,12:事业单位法人证")
export
default
{
export
default
{
components
:
{
components
:
{
BreadCrumb
,
BreadCrumb
,
...
@@ -1342,6 +1354,7 @@ export default {
...
@@ -1342,6 +1354,7 @@ export default {
}
}
};
};
return {
return {
bizScopeCasValue: [],
disabledFORM: false,
disabledFORM: false,
controlLicense: [],
controlLicense: [],
activeTabName:'first',
activeTabName:'first',
...
@@ -1385,11 +1398,12 @@ export default {
...
@@ -1385,11 +1398,12 @@ export default {
], //供货商-管理员信息
], //供货商-管理员信息
compainName: "", //供货商-入驻企业名称
compainName: "", //供货商-入驻企业名称
phoneNum: "", //供货商-联系电话
phoneNum: "", //供货商-联系电话
imgUrlP1: "", //证明图1
imgUrlP5: "", //证明图1
imgUrlP2: "", //证明图2
imgUrlP8: "", //证明图2
imgUrlP3: "", //证明图3
imgUrlP9: "", //证明图3
imgUrlP4: "", //证明图4
imgUrlP10: "", //证明图4
imgUrlP5: "", //证明图5
imgUrlP11: "", //证明图5
imgUrlP13: "", //证明图5
imgUrlP6: "", //证明图6
imgUrlP6: "", //证明图6
imgUrlP7: "", //证明图7
imgUrlP7: "", //证明图7
docName: "", //医生小店-医生姓名
docName: "", //医生小店-医生姓名
...
@@ -1401,13 +1415,14 @@ export default {
...
@@ -1401,13 +1415,14 @@ export default {
imgUrlC3: "", //证明图3
imgUrlC3: "", //证明图3
imgUrlC4: "",
imgUrlC4: "",
imgUrlC5: "",
imgUrlC5: "",
imgUrlP7Date: '',
imgUrlP6Date: '',
imgUrlP5Date: '',
imgUrlP5Date: '',
imgUrlP4Date: '',
imgUrlP6Date: '',
imgUrlP3Date: '',
imgUrlP11Date: '',
imgUrlP2Date: '',
imgUrlP13Date: '',
imgUrlP1Date: '',
imgUrlP10Date: '',
imgUrlP9Date: '',
imgUrlP8Date: '',
imgUrlP7Date: '',
imgUrlC3Date:'',
imgUrlC3Date:'',
imgUrlC5Date:'',
imgUrlC5Date:'',
imgUrlC1Date:'',
imgUrlC1Date:'',
...
@@ -1421,7 +1436,9 @@ export default {
...
@@ -1421,7 +1436,9 @@ export default {
areaStr: [],
areaStr: [],
orgType: '',
orgType: '',
orgName:'',
orgName:'',
legalName:'',
licenseUrl:'',
licenseUrl:'',
legalCertNo:'',
licenseValidDateBegin:'',
licenseValidDateBegin:'',
licenseValidDateEnd:'',
licenseValidDateEnd:'',
licenseType: 1,
licenseType: 1,
...
@@ -1429,7 +1446,9 @@ export default {
...
@@ -1429,7 +1446,9 @@ export default {
creditCode:'',
creditCode:'',
assignorLetterUrl:'',
assignorLetterUrl:'',
bizScope:'',
bizScope:'',
certifyLicenseImgList: []
certifyLicenseImgList: [],
assignorName:'',
assignorCertNo:''
},
},
},
},
cpmList: [], //所有的物流公司
cpmList: [], //所有的物流公司
...
@@ -1579,40 +1598,45 @@ export default {
...
@@ -1579,40 +1598,45 @@ export default {
'certifyReq.orgType':[{required: true, message: '请填企业类型', trigger: 'blur'}], //有多条校验条件的时候可以放个ob
'certifyReq.orgType':[{required: true, message: '请填企业类型', trigger: 'blur'}], //有多条校验条件的时候可以放个ob
'certifyReq.orgAddress':[{type: "
string
", required: true, message: '请填写详细地址', trigger: 'blur'}],
'certifyReq.orgAddress':[{type: "
string
", required: true, message: '请填写详细地址', trigger: 'blur'}],
'certifyReq.bizScope':[{type: "
array
", required: true, message: '请选择经营范围', trigger: 'change'}],
'certifyReq.bizScope':[{type: "
array
", required: true, message: '请选择经营范围', trigger: 'change'}],
'certifyReq.orgName':[{type: "
string
", required: true, message: '请输入企业名称', trigger: '
blur
'}],
'certifyReq.orgName':[{type: "
string
", required: true, message: '请输入企业名称', trigger: '
change
'}],
'certifyReq.creditCode':[{type: "
string
", required: true, message: '请输入信用代码', trigger: '
blur
'}],
'certifyReq.creditCode':[{type: "
string
", required: true, message: '请输入信用代码', trigger: '
change
'}],
imgUrlC1Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'blur'}],
imgUrlC1Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'blur'}],
'certifyReq.assignorName':[{type: "
string
", required: true, message: '请输入委托人姓名', trigger: '
blur
'}],
'certifyReq.assignorName':[{type: "
string
", required: true, message: '请输入委托人姓名', trigger: '
change
'}],
'certifyReq.assignorCertNo':[{type: "
string
", required: true, message: '请输入证件号码', trigger: '
blur
'}],
'certifyReq.assignorCertNo':[{type: "
string
", required: true, message: '请输入证件号码', trigger: '
change
'}],
imgUrlC5Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlC5Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
'certifyReq.legalName':[{type: "
string
", required: true, message: '请输入法人姓名', trigger: '
blur
'}],
'certifyReq.legalName':[{type: "
string
", required: true, message: '请输入法人姓名', trigger: '
change
'}],
'certifyReq.legalCertNo':[{type: "
string
", required: true, message: '请输入证件号码', trigger: '
blur
'}],
'certifyReq.legalCertNo':[{type: "
string
", required: true, message: '请输入证件号码', trigger: '
change
'}],
imgUrlC3Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlC3Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP1:[{type: "
string
", required: true, message: '请上传图片', trigger: 'blur'}],
imgUrlP1Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP2:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP3:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP4:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP5:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP5:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP5Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP8:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP9:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP10:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP11:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP13:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP6:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP6:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP7:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP7:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC1:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC1:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC2:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC2:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC3:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC3:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP2Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlC4:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP3Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlC5:[{type: "
string
", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP4Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP8Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP5Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP9Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP10Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP11Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP13Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP6Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP6Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP7Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP7Date:[{type: "
array
", required: true, message: '请选择有效日期', trigger: 'change'}],
},
},
imgMouseOver1: false,
imgMouseOver1: false,
uploadImgMessage1: false, //未上传图片,校验提示语
uploadImgMessage1: false, //未上传图片,校验提示语
imgMouseOverP1: false,
imgMouseOverP2: false,
imgMouseOverP3: false,
imgMouseOverP4: false,
imgMouseOverP5: false,
imgMouseOverP5: false,
imgMouseOverP8: false,
imgMouseOverP9: false,
imgMouseOverP10: false,
imgMouseOverP11: false,
imgMouseOverP13: false,
imgMouseOverP6: false,
imgMouseOverP6: false,
imgMouseOverP7: false,
imgMouseOverP7: false,
imgMouseOverC1: false,
imgMouseOverC1: false,
...
@@ -1652,9 +1676,21 @@ export default {
...
@@ -1652,9 +1676,21 @@ export default {
}
}
}
}
},
},
orgLIST: [],
orgLIST: [
{
id: 5,
intro: "
生产企业
",
name: "
生产企业
",
},
{
id: 6,
intro: "
商业公司
",
name: "
商业公司
",
}
],
orgScopeLIST:[],
orgScopeLIST:[],
certifyStatus: ''
certifyStatus: '',
idCardError:false,
};
};
},
},
computed: {
computed: {
...
@@ -1665,15 +1701,14 @@ export default {
...
@@ -1665,15 +1701,14 @@ export default {
watch: {
watch: {
"
formData
.
certifyReq
.
bizScope
": {
"
formData
.
certifyReq
.
bizScope
": {
handler(val) {
handler(val) {
console.log(val);
const j = [];
const j = [];
if(val) {
if(val) {
val.map( i => {
val.map( i => {
if( i[0].includes('first') ){
i.type && j.push(String(i.type),i.id)
const m = i[0].charAt(0);
j.includes(m) || j.push(m);
}
})
})
this.controlLicense = j;
// this.controlLicense = j;
// console.log(this.controlLicense);
}
}
},
},
deep: true,
deep: true,
...
@@ -1695,8 +1730,8 @@ export default {
...
@@ -1695,8 +1730,8 @@ export default {
const e = await this.orgOptionList();
const e = await this.orgOptionList();
if(q && w && e){
if(q && w && e){
const storeId = this.$route.query.storeId || null;
const storeId = this.$route.query.storeId || null;
const s = storejs.get('store_info');
const s = storejs.get('store_info');
if(storeId){
if(storeId){
// 编辑 详情
// 编辑 详情
this.curmbSecond = "
编辑店铺
";
this.curmbSecond = "
编辑店铺
";
...
@@ -1713,7 +1748,6 @@ export default {
...
@@ -1713,7 +1748,6 @@ export default {
const {areaStr} = s.certifyReq;
const {areaStr} = s.certifyReq;
const v = areaStr.map(i => {return i.label;}).join('/');
const v = areaStr.map(i => {return i.label;}).join('/');
this.orgRegionValueFirst = v;
this.orgRegionValueFirst = v;
this.areaStr = v;
this.orgDateReverse();
this.orgDateReverse();
this.resetImgUrl();
this.resetImgUrl();
}else{
}else{
...
@@ -1728,14 +1762,14 @@ export default {
...
@@ -1728,14 +1762,14 @@ export default {
storejs.remove('store_info');
storejs.remove('store_info');
this.curmbSecond = "
新建店铺
";
this.curmbSecond = "
新建店铺
";
this.isDisabled = false;
this.isDisabled = false;
if(s){
//
if(s){
// 存在数据 就反现
//
// 存在数据 就反现
this.formData = s;
//
this.formData = s;
const {areaStr} = s.certifyReq;
//
const {areaStr} = s.certifyReq;
const v = areaStr.map(i => {return i.label;}).join('/');
//
const v = areaStr.map(i => {return i.label;}).join('/');
this.orgRegionValueFirst = v;
//
this.orgRegionValueFirst = v;
this.orgDateReverse();
//
this.orgDateReverse();
}
//
}
}
}
}
}
},
},
...
@@ -1747,7 +1781,8 @@ export default {
...
@@ -1747,7 +1781,8 @@ export default {
this.formData.imgUrlC5Date = [assignorValidDateBegin, assignorValidDateEnd];
this.formData.imgUrlC5Date = [assignorValidDateBegin, assignorValidDateEnd];
this.formData.imgUrlC3Date = [legalValidDateBegin, legalValidDateEnd];
this.formData.imgUrlC3Date = [legalValidDateBegin, legalValidDateEnd];
// imgUrlC3Date
// imgUrlC3Date
(certifyReportImgList || []).concat(certifyLicenseImgList).map(i => {
const cl = certifyLicenseImgList || [];
(certifyReportImgList || []).concat(cl).map(i => {
const n = `imgUrlP${i.imageType}Date`;
const n = `imgUrlP${i.imageType}Date`;
const m = `imgUrlP${i.imageType}`;
const m = `imgUrlP${i.imageType}`;
this.formData[n] = [i.validDateBegin, i.validDateEnd];
this.formData[n] = [i.validDateBegin, i.validDateEnd];
...
@@ -1764,25 +1799,30 @@ export default {
...
@@ -1764,25 +1799,30 @@ export default {
this.formData.imgUrlC5 = s.assignorCertBackUrl;
this.formData.imgUrlC5 = s.assignorCertBackUrl;
this.formData.imgUrlC4 = s.assignorCertFrontUrl;
this.formData.imgUrlC4 = s.assignorCertFrontUrl;
this.formData.imgUrlP7 = s.assignorLetterUrl;
this.formData.imgUrlP5 = s.assignorLetterUrl;
// 反显 经营范围
const f = s.bizScope && s.bizScope.map( d => {
if(d && d.type){
return [String(d.type), d.id];
}
});
this.bizScopeCasValue = f;
},
},
getDetail() {
getDetail() {
getStoreAdressRepot(this.formData.storeId).then(res => {
getStoreAdressRepot(this.formData.storeId).then(res => {
if (res.code == "
000000
" && res.data) {
if (res.code == "
000000
" && res.data) {
const l = res.data;
const l = res.data;
const {areaStr, bizScope} = l.certifyReq;
const {areaStr, bizScope} = l.certifyReq;
l.certifyReq.areaStr = JSON.parse(areaStr);
if(areaStr && bizScope){
l.certifyReq.bizScope = JSON.parse(bizScope
);
l.certifyReq.areaStr = JSON.parse(areaStr
);
Object.assign(this.formData, l
);
l.certifyReq.bizScope = JSON.parse(bizScope
);
Object.assign(this.formData, l);
const v = JSON.parse(areaStr).map(i => {return i.label;}).join('/');
const v = JSON.parse(areaStr).map(i => {return i.label;}).join('/');
this.orgRegionValueFirst = v;
this.orgRegionValueFirst = v;
this.areaStr = v;
}
this.orgDateReverse();
this.orgDateReverse();
this.resetImgUrl();
this.resetImgUrl();
} else {
this.$message.error(res.message);
}
}
})
})
},
},
...
@@ -1810,21 +1850,22 @@ export default {
...
@@ -1810,21 +1850,22 @@ export default {
this.storeData.imageList.map((item) => {
this.storeData.imageList.map((item) => {
if (item.imageSort == 1) {
if (item.imageSort == 1) {
this.supplierImg1 = item;
this.supplierImg1 = item;
this.formData.imgUrlP
1
= item.imageUrl;
this.formData.imgUrlP
5
= item.imageUrl;
} else if (item.imageSort == 2) {
} else if (item.imageSort == 2) {
this.supplierImg2 = item;
this.supplierImg2 = item;
this.formData.imgUrlP
2
= item.imageUrl;
this.formData.imgUrlP
8
= item.imageUrl;
} else if (item.imageSort == 3) {
} else if (item.imageSort == 3) {
this.supplierImg3 = item;
this.supplierImg3 = item;
this.formData.imgUrlP
3
= item.imageUrl;
this.formData.imgUrlP
9
= item.imageUrl;
}
}
});
});
} else {
} else {
this.formData.imgUrlP1 = "";
this.formData.imgUrlP2 = "";
this.formData.imgUrlP3 = "";
this.formData.imgUrlP4 = "";
this.formData.imgUrlP5 = "";
this.formData.imgUrlP5 = "";
this.formData.imgUrlP8 = "";
this.formData.imgUrlP9 = "";
this.formData.imgUrlP10 = "";
this.formData.imgUrlP11 = "";
this.formData.imgUrlP13 = "";
this.formData.imgUrlP6 = "";
this.formData.imgUrlP6 = "";
this.formData.imgUrlP7 = "";
this.formData.imgUrlP7 = "";
}
}
...
@@ -1887,9 +1928,9 @@ export default {
...
@@ -1887,9 +1928,9 @@ export default {
completeWholeForm() {
completeWholeForm() {
let flag = this.submitForm();
let flag = this.submitForm();
if (flag && this.certifyStatus == 3) {
if (flag && this.certifyStatus == 3) {
this.$confirm('
确定要删除这条地址信息么?', '提示
', {
this.$confirm('
您的店铺已经审核通过,重新提交后需要重新审核。', '确认重新提交店铺信息吗?
', {
confirmButtonText: '确定',
confirmButtonText: '确定',
cancelButtonText: '',
cancelButtonText: '
取消
',
type: 'error'
type: 'error'
}).then(() => {
}).then(() => {
this.formData.storeType = Number(this.formData.storeType);
this.formData.storeType = Number(this.formData.storeType);
...
@@ -1963,16 +2004,16 @@ export default {
...
@@ -1963,16 +2004,16 @@ export default {
if (type == 1) {
if (type == 1) {
this.formData.storeOwner = this.formData.compainName;
this.formData.storeOwner = this.formData.compainName;
this.formData.storePhone = this.formData.phoneNum;
this.formData.storePhone = this.formData.phoneNum;
if (this.formData.imgUrlP
1
) {
if (this.formData.imgUrlP
5
) {
this.supplierImg1.imageUrl = this.formData.imgUrlP
1
;
this.supplierImg1.imageUrl = this.formData.imgUrlP
5
;
this.formData.imageList.push(this.supplierImg1);
this.formData.imageList.push(this.supplierImg1);
}
}
if (this.formData.imgUrlP
2
) {
if (this.formData.imgUrlP
8
) {
this.supplierImg2.imageUrl = this.formData.imgUrlP
2
;
this.supplierImg2.imageUrl = this.formData.imgUrlP
8
;
this.formData.imageList.push(this.supplierImg2);
this.formData.imageList.push(this.supplierImg2);
}
}
if (this.formData.imgUrlP
3
) {
if (this.formData.imgUrlP
9
) {
this.supplierImg3.imageUrl = this.formData.imgUrlP
3
;
this.supplierImg3.imageUrl = this.formData.imgUrlP
9
;
this.formData.imageList.push(this.supplierImg3);
this.formData.imageList.push(this.supplierImg3);
}
}
} else if (type == 3) {
} else if (type == 3) {
...
@@ -2166,7 +2207,7 @@ export default {
...
@@ -2166,7 +2207,7 @@ export default {
size: 3,
size: 3,
sizeText: "
3
M
",
sizeText: "
3
M
",
key: type,
key: type,
more: "
imgUrlP
1
More
",
more: "
imgUrlP
7
More
",
};
};
return fileLimit;
return fileLimit;
},
},
...
@@ -2176,6 +2217,13 @@ export default {
...
@@ -2176,6 +2217,13 @@ export default {
const e = dayjs(v[1]).format('YYYY-MM-DD');
const e = dayjs(v[1]).format('YYYY-MM-DD');
const l = this.formData.certifyReq.certifyLicenseImgList;
const l = this.formData.certifyReq.certifyLicenseImgList;
const t = type.charAt(type.length-1);
const t = type.charAt(type.length-1);
const t2 = type.charAt(type.length-2);
let last;
if(isNaN(t2)){
last = t
}else{
last = t2 + t;
}
switch (type) {
switch (type) {
case 'imgUrlC1':
case 'imgUrlC1':
// 营业执照
// 营业执照
...
@@ -2192,24 +2240,25 @@ export default {
...
@@ -2192,24 +2240,25 @@ export default {
this.formData.certifyReq.legalValidDateBegin = b;
this.formData.certifyReq.legalValidDateBegin = b;
this.formData.certifyReq.legalValidDateEnd = e;
this.formData.certifyReq.legalValidDateEnd = e;
break;
break;
case 'imgUrlP
1
':
case 'imgUrlP
7
':
// 药品经营许可证
// 药品经营许可证
case 'imgUrlP
2
':
case 'imgUrlP
8
':
// 药品经营质量管理规范认证
// 药品经营质量管理规范认证
case 'imgUrlP
3
':
case 'imgUrlP
9
':
// 食品经营(流通)许可证
// 食品经营(流通)许可证
case 'imgUrlP
4
':
case 'imgUrlP
10
':
// 医疗器械经营许可证
// 医疗器械经营许可证
case 'imgUrlP5':
case 'imgUrlP11':
// 二类医疗器械经营备案凭证
case 'imgUrlP13':
// 二类医疗器械经营备案凭证
// 二类医疗器械经营备案凭证
case 'imgUrlP6':
case 'imgUrlP6':
// 委托书
// 委托书
case 'imgUrlP
7
':
case 'imgUrlP
5
':
// 年度报告
// 年度报告
const r = l.filter( i => {return i.imageType == t})[0] || {};
const r = l.filter( i => {return i.imageType ==
las
t})[0] || {};
l.push(Object.assign(r, {validDateBegin: b, validDateEnd: e, imageType: t}));
l.push(Object.assign(r, {validDateBegin: b, validDateEnd: e, imageType:
las
t}));
this.formData.certifyReq.certifyLicenseImgList = this.clearRepeat(l, 'imageType');
this.formData.certifyReq.certifyLicenseImgList = this.clearRepeat(l, 'imageType');
console.log('--this.formData', this.formData);
break;
break;
default:
default:
return false;
return false;
...
@@ -2283,7 +2332,7 @@ export default {
...
@@ -2283,7 +2332,7 @@ export default {
attachmentExt: path.ext,
attachmentExt: path.ext,
attachmentSize: path.size,
attachmentSize: path.size,
};
};
console.log(
'vm.formData--', vm.formData, fileLimit
);
console.log(
vm.formData.imgUrlC2,'--------------'
);
vm.setImgUrl(path, fileLimit);
vm.setImgUrl(path, fileLimit);
vm.$message.success("
上传成功
");
vm.$message.success("
上传成功
");
});
});
...
@@ -2306,9 +2355,18 @@ export default {
...
@@ -2306,9 +2355,18 @@ export default {
setImgUrl (path, fileLimit) {
setImgUrl (path, fileLimit) {
const l = this.formData.certifyReq.certifyLicenseImgList;
const l = this.formData.certifyReq.certifyLicenseImgList;
const f = path.fullPath;
const f = path.fullPath;
const imgName = fileLimit.key;
const imgName = fileLimit.key;
const u = this.formData[imgName];
const u = this.formData[imgName];
const t = imgName.charAt(imgName.length-1);
const t = imgName.charAt(imgName.length-1);
const t2 = imgName.charAt(imgName.length-2);
let last;
if(isNaN(t2)){
last = t
}else{
last = t2 + t;
}
console.log('imgName', imgName, t, t2, last);
switch (imgName) {
switch (imgName) {
case 'imgUrlC1':
case 'imgUrlC1':
// 营业执照
// 营业执照
...
@@ -2330,25 +2388,28 @@ export default {
...
@@ -2330,25 +2388,28 @@ export default {
// 法人身份证反面
// 法人身份证反面
this.formData.certifyReq.legalCertBackUrl = u;
this.formData.certifyReq.legalCertBackUrl = u;
break;
break;
case 'imgUrlP
7
':
case 'imgUrlP
5
':
// 委托书
// 委托书
this.$refs.pIdCardBack.clearValidate();
this.formData.certifyReq.assignorLetterUrl = u;
this.formData.certifyReq.assignorLetterUrl = u;
break;
break;
case 'imgUrlP
1
':
case 'imgUrlP
7
':
// 药品经营许可证
// 药品经营许可证
case 'imgUrlP
2
':
case 'imgUrlP
8
':
// 药品经营质量管理规范认证
// 药品经营质量管理规范认证
case 'imgUrlP
3
':
case 'imgUrlP
9
':
// 食品经营(流通)许可证
// 食品经营(流通)许可证
case 'imgUrlP
4
':
case 'imgUrlP
10
':
// 医疗器械经营许可证
// 医疗器械经营许可证
case 'imgUrlP5':
case 'imgUrlP11':
// 二类医疗器械经营备案凭证
case 'imgUrlP13':
// 二类医疗器械经营备案凭证
// 二类医疗器械经营备案凭证
case 'imgUrlP6':
case 'imgUrlP6':
// 委托书
// 委托书
// 年度报告
// 年度报告
const r = l.filter( i => {return i.imageType == t})[0] || {};
const r = l.filter( i => {return i.imageType ==
las
t})[0] || {};
l.push(Object.assign(r, {url: f, imageType: t}));
l.push(Object.assign(r, {url: f, imageType:
las
t}));
this.formData.certifyReq.certifyLicenseImgList = this.clearRepeat(l, 'imageType');
this.formData.certifyReq.certifyLicenseImgList = this.clearRepeat(l, 'imageType');
break;
break;
default:
default:
...
@@ -2362,11 +2423,12 @@ export default {
...
@@ -2362,11 +2423,12 @@ export default {
vm.formData[type] = "";
vm.formData[type] = "";
const testMouse = new Map()
const testMouse = new Map()
.set("
storeLogo
", "
imgMouseOver1
")
.set("
storeLogo
", "
imgMouseOver1
")
.set("
imgUrlP1
", "
imgMouseOverP1
")
.set("
imgUrlP7
", "
imgMouseOverP7
")
.set("
imgUrlP2
", "
imgMouseOverP2
")
.set("
imgUrlP8
", "
imgMouseOverP8
")
.set("
imgUrlP3
", "
imgMouseOverP3
")
.set("
imgUrlP9
", "
imgMouseOverP9
")
.set("
imgUrlP4
", "
imgMouseOverP4
")
.set("
imgUrlP10
", "
imgMouseOverP10
")
.set("
imgUrlP5
", "
imgMouseOverP5
")
.set("
imgUrlP11
", "
imgMouseOverP11
")
.set("
imgUrlP13
", "
imgMouseOverP13
")
.set("
imgUrlP6
", "
imgMouseOverP6
")
.set("
imgUrlP6
", "
imgMouseOverP6
")
.set("
imgUrlP7
", "
imgMouseOverP7
")
.set("
imgUrlP7
", "
imgMouseOverP7
")
.set("
imgUrlC1
", "
imgMouseOverC1
")
.set("
imgUrlC1
", "
imgMouseOverC1
")
...
@@ -2406,19 +2468,21 @@ export default {
...
@@ -2406,19 +2468,21 @@ export default {
// 法人身份证反面
// 法人身份证反面
this.formData.certifyReq.legalCertBackUrl = '';
this.formData.certifyReq.legalCertBackUrl = '';
break;
break;
case 'imgUrlP
7
':
case 'imgUrlP
5
':
this.formData.certifyReq.assignorLetterUrl = '';
this.formData.certifyReq.assignorLetterUrl = '';
// 委托书
// 委托书
break;
break;
case 'imgUrlP
1
':
case 'imgUrlP
7
':
// 药品经营许可证
// 药品经营许可证
case 'imgUrlP
2
':
case 'imgUrlP
8
':
// 药品经营质量管理规范认证
// 药品经营质量管理规范认证
case 'imgUrlP
3
':
case 'imgUrlP
9
':
// 食品经营(流通)许可证
// 食品经营(流通)许可证
case 'imgUrlP
4
':
case 'imgUrlP
10
':
// 医疗器械经营许可证
// 医疗器械经营许可证
case 'imgUrlP5':
case 'imgUrlP11':
// 二类医疗器械经营备案凭证
case 'imgUrlP13':
// 二类医疗器械经营备案凭证
// 二类医疗器械经营备案凭证
case 'imgUrlP6':
case 'imgUrlP6':
// 年度报告
// 年度报告
...
@@ -2431,7 +2495,16 @@ export default {
...
@@ -2431,7 +2495,16 @@ export default {
}
}
},
},
orgScopeLISTChange(v){
orgScopeLISTChange(v){
console.log(v);
const checkedNodes = this.$refs['cascaderBizScope'].getCheckedNodes();
const n = checkedNodes.filter( i => {return !i.hasChildren;}).map(k => {return {...k.data}});
vm.formData.certifyReq.bizScope = n;
console.log(vm.formData.certifyReq.bizScope,v);
this.bizScopeCasValue = v;
this.controlLicense = []
v.forEach(item => {
this.controlLicense.push(...item)
})
console.log(this.bizScopeCasValue ,this.controlLicense);
},
},
// 获取裁剪的图片数据
// 获取裁剪的图片数据
getCropImg(argument) {
getCropImg(argument) {
...
@@ -2591,21 +2664,22 @@ export default {
...
@@ -2591,21 +2664,22 @@ export default {
return new Promise((resolve) => {
return new Promise((resolve) => {
orgOptionList().then(res => {
orgOptionList().then(res => {
if(res.code == '000000') {
if(res.code == '000000') {
this.orgLIST = res.data;
//
this.orgLIST = res.data;
}
}
});
});
orgScopeOptionList().then( res => {
orgScopeOptionList().then( res => {
if(res.code == '000000') {
if(res.code == '000000') {
const m = [
const m = [
{id: '1
_first
', name: '药品', list: []},
{id: '1', name: '药品', list: []},
{id: '2
_first
', name: '医疗器械', list: []},
{id: '2', name: '医疗器械', list: []},
{id: '3
_first
', name: '食品', list: []},
{id: '3', name: '食品', list: []},
{id: '4
_first
', name: '其他', list: []},
{id: '4', name: '其他', list: []},
];
];
m.map(item => {
m.map(item => {
item.list = res.data.filter(v => v.type == item.id.charAt(0) );
item.list = res.data.filter(v => v.type == item.id.charAt(0) );
});
});
this.orgScopeLIST = m;
this.orgScopeLIST = m;
console.log(this.orgScopeLIST);
}
}
});
});
resolve(true);
resolve(true);
...
@@ -2795,9 +2869,14 @@ export default {
...
@@ -2795,9 +2869,14 @@ export default {
const {wordsResult} = data.ocrCardDto;
const {wordsResult} = data.ocrCardDto;
if(wordsResult) {
if(wordsResult) {
const {creditCode, establishmentDate, orgName, validDate} = wordsResult;
const {creditCode, establishmentDate, orgName, validDate} = wordsResult;
this.$refs.imgUrlC1.clearValidate();
vm.formData.certifyReq.orgName = orgName;
vm.formData.certifyReq.orgName = orgName;
vm.formData.certifyReq.creditCode = creditCode;
vm.formData.certifyReq.creditCode = creditCode;
vm.formData.imgUrlC1Date = [establishmentDate,validDate];
if(establishmentDate && validDate) {
vm.formData.imgUrlC1Date = [establishmentDate,validDate];
vm.formData.certifyReq.licenseValidDateBegin = establishmentDate;
vm.formData.certifyReq.licenseValidDateEnd = validDate;
}
console.log('-establishmentDate', establishmentDate, validDate);
console.log('-establishmentDate', establishmentDate, validDate);
}
}
} else {
} else {
...
@@ -2807,6 +2886,7 @@ export default {
...
@@ -2807,6 +2886,7 @@ export default {
},
},
// 身份证正面/反面OCR上传后的回调处理
// 身份证正面/反面OCR上传后的回调处理
idCardFileHandle(file, type, legal) {
idCardFileHandle(file, type, legal) {
console.log(type);
file['cardSide'] = type;
file['cardSide'] = type;
console.log('---cardSide', file);
console.log('---cardSide', file);
idCardOcr(file).then((res) => {
idCardOcr(file).then((res) => {
...
@@ -2814,24 +2894,53 @@ export default {
...
@@ -2814,24 +2894,53 @@ export default {
const { code, data } = res;
const { code, data } = res;
if (code === '000000') {
if (code === '000000') {
console.log('---data', data);
console.log('---data', data);
if(!data.ocrCardDto.ocrStatus) {
this.$message.error(data.ocrCardDto.ocrMessage || '身份证识别失败,请重新上传');
if(type === 1){
console.log('上传身份证正面');
setTimeout(() => {
this.formData.imgUrlC2 = ''
this.formData.imgUrlC4 = ''
}, 500);
}
if(type === 2){
setTimeout(() => {
this.formData.imgUrlC3 = ''
this.formData.imgUrlC5 = ''
}, 500);
}
return;
}
if(data.ocrCardDto.wordsResultDto){
if(data.ocrCardDto.wordsResultDto){
this.$refs.idCard.clearValidate();
const {cardNo,name} = data.ocrCardDto.wordsResultDto;
const {cardNo,name} = data.ocrCardDto.wordsResultDto;
if(!cardNo || !name) { // 身份证内容识别失败
this.idCardError = true
}
if(legal == 'legal'){
if(legal == 'legal'){
vm.formData.certifyReq.legalName = name;
vm.formData.certifyReq.legalName = name;
vm.formData.certifyReq.legalCertNo = cardNo;
vm.formData.certifyReq.legalCertNo = cardNo;
}else {
}else {
this.$refs.fIdCard.clearValidate();
vm.formData.certifyReq.assignorName = name;
vm.formData.certifyReq.assignorName = name;
vm.formData.certifyReq.assignorCertNo = cardNo;
vm.formData.certifyReq.assignorCertNo = cardNo;
}
}
}
}
if(data.ocrCardDto.wordsResultBackDto){
if(data.ocrCardDto.wordsResultBackDto){
console.log(this.$refs.idCardBack);
const {signYmd, endYmd} = data.ocrCardDto.wordsResultBackDto;
const {signYmd, endYmd} = data.ocrCardDto.wordsResultBackDto;
if(!signYmd || !endYmd) { // 身份证内容识别失败
this.idCardError = true
}
if(legal == 'legal'){
if(legal == 'legal'){
this.$refs.idCardBack.clearValidate();
vm.formData.imgUrlC3Date = [signYmd, endYmd];
vm.formData.imgUrlC3Date = [signYmd, endYmd];
vm.formData.certifyReq.legalValidDateBegin = signYmd;
vm.formData.certifyReq.legalValidDateBegin = signYmd;
vm.formData.certifyReq.legalValidDateEnd = endYmd;
vm.formData.certifyReq.legalValidDateEnd = endYmd;
}else {
}else {
this.$refs.fIdCardBack.clearValidate();
vm.formData.imgUrlC5Date = [signYmd, endYmd];
vm.formData.imgUrlC5Date = [signYmd, endYmd];
vm.formData.certifyReq.assignorValidDateBegin = signYmd;
vm.formData.certifyReq.assignorValidDateBegin = signYmd;
vm.formData.certifyReq.assignorValidDateEnd = endYmd;
vm.formData.certifyReq.assignorValidDateEnd = endYmd;
...
@@ -3096,9 +3205,13 @@ export default {
...
@@ -3096,9 +3205,13 @@ export default {
}
}
.img-data
{
.img-data
{
width
:
100%
;
width
:
100%
;
max-width
:
1
2
00px
;
max-width
:
1
4
00px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
.el-range-editor
{
width
:
500px
;
}
}
}
.flex-wrap
{
.flex-wrap
{
display
:
flex
;
display
:
flex
;
...
@@ -3127,6 +3240,8 @@ export default {
...
@@ -3127,6 +3240,8 @@ export default {
.certifyStatusColor3
{
.certifyStatusColor3
{
color
:
#f6ffed
;
color
:
#f6ffed
;
}
}
.el-range-editor
{
width
:
500px
;
}
}
}
</
style
>
</
style
>
src/views/shop/shop-list.vue
浏览文件 @
c8d0ab6e
...
@@ -162,16 +162,40 @@
...
@@ -162,16 +162,40 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"230"
align=
"center"
fixed=
"right"
>
<el-table-column
label=
"操作"
min-width=
"230"
align=
"center"
fixed=
"right"
>
<!-- <template slot-scope="scope">-->
<!-- <div>-->
<!-- <el-button v-if="scope.row.tradeStore.storeType == 1 && scope.row.tradeStore.certifyStatus == 3" @click="setPrice(scope.row, false)" type="text" size="small">设置分佣</el-button>-->
<!-- <el-button @click="editShop(scope.row, 'true')" type="text" size="small">查看</el-button>-->
<!-- <el-button v-if="scope.row.tradeStore.storeType == 1 && scope.row.tradeStore.certifyStatus > 2" @click="editShop(scope.row, 'false')" type="text" size="small">编辑</el-button>-->
<!-- <el-button v-if="checkIsEdit(scope.row)" @click="shopManage(scope.row)" type="text" size="small">商品管理</el-button>-->
<!-- <el-button v-if="checkIsEdit(scope.row)" @click="orderManage(scope.row)" type="text" size="small">订单管理</el-button>-->
<!-- <el-button v-if="scope.row.tradeStore.storeType == 1 && scope.row.tradeStore.certifyStatus == 3"@click="setFreight(scope.row)" type="text" size="small">运费配置</el-button>-->
<!-- <el-button v-if="scope.row.tradeStore.storeType == 3" @click="closeShopAction(scope.row)" type="text" size="small">关闭店铺</el-button>-->
<!-- </div>-->
<!-- </template>-->
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div>
<div>
<el-button
v-if=
"scope.row.tradeStore.commissionFlag == 2"
@
click=
"setPrice(scope.row, false)"
type=
"text"
size=
"small"
>
设置分佣
</el-button>
<el-button
v-if=
"scope.row.tradeStore.storeStatus
<
=
2
"
@
click=
"editShop(scope.row, 'true')"
type=
"text"
size=
"small"
>
{{
scope
.
row
.
tradeStore
.
storeStatus
<=
2
?
'查看'
:
''
}}
</el-button>
<el-button
v-if=
"checkIsEdit(scope.row)"
@
click=
"editShop(scope.row, 'false')"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
@
click=
"editShop(scope.row, 'true')"
type=
"text"
size=
"small"
>
查看
</el-button>
<el-button
@
click=
"shopManage(scope.row)"
type=
"text"
size=
"small"
>
商品管理
</el-button>
<el-button
@
click=
"orderManage(scope.row)"
type=
"text"
size=
"small"
>
订单管理
</el-button>
<el-button
v-if=
"checkIsEdit(scope.row)"
checkIsEdit
@
click=
"editShop(scope.row, 'false')"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
v-if=
"scope.row.tradeStore.commissionFlag == 2"
@
click=
"setFreight(scope.row)"
type=
"text"
size=
"small"
>
运费配置
</el-button>
<el-button
v-if=
"storageIdType == 1 && (scope.row.tradeStore.storeType == 3 && scope.row.tradeStore.storeStatus == 1)"
@
click=
"closeShopAction(scope.row)"
type=
"text"
size=
"small"
>
关闭店铺
</el-button>
<el-button
v-if=
"checkGoods(scope.row)"
@
click=
"shopManage(scope.row)"
type=
"text"
size=
"small"
>
商品管理
</el-button>
<el-button
v-if=
"checkBills(scope.row)"
@
click=
"orderManage(scope.row)"
type=
"text"
size=
"small"
>
订单管理
</el-button>
<el-button
v-if=
"checkSpe(scope.row)"
@
click=
"setPrice(scope.row, false)"
type=
"text"
size=
"small"
>
设置分佣
</el-button>
<el-button
v-if=
"checkSpe(scope.row)"
@
click=
"setFreight(scope.row)"
type=
"text"
size=
"small"
>
运费配置
</el-button>
<el-button
v-if=
"scope.row.tradeStore.storeType == 3 && isOutsideGetted == 'no'"
@
click=
"closeShopAction(scope.row)"
type=
"text"
size=
"small"
>
关闭店铺
</el-button>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -249,12 +273,14 @@
...
@@ -249,12 +273,14 @@
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
queryStore
,
queryShopAuth
,
closeShop
}
from
'@/utils/shop'
;
import
{
queryStore
,
queryShopAuth
,
closeShop
}
from
'@/utils/shop'
;
import
{
getUserTypeReq
}
from
"@/utils/cme/cmeApi"
;
export
default
{
export
default
{
components
:
{
components
:
{
BreadCrumb
BreadCrumb
},
},
data
(){
data
(){
return
{
return
{
isOutsideGetted
:
'no'
,
curmbFirst
:
'云鹊店铺'
,
curmbFirst
:
'云鹊店铺'
,
showAllFlag
:
false
,
showAllFlag
:
false
,
showNewFlag
:
false
,
showNewFlag
:
false
,
...
@@ -302,13 +328,17 @@
...
@@ -302,13 +328,17 @@
}],
}],
storeTypeList
:
[
storeTypeList
:
[
{
value
:
1
,
label
:
"待完善"
},
{
{
value
:
2
,
value
:
2
,
label
:
"
认证提交中
"
label
:
"
待审核
"
},
},
{
{
value
:
3
,
value
:
3
,
label
:
"
认证
通过"
label
:
"
审核
通过"
},
},
{
{
value
:
4
,
value
:
4
,
...
@@ -348,6 +378,7 @@
...
@@ -348,6 +378,7 @@
// this.idType = localStorage.getItem("storageIdType");
// this.idType = localStorage.getItem("storageIdType");
this
.
storageIdType
=
localStorage
.
getItem
(
"storageIdType"
)
-
0
;
this
.
storageIdType
=
localStorage
.
getItem
(
"storageIdType"
)
-
0
;
console
.
log
(
this
.
storageIdType
);
console
.
log
(
this
.
storageIdType
);
this
.
getUserTypeReq
();
this
.
getAddAuth
();
this
.
getAddAuth
();
this
.
searchList
();
this
.
searchList
();
},
},
...
@@ -360,6 +391,15 @@
...
@@ -360,6 +391,15 @@
}
}
})
})
},
},
getUserTypeReq
()
{
getUserTypeReq
().
then
(
res
=>
{
console
.
log
(
'--res'
,
res
);
if
(
res
.
code
==
'000000'
){
this
.
isOutsideGetted
=
res
.
data
.
code
;
}
});
},
searchList
()
{
searchList
()
{
openLoading
(
this
);
openLoading
(
this
);
let
params
=
this
.
searchForm
;
let
params
=
this
.
searchForm
;
...
@@ -669,14 +709,48 @@
...
@@ -669,14 +709,48 @@
},
},
checkIsEdit
(
row
){
checkIsEdit
(
row
){
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
if
(
storeType
==
3
&&
certifyStatus
==
1
){
if
(
storeType
==
1
&&
Number
(
certifyStatus
)
>
2
){
return
true
;
}
else
if
(
storeType
==
2
){
return
true
;
}
else
{
return
false
;
}
},
checkGoods
(
row
)
{
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
if
(
storeType
==
1
&&
Number
(
certifyStatus
)
===
3
){
return
true
return
true
}
else
if
(
storeType
!=
3
&&
certifyStatus
>
2
){
}
else
if
(
storeType
==
2
){
return
true
return
true
}
else
{
}
else
if
(
storeType
==
3
){
if
(
Number
(
certifyStatus
)
==
1
||
Number
(
certifyStatus
)
==
3
){
return
true
;
}
else
{
return
false
;
}
}
else
{
return
false
;
}
},
checkBills
(
row
)
{
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
if
(
storeType
==
1
&&
Number
(
certifyStatus
)
!==
3
){
return
false
;
return
false
;
}
else
{
return
true
;
}
}
}
},
checkSpe
(
row
)
{
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
if
(
storeType
==
1
&&
Number
(
certifyStatus
)
==
3
){
return
true
;
}
else
if
(
storeType
==
2
){
return
true
;
}
else
{
return
false
;
}
},
},
},
filters
:
{
filters
:
{
storeTypeFormat
:
function
(
value
){
storeTypeFormat
:
function
(
value
){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录