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 7eb4f6d8
authored
Nov 22, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权益
1 parent
b1474b8c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
3 deletions
src/api/modules/beforeSale.js
src/components/glsx-combi-form/index.vue
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/api/modules/beforeSale.js
View file @
7eb4f6d
...
@@ -3,6 +3,16 @@ import { http, http_brand } from '@/main'
...
@@ -3,6 +3,16 @@ import { http, http_brand } from '@/main'
const
defaultPath
=
'scrm.api.equity.service.package.'
const
defaultPath
=
'scrm.api.equity.service.package.'
const
orderPath
=
'scrm.api.equity.service.order.'
const
orderPath
=
'scrm.api.equity.service.order.'
const
getUserInfoApi
=
params
=>
{
params
.
method
=
'scrm.api.equity.common.merchant.current.det'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
getListApi
=
params
=>
{
const
getListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.list.get`
params
.
method
=
`
${
defaultPath
}
order.list.get`
return
http
({
return
http
({
...
@@ -13,6 +23,17 @@ const getListApi = params => {
...
@@ -13,6 +23,17 @@ const getListApi = params => {
})
})
}
}
// 获取门店
const
getMerchantApi
=
params
=>
{
params
.
method
=
'scrm.api.equity.common.under.merchant.list.det'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
getExportApi
=
params
=>
{
const
getExportApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.export.get`
params
.
method
=
`
${
defaultPath
}
order.export.get`
return
http
({
return
http
({
...
@@ -97,6 +118,17 @@ const updateHotlineApi = params => {
...
@@ -97,6 +118,17 @@ const updateHotlineApi = params => {
})
})
}
}
// 获取产品名称(套餐名称)
const
getProListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
select.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 获取无忧卡套餐列表
// 获取无忧卡套餐列表
const
getPackageListApi
=
params
=>
{
const
getPackageListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
list.get`
params
.
method
=
`
${
defaultPath
}
list.get`
...
@@ -185,4 +217,16 @@ const uploadImgApi = params => {
...
@@ -185,4 +217,16 @@ const uploadImgApi = params => {
})
})
}
}
export
default
{
getListApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
updateHotlineApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getOrderValueApi
,
updateOrderApi
,
uploadImgApi
}
// 退保
const
backOrderApi
=
params
=>
{
params
.
method
=
`
${
orderPath
}
charge.back`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getUserInfoApi
,
getListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
updateHotlineApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getOrderValueApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
}
src/components/glsx-combi-form/index.vue
View file @
7eb4f6d
...
@@ -53,14 +53,14 @@
...
@@ -53,14 +53,14 @@
<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]"
@
change=
"e => handleDateChange(e, item)"
></el-date-picker>
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
:
disabled=
"item.isDisabled"
:
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 === 'uploadBtn'"
>
<
template
v-else-if=
"item.type === 'uploadBtn'"
>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
>
上传
上传
<input
type=
"file"
style=
"opacity: 0;"
:id=
"item.name + 'file'"
ref=
"file"
class=
"upload-img-btn"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
type=
"file"
style=
"opacity: 0;"
:id=
"item.name + 'file'"
ref=
"file"
class=
"upload-img-btn"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
</el-button>
</el-button>
<!--
<el-button
v-show=
"formObj[item.name]"
type=
"primary"
>
查看
</el-button>
-->
<!--
<el-button
v-show=
"formObj[item.name]"
type=
"primary"
>
查看
</el-button>
-->
<el-button
type=
"primary"
>
查看
{{
formObj
}}
</el-button>
<el-button
v-show=
"formObj[item.name]"
type=
"primary"
@
click=
"handleImgLook(formObj[item.name], item)"
>
查看
</el-button>
</
template
>
</
template
>
<
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>
...
@@ -411,6 +411,7 @@ export default {
...
@@ -411,6 +411,7 @@ export default {
.glsx-combi-form
.dialog-look
{
.glsx-combi-form
.dialog-look
{
text-align
:
center
;
text-align
:
center
;
z-index
:
999
;
}
}
.glsx-combi-form
.dialog-video
{
.glsx-combi-form
.dialog-video
{
...
...
src/views/beforeSale/editEquity.vue
View file @
7eb4f6d
This diff is collapsed.
Click to expand it.
src/views/beforeSale/equityList.vue
View file @
7eb4f6d
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