Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 c7824bae
authored
Nov 20, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增权益
1 parent
4a1ce934
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
2 deletions
src/api/modules/beforeSale.js
src/components/glsx-combi-form/index.vue
src/views/beforeSale/editEquity.vue
src/api/modules/beforeSale.js
View file @
c7824ba
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
const
defaultPath
=
'scrm.api.equity.service.package.'
const
defaultPath
=
'scrm.api.equity.service.package.'
const
orderPath
=
'scrm.api.equity.service.order.'
const
getListApi
=
params
=>
{
const
getListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.list.get`
params
.
method
=
`
${
defaultPath
}
order.list.get`
...
@@ -22,6 +23,17 @@ const getExportApi = params => {
...
@@ -22,6 +23,17 @@ const getExportApi = params => {
})
})
}
}
const
getCarBrandListApi
=
params
=>
{
// params.method = 'dj.api.car.series.list'
params
.
method
=
'scrm.api.carlife.common.getCarBrandList'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
updateHotlineApi
=
params
=>
{
const
updateHotlineApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.hotline.update`
params
.
method
=
`
${
defaultPath
}
merchant.hotline.update`
return
http
({
return
http
({
...
@@ -33,4 +45,37 @@ const updateHotlineApi = params => {
...
@@ -33,4 +45,37 @@ const updateHotlineApi = params => {
})
})
}
}
export
default
{
getListApi
,
getExportApi
,
updateHotlineApi
}
// 获取无忧卡套餐列表
const
getPackageListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
list.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
updateEquityApi
=
params
=>
{
params
.
method
=
`
${
orderPath
}
insert.or.update`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 获取合同号
const
createCodeApi
=
params
=>
{
params
.
method
=
`
${
orderPath
}
code.create`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getListApi
,
getExportApi
,
getCarBrandListApi
,
updateHotlineApi
,
getPackageListApi
,
updateEquityApi
,
createCodeApi
}
src/components/glsx-combi-form/index.vue
View file @
c7824ba
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<el-radio-group
v-else-if=
"item.type === 'radio'"
v-model=
"formObj[item.name]"
:disabled=
"item.isDisabled"
@
change=
"item.handleRadioChange"
>
<el-radio-group
v-else-if=
"item.type === 'radio'"
v-model=
"formObj[item.name]"
:disabled=
"item.isDisabled"
@
change=
"item.handleRadioChange"
>
<el-radio
v-for=
"subItem in item.optionList"
:key=
"subItem[item.optionId]"
:label=
"subItem[item.optionId]"
>
{{ subItem[item.optionLabel] }}
</el-radio>
<el-radio
v-for=
"subItem in item.optionList"
:key=
"subItem[item.optionId]"
:label=
"subItem[item.optionId]"
>
{{ subItem[item.optionLabel] }}
</el-radio>
</el-radio-group>
</el-radio-group>
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
:value-format=
"item.valueFormat"
:style=
"{ width: item.selectWidth || defaultWidth }"
v-model=
"formObj[item.name]"
:type=
"item.dateType || 'daterange'"
:clearable=
"item.isClear || false"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:placeholder=
"item.placeholder || '请选择' + item.label"
:picker-options=
"pickerOption[item.pickerOptions]"
></el-date-picker>
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
:value-format=
"item.valueFormat"
:style=
"{ width: item.selectWidth || defaultWidth }"
v-model=
"formObj[item.name]"
:type=
"item.dateType || 'daterange'"
:clearable=
"item.isClear || false"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:placeholder=
"item.placeholder || '请选择' + item.label"
:picker-options=
"pickerOption[item.pickerOptions]"
@
change=
"e => handleDateChange(e, item)"
></el-date-picker>
<
template
v-else-if=
"item.type === 'upload'"
>
<
template
v-else-if=
"item.type === 'upload'"
>
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || '100%' }">
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || '100%' }">
...
@@ -174,6 +174,9 @@ export default {
...
@@ -174,6 +174,9 @@ export default {
item
.
keyFn
()
item
.
keyFn
()
}
}
},
},
handleDateChange
(
value
,
targetItem
)
{
targetItem
.
handleDateChange
&&
targetItem
.
handleDateChange
(
value
,
targetItem
)
},
// 图片
// 图片
handleUploadChange
(
e
,
targetItem
)
{
handleUploadChange
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
...
...
src/views/beforeSale/editEquity.vue
View file @
c7824ba
This diff is collapsed.
Click to expand it.
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