Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 8250ab5b
authored
Dec 13, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
联调
1 parent
d41eb7a4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
161 additions
and
48 deletions
src/api/modules/contractManager.js
src/api/modules/openconfig.js
src/config/index.js
src/views/ContractManager/addTmpl.vue
src/views/ContractManager/goodIndex.vue
src/views/ContractManager/prodIndex.vue
src/views/GH/Renew/detail.vue
src/views/claims/components/repair.vue
src/views/claims/order.vue
src/views/config/addConfig.vue
src/views/config/index.vue
src/api/modules/contractManager.js
View file @
8250ab5
...
@@ -73,7 +73,6 @@ const babchInitTemplateApi = params => {
...
@@ -73,7 +73,6 @@ const babchInitTemplateApi = params => {
})
})
}
}
const
exportContractApi
=
params
=>
{
const
exportContractApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.list.export`
params
.
method
=
`scrm.api.equity.service.contract.template.list.export`
return
http
({
return
http
({
...
@@ -84,6 +83,27 @@ const exportContractApi = params => {
...
@@ -84,6 +83,27 @@ const exportContractApi = params => {
})
})
}
}
const
getProdContractListApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.base.package.list.page`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//产品列表导出
const
exportProdContractApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.base.package.export`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
getContractListApi
,
getContractListApi
,
saveContractTemplateApi
,
saveContractTemplateApi
,
...
@@ -92,5 +112,7 @@ export default {
...
@@ -92,5 +112,7 @@ export default {
copyTemplateApi
,
copyTemplateApi
,
babchCopyTemplateApi
,
babchCopyTemplateApi
,
babchInitTemplateApi
,
babchInitTemplateApi
,
exportContractApi
exportContractApi
,
getProdContractListApi
,
exportProdContractApi
}
}
src/api/modules/openconfig.js
View file @
8250ab5
...
@@ -5,7 +5,7 @@ const getConfigList = params => {
...
@@ -5,7 +5,7 @@ const getConfigList = params => {
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
})
})
}
}
const
openConfigs
=
params
=>
{
const
openConfigs
=
params
=>
{
...
@@ -14,7 +14,7 @@ const openConfigs = params => {
...
@@ -14,7 +14,7 @@ const openConfigs = params => {
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
returnAll
:
true
returnAll
:
true
})
})
}
}
const
closeConfigs
=
params
=>
{
const
closeConfigs
=
params
=>
{
...
@@ -23,8 +23,7 @@ const closeConfigs = params => {
...
@@ -23,8 +23,7 @@ const closeConfigs = params => {
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
returnAll
:
true
returnAll
:
true
})
})
}
}
// 跳转后获取配置
// 跳转后获取配置
...
@@ -33,7 +32,7 @@ const getConfig = params => {
...
@@ -33,7 +32,7 @@ const getConfig = params => {
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
})
})
}
}
// 配置导出
// 配置导出
...
@@ -42,7 +41,7 @@ const exportConfig = params => {
...
@@ -42,7 +41,7 @@ const exportConfig = params => {
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
})
})
}
}
//修改配置
//修改配置
...
@@ -52,7 +51,7 @@ const modifyConfig = params => {
...
@@ -52,7 +51,7 @@ const modifyConfig = params => {
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
returnAll
:
true
returnAll
:
true
})
})
}
}
//创建配置
//创建配置
...
@@ -62,7 +61,7 @@ const addConfig = params => {
...
@@ -62,7 +61,7 @@ const addConfig = params => {
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
returnAll
:
true
returnAll
:
true
})
})
}
}
//分页获取商户配置
//分页获取商户配置
...
@@ -71,7 +70,7 @@ const getStoreConfig = params => {
...
@@ -71,7 +70,7 @@ const getStoreConfig = params => {
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
})
})
}
}
//查询商户配置
//查询商户配置
...
@@ -81,7 +80,17 @@ const selStoreConfig = params => {
...
@@ -81,7 +80,17 @@ const selStoreConfig = params => {
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
returnAll
:
true
returnAll
:
true
})
}
//批量开通销售模式
const
batchOpenSaleModeApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.batch.open`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
})
})
}
}
export
default
{
export
default
{
...
@@ -93,5 +102,6 @@ export default {
...
@@ -93,5 +102,6 @@ export default {
modifyConfig
,
modifyConfig
,
getStoreConfig
,
getStoreConfig
,
addConfig
,
addConfig
,
selStoreConfig
selStoreConfig
,
batchOpenSaleModeApi
}
}
src/config/index.js
View file @
8250ab5
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
let
cfg
=
require
(
'./conf.js'
)
let
cfg
=
require
(
'./conf.js'
)
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
import
{
Http
}
from
'glsx-common'
import
{
Http
}
from
'glsx-common'
export
const
fetchConfig
=
function
(
common
)
{
export
const
fetchConfig
=
function
(
common
)
{
// console.log(common);
// console.log(common);
// console.log(utils);
// console.log(utils);
// let params = { moduleName: 'presale', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config',env:'test', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// let params = { moduleName: 'presale', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config',env:'test', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
...
@@ -21,8 +21,8 @@ export const fetchConfig = function (common) {
...
@@ -21,8 +21,8 @@ export const fetchConfig = function (common) {
// Object.assign(request, { timeout })
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
//
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
return
new
Http
({
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}).
get
(
' https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config'
)
return
new
Http
({
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=services'
)
//
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=services')
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return common.utils.getConfig(params)
// return common.utils.getConfig(params)
...
...
src/views/ContractManager/addTmpl.vue
View file @
8250ab5
...
@@ -59,6 +59,7 @@ export default {
...
@@ -59,6 +59,7 @@ export default {
return
{
return
{
isPdfVisible
:
false
,
isPdfVisible
:
false
,
pdfUrl
:
''
,
pdfUrl
:
''
,
routerInfo
:
{},
placeholderList
:
[],
placeholderList
:
[],
pdfObj
:
{
pdfObj
:
{
merchantId
:
''
,
merchantId
:
''
,
...
@@ -143,7 +144,9 @@ export default {
...
@@ -143,7 +144,9 @@ export default {
}
}
},
},
created
()
{},
created
()
{
this
.
routerInfo
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
id
))
},
mounted
()
{
mounted
()
{
this
.
getContractDetail
()
this
.
getContractDetail
()
...
@@ -151,7 +154,7 @@ export default {
...
@@ -151,7 +154,7 @@ export default {
methods
:
{
methods
:
{
getContractDetail
()
{
getContractDetail
()
{
this
.
$apis
.
contractManager
.
getContractDetailApi
({
id
:
this
.
$route
.
params
.
id
}).
then
(
res
=>
{
this
.
$apis
.
contractManager
.
getContractDetailApi
({
id
:
this
.
routerInfo
.
id
}).
then
(
res
=>
{
if
(
res
&&
res
.
templateConfig
)
{
if
(
res
&&
res
.
templateConfig
)
{
this
.
placeholderList
=
res
.
placeholderList
this
.
placeholderList
=
res
.
placeholderList
for
(
const
key
in
this
.
contentObj
)
{
for
(
const
key
in
this
.
contentObj
)
{
...
@@ -195,7 +198,11 @@ export default {
...
@@ -195,7 +198,11 @@ export default {
commitTemplate
(
type
)
{
commitTemplate
(
type
)
{
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
if
(
params
.
status
==
-
1
)
return
this
.
$message
.
error
(
params
.
errorTip
)
if
(
params
.
status
==
-
1
)
return
this
.
$message
.
error
(
params
.
errorTip
)
this
.
$apis
.
contractManager
.
saveContractTemplateApi
({
...
params
}).
then
(
res
=>
{
const
_targetParam
=
{
...
params
}
if
(
this
.
routerInfo
.
skuId
)
_targetParam
.
skuId
=
this
.
routerInfo
.
skuId
this
.
$apis
.
contractManager
.
saveContractTemplateApi
(
_targetParam
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
if
(
type
==
'preview'
)
{
if
(
type
==
'preview'
)
{
this
.
handlePdf
()
this
.
handlePdf
()
...
...
src/views/ContractManager/goodIndex.vue
View file @
8250ab5
...
@@ -349,7 +349,7 @@ export default {
...
@@ -349,7 +349,7 @@ export default {
id
id
}
}
const
queryStr
=
encodeURIComponent
(
JSON
.
stringify
(
query
))
const
queryStr
=
encodeURIComponent
(
JSON
.
stringify
(
query
))
this
.
$router
.
push
(
'/ContractManager/addTmpl/'
+
id
)
this
.
$router
.
push
(
'/ContractManager/addTmpl/'
+
queryStr
)
}
}
}
}
}
}
...
...
src/views/ContractManager/prodIndex.vue
View file @
8250ab5
This diff is collapsed.
Click to expand it.
src/views/GH/Renew/detail.vue
View file @
8250ab5
<!-- 权益订单 -->
<!-- 权益订单 -->
<
template
>
<
template
>
<div>
<div>
<report
:key=
"comKey"
:renewDisable=
"orderStatus
!=
0"
@
toSearchOrderDetail=
"toSearchOrderDetail"
ref=
"reportRef"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:editForm
.
sync=
"editForm"
></report>
<report
:key=
"comKey"
:renewDisable=
"orderStatus
!=
0"
@
toSearchOrderDetail=
"toSearchOrderDetail"
ref=
"reportRef"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:editForm
.
sync=
"editForm"
></report>
<repair
:renewDisable=
"orderStatus
!=
0"
ref=
"repairRef"
@
changeObjectType=
"changeObjectType"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:serviceItemsList
.
sync=
"serviceItemsList"
:totalPrice
.
sync=
"totalPrice"
:accountForm
.
sync=
"accountForm"
></repair>
<repair
:renewDisable=
"orderStatus
!=
0"
ref=
"repairRef"
@
changeObjectType=
"changeObjectType"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:serviceItemsList
.
sync=
"serviceItemsList"
:totalPrice
.
sync=
"totalPrice"
:accountForm
.
sync=
"accountForm"
></repair>
<material
:renewDisable=
"orderStatus
!=
0"
:isXB=
"true"
ref=
"materialRef"
:pageType=
"pageType"
:materialForm
.
sync=
"materialForm"
></material>
<material
:renewDisable=
"orderStatus
!=
0"
:isXB=
"true"
ref=
"materialRef"
:pageType=
"pageType"
:materialForm
.
sync=
"materialForm"
></material>
<!-- 案件说明 -->
<!-- 案件说明 -->
<caseDesc
:supplementList=
"supplementList"
></caseDesc>
<caseDesc
:supplementList=
"supplementList"
></caseDesc>
<!-- 定损记录 -->
<!-- 定损记录 -->
...
@@ -153,7 +153,7 @@ export default {
...
@@ -153,7 +153,7 @@ export default {
},
},
computed
:
{
computed
:
{
totalPrice
()
{
totalPrice
()
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
return
prev
+
+
(
cur
.
approveAmount
*
100
).
toFixed
(
0
)
return
prev
+
+
(
cur
.
approveAmount
*
100
).
toFixed
(
0
)
},
0
)
},
0
)
return
total
/
100
return
total
/
100
...
@@ -200,18 +200,18 @@ export default {
...
@@ -200,18 +200,18 @@ export default {
// 以下是文件数据
// 以下是文件数据
res
.
files
.
forEach
(
item
=>
{
res
.
files
.
forEach
(
item
=>
{
let
obj
=
{
url
:
item
.
fileUrl
,
fileType
:
item
.
fileType
,
name
:
item
.
fileName
,
progress
:
100
,
mark
:
item
.
mark
,
fileCode
:
item
.
fileCode
}
let
obj
=
{
url
:
item
.
fileUrl
,
fileType
:
item
.
fileType
,
name
:
item
.
fileName
,
progress
:
100
,
mark
:
item
.
mark
,
fileCode
:
item
.
fileCode
}
if
(
item
.
fileCode
==
'1'
&&
item
.
fileUrl
)
{
if
(
item
.
fileCode
==
'1'
&&
item
.
fileUrl
)
{
if
(
this
.
materialForm
.
idCard
.
length
===
0
)
{
if
(
this
.
materialForm
.
idCard
.
length
===
0
)
{
this
.
materialForm
.
idCard
.
push
(
obj
)
this
.
materialForm
.
idCard
.
push
(
obj
)
}
else
{
}
else
{
this
.
materialForm
.
idCardBack
.
push
(
obj
)
this
.
materialForm
.
idCardBack
.
push
(
obj
)
}
}
}
else
if
(
item
.
fileCode
==
'31'
&&
item
.
fileUrl
)
{
}
else
if
(
item
.
fileCode
==
'31'
&&
item
.
fileUrl
)
{
this
.
materialForm
.
billInfo
.
push
(
obj
)
this
.
materialForm
.
billInfo
.
push
(
obj
)
}
else
if
(
item
.
fileCode
==
'4'
&&
item
.
fileUrl
)
{
}
else
if
(
item
.
fileCode
==
'4'
&&
item
.
fileUrl
)
{
this
.
materialForm
.
otherInfo
.
push
(
obj
)
this
.
materialForm
.
otherInfo
.
push
(
obj
)
}
}
console
.
log
(
this
.
materialForm
)
;
console
.
log
(
this
.
materialForm
)
})
})
// 案件说明
// 案件说明
res
.
supplementList
.
forEach
(
el
=>
{
res
.
supplementList
.
forEach
(
el
=>
{
...
@@ -343,10 +343,15 @@ export default {
...
@@ -343,10 +343,15 @@ export default {
}
}
params
.
approveAmounts
=
''
params
.
approveAmounts
=
''
let
tagetObj
=
{}
let
tagetObj
=
{}
let
lossAssessmentTarget
=
{}
this
.
serviceItemsList
.
forEach
(
item
=>
{
this
.
serviceItemsList
.
forEach
(
item
=>
{
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
if
(
item
.
lossAssessmentFlag
)
{
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
}
})
})
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
delete
params
.
reimbursementAddress
delete
params
.
reimbursementAddress
params
.
fileList
=
[]
params
.
fileList
=
[]
for
(
let
key
in
this
.
materialForm
)
{
for
(
let
key
in
this
.
materialForm
)
{
...
@@ -402,8 +407,8 @@ export default {
...
@@ -402,8 +407,8 @@ export default {
this
.
renewalAudit
({
approveAmounts
:
JSON
.
stringify
(
sc_obg
)
},
4
)
this
.
renewalAudit
({
approveAmounts
:
JSON
.
stringify
(
sc_obg
)
},
4
)
},
},
renewalAudit
(
params
,
operation
)
{
renewalAudit
(
params
,
operation
)
{
const
{
equityOrderDetail
}
=
this
.
detailInfo
const
{
equityOrderDetail
}
=
this
.
detailInfo
if
(
equityOrderDetail
&&
equityOrderDetail
.
vehicle
)
{
if
(
equityOrderDetail
&&
equityOrderDetail
.
vehicle
)
{
params
.
carNumber
=
equityOrderDetail
.
vehicle
.
licensePlate
params
.
carNumber
=
equityOrderDetail
.
vehicle
.
licensePlate
}
}
this
.
$apis
.
claims
.
renewalAudit
({
...
this
.
editForm
,
operation
,
id
:
this
.
routeInfo
.
orderId
,
...
this
.
accountForm
,
...
params
}).
then
(
res
=>
{
this
.
$apis
.
claims
.
renewalAudit
({
...
this
.
editForm
,
operation
,
id
:
this
.
routeInfo
.
orderId
,
...
this
.
accountForm
,
...
params
}).
then
(
res
=>
{
...
...
src/views/claims/components/repair.vue
View file @
8250ab5
...
@@ -26,8 +26,12 @@
...
@@ -26,8 +26,12 @@
<div
class=
"service-item"
v-for=
"(item, index) in serviceItemsList"
:key=
"item.serviceItemCode"
>
<div
class=
"service-item"
v-for=
"(item, index) in serviceItemsList"
:key=
"item.serviceItemCode"
>
<p
class=
"name"
>
{{
item
.
serviceItemName
}}
</p>
<p
class=
"name"
>
{{
item
.
serviceItemName
}}
</p>
<div
class=
"price-wrap"
>
<div
class=
"price-wrap"
>
<label
for=
""
>
定损批准金额:
</label>
<label
class=
"label"
for=
""
>
定损批准金额:
</label>
<el-input
:disabled=
"pageType == 2 || renewDisable"
maxlength=
"10"
@
input=
"validPrice($event, index)"
@
blur=
"changePrice($event, index)"
placeholder=
"请选择定损批准金额"
v-model=
"item.approveAmount"
></el-input>
<el-input
:disabled=
"pageType == 2 || renewDisable"
maxlength=
"10"
@
input=
"validPrice($event, index)"
@
blur=
"changePrice($event, index)"
placeholder=
"请输入"
v-model=
"item.approveAmount"
></el-input>
</div>
<div
v-if=
"item.lossAssessmentFlag"
class=
"price-wrap"
>
<label
class=
"label"
for=
""
>
保险公司定损金额:
</label>
<el-input
:disabled=
"pageType == 2 || renewDisable"
maxlength=
"10"
@
input=
"validPrice($event, index)"
@
blur=
"changePrice($event, index)"
placeholder=
"请输入"
v-model=
"item.lossAssessmentAmount"
></el-input>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -400,7 +404,8 @@ export default {
...
@@ -400,7 +404,8 @@ export default {
height
:
16px
;
height
:
16px
;
}
}
.service-item
{
.service-item
{
width
:
264px
;
width
:
294px
;
box-sizing
:
border-box
;
padding
:
10px
;
padding
:
10px
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
4px
;
border-radius
:
4px
;
...
@@ -409,17 +414,25 @@ export default {
...
@@ -409,17 +414,25 @@ export default {
margin-bottom
:
20px
;
margin-bottom
:
20px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.name
{
.name
{
font-weight
:
600
;
font-weight
:
600
;
flex
:
1
;
height
:
20px
;
margin-bottom
:
16
px
;
line-height
:
20
px
;
}
}
.price-wrap
{
.price-wrap
{
&:first-child
{
margin-top
:
0
;
}
margin-top
:
10px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
baseline
;
flex
:
1
;
flex
:
1
;
label
{
label
{
white-space
:
nowrap
;
white-space
:
nowrap
;
display
:
inline-block
;
width
:
130px
;
flex-shrink
:
0
;
}
}
/
deep
/
.el-input__inner
{
/
deep
/
.el-input__inner
{
height
:
32px
;
height
:
32px
;
...
...
src/views/claims/order.vue
View file @
8250ab5
...
@@ -182,7 +182,7 @@ export default {
...
@@ -182,7 +182,7 @@ export default {
},
},
computed
:
{
computed
:
{
totalPrice
()
{
totalPrice
()
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
return
prev
+
+
(
cur
.
approveAmount
*
100
).
toFixed
(
0
)
return
prev
+
+
(
cur
.
approveAmount
*
100
).
toFixed
(
0
)
},
0
)
},
0
)
return
total
/
100
return
total
/
100
...
@@ -213,7 +213,7 @@ export default {
...
@@ -213,7 +213,7 @@ export default {
imgFlag
=
true
imgFlag
=
true
curImgIndex
=
index
curImgIndex
=
index
}
}
if
(
el
.
accountVerifyImagesList
&&
el
.
accountVerifyImagesList
.
length
)
{
if
(
el
.
accountVerifyImagesList
&&
el
.
accountVerifyImagesList
.
length
)
{
el
.
accountVerifyImagesList
.
forEach
((
k
,
i
)
=>
{
el
.
accountVerifyImagesList
.
forEach
((
k
,
i
)
=>
{
if
(
!
k
.
verifyImage
)
{
if
(
!
k
.
verifyImage
)
{
imgFlag
=
true
imgFlag
=
true
...
@@ -248,10 +248,15 @@ export default {
...
@@ -248,10 +248,15 @@ export default {
}
}
params
.
approveAmounts
=
''
params
.
approveAmounts
=
''
let
tagetObj
=
{}
let
tagetObj
=
{}
let
lossAssessmentTarget
=
{}
this
.
serviceItemsList
.
forEach
(
item
=>
{
this
.
serviceItemsList
.
forEach
(
item
=>
{
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
if
(
item
.
lossAssessmentFlag
)
{
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
}
})
})
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
delete
params
.
reimbursementAddress
delete
params
.
reimbursementAddress
params
.
fileList
=
[]
params
.
fileList
=
[]
for
(
let
key
in
this
.
materialForm
)
{
for
(
let
key
in
this
.
materialForm
)
{
...
@@ -287,16 +292,17 @@ export default {
...
@@ -287,16 +292,17 @@ export default {
}
}
},
},
toCheckOrder
(
operation
,
addQuery
=
{})
{
toCheckOrder
(
operation
,
addQuery
=
{})
{
let
claimsQuery
=
{},
_accountMatchResultList
=
[]
let
claimsQuery
=
{},
_accountMatchResultList
=
[]
claimsQuery
=
this
.
handlerClaimsQueryForCheck
()
claimsQuery
=
this
.
handlerClaimsQueryForCheck
()
if
(
operation
==
20
)
{
if
(
operation
==
20
)
{
const
flag
=
this
.
verifyWarningImage
()
const
flag
=
this
.
verifyWarningImage
()
if
(
!
flag
)
return
if
(
!
flag
)
return
}
}
if
(
this
.
queryList
&&
this
.
queryList
.
length
>
0
)
{
if
(
this
.
queryList
&&
this
.
queryList
.
length
>
0
)
{
const
_temArr
=
JSON
.
stringify
(
this
.
queryList
)
const
_temArr
=
JSON
.
stringify
(
this
.
queryList
)
_accountMatchResultList
=
JSON
.
parse
(
_temArr
)
_accountMatchResultList
=
JSON
.
parse
(
_temArr
)
_accountMatchResultList
.
forEach
(
el
=>
{
_accountMatchResultList
.
forEach
(
el
=>
{
delete
el
.
matchType
delete
el
.
matchType
})
})
}
}
...
@@ -333,7 +339,7 @@ export default {
...
@@ -333,7 +339,7 @@ export default {
id
:
el
.
id
,
id
:
el
.
id
,
verifyResultDesc
:
el
.
verifyResultDesc
,
verifyResultDesc
:
el
.
verifyResultDesc
,
accountVerifyImagesList
:
el
.
accountVerifyImagesList
,
accountVerifyImagesList
:
el
.
accountVerifyImagesList
,
matchType
:
el
.
matchType
matchType
:
el
.
matchType
}
}
arr
.
push
(
obj
)
arr
.
push
(
obj
)
})
})
...
@@ -375,6 +381,8 @@ export default {
...
@@ -375,6 +381,8 @@ export default {
}
}
if
(
this
.
accountForm
.
accountType
!==
1
)
this
.
accountForm
.
accountType
=
0
if
(
this
.
accountForm
.
accountType
!==
1
)
this
.
accountForm
.
accountType
=
0
this
.
serviceItemsList
=
serviceItemsList
||
[]
this
.
serviceItemsList
=
serviceItemsList
||
[]
console
.
log
(
this
.
serviceItemsList
,
' this.serviceItemsList '
)
// 以下是文件数据
// 以下是文件数据
res
.
files
.
forEach
(
item
=>
{
res
.
files
.
forEach
(
item
=>
{
let
obj
=
{
url
:
item
.
fileUrl
,
fileType
:
item
.
fileType
,
name
:
item
.
fileName
,
progress
:
100
}
let
obj
=
{
url
:
item
.
fileUrl
,
fileType
:
item
.
fileType
,
name
:
item
.
fileName
,
progress
:
100
}
...
@@ -531,10 +539,15 @@ export default {
...
@@ -531,10 +539,15 @@ export default {
}
}
params
.
approveAmounts
=
''
params
.
approveAmounts
=
''
let
tagetObj
=
{}
let
tagetObj
=
{}
let
lossAssessmentTarget
=
{}
this
.
serviceItemsList
.
forEach
(
item
=>
{
this
.
serviceItemsList
.
forEach
(
item
=>
{
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
if
(
item
.
lossAssessmentFlag
)
{
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
}
})
})
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
delete
params
.
reimbursementAddress
delete
params
.
reimbursementAddress
params
.
fileList
=
[]
params
.
fileList
=
[]
for
(
let
key
in
this
.
materialForm
)
{
for
(
let
key
in
this
.
materialForm
)
{
...
@@ -556,14 +569,15 @@ export default {
...
@@ -556,14 +569,15 @@ export default {
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
background
:
'rgba(0, 0, 0, 0.3)'
})
})
if
(
!
this
.
routeInfo
.
isGH
)
{
if
(
!
this
.
routeInfo
.
isGH
)
{
params
.
equitySource
=
2
params
.
equitySource
=
2
}
}
console
.
log
(
params
,
'params'
)
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
loading
.
close
()
loading
.
close
()
if
(
res
)
{
if
(
res
)
{
if
(
res
.
accountMatchResultList
&&
res
.
accountMatchResultList
.
length
)
{
if
(
res
.
accountMatchResultList
&&
res
.
accountMatchResultList
.
length
)
{
res
.
accountMatchResultList
.
forEach
(
el
=>
{
res
.
accountMatchResultList
.
forEach
(
el
=>
{
el
.
accountVerifyImagesList
=
el
.
accountVerifyImagesList
||
[]
el
.
accountVerifyImagesList
=
el
.
accountVerifyImagesList
||
[]
})
})
this
.
accountMatchResultList
=
res
.
accountMatchResultList
||
[]
this
.
accountMatchResultList
=
res
.
accountMatchResultList
||
[]
...
...
src/views/config/addConfig.vue
View file @
8250ab5
...
@@ -19,6 +19,13 @@
...
@@ -19,6 +19,13 @@
<el-checkbox
style=
"display: block; margin-left: 30px;"
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
门店成本
</el-checkbox>
<el-checkbox
style=
"display: block; margin-left: 30px;"
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
门店成本
</el-checkbox>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<div
class=
"sale-mode"
>
<label
class=
"label"
for=
""
>
销售模式:
</label>
<el-radio-group
v-model=
"saleMode"
>
<el-radio
:label=
"1"
>
批发销售
</el-radio>
<el-radio
:label=
"2"
>
驻店零售
</el-radio>
</el-radio-group>
</div>
<
template
v-if=
"!showGh"
>
<
template
v-if=
"!showGh"
>
<el-form-item
size=
"small"
label=
"配置可见产品及产品属性"
></el-form-item>
<el-form-item
size=
"small"
label=
"配置可见产品及产品属性"
></el-form-item>
<el-form-item>
<el-form-item>
...
@@ -91,7 +98,7 @@
...
@@ -91,7 +98,7 @@
<el-checkbox
v-model=
"carefree"
>
优享版
</el-checkbox>
<el-checkbox
v-model=
"carefree"
>
优享版
</el-checkbox>
</el-form-item>
</el-form-item>
<el-form-item
v-for=
"item in newPackageList"
:key=
"item.packageCode"
>
<el-form-item
v-for=
"item in newPackageList"
:key=
"item.packageCode"
>
<el-checkbox
v-model=
"item.isChecked"
>
{{
item
.
packageName
}}
</el-checkbox>
<el-checkbox
v-model=
"item.isChecked"
>
{{
item
.
packageName
}}
</el-checkbox>
<div>
<div>
<el-checkbox
v-model=
"item.cardName"
true-label=
"card"
false-label=
""
>
卡输入
</el-checkbox>
<el-checkbox
v-model=
"item.cardName"
true-label=
"card"
false-label=
""
>
卡输入
</el-checkbox>
</div>
</div>
...
@@ -103,7 +110,6 @@
...
@@ -103,7 +110,6 @@
<el-row
slot
>
<el-row
slot
>
<el-form
:model=
"searchForm"
ref=
"relate"
:inline=
"true"
label-width=
"90px"
class=
"configDialog"
>
<el-form
:model=
"searchForm"
ref=
"relate"
:inline=
"true"
label-width=
"90px"
class=
"configDialog"
>
<el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入内容"
v-model=
"searchForm.selectInput"
class=
"input-with-select"
size=
"small"
>
<el-input
placeholder=
"请输入内容"
v-model=
"searchForm.selectInput"
class=
"input-with-select"
size=
"small"
>
<el-select
v-model=
"searchForm.select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-select
v-model=
"searchForm.select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
label=
"商户名称"
value=
"1"
></el-option>
<el-option
label=
"商户名称"
value=
"1"
></el-option>
...
@@ -140,6 +146,7 @@ export default {
...
@@ -140,6 +146,7 @@ export default {
configTitle
:
''
,
configTitle
:
''
,
selectedTable
:
false
,
selectedTable
:
false
,
checkPosition
:
false
,
checkPosition
:
false
,
saleMode
:
1
,
tableData
:
[],
tableData
:
[],
merchantIds
:
[],
merchantIds
:
[],
selectedList
:
[],
selectedList
:
[],
...
@@ -314,6 +321,7 @@ export default {
...
@@ -314,6 +321,7 @@ export default {
}
}
this
.
$apis
.
openconfig
.
getConfig
(
para
).
then
(
res
=>
{
this
.
$apis
.
openconfig
.
getConfig
(
para
).
then
(
res
=>
{
res
=
res
||
{}
res
=
res
||
{}
this
.
saleMode
=
res
.
saleMode
this
.
costPrice
=
res
.
openCostPrice
==
1
this
.
costPrice
=
res
.
openCostPrice
==
1
this
.
storeSelParams
=
res
this
.
storeSelParams
=
res
this
.
id
=
res
.
id
this
.
id
=
res
.
id
...
@@ -447,7 +455,8 @@ export default {
...
@@ -447,7 +455,8 @@ export default {
})
})
let
targetParams
=
{
let
targetParams
=
{
openCostPrice
:
this
.
costPrice
?
1
:
0
,
openCostPrice
:
this
.
costPrice
?
1
:
0
,
createDetailRequests
:
params
createDetailRequests
:
params
,
saleMode
:
this
.
saleMode
}
}
if
(
this
.
showGh
){
if
(
this
.
showGh
){
delete
targetParams
.
createDetailRequests
delete
targetParams
.
createDetailRequests
...
@@ -678,6 +687,27 @@ export default {
...
@@ -678,6 +687,27 @@ export default {
}
}
}
}
.sale-mode
{
height
:
32px
;
line-height
:
32px
;
display
:
flex
;
align-items
:
center
;
.label
{
//
width
:
154px
;
display
:
inline-block
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#333333
;
text-align
:
right
;
&::before
{
content
:
'*'
;
color
:
#f56c6c
;
margin-right
:
4px
;
}
}
}
.special-config
{
.special-config
{
margin-bottom
:
0
!important
;
margin-bottom
:
0
!important
;
}
}
...
...
src/views/config/index.vue
View file @
8250ab5
...
@@ -151,6 +151,13 @@ export default {
...
@@ -151,6 +151,13 @@ export default {
prop
:
'merchantId'
prop
:
'merchantId'
},
},
{
{
label
:
'销售模式'
,
prop
:
'saleMode'
,
formatter
:
cell
=>
{
return
cell
.
saleMode
==
1
?
'批发销售'
:
'驻店零售'
}
},
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'openFlag'
,
prop
:
'openFlag'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
...
@@ -263,7 +270,12 @@ export default {
...
@@ -263,7 +270,12 @@ export default {
batchOpenSale
(){
batchOpenSale
(){
const
data
=
this
.
$refs
.
table
?.
mutiSelectArr
?.[
this
.
tableParams
.
mutiSelectName
]
||
[]
const
data
=
this
.
$refs
.
table
?.
mutiSelectArr
?.[
this
.
tableParams
.
mutiSelectName
]
||
[]
const
ids
=
data
.
map
(
item
=>
item
.
id
)
const
ids
=
data
.
map
(
item
=>
item
.
id
)
console
.
log
(
ids
)
this
.
$apis
.
openconfig
.
batchOpenSaleModeApi
({
ids
,
saleMode
:
2
}).
then
(
res
=>
{
if
(
res
){
this
.
$message
.
success
(
'操作成功'
)
this
.
$refs
.
table
.
refreshTable
()
}
})
},
},
// ['开通', '关闭'] //
// ['开通', '关闭'] //
batchOperation
(
status
)
{
batchOperation
(
status
)
{
...
...
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