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
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
287 additions
and
174 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
...
...
@@ -2,95 +2,117 @@ import { http } from '@/main'
const
CUR_BASE_URL
=
'rop-scrm-equity/router'
const
getContractListApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.list`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`scrm.api.equity.service.contract.template.list`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
saveContractTemplateApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.update`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`scrm.api.equity.service.contract.template.update`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getContractDetailApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.detail`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`scrm.api.equity.service.contract.template.detail`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
printContractApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.printTest`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`scrm.api.equity.service.contract.template.printTest`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
copyTemplateApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.copyTemplate`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`scrm.api.equity.service.contract.template.copyTemplate`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//批量变更合同模板
const
babchCopyTemplateApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.batch.copyTemplate`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`scrm.api.equity.service.contract.template.batch.copyTemplate`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//批量初始化合同模板
const
babchInitTemplateApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.batch.initTemplate`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`scrm.api.equity.service.contract.template.batch.initTemplate`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
exportContractApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.list.export`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`scrm.api.equity.service.contract.template.list.export`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
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
{
getContractListApi
,
saveContractTemplateApi
,
getContractDetailApi
,
printContractApi
,
copyTemplateApi
,
babchCopyTemplateApi
,
babchInitTemplateApi
,
exportContractApi
}
\ No newline at end of file
getContractListApi
,
saveContractTemplateApi
,
getContractDetailApi
,
printContractApi
,
copyTemplateApi
,
babchCopyTemplateApi
,
babchInitTemplateApi
,
exportContractApi
,
getProdContractListApi
,
exportProdContractApi
}
src/api/modules/openconfig.js
View file @
8250ab5
import
{
http
}
from
'@/main'
const
defaultPath
=
'scrm.api.equity.'
const
getConfigList
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.pagination.list.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
})
params
.
method
=
`
${
defaultPath
}
service.merchant.config.pagination.list.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
})
}
const
openConfigs
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.batch.open`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
params
.
method
=
`
${
defaultPath
}
service.merchant.config.batch.open`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
}
const
closeConfigs
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.batch.close`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
params
.
method
=
`
${
defaultPath
}
service.merchant.config.batch.close`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
}
// 跳转后获取配置
const
getConfig
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
})
params
.
method
=
`
${
defaultPath
}
service.merchant.config.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
})
}
// 配置导出
const
exportConfig
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.export`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
})
params
.
method
=
`
${
defaultPath
}
service.merchant.config.export`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
})
}
//修改配置
const
modifyConfig
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.update`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
params
.
method
=
`
${
defaultPath
}
service.merchant.config.update`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
}
//创建配置
const
addConfig
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.create`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
params
.
method
=
`
${
defaultPath
}
service.merchant.config.create`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
}
//分页获取商户配置
const
getStoreConfig
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.merchant.config.pagination.list.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
})
params
.
method
=
`
${
defaultPath
}
service.merchant.config.pagination.list.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
})
}
//查询商户配置
const
selStoreConfig
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.merchant.pagination.list.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
params
.
method
=
`scrm.api.equity.service.merchant.pagination.list.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
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
{
getConfigList
,
openConfigs
,
closeConfigs
,
getConfig
,
exportConfig
,
modifyConfig
,
getStoreConfig
,
addConfig
,
selStoreConfig
getConfigList
,
openConfigs
,
closeConfigs
,
getConfig
,
exportConfig
,
modifyConfig
,
getStoreConfig
,
addConfig
,
selStoreConfig
,
batchOpenSaleModeApi
}
src/config/index.js
View file @
8250ab5
...
...
@@ -11,7 +11,7 @@
let
cfg
=
require
(
'./conf.js'
)
let
timeout
=
30000
//超时时间
import
{
Http
}
from
'glsx-common'
export
const
fetchConfig
=
function
(
common
)
{
export
const
fetchConfig
=
function
(
common
)
{
// console.log(common);
// 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 } } }
...
...
@@ -21,8 +21,8 @@ export const fetchConfig = function (common) {
// Object.assign(request, { timeout })
// 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://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=services'
)
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 window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return common.utils.getConfig(params)
...
...
@@ -31,4 +31,4 @@ export const config = {
install
(
vue
,
cfg
)
{
vue
.
prototype
.
$config
=
cfg
}
}
\ No newline at end of file
}
src/views/ContractManager/addTmpl.vue
View file @
8250ab5
...
...
@@ -59,6 +59,7 @@ export default {
return
{
isPdfVisible
:
false
,
pdfUrl
:
''
,
routerInfo
:
{},
placeholderList
:
[],
pdfObj
:
{
merchantId
:
''
,
...
...
@@ -143,7 +144,9 @@ export default {
}
},
created
()
{},
created
()
{
this
.
routerInfo
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
id
))
},
mounted
()
{
this
.
getContractDetail
()
...
...
@@ -151,7 +154,7 @@ export default {
methods
:
{
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
)
{
this
.
placeholderList
=
res
.
placeholderList
for
(
const
key
in
this
.
contentObj
)
{
...
...
@@ -195,7 +198,11 @@ export default {
commitTemplate
(
type
)
{
const
params
=
this
.
getParams
()
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
(
type
==
'preview'
)
{
this
.
handlePdf
()
...
...
src/views/ContractManager/goodIndex.vue
View file @
8250ab5
...
...
@@ -349,7 +349,7 @@ export default {
id
}
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
>
<div>
<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>
<material
:renewDisable=
"orderStatus
!=
0"
:isXB=
"true"
ref=
"materialRef"
:pageType=
"pageType"
:materialForm
.
sync=
"materialForm"
></material>
<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>
<material
:renewDisable=
"orderStatus
!=
0"
:isXB=
"true"
ref=
"materialRef"
:pageType=
"pageType"
:materialForm
.
sync=
"materialForm"
></material>
<!-- 案件说明 -->
<caseDesc
:supplementList=
"supplementList"
></caseDesc>
<!-- 定损记录 -->
...
...
@@ -153,7 +153,7 @@ export default {
},
computed
:
{
totalPrice
()
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
return
prev
+
+
(
cur
.
approveAmount
*
100
).
toFixed
(
0
)
},
0
)
return
total
/
100
...
...
@@ -200,18 +200,18 @@ export default {
// 以下是文件数据
res
.
files
.
forEach
(
item
=>
{
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
)
{
this
.
materialForm
.
idCard
.
push
(
obj
)
}
else
{
this
.
materialForm
.
idCardBack
.
push
(
obj
)
}
}
else
if
(
item
.
fileCode
==
'31'
&&
item
.
fileUrl
)
{
}
else
if
(
item
.
fileCode
==
'31'
&&
item
.
fileUrl
)
{
this
.
materialForm
.
billInfo
.
push
(
obj
)
}
else
if
(
item
.
fileCode
==
'4'
&&
item
.
fileUrl
)
{
}
else
if
(
item
.
fileCode
==
'4'
&&
item
.
fileUrl
)
{
this
.
materialForm
.
otherInfo
.
push
(
obj
)
}
console
.
log
(
this
.
materialForm
)
;
console
.
log
(
this
.
materialForm
)
})
// 案件说明
res
.
supplementList
.
forEach
(
el
=>
{
...
...
@@ -343,10 +343,15 @@ export default {
}
params
.
approveAmounts
=
''
let
tagetObj
=
{}
let
lossAssessmentTarget
=
{}
this
.
serviceItemsList
.
forEach
(
item
=>
{
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
if
(
item
.
lossAssessmentFlag
)
{
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
}
})
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
delete
params
.
reimbursementAddress
params
.
fileList
=
[]
for
(
let
key
in
this
.
materialForm
)
{
...
...
@@ -402,8 +407,8 @@ export default {
this
.
renewalAudit
({
approveAmounts
:
JSON
.
stringify
(
sc_obg
)
},
4
)
},
renewalAudit
(
params
,
operation
)
{
const
{
equityOrderDetail
}
=
this
.
detailInfo
if
(
equityOrderDetail
&&
equityOrderDetail
.
vehicle
)
{
const
{
equityOrderDetail
}
=
this
.
detailInfo
if
(
equityOrderDetail
&&
equityOrderDetail
.
vehicle
)
{
params
.
carNumber
=
equityOrderDetail
.
vehicle
.
licensePlate
}
this
.
$apis
.
claims
.
renewalAudit
({
...
this
.
editForm
,
operation
,
id
:
this
.
routeInfo
.
orderId
,
...
this
.
accountForm
,
...
params
}).
then
(
res
=>
{
...
...
@@ -454,7 +459,7 @@ export default {
renewGR
(
params
,
operation
)
{
params
.
equitySource
=
1
this
.
$apis
.
claims
.
commitClaimsOrder
({
...
this
.
editForm
,
operation
,
id
:
this
.
routeInfo
.
orderId
,
...
this
.
accountForm
,
...
params
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$message
({
message
:
'提交成功'
,
type
:
'success'
...
...
src/views/claims/components/repair.vue
View file @
8250ab5
...
...
@@ -2,7 +2,7 @@
<div>
<div
v-if=
"isGH"
class=
"report-components gl-form-page"
>
<div
class=
"title"
>
报案信息(店面补充)
</div>
<glsx-combi-form
:labelPaddingRight=
"0"
:isInline=
"false"
class=
"edit-form-container"
ref=
"handlerRef"
:formRules=
"accountRule"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj=
"accountForm"
:formData=
"handlerForm"
>
<glsx-combi-form
:labelPaddingRight=
"0"
:isInline=
"false"
class=
"edit-form-container"
ref=
"handlerRef"
:formRules=
"accountRule"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj=
"accountForm"
:formData=
"handlerForm"
>
<!--
<div
slot=
"serviceApply"
class=
"serviceApply_container"
>
<template
v-for=
"(item, index) in serviceItemsList"
>
<div
:key=
"index"
class=
"wrapper"
>
...
...
@@ -26,8 +26,12 @@
<div
class=
"service-item"
v-for=
"(item, index) in serviceItemsList"
:key=
"item.serviceItemCode"
>
<p
class=
"name"
>
{{
item
.
serviceItemName
}}
</p>
<div
class=
"price-wrap"
>
<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>
<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>
</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>
</
template
>
...
...
@@ -400,7 +404,8 @@ export default {
height
:
16px
;
}
.service-item
{
width
:
264px
;
width
:
294px
;
box-sizing
:
border-box
;
padding
:
10px
;
background
:
#ffffff
;
border-radius
:
4px
;
...
...
@@ -409,17 +414,25 @@ export default {
margin-bottom
:
20px
;
display
:
flex
;
flex-direction
:
column
;
.name
{
font-weight
:
600
;
flex
:
1
;
margin-bottom
:
16
px
;
height
:
20px
;
line-height
:
20
px
;
}
.price-wrap
{
&:first-child
{
margin-top
:
0
;
}
margin-top
:
10px
;
display
:
flex
;
align-items
:
center
;
align-items
:
baseline
;
flex
:
1
;
label
{
white-space
:
nowrap
;
display
:
inline-block
;
width
:
130px
;
flex-shrink
:
0
;
}
/
deep
/
.el-input__inner
{
height
:
32px
;
...
...
src/views/claims/order.vue
View file @
8250ab5
...
...
@@ -182,7 +182,7 @@ export default {
},
computed
:
{
totalPrice
()
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
return
prev
+
+
(
cur
.
approveAmount
*
100
).
toFixed
(
0
)
},
0
)
return
total
/
100
...
...
@@ -213,7 +213,7 @@ export default {
imgFlag
=
true
curImgIndex
=
index
}
if
(
el
.
accountVerifyImagesList
&&
el
.
accountVerifyImagesList
.
length
)
{
if
(
el
.
accountVerifyImagesList
&&
el
.
accountVerifyImagesList
.
length
)
{
el
.
accountVerifyImagesList
.
forEach
((
k
,
i
)
=>
{
if
(
!
k
.
verifyImage
)
{
imgFlag
=
true
...
...
@@ -248,10 +248,15 @@ export default {
}
params
.
approveAmounts
=
''
let
tagetObj
=
{}
let
lossAssessmentTarget
=
{}
this
.
serviceItemsList
.
forEach
(
item
=>
{
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
if
(
item
.
lossAssessmentFlag
)
{
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
}
})
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
delete
params
.
reimbursementAddress
params
.
fileList
=
[]
for
(
let
key
in
this
.
materialForm
)
{
...
...
@@ -287,16 +292,17 @@ export default {
}
},
toCheckOrder
(
operation
,
addQuery
=
{})
{
let
claimsQuery
=
{},
_accountMatchResultList
=
[]
let
claimsQuery
=
{},
_accountMatchResultList
=
[]
claimsQuery
=
this
.
handlerClaimsQueryForCheck
()
if
(
operation
==
20
)
{
const
flag
=
this
.
verifyWarningImage
()
if
(
!
flag
)
return
}
if
(
this
.
queryList
&&
this
.
queryList
.
length
>
0
)
{
if
(
this
.
queryList
&&
this
.
queryList
.
length
>
0
)
{
const
_temArr
=
JSON
.
stringify
(
this
.
queryList
)
_accountMatchResultList
=
JSON
.
parse
(
_temArr
)
_accountMatchResultList
.
forEach
(
el
=>
{
_accountMatchResultList
.
forEach
(
el
=>
{
delete
el
.
matchType
})
}
...
...
@@ -333,7 +339,7 @@ export default {
id
:
el
.
id
,
verifyResultDesc
:
el
.
verifyResultDesc
,
accountVerifyImagesList
:
el
.
accountVerifyImagesList
,
matchType
:
el
.
matchType
matchType
:
el
.
matchType
}
arr
.
push
(
obj
)
})
...
...
@@ -375,6 +381,8 @@ export default {
}
if
(
this
.
accountForm
.
accountType
!==
1
)
this
.
accountForm
.
accountType
=
0
this
.
serviceItemsList
=
serviceItemsList
||
[]
console
.
log
(
this
.
serviceItemsList
,
' this.serviceItemsList '
)
// 以下是文件数据
res
.
files
.
forEach
(
item
=>
{
let
obj
=
{
url
:
item
.
fileUrl
,
fileType
:
item
.
fileType
,
name
:
item
.
fileName
,
progress
:
100
}
...
...
@@ -531,10 +539,15 @@ export default {
}
params
.
approveAmounts
=
''
let
tagetObj
=
{}
let
lossAssessmentTarget
=
{}
this
.
serviceItemsList
.
forEach
(
item
=>
{
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
if
(
item
.
lossAssessmentFlag
)
{
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
}
})
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
delete
params
.
reimbursementAddress
params
.
fileList
=
[]
for
(
let
key
in
this
.
materialForm
)
{
...
...
@@ -556,14 +569,15 @@ export default {
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
})
if
(
!
this
.
routeInfo
.
isGH
)
{
if
(
!
this
.
routeInfo
.
isGH
)
{
params
.
equitySource
=
2
}
console
.
log
(
params
,
'params'
)
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
loading
.
close
()
if
(
res
)
{
if
(
res
.
accountMatchResultList
&&
res
.
accountMatchResultList
.
length
)
{
res
.
accountMatchResultList
.
forEach
(
el
=>
{
res
.
accountMatchResultList
.
forEach
(
el
=>
{
el
.
accountVerifyImagesList
=
el
.
accountVerifyImagesList
||
[]
})
this
.
accountMatchResultList
=
res
.
accountMatchResultList
||
[]
...
...
src/views/config/addConfig.vue
View file @
8250ab5
...
...
@@ -19,6 +19,13 @@
<el-checkbox
style=
"display: block; margin-left: 30px;"
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
门店成本
</el-checkbox>
</el-form-item>
</
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"
>
<el-form-item
size=
"small"
label=
"配置可见产品及产品属性"
></el-form-item>
<el-form-item>
...
...
@@ -91,7 +98,7 @@
<el-checkbox
v-model=
"carefree"
>
优享版
</el-checkbox>
</el-form-item>
<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>
<el-checkbox
v-model=
"item.cardName"
true-label=
"card"
false-label=
""
>
卡输入
</el-checkbox>
</div>
...
...
@@ -103,7 +110,6 @@
<el-row
slot
>
<el-form
:model=
"searchForm"
ref=
"relate"
:inline=
"true"
label-width=
"90px"
class=
"configDialog"
>
<el-form-item>
<el-input
placeholder=
"请输入内容"
v-model=
"searchForm.selectInput"
class=
"input-with-select"
size=
"small"
>
<el-select
v-model=
"searchForm.select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
label=
"商户名称"
value=
"1"
></el-option>
...
...
@@ -140,6 +146,7 @@ export default {
configTitle
:
''
,
selectedTable
:
false
,
checkPosition
:
false
,
saleMode
:
1
,
tableData
:
[],
merchantIds
:
[],
selectedList
:
[],
...
...
@@ -310,10 +317,11 @@ export default {
merchantId
}
if
(
this
.
showGh
){
para
.
channel
=
2
para
.
channel
=
2
}
this
.
$apis
.
openconfig
.
getConfig
(
para
).
then
(
res
=>
{
res
=
res
||
{}
this
.
saleMode
=
res
.
saleMode
this
.
costPrice
=
res
.
openCostPrice
==
1
this
.
storeSelParams
=
res
this
.
id
=
res
.
id
...
...
@@ -447,7 +455,8 @@ export default {
})
let
targetParams
=
{
openCostPrice
:
this
.
costPrice
?
1
:
0
,
createDetailRequests
:
params
createDetailRequests
:
params
,
saleMode
:
this
.
saleMode
}
if
(
this
.
showGh
){
delete
targetParams
.
createDetailRequests
...
...
@@ -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
{
margin-bottom
:
0
!important
;
}
...
...
src/views/config/index.vue
View file @
8250ab5
...
...
@@ -151,6 +151,13 @@ export default {
prop
:
'merchantId'
},
{
label
:
'销售模式'
,
prop
:
'saleMode'
,
formatter
:
cell
=>
{
return
cell
.
saleMode
==
1
?
'批发销售'
:
'驻店零售'
}
},
{
label
:
'状态'
,
prop
:
'openFlag'
,
formatter
:
cell
=>
{
...
...
@@ -263,7 +270,12 @@ export default {
batchOpenSale
(){
const
data
=
this
.
$refs
.
table
?.
mutiSelectArr
?.[
this
.
tableParams
.
mutiSelectName
]
||
[]
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
)
{
...
...
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