Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 82ee5859
authored
Mar 23, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:优化列表展示样式以及定向礼包审批详情样式
1 parent
fa999f8b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
10 deletions
src/config/env.development.js
src/config/index.js
src/views/giftBag/giftList.vue
src/views/giftBag/receivedGiftList.vue
src/config/env.development.js
View file @
82ee585
...
@@ -18,9 +18,9 @@ module.exports = {
...
@@ -18,9 +18,9 @@ module.exports = {
code_message_map
:
{}
code_message_map
:
{}
},
},
request
:
{
request
:
{
//
baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL
:
'http://scrm.test.glsx.com.cn/'
,
// baseURL: 'http://192.168.2.42:8064/',
// baseURL: 'http://192.168.2.42:8064/',
baseURL
:
'http://scrm.dev.glsx.com.cn/'
,
//
baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/config/index.js
View file @
82ee585
...
@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
...
@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
import
{
Http
}
from
'glsx-common'
import
{
Http
}
from
'glsx-common'
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
//
if (isEnv) {
if
(
isEnv
)
{
//
let { request } = cfg
let
{
request
}
=
cfg
//
Object.assign(request, { timeout })
Object
.
assign
(
request
,
{
timeout
})
//
return Promise.resolve(cfg)
return
Promise
.
resolve
(
cfg
)
//
}
}
//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 new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
...
...
src/views/giftBag/giftList.vue
View file @
82ee585
...
@@ -124,7 +124,8 @@ export default {
...
@@ -124,7 +124,8 @@ export default {
{
{
label
:
'礼包名称'
,
label
:
'礼包名称'
,
prop
:
'name'
,
prop
:
'name'
,
addHtml
:
'name'
addHtml
:
'name'
,
width
:
200
},
},
{
{
label
:
'备注名称'
,
label
:
'备注名称'
,
...
@@ -133,6 +134,7 @@ export default {
...
@@ -133,6 +134,7 @@ export default {
},
},
{
{
label
:
'预估成本/元'
,
label
:
'预估成本/元'
,
width
:
200
,
prop
:
'anticipatedCost'
,
prop
:
'anticipatedCost'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
(
cellValue
.
anticipatedCost
/
100
).
toFixed
(
2
)
return
(
cellValue
.
anticipatedCost
/
100
).
toFixed
(
2
)
...
@@ -141,12 +143,14 @@ export default {
...
@@ -141,12 +143,14 @@ export default {
{
{
label
:
'发放员工'
,
label
:
'发放员工'
,
prop
:
'staffList'
,
prop
:
'staffList'
,
width
:
200
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
staffList
.
map
(
item
=>
item
.
staffName
).
join
(
','
)
return
cellValue
.
staffList
.
map
(
item
=>
item
.
staffName
).
join
(
','
)
}
}
},
},
{
{
label
:
'赠送原因'
,
label
:
'赠送原因'
,
width
:
200
,
prop
:
'giveReason'
,
prop
:
'giveReason'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
giveReason
||
'-'
return
cellValue
.
giveReason
||
'-'
...
...
src/views/giftBag/receivedGiftList.vue
View file @
82ee585
...
@@ -175,7 +175,8 @@ export default {
...
@@ -175,7 +175,8 @@ export default {
},
},
{
{
label
:
'领取客户'
,
label
:
'领取客户'
,
prop
:
'nickName'
prop
:
'nickName'
,
width
:
200
},
},
{
{
label
:
'客户手机号'
,
label
:
'客户手机号'
,
...
@@ -207,6 +208,7 @@ export default {
...
@@ -207,6 +208,7 @@ export default {
},
},
{
{
label
:
'预估成本/元'
,
label
:
'预估成本/元'
,
width
:
200
,
prop
:
'anticipatedCost'
,
prop
:
'anticipatedCost'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
anticipatedCost
/
100
return
cellValue
.
anticipatedCost
/
100
...
@@ -214,10 +216,11 @@ export default {
...
@@ -214,10 +216,11 @@ export default {
},
},
{
{
// label: '已核销成本/元',
// label: '已核销成本/元',
width
:
200
,
prop
:
'verificationAnticipatedCost'
,
prop
:
'verificationAnticipatedCost'
,
// sortable: true,
// sortable: true,
renderHeader
:
h
=>
{
renderHeader
:
h
=>
{
return
h
(
'div'
,
{
class
:
'table-header'
},
[
return
h
(
'div'
,
{
class
:
'table-header
specHeader
'
},
[
h
(
'span'
,
'已核销成本/元'
),
h
(
'span'
,
'已核销成本/元'
),
h
(
'table-tooltip'
,
{
h
(
'table-tooltip'
,
{
props
:
{
content
:
'单张券的已核销成本 = (该券的成本/该券总可核销次数)*已核销次数 例:一张券可核销3次,成本9块,已被核销2次,则已核销成本(9/3)*2=6 注意:若该券可无限次使用,核销一次后该券成本就全部核销了'
}
props
:
{
content
:
'单张券的已核销成本 = (该券的成本/该券总可核销次数)*已核销次数 例:一张券可核销3次,成本9块,已被核销2次,则已核销成本(9/3)*2=6 注意:若该券可无限次使用,核销一次后该券成本就全部核销了'
}
...
@@ -394,4 +397,7 @@ export default {
...
@@ -394,4 +397,7 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
padding
:
0
!important
;
padding
:
0
!important
;
}
}
.marketing
/
deep
/
.el-table
th
div
{
line-height
:
normal
!important
;
}
</
style
>
</
style
>
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