Commit 82ee5859 by 杨北旺

style:优化列表展示样式以及定向礼包审批详情样式

1 parent fa999f8b
......@@ -18,9 +18,9 @@ module.exports = {
code_message_map: {}
},
request: {
// baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/',
baseURL: 'http://scrm.dev.glsx.com.cn/',
// baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
import { Http } from 'glsx-common'
let timeout = 30000 //超时时间
export const fetchConfig = function(isEnv = true) {
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
if (isEnv) {
let { request } = cfg
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
//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 new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
......
......@@ -124,7 +124,8 @@ export default {
{
label: '礼包名称',
prop: 'name',
addHtml: 'name'
addHtml: 'name',
width: 200
},
{
label: '备注名称',
......@@ -133,6 +134,7 @@ export default {
},
{
label: '预估成本/元',
width: 200,
prop: 'anticipatedCost',
formatter: cellValue => {
return (cellValue.anticipatedCost / 100).toFixed(2)
......@@ -141,12 +143,14 @@ export default {
{
label: '发放员工',
prop: 'staffList',
width: 200,
formatter: cellValue => {
return cellValue.staffList.map(item => item.staffName).join(',')
}
},
{
label: '赠送原因',
width: 200,
prop: 'giveReason',
formatter: cellValue => {
return cellValue.giveReason || '-'
......
......@@ -175,7 +175,8 @@ export default {
},
{
label: '领取客户',
prop: 'nickName'
prop: 'nickName',
width: 200
},
{
label: '客户手机号',
......@@ -207,6 +208,7 @@ export default {
},
{
label: '预估成本/元',
width: 200,
prop: 'anticipatedCost',
formatter: cellValue => {
return cellValue.anticipatedCost / 100
......@@ -214,10 +216,11 @@ export default {
},
{
// label: '已核销成本/元',
width: 200,
prop: 'verificationAnticipatedCost',
// sortable: true,
renderHeader: h => {
return h('div', { class: 'table-header' }, [
return h('div', { class: 'table-header specHeader' }, [
h('span', '已核销成本/元'),
h('table-tooltip', {
props: { content: '单张券的已核销成本 = (该券的成本/该券总可核销次数)*已核销次数 例:一张券可核销3次,成本9块,已被核销2次,则已核销成本(9/3)*2=6 注意:若该券可无限次使用,核销一次后该券成本就全部核销了' }
......@@ -394,4 +397,7 @@ export default {
justify-content: center;
padding: 0 !important;
}
.marketing /deep/ .el-table th div {
line-height: normal !important;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!