Commit 0e391e5d by 前端

Merge branch 'v3.3.1' into 'master'

合并3.3.1代码

See merge request !418
2 parents f133269e 9887409f
Showing 53 changed files with 437 additions and 271 deletions
This diff could not be displayed because it is too large.
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.5.3", "glsx-components": "^1.5.3",
"glsx-components_beta": "^1.0.4",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"node-sass": "^4.0.0", "node-sass": "^4.0.0",
"vod-js-sdk-v6": "^1.5.0", "vod-js-sdk-v6": "^1.5.0",
...@@ -21,7 +22,8 @@ ...@@ -21,7 +22,8 @@
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
"vuex": "^3.1.2", "vuex": "^3.1.2",
"wangeditor": "^4.7.12" "wangeditor": "^4.7.12",
"word-edit": "^1.0.1"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
...@@ -53,6 +53,15 @@ export default { ...@@ -53,6 +53,15 @@ export default {
} }
}, },
created() { created() {
document.onkeydown = function() {
var evt = window.event || arguments[0]
if (evt && evt.keyCode == 13) {
if (typeof evt.cancelBubble != 'undefined') evt.cancelBubble = true
if (typeof evt.stopPropagation == 'function') evt.stopPropagation()
return false
}
return true
}
this.myMsg = this.msg this.myMsg = this.msg
this.myMessage = this.message this.myMessage = this.message
} }
......
...@@ -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 }
...@@ -10,12 +10,13 @@ import { message, messageBox } from '@/plugins/element.js' ...@@ -10,12 +10,13 @@ import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import { GLButton, GLTable, GLFooter, GLCombiForm, GLTableButton, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLFooter, GLCombiForm, GLTableButton, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLEditor from 'glsx-components/src/packages/Editor' import {GLEditor} from 'word-edit'
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import '@/assets/css/public.scss' import '@/assets/css/public.scss'
import render from './render' import render from './render'
// import 'glsx-components/src/theme/theme.scss' // import 'glsx-components/src/theme/theme.scss'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
import 'word-edit/dist/glsx-components.css'
let routes = [] let routes = []
let router = null let router = null
let instance = null let instance = null
......
...@@ -398,7 +398,6 @@ export default { ...@@ -398,7 +398,6 @@ export default {
}, },
// 预览回显事件 // 预览回显事件
previewForm(val) { previewForm(val) {
console.log(val)
const value = this.$common.utils.deepClone(val) const value = this.$common.utils.deepClone(val)
if (value[0] && !value[0].attContent) value.splice(0, 1) if (value[0] && !value[0].attContent) value.splice(0, 1)
this.previewVal = value this.previewVal = value
......
...@@ -146,6 +146,7 @@ export default { ...@@ -146,6 +146,7 @@ export default {
togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片 togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
limitSize: 10, //限制图片大小 limitSize: 10, //限制图片大小
limitNum: 9, //限制图片数量 limitNum: 9, //限制图片数量
limitPx: 1555200,
// limitWidth: 10000, //限制单张图片宽度 // limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度 // limitHeight: 10000,//限制单张图片高度
Isdraggable: true, //图片拖拽 Isdraggable: true, //图片拖拽
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<div class="img-div"> <div class="img-div">
<div class="put-img" v-if="materialAddForm.videoUrl"> <div class="put-img" v-if="materialAddForm.videoUrl">
<video :src="materialAddForm.videoUrl" id="video" width="100%" height="100%" preload loop muted> <video :src="materialAddForm.videoUrl" id="video" width="100%" height="100%" preload loop muted>
<!-- <source :src="materialAddForm.videoUrl" type="video/mp4"/>--> <!-- <source :src="materialAddForm.videoUrl" type="video/mp4"/>-->
</video> </video>
<div class="mask"> <div class="mask">
<h3> <h3>
...@@ -271,7 +271,6 @@ ...@@ -271,7 +271,6 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import textBox from '@/views/material/components/textBox' import textBox from '@/views/material/components/textBox'
import SelectLabel from '@/views/material/components/selectLable' import SelectLabel from '@/views/material/components/selectLable'
...@@ -430,7 +429,7 @@ export default { ...@@ -430,7 +429,7 @@ export default {
if (!imgHtml && !videoHtml) params.materialType = 5 if (!imgHtml && !videoHtml) params.materialType = 5
if (imgHtml && imgHtml.length && !videoHtml && !html.length) params.materialType = 6 if (imgHtml && imgHtml.length && !videoHtml && !html.length) params.materialType = 6
if (this.materialAddForm.vedioUrl && !this.materialAddForm.imageUrlList.length) params.materialType = 4 if (this.materialAddForm.vedioUrl && !this.materialAddForm.imageUrlList.length) params.materialType = 4
if (this.materialAddForm.imageUrlList.length) params.materialType = 3 if (this.materialAddForm.imageUrlList && this.materialAddForm.imageUrlList.length) params.materialType = 3
this.textBoxContent = encodeURIComponent(this.textBoxContent) this.textBoxContent = encodeURIComponent(this.textBoxContent)
params.materialUrl = this.textBoxContent params.materialUrl = this.textBoxContent
} }
...@@ -749,7 +748,6 @@ export default { ...@@ -749,7 +748,6 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.materialType{ .materialType{
/deep/.el-form-item__content{ /deep/.el-form-item__content{
...@@ -760,7 +758,6 @@ export default { ...@@ -760,7 +758,6 @@ export default {
cursor: not-allowed; cursor: not-allowed;
cursor: no-drop; cursor: no-drop;
} }
.input-tag-wrapper { .input-tag-wrapper {
max-height: 75px; max-height: 75px;
overflow: auto; overflow: auto;
...@@ -775,21 +772,18 @@ export default { ...@@ -775,21 +772,18 @@ export default {
align-items: center; align-items: center;
margin-top: 6px; margin-top: 6px;
font-size: 14px; font-size: 14px;
i { i {
color: #75acff; color: #75acff;
margin-right: 3px; margin-right: 3px;
font-size: 14px; font-size: 14px;
} }
} }
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px; margin-bottom: 5px;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
border: none !important; border: none !important;
...@@ -799,21 +793,17 @@ export default { ...@@ -799,21 +793,17 @@ export default {
padding-left: 0; padding-left: 0;
width: 100px; width: 100px;
} }
.creat-material, .creat-material,
.track, .track,
.share, .share,
.material-bottom { .material-bottom {
background-color: #fff; background-color: #fff;
} }
.creat-material, .creat-material,
.track { .track {
margin-bottom: -10px; margin-bottom: -10px;
.dis-in-block { .dis-in-block {
margin-left: -154px; margin-left: -154px;
.activity-img { .activity-img {
width: 104px; width: 104px;
height: 104px; height: 104px;
...@@ -822,7 +812,6 @@ export default { ...@@ -822,7 +812,6 @@ export default {
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
input { input {
cursor: pointer; cursor: pointer;
font-size: 0; font-size: 0;
...@@ -832,30 +821,25 @@ export default { ...@@ -832,30 +821,25 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.add-border { .add-border {
text-align: center; text-align: center;
color: rgba(0, 0, 0, 0.45); color: rgba(0, 0, 0, 0.45);
.add-icon { .add-icon {
margin-top: 20px; margin-top: 20px;
height: 20px; height: 20px;
font-size: 17px; font-size: 17px;
} }
.add-text { .add-text {
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
} }
} }
} }
.img-btns, .img-btns,
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.video-panel { .video-panel {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -863,19 +847,16 @@ export default { ...@@ -863,19 +847,16 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative; position: relative;
video { video {
position: absolute; position: absolute;
object-fit: fill; object-fit: fill;
} }
.el-icon-video-play { .el-icon-video-play {
z-index: 10; z-index: 10;
font-size: 20px; font-size: 20px;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
} }
.el-icon-close { .el-icon-close {
position: absolute; position: absolute;
top: 0px; top: 0px;
...@@ -886,7 +867,6 @@ export default { ...@@ -886,7 +867,6 @@ export default {
} }
} }
} }
.container { .container {
h4, h4,
.share-container { .share-container {
...@@ -894,45 +874,36 @@ export default { ...@@ -894,45 +874,36 @@ export default {
font-weight: 600; font-weight: 600;
color: rgba(0, 0, 0, 0.85); color: rgba(0, 0, 0, 0.85);
margin: 17px 0 17px 20px; margin: 17px 0 17px 20px;
&:first-child { &:first-child {
padding-top: 17px; padding-top: 17px;
margin-top: 0; margin-top: 0;
} }
} }
} }
.photoWrap { .photoWrap {
margin-top: 20px; margin-top: 20px;
margin-left: -154px; margin-left: -154px;
} }
.space { .space {
margin-bottom: 32px; margin-bottom: 32px;
} }
.track { .track {
&-tips { &-tips {
font-size: 14px; font-size: 14px;
color: #999999; color: #999999;
} }
&-info { &-info {
margin-left: 8px; margin-left: 8px;
} }
&-behavior { &-behavior {
color: #606266; color: #606266;
} }
} }
.share { .share {
margin-bottom: 20px; margin-bottom: 20px;
&-container { &-container {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.share-unfold { .share-unfold {
span { span {
font-size: 12px; font-size: 12px;
...@@ -941,65 +912,54 @@ export default { ...@@ -941,65 +912,54 @@ export default {
} }
} }
} }
&-tips { &-tips {
color: #999999; color: #999999;
font-size: 14px; font-size: 14px;
margin-left: 16px; margin-left: 16px;
} }
} }
.material-bottom { .material-bottom {
height: 78px; height: 78px;
position: relative; position: relative;
.el-form-item { .el-form-item {
position: absolute; position: absolute;
top: 25%; top: 25%;
left: 40%; left: 40%;
.el-form-item__content { .el-form-item__content {
margin-left: 0; margin-left: 0;
} }
} }
} }
.el-input--small, .el-input--small,
.el-select, .el-select,
.el-select--small { .el-select--small {
width: 432px; width: 432px;
} }
.btn-cancle { .btn-cancle {
border-color: #5850ff; border-color: #5850ff;
color: #5850ff; color: #5850ff;
} }
.put-img, .put-img,
.avatar-uploader-desc, .avatar-uploader-desc,
.view-phone { .view-phone {
float: left; float: left;
margin-right: 8px; margin-right: 8px;
.task { .task {
width: 104px; width: 104px;
height: 104px; height: 104px;
border-radius: 10px; border-radius: 10px;
} }
} }
.put-img { .put-img {
width: 104px; width: 104px;
height: 104px; height: 104px;
border-radius: 10px; border-radius: 10px;
display: inline-block; display: inline-block;
position: relative; position: relative;
img { img {
width: 104px; width: 104px;
height: 104px; height: 104px;
} }
.mask { .mask {
position: absolute; position: absolute;
background: rgba(101, 101, 101, 0.6); background: rgba(101, 101, 101, 0.6);
...@@ -1010,42 +970,34 @@ export default { ...@@ -1010,42 +970,34 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 10px; border-radius: 10px;
h3 { h3 {
text-align: center; text-align: center;
margin-top: 40%; margin-top: 40%;
img { img {
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.del-img { .del-img {
padding-left: 12px; padding-left: 12px;
} }
} }
} }
} }
.tag-show { .tag-show {
margin-right: 8px; margin-right: 8px;
margin-top: 20px; margin-top: 20px;
.el-button { .el-button {
display: inline-flex; display: inline-flex;
color: #5850ff; color: #5850ff;
} }
} }
.put-img:hover .mask { .put-img:hover .mask {
opacity: 1; opacity: 1;
} }
.pdf-show { .pdf-show {
display: inline-flex; display: inline-flex;
position: relative; position: relative;
height: 32px; height: 32px;
input { input {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -1054,14 +1006,12 @@ export default { ...@@ -1054,14 +1006,12 @@ export default {
height: 100%; height: 100%;
} }
} }
.avatar-uploader-desc { .avatar-uploader-desc {
width: 104px; width: 104px;
height: 104px; height: 104px;
border-radius: 4px; border-radius: 4px;
border: 1px dashed rgba(0, 0, 0, 0.15); border: 1px dashed rgba(0, 0, 0, 0.15);
position: relative; position: relative;
&-icon { &-icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
...@@ -1069,14 +1019,12 @@ export default { ...@@ -1069,14 +1019,12 @@ export default {
top: 28px; top: 28px;
left: 44px; left: 44px;
} }
&-word { &-word {
position: absolute; position: absolute;
top: 58px; top: 58px;
left: 24px; left: 24px;
color: #666666; color: #666666;
} }
input { input {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -1085,34 +1033,28 @@ export default { ...@@ -1085,34 +1033,28 @@ export default {
height: 100%; height: 100%;
} }
} }
.view-phone { .view-phone {
margin-top: 85px; margin-top: 85px;
color: #5850ff; color: #5850ff;
} }
.avatar { .avatar {
width: 178px; width: 178px;
height: 178px; height: 178px;
display: block; display: block;
} }
.share-desc { .share-desc {
padding-bottom: 30px; padding-bottom: 30px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
&-right-box { &-right-box {
margin-right: 50px; margin-right: 50px;
width: 290px; width: 290px;
height: 566px; height: 566px;
position: relative; position: relative;
&-phone { &-phone {
width: 290px; width: 290px;
height: 566px; height: 566px;
} }
.content-show { .content-show {
background-color: #fff; background-color: #fff;
width: 160px; width: 160px;
...@@ -1124,17 +1066,14 @@ export default { ...@@ -1124,17 +1066,14 @@ export default {
left: 71px; left: 71px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
&-img { &-img {
width: 30px; width: 30px;
height: 30px; height: 30px;
img { img {
width: 30px; width: 30px;
height: 30px; height: 30px;
} }
} }
.content-title { .content-title {
color: #333333; color: #333333;
max-width: 100px; max-width: 100px;
...@@ -1144,7 +1083,6 @@ export default { ...@@ -1144,7 +1083,6 @@ export default {
font-size: 13px; font-size: 13px;
margin-bottom: 4px; margin-bottom: 4px;
} }
.content-word { .content-word {
color: #999999; color: #999999;
line-height: 14px; line-height: 14px;
...@@ -1160,63 +1098,49 @@ export default { ...@@ -1160,63 +1098,49 @@ export default {
} }
} }
} }
.img-plus { .img-plus {
width: 200px; width: 200px;
height: 200px; height: 200px;
} }
.gl-footer { .gl-footer {
z-index: 999; z-index: 999;
} }
.form-item-container { .form-item-container {
margin-top: 32px !important; margin-top: 32px !important;
} }
.el-form-item { .el-form-item {
margin-bottom: 20px !important; margin-bottom: 20px !important;
} }
/deep/ .el-form-item__label { /deep/ .el-form-item__label {
line-height: 25px; line-height: 25px;
} }
/deep/ .el-form-item__content { /deep/ .el-form-item__content {
line-height: 25px; line-height: 25px;
} }
.label-word { .label-word {
display: inline-block; display: inline-block;
img { img {
vertical-align: middle; vertical-align: middle;
} }
} }
ul { ul {
margin-top: 5px; margin-top: 5px;
.pdf-show { .pdf-show {
// width: 200px; // width: 200px;
list-style: none; list-style: none;
align-items: center; align-items: center;
position: relative; position: relative;
padding: 0 8px; padding: 0 8px;
.pdf-name { .pdf-name {
margin-right: 20px; margin-right: 20px;
&:hover { &:hover {
color: #5850ff; color: #5850ff;
} }
} }
&:hover { &:hover {
cursor: pointer; cursor: pointer;
background-color: rgba(88, 80, 255, 0.2) !important; background-color: rgba(88, 80, 255, 0.2) !important;
} }
i { i {
position: absolute; position: absolute;
right: 5px; right: 5px;
...@@ -1224,7 +1148,6 @@ ul { ...@@ -1224,7 +1148,6 @@ ul {
} }
} }
} }
.video-dsialog { .video-dsialog {
z-index: 2001; z-index: 2001;
position: fixed; position: fixed;
...@@ -1234,7 +1157,6 @@ ul { ...@@ -1234,7 +1157,6 @@ ul {
left: 0; left: 0;
overflow: auto; overflow: auto;
background: rgba($color: #000000, $alpha: 0.5); background: rgba($color: #000000, $alpha: 0.5);
&-panel { &-panel {
background: #000000; background: #000000;
position: absolute; position: absolute;
...@@ -1246,12 +1168,10 @@ ul { ...@@ -1246,12 +1168,10 @@ ul {
box-sizing: border-box; box-sizing: border-box;
padding: 10px 20px 20px; padding: 10px 20px 20px;
overflow: hidden; overflow: hidden;
.video-close { .video-close {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
height: 40px; height: 40px;
i { i {
cursor: pointer; cursor: pointer;
font-size: 25px; font-size: 25px;
......
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
</ul> </ul>
</div> </div>
</template> </template>
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
...@@ -184,7 +183,6 @@ export default { ...@@ -184,7 +183,6 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.status-words { .status-words {
margin-left: 5px; margin-left: 5px;
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<div id="div-demo"></div> <div id="div-demo"></div>
</div> </div>
</template> </template>
<script> <script>
import E from 'wangeditor' import E from 'wangeditor'
export default { export default {
...@@ -113,7 +112,6 @@ export default { ...@@ -113,7 +112,6 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
#div-demo { #div-demo {
// margin: 16px 300px 0 0; // margin: 16px 300px 0 0;
......
...@@ -106,7 +106,6 @@ ...@@ -106,7 +106,6 @@
<VideoShowDia ref="VideoShowDia" :dialogVisible="dialogVisibleImg"></VideoShowDia> <VideoShowDia ref="VideoShowDia" :dialogVisible="dialogVisibleImg"></VideoShowDia>
</div> </div>
</template> </template>
<script> <script>
const materialStatus = { const materialStatus = {
'0': 'normal', '0': 'normal',
...@@ -446,14 +445,12 @@ export default { ...@@ -446,14 +445,12 @@ export default {
window.sessionStorage.setItem('firstLogin', 'true') window.sessionStorage.setItem('firstLogin', 'true')
} }
}, },
videoOpen(scope) { videoOpen(scope) {
console.log(scope) console.log(scope)
this.dialogVisibleImg = true this.dialogVisibleImg = true
let dialogSrc = scope.materialContentRpcResponse.materialUrl let dialogSrc = scope.materialContentRpcResponse.materialUrl
this.$refs.VideoShowDia.init(dialogSrc) this.$refs.VideoShowDia.init(dialogSrc)
}, },
// 重置 // 重置
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
...@@ -560,13 +557,13 @@ export default { ...@@ -560,13 +557,13 @@ export default {
let videoHtml = html.match(/<video.*?(?:>|\/>)/g) let videoHtml = html.match(/<video.*?(?:>|\/>)/g)
if (imgHtml) { if (imgHtml) {
let imgSrc = imgHtml[0].match('<img[^<>]*? src="([^<>]*?)"') let imgSrc = imgHtml[0].match('<img[^<>]*? src="([^<>]*?)"')
item.materialContentRpcResponse.materialUrl = imgSrc[1] item.materialContentRpcResponse.materialUrl = imgSrc? imgSrc[1] :''
item.urlType = 'img' item.urlType = 'img'
item.imgCount = imgHtml.length item.imgCount = imgHtml.length
} }
if (videoHtml) { if (videoHtml) {
let videoSrc = videoHtml[0].match('<video[^<>]*? src="([^<>]*?)"') let videoSrc = videoHtml[0].match('<video[^<>]*? src="([^<>]*?)"')
item.materialContentRpcResponse.materialUrl = videoSrc[1] item.materialContentRpcResponse.materialUrl = videoSrc ? videoSrc[1] :''
item.urlType = 'video' item.urlType = 'video'
} }
} }
...@@ -627,7 +624,6 @@ export default { ...@@ -627,7 +624,6 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.videoMask { .videoMask {
position: absolute; position: absolute;
......
...@@ -38,22 +38,18 @@ ...@@ -38,22 +38,18 @@
name="0" name="0"
></el-tab-pane> ></el-tab-pane>
<el-tab-pane <el-tab-pane
v-if="!isSpecialMerchat"
label="已付款" label="已付款"
name="1" name="1"
></el-tab-pane> ></el-tab-pane>
<el-tab-pane <el-tab-pane
v-if="!isSpecialMerchat"
label="未付款" label="未付款"
name="2" name="2"
></el-tab-pane> ></el-tab-pane>
<el-tab-pane <el-tab-pane
v-if="!isSpecialMerchat"
label="已退款" label="已退款"
name="3" name="3"
></el-tab-pane> ></el-tab-pane>
<el-tab-pane <el-tab-pane
v-if="!isSpecialMerchat"
label="售后订单" label="售后订单"
name="4" name="4"
></el-tab-pane> ></el-tab-pane>
...@@ -340,7 +336,6 @@ export default { ...@@ -340,7 +336,6 @@ export default {
data () { data () {
return { return {
size: 'small', size: 'small',
isSpecialMerchat: true,
url: url, url: url,
isEdit: true, isEdit: true,
orderCode: '', orderCode: '',
...@@ -487,29 +482,29 @@ export default { ...@@ -487,29 +482,29 @@ export default {
type: 'input', type: 'input',
maxlength: 50 maxlength: 50
}, },
{ // {
label: '车架号', // label: '车架号',
name: 'vin', // name: 'vin',
labelWidth: 56, // labelWidth: 56,
type: 'input', // type: 'input',
maxlength: 50 // maxlength: 50
}, // },
{ // {
label: '推荐人', // label: '推荐人',
name: 'shareStaffName', // name: 'shareStaffName',
labelWidth: 56, // labelWidth: 56,
type: 'input', // type: 'input',
maxlength: 100 // maxlength: 100
}, // },
{ // {
label: '推荐人类型', // label: '推荐人类型',
name: 'shareStaffSource', // name: 'shareStaffSource',
type: 'select', // type: 'select',
optionList: [], // optionList: [],
optionId: 'confId', // optionId: 'confId',
optionLabel: 'confName', // optionLabel: 'confName',
optionsName: 'shareStaffSourceList' // optionsName: 'shareStaffSourceList'
}, // },
{ {
label: '活动名称', label: '活动名称',
name: 'activityName', name: 'activityName',
...@@ -524,20 +519,20 @@ export default { ...@@ -524,20 +519,20 @@ export default {
type: 'input', type: 'input',
maxlength: 100 maxlength: 100
}, },
{ // {
label: '手机号', // label: '手机号',
name: 'customerPhone', // name: 'customerPhone',
labelWidth: 56, // labelWidth: 56,
type: 'input', // type: 'input',
maxlength: 11 // maxlength: 11
}, // },
{ // {
label: '推荐人手机号', // label: '推荐人手机号',
name: 'shareStaffPhone', // name: 'shareStaffPhone',
labelWidth: 56, // labelWidth: 56,
type: 'input', // type: 'input',
maxlength: 11 // maxlength: 11
}, // },
{ {
label: '测试单', label: '测试单',
name: 'orderType', name: 'orderType',
...@@ -695,7 +690,7 @@ export default { ...@@ -695,7 +690,7 @@ export default {
fn: '商品发货' fn: '商品发货'
}, },
condition: row => { condition: row => {
return !this.isSpecialMerchat && row.deliveryType == 2 && row.orderStatus == 6 return row.deliveryType == 2 && row.orderStatus == 6
}, },
listeners: { listeners: {
click: this.handleExpressInfo click: this.handleExpressInfo
...@@ -722,7 +717,7 @@ export default { ...@@ -722,7 +717,7 @@ export default {
type: 'text' type: 'text'
}, },
condition: row => { condition: row => {
return !this.isSpecialMerchat && row.afterSaleStatus == 4 return row.afterSaleStatus == 4
}, },
listeners: { listeners: {
click: this.handleReceiving click: this.handleReceiving
...@@ -743,45 +738,45 @@ export default { ...@@ -743,45 +738,45 @@ export default {
return cellValue.customerName || '-' return cellValue.customerName || '-'
} }
}, },
{ // {
label: '手机号', // label: '手机号',
prop: 'customerPhone', // prop: 'customerPhone',
width: 160, // width: 160,
formatter: cellValue => { // formatter: cellValue => {
return cellValue.customerPhone || '-' // return cellValue.customerPhone || '-'
} // }
}, // },
{ // {
label: '其他', // label: '其他',
prop: 'otherInformation', // prop: 'otherInformation',
width: 210 // width: 210
}, // },
{ {
label: '微信名称', label: '微信名称',
prop: 'weChatName', prop: 'weChatName',
addHtml: 'weChatName', addHtml: 'weChatName',
width: 210 width: 210
}, },
{ // {
label: '推荐人', // label: '推荐人',
prop: 'shareStaffName', // prop: 'shareStaffName',
width: 210, // width: 210,
addHtml: 'shareStaffName' // addHtml: 'shareStaffName'
}, // },
{ // {
label: '指派人', // label: '指派人',
prop: 'assignName', // prop: 'assignName',
width: 210, // width: 210,
addHtml: 'assignName' // addHtml: 'assignName'
}, // },
{ // {
label: '推荐人手机号', // label: '推荐人手机号',
prop: 'shareStaffPhone', // prop: 'shareStaffPhone',
width: 160, // width: 160,
formatter: cellValue => { // formatter: cellValue => {
return cellValue.shareStaffPhone || '-' // return cellValue.shareStaffPhone || '-'
} // }
}, // },
{ {
label: '订单时间', label: '订单时间',
prop: 'createdDate', prop: 'createdDate',
...@@ -798,20 +793,20 @@ export default { ...@@ -798,20 +793,20 @@ export default {
return cellValue.payDate ? dayjs(cellValue.payDate).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.payDate ? dayjs(cellValue.payDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
}, },
{ // {
label: '核销时间', // label: '核销时间',
prop: 'verificationDate', // prop: 'verificationDate',
width: '180', // width: '180',
formatter: cellValue => { // formatter: cellValue => {
return cellValue.verificationDate ? dayjs(cellValue.verificationDate).format('YYYY-MM-DD HH:mm:ss') : '-' // return cellValue.verificationDate ? dayjs(cellValue.verificationDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} // }
}, // },
{ // {
label: '车架号', // label: '车架号',
prop: 'vinNo', // prop: 'vinNo',
width: 130, // width: 130,
addHtml: 'vinNo' // addHtml: 'vinNo'
}, // },
{ {
label: '订单状态', label: '订单状态',
prop: 'orderStatus', prop: 'orderStatus',
...@@ -947,7 +942,7 @@ export default { ...@@ -947,7 +942,7 @@ export default {
} }
}, },
created () { created () {
this.checkMerchant() // this.checkMerchant()
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
...@@ -1042,18 +1037,18 @@ export default { ...@@ -1042,18 +1037,18 @@ export default {
}) })
}, },
checkMerchant () { // checkMerchant () {
this.$apis.orderManage.checkMerchartApi({}).then(res => { // this.$apis.orderManage.checkMerchartApi({}).then(res => {
this.isSpecialMerchat = res // this.isSpecialMerchat = res
var hideList = ['售后状态', '订单类型', '结算方式', '商户订单号', '车架号', '推荐人', '推荐人类型', '手机号', '推荐人手机号'] // var hideList = ['售后状态', '订单类型', '结算方式', '商户订单号', '车架号', '推荐人', '推荐人类型', '手机号', '推荐人手机号']
if (this.isSpecialMerchat) { // if (this.isSpecialMerchat) {
hideList.forEach(item => { // hideList.forEach(item => {
this.showOrHideAttr('searchFormData', item, true) // this.showOrHideAttr('searchFormData', item, true)
}) // })
this.deleteAttr(['手机号', '其他', '微信名称', '推荐人', '推荐人手机号', '车架号', '商户订单号']) // this.deleteAttr(['手机号', '其他', '微信名称', '推荐人', '推荐人手机号', '车架号', '商户订单号'])
} // }
}) // })
}, // },
secondConfirm (title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) { secondConfirm (title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) {
this.$confirm(txt, title, { this.$confirm(txt, title, {
...@@ -1275,9 +1270,9 @@ export default { ...@@ -1275,9 +1270,9 @@ export default {
}, },
handleTabClick () { handleTabClick () {
if (this.isSpecialMerchat) { // if (this.isSpecialMerchat) {
return true // return true
} // }
this.handleSearch() this.handleSearch()
}, },
......
...@@ -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')
......
...@@ -252,8 +252,27 @@ export default { ...@@ -252,8 +252,27 @@ export default {
{ {
label: '活动名称', label: '活动名称',
prop: 'activityName', prop: 'activityName',
width: 220, width: 220
fixed: 'left' },
{
label: '浏览量(次)',
prop: 'viewAmount',
addHtml: 'linkText',
width: 140
},
{
label: '访客',
prop: 'fansAmount',
addHtml: 'linkText'
},
{
label: '分享',
prop: 'shareAmount',
addHtml: 'linkText'
},
{
label: '销量',
prop: 'saleAmount'
}, },
{ {
label: '门店', label: '门店',
...@@ -281,12 +300,6 @@ export default { ...@@ -281,12 +300,6 @@ export default {
} }
}, },
{ {
label: '浏览量(次)',
prop: 'viewAmount',
addHtml: 'linkText',
width: 140
},
{
label: '进账', label: '进账',
prop: 'income', prop: 'income',
formatter: cellValue => { formatter: cellValue => {
...@@ -308,20 +321,6 @@ export default { ...@@ -308,20 +321,6 @@ export default {
} }
}, },
{ {
label: '访客',
prop: 'fansAmount',
addHtml: 'linkText'
},
{
label: '分享',
prop: 'shareAmount',
addHtml: 'linkText'
},
{
label: '销量',
prop: 'saleAmount'
},
{
label: '秒杀价(元)', label: '秒杀价(元)',
name: 'activityPrice', name: 'activityPrice',
width: 140, width: 140,
......
...@@ -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()
})
} }
} }
} }
......
...@@ -57,6 +57,7 @@ export default { ...@@ -57,6 +57,7 @@ export default {
this.activeName = obj.activeName this.activeName = obj.activeName
}, },
handleInfoConfirm(info) { handleInfoConfirm(info) {
this.eventObj.addOrEdit == 'add' ? this.$refs.baseInfoRef.editForm.eventList.push(info.baseInfo) : this.$set(this.$refs.baseInfoRef.editForm.eventList, this.eventIndex, info.baseInfo) this.eventObj.addOrEdit == 'add' ? this.$refs.baseInfoRef.editForm.eventList.push(info.baseInfo) : this.$set(this.$refs.baseInfoRef.editForm.eventList, this.eventIndex, info.baseInfo)
this.$refs.baseInfoRef.parentCustomerObj.phone = info.predictCountObj.phone this.$refs.baseInfoRef.parentCustomerObj.phone = info.predictCountObj.phone
this.$refs.baseInfoRef.parentCustomerObj.qiwei = info.predictCountObj.qiwei this.$refs.baseInfoRef.parentCustomerObj.qiwei = info.predictCountObj.qiwei
......
<template>
<div class="form-image">
<img src="@/images/phone.png" />
<div class="preview-content">
<div class="preview-info">
<!-- <div class="preview-text text" v-if="addForm.messageContext">【短信签名】{{ addForm.messageContext }}</div>-->
<div class="preview-box" v-for="item in previewListFilter" :key="item.id">
<div class="preview-box-desc">
<template v-if="item.attType == 1">
<div class="preview-text text" v-html="item.attContent"></div>
</template>
<!-- <template v-if="item.attType == 7">-->
<!-- <div class="preview-text preview-link">-->
<!-- <img src="@/assets/guestCustom/preview-link.png" alt />-->
<!-- <div>{{ item.attContent[0].marketingName }}</div>-->
<!-- </div>-->
<!-- </template>-->
<!-- <template v-else-if="item.attType == 2" v-for="(imgItem, index) in item.attContent">-->
<!-- <el-image style="width: 52px; height: 52px" class="img-list" :src="imgItem" fit="fit" :key="index" :preview-src-list="item.attContent"></el-image>-->
<!-- </template>-->
<!-- <template v-else-if="item.attType == 3">-->
<!-- &lt;!&ndash; <el-image style="width: 100px" :src="item.attContent" fit="contain"></el-image> &ndash;&gt;-->
<!-- <div class="video-panel">-->
<!-- <video id="video" width="100%" height="100%" preload loop muted>-->
<!-- <source :src="item.attContent" type="video/mp4" />-->
<!-- </video>-->
<!-- <i-->
<!-- class="el-icon-video-play"-->
<!-- @click="-->
<!-- videoShow = true-->
<!-- videoUrl = item.attContent-->
<!-- "-->
<!-- ></i>-->
<!-- </div>-->
<!-- </template>-->
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import emoji from "@/utils/emo";
export default {
name: 'MessagePreview',
props: { previewView: Array },
data() {
return {
previewListFilter:[]
}
},
watch: {
previewView: {
handler(val) {
const previewVal = this.$common.utils.deepClone(val).filter(item => item)
console.log(previewVal)
this.previewListFilter = []
for (let i in previewVal) {
if (previewVal[i].attType == 1) {
const attContent = previewVal[i].attContent
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
return `<img style="width: 18px;
height: 18px;" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
})
this.previewListFilter.push({
attType: 1,
attContent: htm
})
} else if (previewVal[i].attType == 2) {
const pindex = this.previewListFilter.findIndex(item => item.attType == 2)
if (pindex == -1) {
this.previewListFilter.push({
attType: 2,
attContent: [previewVal[i].attContent]
})
} else {
this.previewListFilter[pindex].attContent.push(previewVal[i].attContent)
}
} else {
this.previewListFilter.push({
attType: previewVal[i].attType,
attContent: previewVal[i].attContent
})
}
}
this.$nextTick(() => {
this.previewListFilter = this.previewListFilter.filter(item => item)
})
},
deep: true
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.form-image {
width: 280px;
height: 546px;
margin: 20px 80px 20px 0;
position: relative;
.preview-content {
position: absolute;
width: 250px;
height: 320px;
overflow-y: auto;
top: 125px;
left: 50px;
.preview-text {
padding: 10px;
position: relative;
width: 160px;
color: #333;
background-color: #f4f4f4;
border-radius: 4px;
word-wrap: break-word;
margin-bottom: 10px;
line-height: 15px;
}
}
img {
width: 100%;
height: auto;
}
}
</style>
...@@ -57,6 +57,12 @@ export default { ...@@ -57,6 +57,12 @@ export default {
type: 'input', type: 'input',
isClear: true, isClear: true,
maxlength: 11 maxlength: 11
},
{
label: '企微名称',
name: 'nickName',
type: 'input',
isClear: true,
} }
], ],
// 表格 // 表格
...@@ -80,6 +86,14 @@ export default { ...@@ -80,6 +86,14 @@ export default {
} }
}, },
{ {
label: '企微名称',
prop: 'nickNameList',
width: '130px',
formatter: cellValue => {
return cellValue.nickNameList[0] && cellValue.nickNameList[0].nickName || '-'
}
},
{
label: '客户手机号', label: '客户手机号',
prop: 'customerPhone', prop: 'customerPhone',
width: '130px', width: '130px',
...@@ -197,16 +211,20 @@ export default { ...@@ -197,16 +211,20 @@ export default {
var selectIds = currentList.map(item => item.id) var selectIds = currentList.map(item => item.id)
var selectedIds = val.map(item => item.id) var selectedIds = val.map(item => item.id)
var tempList = [] var tempList = []
val.forEach(item => { val.forEach((item,index) => {
if (!selectIds.includes(item.id) && tableIds.includes(item.id) && this.selectedCustomerList.length < this.maxCustNum) { if (!selectIds.includes(item.id) && tableIds.includes(item.id) && this.selectedCustomerList.length < this.maxCustNum) {
this.selectedCustomerList.push(item) this.selectedCustomerList.push(item)
} }
if (item.nickNameList.length){
this.selectedCustomerList[index].customerNickName = item.nickNameList[0].nickName || ''
}
}) })
this.selectedCustomerList.forEach(item => { this.selectedCustomerList.forEach(item => {
if (selectedIds.includes(item.id) || !tableIds.includes(item.id)) { if (selectedIds.includes(item.id) || !tableIds.includes(item.id)) {
tempList.push(item) tempList.push(item)
} }
}) })
this.selectedCustomerList = tempList this.selectedCustomerList = tempList
this.recoverySelected() this.recoverySelected()
}, },
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
</div> </div>
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="sopListRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="sopListRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
...@@ -77,6 +79,29 @@ export default { ...@@ -77,6 +79,29 @@ export default {
click: this.handleEnd click: this.handleEnd
} }
}, },
// {
// type: 'el-button',
// name: '查看',
// attrs: {
// type: 'text'
// },
// condition: row => {
// return row.sopStatus == 3
// },
// listeners: {
// click: row => this.handleEdit('look', row)
// }
// },
// {
// type: 'el-button',
// name: '复制',
// attrs: {
// type: 'text'
// },
// listeners: {
// click: row => this.handleEdit('copy', row)
// }
// },
{ {
type: 'el-button', type: 'el-button',
name: '编辑', name: '编辑',
...@@ -113,7 +138,7 @@ export default { ...@@ -113,7 +138,7 @@ export default {
{ {
label: 'SOP名称', label: 'SOP名称',
prop: 'sopName', prop: 'sopName',
width: 260, width: 240,
line: 1 line: 1
}, },
{ {
...@@ -171,9 +196,11 @@ export default { ...@@ -171,9 +196,11 @@ export default {
} }
} }
}, },
mounted() { mounted() {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
methods: { methods: {
handleJump(path, row = {}) { handleJump(path, row = {}) {
this.$router.push({ this.$router.push({
...@@ -181,6 +208,7 @@ export default { ...@@ -181,6 +208,7 @@ export default {
query: row ? { id: row.id, fromPage: '/marketing/sop/sopList' } : '' query: row ? { id: row.id, fromPage: '/marketing/sop/sopList' } : ''
}) })
}, },
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) { secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, { this.$confirm(txt, title, {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -215,13 +243,16 @@ export default { ...@@ -215,13 +243,16 @@ export default {
query: params query: params
}) })
}, },
// 结束 // 结束
handleEnd(row) { handleEnd(row) {
this.secondConfirm('结束', '结束SOP后,将不再进行营销任务自动推送,且不可恢复。是否确定结束?', 'sop', 'endSopEventApi', { sopId: row.id }) this.secondConfirm('结束', '结束SOP后,将不再进行营销任务自动推送,且不可恢复。是否确定结束?', 'sop', 'endSopEventApi', { sopId: row.id })
}, },
handleDelete(row) { handleDelete(row) {
this.secondConfirm('删除', 'SOP删除后,不可恢复。是否确定删除?', 'sop', 'deleteSopEventApi', { sopId: row.id }) this.secondConfirm('删除', 'SOP删除后,不可恢复。是否确定删除?', 'sop', 'deleteSopEventApi', { sopId: row.id })
}, },
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find(k => k.name == refreshSigle)
...@@ -247,18 +278,22 @@ export default { ...@@ -247,18 +278,22 @@ export default {
}) })
} }
}, },
setTableFinishFun() { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
this.$refs.sopListRef.data.length ? (this.$refs.sopListRef.tableHeightValues = '') : this.$refs.sopListRef.setTableHeightFun() this.$refs.sopListRef.data.length ? (this.$refs.sopListRef.tableHeightValues = '') : this.$refs.sopListRef.setTableHeightFun()
}, },
handleBack() { handleBack() {
this.$router.push({ this.$router.push({
path: '/sop/index' path: '/sop/index'
}) })
}, },
handleSearch() { handleSearch() {
this.$refs.sopListRef.refreshTable() this.$refs.sopListRef.refreshTable()
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
sopName: '', sopName: '',
...@@ -269,6 +304,7 @@ export default { ...@@ -269,6 +304,7 @@ export default {
} }
} }
</script> </script>
<style scoped> <style scoped>
.sop-list .sop-back-btn { .sop-list .sop-back-btn {
position: absolute; position: absolute;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!