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
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
17 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 {
...
@@ -285,6 +285,17 @@ export default {
// }, 100)
// }, 100)
// return
// 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
)
let
params
=
Object
.
assign
({},
this
.
accountAddForm
,
this
.
accountInfoForm
)
if
(
params
.
bussinessTime
)
{
if
(
params
.
bussinessTime
)
{
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
...
@@ -293,8 +304,8 @@ export default {
...
@@ -293,8 +304,8 @@ export default {
if
(
params
.
businessType
)
{
if
(
params
.
businessType
)
{
params
.
businessType
=
params
.
businessType
.
join
(
','
)
params
.
businessType
=
params
.
businessType
.
join
(
','
)
}
}
const
merchantBrandList
=
this
.
$refs
.
baseInfoForm
.
$refs
.
brandListTree
.
getMerchantBrandList
()
//
const merchantBrandList = this.$refs.baseInfoForm.$refs.brandListTree.getMerchantBrandList()
params
.
merchantBrandListJson
=
JSON
.
stringify
(
merchantBrandList
)
//
params.merchantBrandListJson = JSON.stringify(merchantBrandList)
params
.
isloginName
?
(
params
.
isloginName
=
1
)
:
(
params
.
isloginName
=
0
)
params
.
isloginName
?
(
params
.
isloginName
=
1
)
:
(
params
.
isloginName
=
0
)
params
.
merchantAccountLevel
=
this
.
accountDetail
.
merchantAccountLevel
params
.
merchantAccountLevel
=
this
.
accountDetail
.
merchantAccountLevel
params
.
status
=
1
params
.
status
=
1
...
...
src/views/account/components/selectProduct.vue
View file @
d748e93
...
@@ -173,7 +173,7 @@ export default {
...
@@ -173,7 +173,7 @@ export default {
})
})
this
.
loading
=
false
this
.
loading
=
false
this
.
tabName
=
this
.
tabMenu
[
0
].
accounttypeId
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)
// const arr = res.map(i => i.accounttypeId)
// this.tabMenu.map(i => arr.includes(i.accounttypeId))
// this.tabMenu.map(i => arr.includes(i.accounttypeId))
// console.log(this.tabMenu, arr)
// console.log(this.tabMenu, arr)
...
...
src/views/account/detailAccount.vue
View file @
d748e93
...
@@ -350,7 +350,7 @@ export default {
...
@@ -350,7 +350,7 @@ export default {
},
},
//将后台返回数据中数值为空的字段全部替换为“-”
//将后台返回数据中数值为空的字段全部替换为“-”
formateNullFieldData
(
initialData
)
{
formateNullFieldData
(
initialData
)
{
const
isEmpty
=
function
(
val
)
{
const
isEmpty
=
function
(
val
)
{
if
(
!
String
(
val
)
||
String
(
val
)
===
'null'
)
{
if
(
!
String
(
val
)
||
String
(
val
)
===
'null'
)
{
return
'-'
return
'-'
}
}
...
@@ -358,7 +358,7 @@ export default {
...
@@ -358,7 +358,7 @@ export default {
}
}
var
that
=
this
var
that
=
this
if
(
initialData
instanceof
Array
)
{
if
(
initialData
instanceof
Array
)
{
initialData
.
forEach
(
function
(
val
,
key
,
array
)
{
initialData
.
forEach
(
function
(
val
,
key
,
array
)
{
array
[
key
]
=
that
.
formateNullFieldData
(
val
)
array
[
key
]
=
that
.
formateNullFieldData
(
val
)
})
})
}
else
if
(
initialData
instanceof
Object
)
{
}
else
if
(
initialData
instanceof
Object
)
{
...
...
src/views/account/editAccount.vue
View file @
d748e93
...
@@ -301,6 +301,17 @@ export default {
...
@@ -301,6 +301,17 @@ export default {
// }, 100)
// }, 100)
// return
// 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
)
let
params
=
Object
.
assign
({},
this
.
accountAddForm
,
this
.
accountInfoForm
)
if
(
params
.
bussinessTime
)
{
if
(
params
.
bussinessTime
)
{
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
...
...
src/views/baseInfo/editInfo.vue
View file @
d748e93
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-03-07 14:32:50
* @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
* @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
...
@@ -87,6 +87,7 @@ export default {
...
@@ -87,6 +87,7 @@ export default {
bussinessTime
:
[],
bussinessTime
:
[],
provinceName
:
''
,
provinceName
:
''
,
provinceCode
:
''
,
provinceCode
:
''
,
residentPhone
:
''
,
cityName
:
''
,
cityName
:
''
,
cityCode
:
''
cityCode
:
''
},
},
...
@@ -226,15 +227,17 @@ export default {
...
@@ -226,15 +227,17 @@ export default {
},
},
handleSave
()
{
handleSave
()
{
const
params
=
this
.
infoForm
const
params
=
this
.
infoForm
// if (this.infoForm.residentPhone && !util.validatePhoneTwo(this.infoForm.residentPhone)) {
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
34578
]\d{9}))
$/
// this.$message.error('请输入正确的驻店电话')
if
(
params
.
residentPhone
)
{
// document.querySelector('#app').scrollTop = 0
const
result
=
reg
.
test
(
params
.
residentPhone
)
// setTimeout(() => {
if
(
!
result
)
{
// var isError = document.getElementsByClassName('phone-input')
this
.
$message
({
// isError[0].querySelector('input').focus()
message
:
'请输入正确的驻店信息'
,
// }, 100)
type
:
'warning'
// return
})
// }
return
false
}
}
params
.
merchantBrandMain
=
''
params
.
merchantBrandMain
=
''
// 获取省市信息
// 获取省市信息
const
{
provinceName
,
provinceCode
,
cityName
,
cityCode
}
=
this
.
$refs
.
provinceForm
.
provinceForm
const
{
provinceName
,
provinceCode
,
cityName
,
cityCode
}
=
this
.
$refs
.
provinceForm
.
provinceForm
...
...
src/views/followUp/components/addSale.vue
View file @
d748e93
...
@@ -36,11 +36,11 @@
...
@@ -36,11 +36,11 @@
</div>
</div>
<div
class=
"sale-type-desc"
>
跟进员工类型最多新增30个,已新增
{{
empType
.
length
-
empTypeF
.
length
}}
个
</div>
<div
class=
"sale-type-desc"
>
跟进员工类型最多新增30个,已新增
{{
empType
.
length
-
empTypeF
.
length
}}
个
</div>
</el-form-item>
</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-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
: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-checkbox-group>
</el-form-item>
</el-form-item>
-->
<el-form-item
style=
"text-align: center"
>
<el-form-item
style=
"text-align: center"
>
<el-button
@
click=
"onCancel"
size=
"small"
>
取消
</el-button>
<el-button
@
click=
"onCancel"
size=
"small"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
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