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
98c19049
Commit
98c19049
authored
Nov 19, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b3a117d9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
845 additions
and
127 deletions
+845
-127
customer.ts
src/api/customer.ts
+115
-112
addfield.vue
src/components/customer/addfield.vue
+2
-8
customerPhase.vue
src/pages/customer/components/customerPhase.vue
+17
-7
createStageRange.vue
src/pages/editor/createStageRange.vue
+320
-0
manageStageRange.vue
src/pages/editor/manageStageRange.vue
+379
-0
routes.ts
src/router/routes.ts
+12
-0
No files found.
src/api/customer.ts
View file @
98c19049
...
@@ -2,30 +2,28 @@
...
@@ -2,30 +2,28 @@
* 所有跟用户相关的接口(TODO:DEMO USER)
* 所有跟用户相关的接口(TODO:DEMO USER)
*/
*/
import
{
HttpResponse
}
from
'@/@types'
import
{
HttpResponse
}
from
'@/@types'
import
Axios
from
'./axios'
import
Axios
from
'./axios'
/**
/**
* @interface loginParams -登录参数
* @interface loginParams -登录参数
* @property {string} grant_type -授权类型
* @property {string} grant_type -授权类型
* @property {string} email -邮箱
* @property {string} email -邮箱
* @property {string} password -用户密码
* @property {string} password -用户密码
*/
*/
interface
msg
{
interface
msg
{
Enable
:
number
Enable
:
number
}
}
interface
IdName
{
interface
IdName
{
Id
:
number
,
Id
:
number
Name
:
string
Name
:
string
}
}
/**
/**
* @example Axios.get(`https://xxx.com}`)
* @example Axios.get(`https://xxx.com}`)
* @todo Get the exchange rate of the current currency
* @todo Get the exchange rate of the current currency
*/
*/
class
customerService
{
class
customerService
{
// 获取客户字段列表
// 获取客户字段列表
static
async
getCustomerFiledList
(
data
:
msg
):
Promise
<
HttpResponse
>
{
static
async
getCustomerFiledList
(
data
:
msg
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/GetCustomerFiledList'
,
{
return
Axios
(
'/QYCustomer/GetCustomerFiledList'
,
{
...
@@ -99,19 +97,7 @@
...
@@ -99,19 +97,7 @@
})
})
}
}
//新增修改客户字段
//新增修改客户字段
static
async
setCustomerFiledInfo
(
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
>
{
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'
,
{
return
Axios
(
'/QYCustomer/SetCustomerFiledInfo'
,
{
method
:
'post'
,
method
:
'post'
,
responseType
:
'json'
,
responseType
:
'json'
,
...
@@ -127,20 +113,37 @@
...
@@ -127,20 +113,37 @@
})
})
}
}
//设置客户阶段流程状态
//设置客户阶段流程状态
static
async
setCustomerStageFlowState
(
data
:
{
static
async
setCustomerStageFlowState
(
data
:
{
Type
:
number
;
FlowId
:
number
}):
Promise
<
HttpResponse
>
{
Type
:
number
,
FlowId
:
number
}):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/SetCustomerStageFlowState'
,
{
return
Axios
(
'/QYCustomer/SetCustomerStageFlowState'
,
{
method
:
'post'
,
method
:
'post'
,
responseType
:
'json'
,
responseType
:
'json'
,
data
data
})
})
}
}
//验证该阶段是否可以删除
static
async
validataCustomerStageDel
(
data
:
{
StageId
:
number
}):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/ValidataCustomerStageDel'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
}
// 验证阶段输单/无效的 原因选项是否可以删除
static
async
validataCustomerCauseDel
(
data
:
{
CauseId
:
number
;
Type
:
number
}):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/ValidataCustomerCauseDel'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
// 验证阶段输单/无效的 原因选项是否可以删除
static
async
setCustomerStageInfo
(
data
:
{
Id
:
number
;
Type
:
number
,
Name
:
string
,
Sort
:
number
,
OptionsList
:
Array
<
IdName
>
,
IsDefault
:
number
}):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/SetCustomerStageInfo'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
}
export
default
customerService
export
default
customerService
\ No newline at end of file
src/components/customer/addfield.vue
View file @
98c19049
...
@@ -129,8 +129,6 @@
...
@@ -129,8 +129,6 @@
import
{
useQuasar
}
from
'quasar'
import
{
useQuasar
}
from
'quasar'
import
customerService
from
'@/api/customer'
import
customerService
from
'@/api/customer'
// import { customerFieldtabsType } from '@/@types/customer'
// import { customerFieldtabsType } from '@/@types/customer'
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
draggable
,
selectTree
},
components
:
{
draggable
,
selectTree
},
props
:
{
props
:
{
...
@@ -158,10 +156,8 @@
...
@@ -158,10 +156,8 @@
let
departmentType
=
ref
(
'1'
)
let
departmentType
=
ref
(
'1'
)
let
tab
=
ref
(
1
)
let
tab
=
ref
(
1
)
let
loading
=
ref
(
false
)
let
loading
=
ref
(
false
)
let
tabsList
=
ref
<
Array
<
any
>>
([])
let
tabsList
=
ref
<
Array
<
any
>>
(
props
.
passtabsList
)
tabsList
.
value
=
props
.
passtabsList
let
checkboxList
=
ref
<
Array
<
any
>>
(
props
.
passcheckboxList
)
let
checkboxList
=
ref
<
Array
<
any
>>
([])
checkboxList
.
value
=
props
.
passcheckboxList
let
decimalslist
=
ref
([{
Id
:
0
},
{
Id
:
1
},
{
Id
:
2
},
{
Id
:
3
},
{
Id
:
4
},
{
Id
:
5
},
{
Id
:
6
},
{
Id
:
7
},
{
Id
:
8
},
{
Id
:
9
},
{
Id
:
10
},
{
Id
:
11
},])
let
decimalslist
=
ref
([{
Id
:
0
},
{
Id
:
1
},
{
Id
:
2
},
{
Id
:
3
},
{
Id
:
4
},
{
Id
:
5
},
{
Id
:
6
},
{
Id
:
7
},
{
Id
:
8
},
{
Id
:
9
},
{
Id
:
10
},
{
Id
:
11
},])
let
returnString
=
ref
<
Array
<
any
>>
([])
let
returnString
=
ref
<
Array
<
any
>>
([])
if
(
addMsg
.
value
.
Id
>
0
)
{
if
(
addMsg
.
value
.
Id
>
0
)
{
...
@@ -260,7 +256,6 @@
...
@@ -260,7 +256,6 @@
ctx
.
emit
(
'getcancel'
,
2
)
ctx
.
emit
(
'getcancel'
,
2
)
}
else
{
//如果移动失败 重新获取列表
}
else
{
//如果移动失败 重新获取列表
loading
.
value
=
false
loading
.
value
=
false
}
}
})
})
}
}
...
@@ -288,7 +283,6 @@
...
@@ -288,7 +283,6 @@
Enable
:
1
,
Enable
:
1
,
};
};
}
}
return
{
return
{
getcancel
,
//关闭弹窗
getcancel
,
//关闭弹窗
savewb
,
//保存数据
savewb
,
//保存数据
...
...
src/pages/customer/components/customerPhase.vue
View file @
98c19049
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
<div
class=
"customerPhase page-body"
>
<div
class=
"customerPhase page-body"
>
<div
style=
"display: flex;align-items: center;justify-content: space-between;"
>
<div
style=
"display: flex;align-items: center;justify-content: space-between;"
>
<div
style=
"display: flex;align-items: center;"
>
<div
style=
"display: flex;align-items: center;"
>
<q-btn
v-if=
"state.data.length
<20
"
color=
"accent"
style=
"margin-bottom: 10px;"
class=
"q-mr-md"
label=
"创建阶段流程"
@
click=
"
goestablish(
)"
size=
"sm"
></q-btn>
<q-btn
v-if=
"state.data.length
<20
"
color=
"accent"
style=
"margin-bottom: 10px;"
class=
"q-mr-md"
label=
"创建阶段流程"
@
click=
"
jumpPage('/editor/createStageRange'
)"
size=
"sm"
></q-btn>
<span
style=
"margin-left: 20px;color: rgb(133, 133, 152);"
>
已添加:
{{
state
.
data
.
length
}}
/20
</span>
<span
style=
"margin-left: 20px;color: rgb(133, 133, 152);"
>
已添加:
{{
state
.
data
.
length
}}
/20
</span>
</div>
</div>
<q-btn
color=
"white"
text-color=
"black"
style=
"margin-bottom: 10px;"
class=
"q-mr-md"
label=
"阶段管理"
size=
"sm"
<q-btn
color=
"white"
text-color=
"black"
style=
"margin-bottom: 10px;"
class=
"q-mr-md"
label=
"阶段管理"
size=
"sm"
@
click=
"
stageManagement(
)"
></q-btn>
@
click=
"
jumpPage('/editor/manageStageRange'
)"
></q-btn>
</div>
</div>
<table
class=
"payTable"
>
<table
class=
"payTable"
>
<thead>
<thead>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<tr
v-for=
"(item,index) in state.data"
:key=
"index"
>
<tr
v-for=
"(item,index) in state.data"
:key=
"index"
>
<td><span>
{{
item
.
FlowName
}}
</span></td>
<td><span>
{{
item
.
FlowName
}}
</span></td>
<td>
<td>
<span
v-if=
'item.DeptEmpList && item.DeptEmpList.length>0'
v-for=
"(x,y) in item.DeptEmpList"
:key=
'y'
>
<
!--
<
span
v-if=
'item.DeptEmpList && item.DeptEmpList.length>0'
v-for=
"(x,y) in item.DeptEmpList"
:key=
'y'
>
<q-chip
color=
"blue-1"
text-color=
"blue"
icon=
"folder"
size=
"sm"
v-if=
"x.Type==1"
>
<q-chip
color=
"blue-1"
text-color=
"blue"
icon=
"folder"
size=
"sm"
v-if=
"x.Type==1"
>
{{
x
.
Name
}}
{{
x
.
Name
}}
</q-chip>
</q-chip>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
{{
x
.
Name
}}
{{
x
.
Name
}}
</q-chip>
</q-chip>
</span>
</span>
<span
v-else
>
未适配其他规则的阶段
</span>
<span
v-else
>
未适配其他规则的阶段
</span>
-->
</td>
</td>
<td>
<td>
...
@@ -63,9 +63,10 @@
...
@@ -63,9 +63,10 @@
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
onMounted
,
reactive
}
from
'vue'
import
{
defineComponent
,
onMounted
,
reactive
}
from
'vue'
import
customerService
from
'@/api/customer'
import
customerService
from
'@/api/customer'
import
{
useQuasar
}
from
'quasar'
import
{
useQuasar
}
from
'quasar'
import
router
from
'@/router/index'
export
default
defineComponent
({
export
default
defineComponent
({
setup
(){
setup
(){
...
@@ -119,6 +120,14 @@
...
@@ -119,6 +120,14 @@
}
}
})
})
}
}
const
jumpPage
=
(
url
:
string
)
=>
{
router
.
push
({
path
:
url
,
query
:{
}
})
}
onMounted
(()
=>
{
onMounted
(()
=>
{
getList
()
getList
()
})
})
...
@@ -126,7 +135,8 @@
...
@@ -126,7 +135,8 @@
getList
,
getList
,
state
,
state
,
setFiledState
,
setFiledState
,
godelete
godelete
,
jumpPage
}
}
}
}
})
})
...
...
src/pages/editor/createStageRange.vue
0 → 100644
View file @
98c19049
This diff is collapsed.
Click to expand it.
src/pages/editor/manageStageRange.vue
0 → 100644
View file @
98c19049
This diff is collapsed.
Click to expand it.
src/router/routes.ts
View file @
98c19049
...
@@ -39,6 +39,18 @@ const routes: RouteRecordRaw[] = [
...
@@ -39,6 +39,18 @@ const routes: RouteRecordRaw[] = [
path
:
'/editor/editRule'
,
path
:
'/editor/editRule'
,
component
:
()
=>
import
(
'@/pages/editor/editRule.vue'
)
component
:
()
=>
import
(
'@/pages/editor/editRule.vue'
)
},
},
// 编辑阶段规则
{
path
:
'/editor/manageStageRange'
,
component
:
()
=>
import
(
'@/pages/editor/manageStageRange.vue'
)
},
// 创建阶段
{
path
:
'/editor/createStageRange'
,
component
:
()
=>
import
(
'@/pages/editor/createStageRange.vue'
)
},
{
{
path
:
'/auth/login'
,
path
:
'/auth/login'
,
component
:
()
=>
import
(
'@/pages/auth/login.vue'
)
component
:
()
=>
import
(
'@/pages/auth/login.vue'
)
...
...
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