Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
horse
Commits
78eafdf9
Commit
78eafdf9
authored
Nov 18, 2021
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/xiangwei/horse
into master
# Conflicts: # src/api/customer.ts
parents
79073f2b
64ad5fd6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
262 additions
and
90 deletions
+262
-90
customer.ts
src/@types/customer.ts
+1
-1
App.vue
src/App.vue
+1
-1
customer.ts
src/api/customer.ts
+46
-23
addfield.vue
src/components/customer/addfield.vue
+205
-62
customerField.vue
src/pages/customer/components/customerField.vue
+9
-3
No files found.
src/@types/customer.ts
View file @
78eafdf9
...
@@ -9,7 +9,7 @@ export declare interface customerFieldlistType {
...
@@ -9,7 +9,7 @@ export declare interface customerFieldlistType {
export
declare
interface
customerFieldtabsType
{
export
declare
interface
customerFieldtabsType
{
Id
:
number
Id
:
number
Name
:
string
Name
:
string
disable
?:
boolean
disable
?:
boolean
|
any
}
}
/** 客户字段 新增的类型 */
/** 客户字段 新增的类型 */
export
declare
interface
customerFieldaddMsgType
{
export
declare
interface
customerFieldaddMsgType
{
...
...
src/App.vue
View file @
78eafdf9
...
@@ -10,5 +10,5 @@ export default defineComponent({
...
@@ -10,5 +10,5 @@ export default defineComponent({
</
script
>
</
script
>
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('./css/font.sass')
@import
url('./css/font.sass')
@import
url('//at.alicdn.com/t/font_2930340_
dn2rgl17m5t
.css')
@import
url('//at.alicdn.com/t/font_2930340_
ymozcida88
.css')
</
style
>
</
style
>
src/api/customer.ts
View file @
78eafdf9
...
@@ -13,7 +13,10 @@
...
@@ -13,7 +13,10 @@
interface
msg
{
interface
msg
{
Enable
:
number
Enable
:
number
}
}
interface
IdName
{
Id
:
number
,
Name
:
string
}
...
@@ -73,28 +76,48 @@
...
@@ -73,28 +76,48 @@
}
}
// 获取客户子段类型枚举
// 获取客户子段类型枚举
static
async
getCustomerFieldTypeEnumList
(
data
:
any
):
Promise
<
HttpResponse
>
{
static
async
getCustomerFieldTypeEnumList
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/GetCustomerFieldTypeEnumList'
,
{
return
Axios
(
'/QYCustomer/GetCustomerFieldTypeEnumList'
,
{
method
:
'post'
,
method
:
'post'
,
responseType
:
'json'
,
responseType
:
'json'
,
data
data
})
})
}
}
// 获取部门树形列表
// 获取部门树形列表
static
async
getDeptTree
(
data
:
any
):
Promise
<
HttpResponse
>
{
static
async
getDeptTree
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/User/GetDeptTree'
,
{
return
Axios
(
'/User/GetDeptTree'
,
{
method
:
'post'
,
method
:
'post'
,
responseType
:
'json'
,
responseType
:
'json'
,
data
data
})
})
}
}
// 获取部门树形列表
// 获取部门树形列表
static
async
getCustomerFieldInputTypeEnumList
(
data
:
any
):
Promise
<
HttpResponse
>
{
static
async
getCustomerFieldInputTypeEnumList
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/GetCustomerFieldInputTypeEnumList'
,
{
return
Axios
(
'/QYCustomer/GetCustomerFieldInputTypeEnumList'
,
{
method
:
'post'
,
method
:
'post'
,
responseType
:
'json'
,
responseType
:
'json'
,
data
data
})
})
}
}
//新增修改客户字段
static
async
setCustomerFiledInfo
(
data
:
{
Id
:
number
,
Type
:
number
,
Name
:
string
,
Required
:
number
,
DeptId
:
number
,
WordNum
:
number
,
InputType
:
string
,
OptionsList
:
Array
<
IdName
>
,
Digits
:
number
,
Enable
:
number
,
[
propName
:
string
]:
any
}):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/SetCustomerFiledInfo'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
}
}
export
default
customerService
export
default
customerService
src/components/customer/addfield.vue
View file @
78eafdf9
This diff is collapsed.
Click to expand it.
src/pages/customer/components/customerField.vue
View file @
78eafdf9
...
@@ -177,7 +177,6 @@
...
@@ -177,7 +177,6 @@
ok
:
{
ok
:
{
label
:
"确认"
,
label
:
"确认"
,
flat
:
true
,
flat
:
true
,
focus
:
true
}
}
}).
onOk
(()
=>
{
}).
onOk
(()
=>
{
setFiledState
(
item
,
type
)
setFiledState
(
item
,
type
)
...
@@ -187,10 +186,16 @@
...
@@ -187,10 +186,16 @@
customerService
.
getCustomerFieldTypeEnumList
({}).
then
((
res
)
=>
{
customerService
.
getCustomerFieldTypeEnumList
({}).
then
((
res
)
=>
{
if
(
res
.
data
.
Code
==
1
)
{
if
(
res
.
data
.
Code
==
1
)
{
tabsList
.
value
=
res
.
data
.
Data
tabsList
.
value
=
res
.
data
.
Data
tabsList
.
value
.
forEach
(
x
=>
{
x
.
disable
=
false
})
}
}
})
})
}
}
const
goedit
=
(
item
:
customerFieldlistType
)
=>
{
addMsg
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
Isadd
.
value
=
true
;
}
const
goaddfield
=
()
=>
{
const
goaddfield
=
()
=>
{
Isadd
.
value
=
true
;
Isadd
.
value
=
true
;
addMsg
.
value
=
{
addMsg
.
value
=
{
...
@@ -255,7 +260,8 @@
...
@@ -255,7 +260,8 @@
deptl
,
deptl
,
getFieldInputType
,
getFieldInputType
,
checkboxList
,
checkboxList
,
tabsList
tabsList
,
goedit
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment