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 83d2995e
authored
Oct 23, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
29a6f2c8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
117 additions
and
28 deletions
src/api/modules/contractManager.js
src/api/modules/worryDetailApi.js
src/views/ContractManager/index.vue
src/views/claims/components/otherInfo.vue
src/views/claims/ghIndex.vue
src/views/worryFree/index.vue
src/api/modules/contractManager.js
View file @
83d2995
...
...
@@ -50,11 +50,21 @@ const copyTemplateApi = 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
})
}
export
default
{
getContractListApi
,
saveContractTemplateApi
,
getContractDetailApi
,
printContractApi
,
copyTemplateApi
copyTemplateApi
,
exportContractApi
}
\ No newline at end of file
src/api/modules/worryDetailApi.js
View file @
83d2995
...
...
@@ -33,9 +33,20 @@ const modWorryDetailList = params => {
returnAll
:
true
})
}
//清空无忧卡使用状态
const
clearWorryStatus
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.cfc.clear`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
}
export
default
{
getWorryDetailList
,
getdetailTotal
,
selWorryDetailList
,
modWorryDetailList
modWorryDetailList
,
clearWorryStatus
}
src/views/ContractManager/index.vue
View file @
83d2995
...
...
@@ -6,9 +6,9 @@
<div
class=
"table_wrapper"
>
<div
class=
"operate_wrap"
>
<span
class=
"table_title"
>
合同列表
</span>
<
!--
<
div
class=
"operate_btn"
>
<div
class=
"operate_btn"
>
<el-button
:size=
"size"
@
click=
"handleExport"
>
导出
</el-button>
</div>
-->
</div>
</div>
<GLTable
ref=
"equityRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"serviceContent"
slot-scope=
"scope"
>
...
...
@@ -83,6 +83,7 @@
],
searchForm
:
{
merchantName
:
''
,
packageName
:
''
,
createdDate
:
''
,
updatedDate
:
''
},
...
...
@@ -95,6 +96,12 @@
isClear
:
true
,
},
{
label
:
'商品名称'
,
name
:
'packageName'
,
type
:
'input'
,
isClear
:
true
,
},
{
label
:
'创建时间'
,
name
:
'createdDate'
,
type
:
'datePicker'
,
...
...
@@ -109,7 +116,7 @@
labelWidth
:
95
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
}
}
,
],
// 表格
getListApi
:
this
.
$apis
.
contractManager
.
getContractListApi
,
...
...
@@ -209,7 +216,7 @@
// 导出
handleExport
()
{
var
params
=
this
.
getParams
()
this
.
$apis
.
serviceConfig
.
exportEquity
Api
(
params
).
then
(
res
=>
{
this
.
$apis
.
contractManager
.
exportContract
Api
(
params
).
then
(
res
=>
{
// window.open(res)
let
tempaa
=
utils
.
getExplorer
()
if
(
tempaa
==
'QQ'
)
{
...
...
@@ -230,6 +237,7 @@
handleReset
()
{
this
.
searchForm
=
{
serviceName
:
''
,
packageName
:
''
,
createdDate
:
''
,
updatedDate
:
''
}
...
...
src/views/claims/components/otherInfo.vue
View file @
83d2995
...
...
@@ -35,6 +35,10 @@ export default {
{
key
:
'merchantAddr'
,
label
:
'店面地址:'
},
{
key
:
'sapCode'
,
label
:
'门店代码:'
}
]
},
...
...
src/views/claims/ghIndex.vue
View file @
83d2995
...
...
@@ -392,6 +392,7 @@ export default {
status
:
''
,
commitDate
:
''
,
shopDate
:
''
,
merchantUpdatedDate
:
''
,
cityMerchantId
:
''
,
provinceMerchantId
:
''
,
merchantId
:
''
...
...
@@ -432,6 +433,13 @@ export default {
isClear
:
true
},
{
label
:
'门店更新时间'
,
name
:
'merchantUpdatedDate'
,
type
:
'datePicker'
,
pickerOptions
:
'beforeRangePickerOptions'
,
isClear
:
true
},
{
label
:
'大区'
,
name
:
'provinceMerchantId'
,
type
:
'select'
,
...
...
@@ -535,6 +543,14 @@ export default {
}
},
{
label
:
'门店更新时间'
,
prop
:
'merchantUpdatedDate'
,
width
:
180
,
formatter
:
cellValue
=>
{
return
cellValue
.
merchantUpdatedDate
?
cellValue
.
merchantUpdatedDate
:
'-'
}
},
{
label
:
'提交国任时间'
,
prop
:
'commitGuoRenDate'
,
width
:
180
,
...
...
@@ -850,6 +866,7 @@ export default {
status
:
''
,
commitDate
:
''
,
shopDate
:
''
,
merchantUpdatedDate
:
''
,
cityMerchantId
:
''
,
provinceMerchantId
:
''
,
merchantId
:
''
...
...
@@ -868,12 +885,17 @@ export default {
params
.
commitTimeStart
=
dayjs
(
params
.
commitDate
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
params
.
commitTimeEnd
=
dayjs
(
params
.
commitDate
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
if
(
Array
.
isArray
(
params
.
merchantUpdatedDate
)
&&
params
.
merchantUpdatedDate
.
length
>
0
)
{
params
.
merchantUpdatedStart
=
dayjs
(
params
.
merchantUpdatedDate
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
params
.
merchantUpdatedEnd
=
dayjs
(
params
.
merchantUpdatedDate
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
if
(
Array
.
isArray
(
params
.
shopDate
)
&&
params
.
shopDate
.
length
>
0
)
{
params
.
merchantCommitStart
=
dayjs
(
params
.
shopDate
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
params
.
merchantCommitEnd
=
dayjs
(
params
.
shopDate
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
delete
params
.
commitDate
delete
params
.
shopDate
delete
params
.
merchantUpdatedDate
return
params
},
getTableData
()
{
...
...
src/views/worryFree/index.vue
View file @
83d2995
...
...
@@ -47,7 +47,7 @@ const validatorActualPrice = (rule, value, callback) => {
}
export
default
{
name
:
''
,
components
:{
components
:
{
glsxCombiForm
},
data
()
{
...
...
@@ -55,20 +55,35 @@ export default {
applyTypelist
:
[],
date_format
,
buttonList
:
[
{
{
type
:
'el-button'
,
name
:
row
=>
{
return
'修改'
},
attrs
:
{
type
:
'text'
,
disabled
:
(
row
)
=>
{
disabled
:
row
=>
{
return
row
.
scope
.
status
}
},
listeners
:
{
click
:
row
=>
this
.
modify
(
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'恢复未使用'
},
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
scope
.
status
==
1
},
listeners
:
{
click
:
row
=>
this
.
clearStatus
(
row
.
scope
)
}
}
],
line
:
{
...
...
@@ -105,18 +120,19 @@ export default {
name
:
'batchType'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[
{
confId
:
''
,
confName
:
'全部'
},
{
confId
:
'1'
,
confName
:
'尊享版'
},
{
confId
:
'2'
,
confName
:
'畅享版'
}
optionList
:
[
{
confId
:
''
,
confName
:
'全部'
},
{
confId
:
'1'
,
confName
:
'尊享版'
},
{
confId
:
'2'
,
confName
:
'畅享版'
}
],
optionId
:
'confId'
,
optionLabel
:
'confName'
...
...
@@ -199,7 +215,7 @@ export default {
actualPrice
:
''
,
servicePeriod
:
''
},
addDialogFormData
:
[
addDialogFormData
:
[
{
label
:
'版本'
,
name
:
'batchType'
,
...
...
@@ -390,7 +406,7 @@ export default {
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
{
width
:
7
0
width
:
15
0
},
tableColumns
:
[
{
...
...
@@ -429,7 +445,7 @@ export default {
prop
:
'packageCode'
,
formatter
:
cellValue
=>
{
let
targer
=
this
.
applyTypelist
.
find
(
item
=>
item
.
packageCode
==
cellValue
.
packageCode
)
return
targer
&&
targer
.
packageName
?
targer
.
packageName
:
'--'
return
targer
&&
targer
.
packageName
?
targer
.
packageName
:
'--'
},
width
:
220
},
...
...
@@ -470,13 +486,13 @@ export default {
this
.
getTypelist
()
},
methods
:
{
getTypelist
(){
getTypelist
()
{
this
.
$apis
.
addWorryFree
.
getTypelistApi
({}).
then
(
res
=>
{
if
(
!
res
?.
length
)
return
;
if
(
!
res
?.
length
)
return
let
target
=
this
.
addDialogFormData
.
find
(
item
=>
item
.
name
==
'packageCode'
)
target
.
optionList
=
res
let
serachTarget
=
this
.
detailFormData
.
find
(
item
=>
item
.
name
==
'packageCode'
)
serachTarget
.
optionList
=
[{
packageCode
:
''
,
packageName
:
'全部'
},
...
res
]
serachTarget
.
optionList
=
[{
packageCode
:
''
,
packageName
:
'全部'
},
...
res
]
this
.
applyTypelist
=
res
})
},
...
...
@@ -551,7 +567,7 @@ export default {
// this.changePgCode(e.packageCode)
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
e
))
this
.
detailDialog
=
true
obj
.
servicePeriod
=
obj
.
servicePeriod
+
''
obj
.
servicePeriod
=
obj
.
servicePeriod
+
''
this
.
detailDialogForm
=
obj
if
(
obj
.
batchType
==
'1'
)
{
this
.
detailDialogForm
.
batchType
=
'尊享版'
...
...
@@ -559,6 +575,24 @@ export default {
this
.
detailDialogForm
.
batchType
=
'畅享版'
}
},
// 清空无忧卡使用状态
clearStatus
(
row
)
{
this
.
$apis
.
worryDetailApi
.
clearWorryStatus
({
id
:
row
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
'0'
)
{
this
.
$message
({
message
:
'操作成功'
,
type
:
'success'
})
this
.
$refs
.
detailTable
.
refreshTable
()
}
else
{
this
.
$message
({
message
:
'操作失败'
,
type
:
'error'
})
}
})
},
// 详情table搜索回调方法
detailFormat
()
{},
// 关闭弹窗界面
...
...
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