Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d748e93d
authored
May 06, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into 'v2.3.0'
Master合并到v2.3.0 See merge request
!49
2 parents
ce6e2587
01f636ec
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
18 deletions
src/views/account/addAccount.vue
src/views/account/components/selectProduct.vue
src/views/account/detailAccount.vue
src/views/account/editAccount.vue
src/views/baseInfo/editInfo.vue
src/views/followUp/components/addSale.vue
src/views/account/addAccount.vue
View file @
d748e93
...
...
@@ -285,6 +285,17 @@ export default {
// }, 100)
// return
// }
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
34578
]\d{9}))
$/
if
(
this
.
accountAddForm
.
residentPhone
)
{
const
result
=
reg
.
test
(
this
.
accountAddForm
.
residentPhone
)
if
(
!
result
)
{
this
.
$message
({
message
:
'请输入正确的驻店信息'
,
type
:
'warning'
})
return
false
}
}
let
params
=
Object
.
assign
({},
this
.
accountAddForm
,
this
.
accountInfoForm
)
if
(
params
.
bussinessTime
)
{
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
...
...
@@ -293,8 +304,8 @@ export default {
if
(
params
.
businessType
)
{
params
.
businessType
=
params
.
businessType
.
join
(
','
)
}
const
merchantBrandList
=
this
.
$refs
.
baseInfoForm
.
$refs
.
brandListTree
.
getMerchantBrandList
()
params
.
merchantBrandListJson
=
JSON
.
stringify
(
merchantBrandList
)
//
const merchantBrandList = this.$refs.baseInfoForm.$refs.brandListTree.getMerchantBrandList()
//
params.merchantBrandListJson = JSON.stringify(merchantBrandList)
params
.
isloginName
?
(
params
.
isloginName
=
1
)
:
(
params
.
isloginName
=
0
)
params
.
merchantAccountLevel
=
this
.
accountDetail
.
merchantAccountLevel
params
.
status
=
1
...
...
src/views/account/components/selectProduct.vue
View file @
d748e93
...
...
@@ -173,7 +173,7 @@ export default {
})
this
.
loading
=
false
this
.
tabName
=
this
.
tabMenu
[
0
].
accounttypeId
this
.
productTab
=
this
.
tabMenu
[
0
].
productsArr
[
0
]
.
productId
this
.
productTab
=
this
.
tabMenu
[
0
].
productsArr
[
0
]
?
this
.
tabMenu
[
0
].
productsArr
[
0
].
productId
:
''
// const arr = res.map(i => i.accounttypeId)
// this.tabMenu.map(i => arr.includes(i.accounttypeId))
// console.log(this.tabMenu, arr)
...
...
src/views/account/detailAccount.vue
View file @
d748e93
...
...
@@ -137,7 +137,7 @@
<span
class=
"itemValue"
>
{{ firstPageObj.bussinessBegintime ? firstPageObj.bussinessBegintime + '-' + firstPageObj.bussinessEndtime : '-' }}
</span>
</el-col>
<el-col
:span=
"10"
class=
"flexCol"
>
<span
class=
"itemName
itemNameCol2"
>
驻店电话:
</span>
<span
class=
"itemName itemNameCol2"
>
驻店电话:
</span>
<span
class=
"itemValue"
>
{{ firstPageObj.residentPhone || '-' }}
</span>
</el-col>
</el-row>
...
...
@@ -350,7 +350,7 @@ export default {
},
//将后台返回数据中数值为空的字段全部替换为“-”
formateNullFieldData
(
initialData
)
{
const
isEmpty
=
function
(
val
)
{
const
isEmpty
=
function
(
val
)
{
if
(
!
String
(
val
)
||
String
(
val
)
===
'null'
)
{
return
'-'
}
...
...
@@ -358,7 +358,7 @@ export default {
}
var
that
=
this
if
(
initialData
instanceof
Array
)
{
initialData
.
forEach
(
function
(
val
,
key
,
array
)
{
initialData
.
forEach
(
function
(
val
,
key
,
array
)
{
array
[
key
]
=
that
.
formateNullFieldData
(
val
)
})
}
else
if
(
initialData
instanceof
Object
)
{
...
...
src/views/account/editAccount.vue
View file @
d748e93
...
...
@@ -301,6 +301,17 @@ export default {
// }, 100)
// return
// }
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
34578
]\d{9}))
$/
if
(
this
.
accountAddForm
.
residentPhone
)
{
const
result
=
reg
.
test
(
this
.
accountAddForm
.
residentPhone
)
if
(
!
result
)
{
this
.
$message
({
message
:
'请输入正确的驻店信息'
,
type
:
'warning'
})
return
false
}
}
let
params
=
Object
.
assign
({},
this
.
accountAddForm
,
this
.
accountInfoForm
)
if
(
params
.
bussinessTime
)
{
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
...
...
src/views/baseInfo/editInfo.vue
View file @
d748e93
<!--
* @Author: your name
* @Date: 2022-03-07 14:32:50
* @LastEditTime: 2022-0
4-19 18:08:55
* @LastEditTime: 2022-0
5-06 14:32:10
* @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
...
...
@@ -87,6 +87,7 @@ export default {
bussinessTime
:
[],
provinceName
:
''
,
provinceCode
:
''
,
residentPhone
:
''
,
cityName
:
''
,
cityCode
:
''
},
...
...
@@ -226,15 +227,17 @@ export default {
},
handleSave
()
{
const
params
=
this
.
infoForm
// if (this.infoForm.residentPhone && !util.validatePhoneTwo(this.infoForm.residentPhone)) {
// this.$message.error('请输入正确的驻店电话')
// document.querySelector('#app').scrollTop = 0
// setTimeout(() => {
// var isError = document.getElementsByClassName('phone-input')
// isError[0].querySelector('input').focus()
// }, 100)
// return
// }
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
34578
]\d{9}))
$/
if
(
params
.
residentPhone
)
{
const
result
=
reg
.
test
(
params
.
residentPhone
)
if
(
!
result
)
{
this
.
$message
({
message
:
'请输入正确的驻店信息'
,
type
:
'warning'
})
return
false
}
}
params
.
merchantBrandMain
=
''
// 获取省市信息
const
{
provinceName
,
provinceCode
,
cityName
,
cityCode
}
=
this
.
$refs
.
provinceForm
.
provinceForm
...
...
src/views/followUp/components/addSale.vue
View file @
d748e93
...
...
@@ -36,11 +36,11 @@
</div>
<div
class=
"sale-type-desc"
>
跟进员工类型最多新增30个,已新增
{{
empType
.
length
-
empTypeF
.
length
}}
个
</div>
</el-form-item>
<el-form-item
label=
"负责的业务类型"
v-if=
"typeIndex != 2 && typeIndex != 4"
>
<
!--
<
el-form-item
label=
"负责的业务类型"
v-if=
"typeIndex != 2 && typeIndex != 4"
>
<el-checkbox-group
v-model=
"selectBusiness"
@
change=
"selectType"
>
<el-checkbox
:disabled=
"(typeIndex == 0 && item.id != 1) || (typeIndex == 1 && item.id == 1)"
v-for=
"item in businessType"
:key=
"item"
:label=
"item.id"
>
{{
item
.
businessName
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-form-item>
-->
<el-form-item
style=
"text-align: center"
>
<el-button
@
click=
"onCancel"
size=
"small"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
size=
"small"
>
确定
</el-button>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment