Commit 7daeff2c by 前端

Merge branch 'saas+v4.15.0_0112' of http://192.168.3.233:8090/saas/scrm-micro-ma…

…rketing into xuyl_dev_v3.3.1.1

 Conflicts:
	src/views/material/addMaterial.vue
	src/views/seckillActivity/crowdFundList.vue
2 parents ae80296f 944cd28f
...@@ -2083,6 +2083,17 @@ ...@@ -2083,6 +2083,17 @@
"color-convert": "^2.0.1" "color-convert": "^2.0.1"
} }
}, },
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"cliui": { "cliui": {
"version": "6.0.0", "version": "6.0.0",
"resolved": "https://registry.npmmirror.com/cliui/-/cliui-6.0.0.tgz", "resolved": "https://registry.npmmirror.com/cliui/-/cliui-6.0.0.tgz",
...@@ -2124,6 +2135,13 @@ ...@@ -2124,6 +2135,13 @@
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true "dev": true
}, },
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"is-fullwidth-code-point": { "is-fullwidth-code-point": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
...@@ -2165,6 +2183,28 @@ ...@@ -2165,6 +2183,28 @@
"ansi-regex": "^5.0.1" "ansi-regex": "^5.0.1"
} }
}, },
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
},
"wrap-ansi": { "wrap-ansi": {
"version": "6.2.0", "version": "6.2.0",
"resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz", "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
...@@ -13657,75 +13697,6 @@ ...@@ -13657,75 +13697,6 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.5.4", "version": "3.5.4",
"resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-3.5.4.tgz", "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-3.5.4.tgz",
......
...@@ -182,6 +182,17 @@ const getPayListApi = params => { ...@@ -182,6 +182,17 @@ const getPayListApi = params => {
}) })
} }
/**支付商户管理-下拉列表 */
const getPayMerchatListApi = params => {
params.method = 'entmicro.api.payment.pageListPayment'
return http({
url: 'rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
/**数据看板员工排名 */ /**数据看板员工排名 */
const getRankListApi = params => { const getRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.page' params.method = 'scrm.api.shopmall.activity.ranking.page'
...@@ -267,4 +278,4 @@ const liveroomOverview = params => { ...@@ -267,4 +278,4 @@ const liveroomOverview = params => {
sign: true sign: true
}) })
} }
export default { exportDailyOrderQuantityStatistics, liveroomDetailexport, liveroomDetailpage, getDailyOrderQuantityStatistics, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getPayListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi } export default { exportDailyOrderQuantityStatistics, liveroomDetailexport, liveroomDetailpage, getDailyOrderQuantityStatistics, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getPayListApi, getPayMerchatListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi }
...@@ -551,9 +551,10 @@ export default { ...@@ -551,9 +551,10 @@ export default {
}, },
handleSelect(val) { handleSelect(val) {
this.isUpdate = true this.isUpdate = true
this.tagging = val this.tagging = val || []
let arr = [] let arr = []
this.tagging.forEach(item => { this.tagging.forEach(item => {
item.labelList = item.labelList || []
item.labelList.forEach(tag => { item.labelList.forEach(tag => {
arr.push({ arr.push({
groupId: item.labelGroup.id, groupId: item.labelGroup.id,
...@@ -578,6 +579,7 @@ export default { ...@@ -578,6 +579,7 @@ export default {
} }
let arr = [] let arr = []
this.tagging.forEach(item => { this.tagging.forEach(item => {
item.labelList = item.labelList || []
item.labelList.forEach(tag => { item.labelList.forEach(tag => {
arr.push({ arr.push({
groupId: item.labelGroup.id, groupId: item.labelGroup.id,
......
...@@ -358,10 +358,10 @@ export default { ...@@ -358,10 +358,10 @@ export default {
if (res.code == '0') { if (res.code == '0') {
if (type == 1) { if (type == 1) {
this.time = res.data.createdTime this.time = res.data.createdTime
this.$refs.customer.refreshTable() this.$refs.customer && this.$refs.customer.refreshTable()
} else if (type == 2) { } else if (type == 2) {
this.times = res.data.createdTime this.times = res.data.createdTime
this.$refs.customerGroup.refreshTable() this.$refs.customerGroup && this.$refs.customerGroup.refreshTable()
} }
} }
}) })
...@@ -412,9 +412,9 @@ export default { ...@@ -412,9 +412,9 @@ export default {
message: '操作成功!' message: '操作成功!'
}) })
if (type == 1) { if (type == 1) {
this.$refs.customer.refreshTable() this.$refs.customer && this.$refs.customer.refreshTable()
} else { } else {
this.$refs.customerGroup.refreshTable() this.$refs.customerGroup && this.$refs.customerGroup.refreshTable()
} }
}) })
// } else { // } else {
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
</template> </template>
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
export default { export default {
name: 'materialGroup', name: 'materialGroup',
props: {eventBus: Object, groupHeight: Number}, props: {eventBus: Object, groupHeight: Number},
...@@ -186,13 +187,16 @@ export default { ...@@ -186,13 +187,16 @@ export default {
.status-words { .status-words {
margin-left: 5px; margin-left: 5px;
} }
.material-group { .material-group {
/deep/ .el-popover { /deep/ .el-popover {
min-width: 50px; min-width: 50px;
&:hover { &:hover {
cursor: pointer; cursor: pointer;
} }
} }
.all-group { .all-group {
font-size: 16px; font-size: 16px;
height: 44px; height: 44px;
...@@ -201,17 +205,21 @@ export default { ...@@ -201,17 +205,21 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
cursor: pointer; cursor: pointer;
img { img {
width: 24px; width: 24px;
height: 24px; height: 24px;
vertical-align: middle; vertical-align: middle;
} }
i { i {
color: #999999; color: #999999;
} }
} }
ul { ul {
overflow: auto; overflow: auto;
.group-list { .group-list {
cursor: pointer; cursor: pointer;
text-align: left; text-align: left;
...@@ -219,38 +227,46 @@ export default { ...@@ -219,38 +227,46 @@ export default {
margin: 0 10px; margin: 0 10px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
&.active { &.active {
background-color: #ebeaff; background-color: #ebeaff;
} }
.more-icon { .more-icon {
vertical-align: middle; vertical-align: middle;
padding-top: 3px; padding-top: 3px;
} }
&:hover { &:hover {
background-color: #ebeaff; background-color: #ebeaff;
} }
} }
} }
} }
.add_btn { .add_btn {
color: #5850ff; color: #5850ff;
border-color: #5850ff; border-color: #5850ff;
margin: 20px 0 12px 16px; margin: 20px 0 12px 16px;
} }
.group-name { .group-name {
display: inline-flex; display: inline-flex;
margin-left: 8px; margin-left: 8px;
} }
.group-btn { .group-btn {
color: #333333; color: #333333;
display: block; display: block;
padding: 8px 0px; padding: 8px 0px;
text-align: left; text-align: left;
width: 100%; width: 100%;
&:hover { &:hover {
background-color: #ebeaff; background-color: #ebeaff;
} }
} }
.el-button + .el-button { .el-button + .el-button {
margin-left: 0; margin-left: 0;
} }
......
...@@ -119,6 +119,7 @@ import AddMaterialGroupDia from '@/views/material/components/addMaterialGroupDia ...@@ -119,6 +119,7 @@ import AddMaterialGroupDia from '@/views/material/components/addMaterialGroupDia
import MaterialGroup from '@/views/material/components/materialGroup' import MaterialGroup from '@/views/material/components/materialGroup'
import FunctionIntroduc from '@/views/material/components/functionIntroduc' import FunctionIntroduc from '@/views/material/components/functionIntroduc'
import VideoShowDia from './components/videoDia.vue' import VideoShowDia from './components/videoDia.vue'
export default { export default {
name: 'materialList', name: 'materialList',
components: { components: {
...@@ -633,35 +634,43 @@ export default { ...@@ -633,35 +634,43 @@ export default {
right: 0; right: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
img { img {
position: relative; position: relative;
align-self: center; align-self: center;
margin: auto; margin: auto;
} }
span { span {
position: absolute; position: absolute;
top: 12px; top: 12px;
right: 15px; right: 15px;
} }
} }
.urlContent { .urlContent {
margin-right: 8px; margin-right: 8px;
position: relative; position: relative;
width: 36px; width: 36px;
height: 36px; height: 36px;
} }
.search-form, .search-form,
.left, .left,
.right { .right {
background-color: #fff; background-color: #fff;
} }
.el-popover { .el-popover {
min-width: 100px; min-width: 100px;
} }
.main-container { .main-container {
height: 100%; height: 100%;
.top { .top {
display: inline-flex; display: inline-flex;
span { span {
margin-left: 16px; margin-left: 16px;
font-size: 16px; font-size: 16px;
...@@ -669,44 +678,55 @@ export default { ...@@ -669,44 +678,55 @@ export default {
} }
} }
} }
ul { ul {
text-align: center; text-align: center;
li { li {
list-style: none; list-style: none;
&:first-child { &:first-child {
padding-bottom: 10px; padding-bottom: 10px;
} }
} }
} }
.container { .container {
margin-top: 10px; margin-top: 10px;
height: 100%; height: 100%;
.search-form { .search-form {
padding: 20px 0 0 20px; padding: 20px 0 0 20px;
} }
.tabelList { .tabelList {
margin-top: 10px; margin-top: 10px;
height: 100%; height: 100%;
.left { .left {
height: 100%; height: 100%;
position: relative; position: relative;
border-right: 1px solid #e8e8ea; border-right: 1px solid #e8e8ea;
} }
.right { .right {
// overflow: auto; // overflow: auto;
.groupTitle { .groupTitle {
padding: 20px 0 16px 19px; padding: 20px 0 16px 19px;
font-weight: 600; font-weight: 600;
} }
.glsx-table { .glsx-table {
margin: 0 20px; margin: 0 20px;
} }
} }
} }
} }
.btn-more { .btn-more {
margin-left: 10px; margin-left: 10px;
} }
.material-content { .material-content {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -720,39 +740,49 @@ ul { ...@@ -720,39 +740,49 @@ ul {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
} }
img { img {
width: 36px; width: 36px;
height: 36px; height: 36px;
} }
} }
.img-plus { .img-plus {
width: 200px; width: 200px;
height: 200px; height: 200px;
} }
.introduc-word { .introduc-word {
font-size: 14px; font-size: 14px;
margin-left: 16px; margin-left: 16px;
color: #5850ff; color: #5850ff;
} }
.pdf-title { .pdf-title {
text-align: right !important; text-align: right !important;
} }
/deep/ .el-table .ascending .sort-caret.ascending { /deep/ .el-table .ascending .sort-caret.ascending {
border-bottom-color: #5850ff; border-bottom-color: #5850ff;
} }
/deep/ .el-table .descending .sort-caret.descending { /deep/ .el-table .descending .sort-caret.descending {
border-top-color: #5850ff; border-top-color: #5850ff;
} }
.select-pro { .select-pro {
display: inline-block; display: inline-block;
padding-bottom: 20px; padding-bottom: 20px;
} }
/deep/ .el-switch__core { /deep/ .el-switch__core {
width: 32px !important; width: 32px !important;
} }
/deep/ .el-table::before { /deep/ .el-table::before {
background-color: transparent; background-color: transparent;
} }
/deep/ .el-table__fixed-right::before { /deep/ .el-table__fixed-right::before {
background-color: transparent; background-color: transparent;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
:title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span> :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item> <!-- <el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item> -->
</el-form> </el-form>
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
...@@ -121,22 +121,22 @@ export default { ...@@ -121,22 +121,22 @@ export default {
label: '订单时间', label: '订单时间',
name: 'createdDateStr' name: 'createdDateStr'
}, },
{ // {
label: '手机号码', // label: '手机号码',
name: 'customerPhone' // name: 'customerPhone'
}, // },
{ // {
label: '推荐人', // label: '推荐人',
name: 'shareStaffName' // name: 'shareStaffName'
}, // },
{ // {
label: '推荐人类型', // label: '推荐人类型',
name: 'shareStaffTypeName' // name: 'shareStaffTypeName'
}, // },
{ // {
label: '车架号', // label: '车架号',
name: 'vin' // name: 'vin'
}, // },
{ {
label: '门店信息', label: '门店信息',
name: 'merchantName' name: 'merchantName'
...@@ -166,10 +166,10 @@ export default { ...@@ -166,10 +166,10 @@ export default {
label: '尾款', label: '尾款',
name: 'crowdFundingPrice' name: 'crowdFundingPrice'
}, },
{ // {
label: '发货地址', // label: '发货地址',
name: 'shipAddress' // name: 'shipAddress'
}, // },
{ {
label: '微信名称', label: '微信名称',
name: 'weChatName' name: 'weChatName'
...@@ -288,22 +288,22 @@ export default { ...@@ -288,22 +288,22 @@ export default {
this.detailFormData.splice(idx, 1) this.detailFormData.splice(idx, 1)
} }
// 其他信息 // 其他信息
var formDescribeObj = { // var formDescribeObj = {
label: '其他信息', // label: '其他信息',
name: 'formDescribe', // name: 'formDescribe',
contentName: 'formContent', // contentName: 'formContent',
attrList: ['First', 'Second'] // attrList: ['First', 'Second']
} // }
this.detailForm[formDescribeObj.name] = '' // this.detailForm[formDescribeObj.name] = ''
this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : '' // this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : ''
this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : '' // this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : ''
formDescribeObj.attrList.forEach(item => { // formDescribeObj.attrList.forEach(item => {
let label = this.detailForm[formDescribeObj.name + item] // let label = this.detailForm[formDescribeObj.name + item]
let value = this.detailForm[formDescribeObj.contentName + item] // let value = this.detailForm[formDescribeObj.contentName + item]
if (label) { // if (label) {
this.detailForm[formDescribeObj.name] += label + ':' + value + ' ' // this.detailForm[formDescribeObj.name] += label + ':' + value + ' '
} // }
}) // })
// 商品名称 // 商品名称
this.detailForm.goodsName = this.detailForm.orderGoods.length ? this.detailForm.orderGoods.map(item => item.goodsName).join(',') : '-' this.detailForm.goodsName = this.detailForm.orderGoods.length ? this.detailForm.orderGoods.map(item => item.goodsName).join(',') : '-'
this.formToRow('detailFormData') this.formToRow('detailFormData')
......
<template>
<div class="sub-el-table-column">
<el-table-column v-for="(item, index) in reverseData" :key="index + 'child'" :label="item.label" :prop="item.prop" :width="item.width" :min-width="item.minWidth" :fixed="item.fixed" :align="item.align || 'left'" :sortable="item.sortable" :render-header="item.renderHeader" v-bind="item.columnattrs ? item.columnattrs : {}" v-on="item.columnlisteners ? item.columnlisteners : {}">
<template slot-scope="scope">
<slot v-if="item.addHtml" :name="item.addHtml" :scope="scope.row" :prop="item.prop" :width="item.width"></slot>
<template v-else-if="item.formatter">
<el-popover v-if="scope.row[item.prop] && scope.row[item.prop].length >= Math.ceil((item.width - 36) / 14) * item.line" placement="top" popper-class="base-popper" trigger="hover" :content="item.formatter(scope.row)">
<span slot="reference" class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{ item.formatter(scope.row) | lineEllipsis(item.width, item.line) }}
</span>
</el-popover>
<span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
<!-- {{ item.formatter(scope.row) || '--' }} -->
{{ item.formatter(scope.row) | tableCellFormat }}
</span>
</template>
<template v-else-if="getListApi">
<el-popover v-if="scope.row[item.prop] && scope.row[item.prop].length >= Math.ceil((item.width - 36) / 14) * item.line" placement="top" popper-class="base-popper" trigger="hover" :content="scope.row[item.prop]">
<span slot="reference" class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{ scope.row[item.prop] | lineEllipsis(item.width, item.line) }}
</span>
</el-popover>
<span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
<!-- {{ scope.row[item.prop] || '--' }} -->
{{ scope.row[item.prop] | tableCellFormat }}
</span>
</template>
<template v-else>
<!-- 大于10或 20个字节长度 -->
<el-popover v-if="tableData[scope.$index][item.prop] && tableData[scope.$index][item.prop].length >= Math.ceil((item.width - 36) / 14) * item.line" placement="top" width="200" trigger="hover" :content="tableData[scope.$index][item.prop]">
<span slot="reference" class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{ tableData[scope.$index][item.prop] | lineEllipsis(item.width, item.line) }}
</span>
</el-popover>
<!-- <span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" v-text="tableData[scope.$index][item.prop]"></span> -->
<span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
<!-- {{ tableData[scope.$index][item.prop] || '--' }} -->
{{ tableData[scope.$index][item.prop] | tableCellFormat }}
</span>
</template>
<template v-if="item.addSymbol">
<span v-text="item.addSymbol"></span>
</template>
</template>
<!-- 递归 -->
<sub-el-table-column v-if="item.children" :data="item.children" :tableData="tableData" :getListApi="getListApi"></sub-el-table-column>
</el-table-column>
</div>
</template>
<script>
// import GlSubTableColumn from '../../GlSubTableColumn'
export default {
name: 'sub-el-table-column',
props: {
data: {
type: Array,
default: () => []
},
// 表格数据-外部传入
tableData: {
type: Array,
default: () => []
},
// 获取列表接口
getListApi: {
type: Function,
default: null
}
},
computed: {
reverseData() {
let arr = [...this.data]
let temp = arr.pop()
arr.unshift(temp)
return arr
}
},
// components: {
// GlSubTableColumn
// }
// created(){
// // console.log('data',this.data)
// }
}
</script>
<style lang="scss">
// .sub-el-table-column {
// }
</style>
...@@ -46,7 +46,8 @@ ...@@ -46,7 +46,8 @@
:rowNumber="1" :rowNumber="1"
:formObj="searchRankForm" :formObj="searchRankForm"
:formData="searchFormRankData" :formData="searchFormRankData"
@handleOk="handleSearchRank"></GLCombiForm> @handleOk="handleSearchRank"
@handleRest="handleReset"></GLCombiForm>
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title"></span> <span class="table-title"></span>
<el-button :size="size" <el-button :size="size"
...@@ -358,10 +359,10 @@ export default { ...@@ -358,10 +359,10 @@ export default {
this.getLiveData() this.getLiveData()
}, },
mounted() { mounted() {
let [dataResetBtn] = this.$refs.dataRef.$el.getElementsByClassName('el-button--default'), let [dataResetBtn] = this.$refs.dataRef.$el.getElementsByClassName('el-button--default')
[rankResetBtn] = this.$refs.rankRef.$el.getElementsByClassName('el-button--default') // [rankResetBtn] = this.$refs.rankRef.$el.getElementsByClassName('el-button--default')
if (dataResetBtn) dataResetBtn.style.display = 'none' if (dataResetBtn) dataResetBtn.style.display = 'none'
if (rankResetBtn) rankResetBtn.style.display = 'none' // if (rankResetBtn) rankResetBtn.style.display = 'none'
}, },
methods: { methods: {
...@@ -386,6 +387,11 @@ export default { ...@@ -386,6 +387,11 @@ export default {
// 直播间数据统计 // 直播间数据统计
// this.getLiveBroadcastRoomDataStatistics() // this.getLiveBroadcastRoomDataStatistics()
}, },
handleReset() {
this.searchRankForm = this.$options.data.call(this).searchRankForm
// this.$refs.rankRef.refreshTable()
// this.handleSearch()
},
getDailyOrderQuantityStatistics() { getDailyOrderQuantityStatistics() {
this.$apis.seckillActivity this.$apis.seckillActivity
.getDailyOrderQuantityStatistics({ id: this.activityId }) .getDailyOrderQuantityStatistics({ id: this.activityId })
......
...@@ -468,7 +468,9 @@ export default { ...@@ -468,7 +468,9 @@ export default {
reservationInstallContactsName: '', reservationInstallContactsName: '',
reservationInstallContactsPhone: '', reservationInstallContactsPhone: '',
targetStock: '', targetStock: '',
paymentAccountSource: '1',
paymentAccountId: '', paymentAccountId: '',
payMannerId: '',
// 战报内容配置 // 战报内容配置
activityActionReport: { activityActionReport: {
produceReportSummary: '', produceReportSummary: '',
...@@ -1100,6 +1102,28 @@ export default { ...@@ -1100,6 +1102,28 @@ export default {
addHtml: 'live' addHtml: 'live'
}, },
{ {
label: '账户类型',
name: 'paymentAccountSource',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
optionList: [
{
confId: '1',
confName: '广联'
},
{
confId: '2',
confName: '服务商'
}
],
isDisabled: false,
handleRadioChange: (value, targetItem) => {
this.editForm.paymentAccountId = ''
this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = value == '1' ? this.baseData.payList : this.baseData.payMerchatList
}
},
{
label: '定金收款账户', label: '定金收款账户',
name: 'paymentAccountId', name: 'paymentAccountId',
type: 'select', type: 'select',
...@@ -1218,7 +1242,11 @@ export default { ...@@ -1218,7 +1242,11 @@ export default {
COVER_LIVE: 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_LIVE.gif', COVER_LIVE: 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_LIVE.gif',
COVER_REPLAY: 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_REPLAY.gif' COVER_REPLAY: 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_REPLAY.gif'
}), }),
defaultFloatingMaskDiagram: 'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif' defaultFloatingMaskDiagram: 'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif',
baseData: {
payList: [],
payMerchatList: []
}
} }
}, },
...@@ -1256,7 +1284,7 @@ export default { ...@@ -1256,7 +1284,7 @@ export default {
true true
) )
}) })
this.changeFormAttr('configEditFormData', 'isDisabled', ['定金收款账户'], true) this.changeFormAttr('configEditFormData', 'isDisabled', ['账户类型', '定金收款账户'], true)
} }
} }
}, },
...@@ -1807,6 +1835,8 @@ export default { ...@@ -1807,6 +1835,8 @@ export default {
this.handleMusicChange(this.musicList.length - 1) this.handleMusicChange(this.musicList.length - 1)
} }
} }
// 定金收款账户
this.editForm.paymentAccountSource = this.editForm.paymentAccountSource ? this.editForm.paymentAccountSource + '' : '1'
// 表单设置 // 表单设置
this.editForm.formDescribeCheck = [] this.editForm.formDescribeCheck = []
this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1 this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1
...@@ -2191,15 +2221,27 @@ export default { ...@@ -2191,15 +2221,27 @@ export default {
this.liveEditFormData.find(item => item.name == 'liveBroadcastRoomId').optionList = staff this.liveEditFormData.find(item => item.name == 'liveBroadcastRoomId').optionList = staff
}) })
}, },
// 定金收款账户 getPayMerchatList() {
getPayList() { this.$apis.seckillActivity.getPayMerchatListApi({ pageNum: 1, pageSize: 9999 }).then(res => {
this.$apis.seckillActivity.getPayListApi({}).then(res => { res.list.forEach(item => {
this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = res item.id = item.payMannerId
this.editForm.paymentAccountId = this.editForm.paymentAccountId || res.find(item => item.isDefault == 'Y').id item.accountName = item.mchName
})
this.baseData.payMerchatList = res.list
this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = this.editForm.paymentAccountSource == 1 ? this.baseData.payList : this.baseData.payMerchatList
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
}) })
},
// 定金收款账户
getPayList() {
this.$apis.seckillActivity.getPayListApi({}).then(res => {
this.baseData.payList = res
this.editForm.paymentAccountSource = this.editForm.paymentAccountSource || '1'
this.editForm.paymentAccountId = this.editForm.paymentAccountId || this.editForm.payMannerId || res.find(item => item.isDefault == 'Y')?.id
this.getPayMerchatList()
})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!