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 438 additions and 272 deletions
This diff could not be displayed because it is too large.
......@@ -14,6 +14,7 @@
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.5.3",
"glsx-components_beta": "^1.0.4",
"lodash": "^4.17.21",
"node-sass": "^4.0.0",
"vod-js-sdk-v6": "^1.5.0",
......@@ -21,7 +22,8 @@
"vue-router": "^3.1.3",
"vuedraggable": "^2.24.3",
"vuex": "^3.1.2",
"wangeditor": "^4.7.12"
"wangeditor": "^4.7.12",
"word-edit": "^1.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
......
......@@ -53,6 +53,15 @@ export default {
}
},
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.myMessage = this.message
}
......
......@@ -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 => {
params.method = 'scrm.api.shopmall.activity.ranking.page'
......@@ -267,4 +278,4 @@ const liveroomOverview = params => {
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'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
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 '@/assets/css/public.scss'
import render from './render'
// import 'glsx-components/src/theme/theme.scss'
import 'glsx-components/dist/glsx-components.css'
import 'word-edit/dist/glsx-components.css'
let routes = []
let router = null
let instance = null
......
......@@ -398,7 +398,6 @@ export default {
},
// 预览回显事件
previewForm(val) {
console.log(val)
const value = this.$common.utils.deepClone(val)
if (value[0] && !value[0].attContent) value.splice(0, 1)
this.previewVal = value
......
......@@ -146,6 +146,7 @@ export default {
togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
limitSize: 10, //限制图片大小
limitNum: 9, //限制图片数量
limitPx: 1555200,
// limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度
Isdraggable: true, //图片拖拽
......
......@@ -80,7 +80,7 @@
<div class="avatar-uploader-desc-word">上传照片</div>
<input :class="{disableUpload:notDisplayProperties}"
:disabled="notDisplayProperties" type="file" style="opacity: 0" accept=".jpg, .jpeg, .png"
@change="e => handleImgChange(e,'imageUrlList')"/>
@change="e => handleImgChange(e,'imageUrlList')"/>
</div>
<!-- <div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div> -->
</div>
......@@ -89,7 +89,7 @@
<div class="img-div">
<div class="put-img" v-if="materialAddForm.videoUrl">
<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>
<div class="mask">
<h3>
......@@ -271,7 +271,6 @@
</el-dialog>
</div>
</template>
<script>
import textBox from '@/views/material/components/textBox'
import SelectLabel from '@/views/material/components/selectLable'
......@@ -430,7 +429,7 @@ export default {
if (!imgHtml && !videoHtml) params.materialType = 5
if (imgHtml && imgHtml.length && !videoHtml && !html.length) params.materialType = 6
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)
params.materialUrl = this.textBoxContent
}
......@@ -749,7 +748,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
.materialType{
/deep/.el-form-item__content{
......@@ -760,7 +758,6 @@ export default {
cursor: not-allowed;
cursor: no-drop;
}
.input-tag-wrapper {
max-height: 75px;
overflow: auto;
......@@ -775,21 +772,18 @@ export default {
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.tag-input {
background: transparent;
border: none !important;
......@@ -799,21 +793,17 @@ export default {
padding-left: 0;
width: 100px;
}
.creat-material,
.track,
.share,
.material-bottom {
background-color: #fff;
}
.creat-material,
.track {
margin-bottom: -10px;
.dis-in-block {
margin-left: -154px;
.activity-img {
width: 104px;
height: 104px;
......@@ -822,7 +812,6 @@ export default {
border-radius: 4px;
cursor: pointer;
position: relative;
input {
cursor: pointer;
font-size: 0;
......@@ -832,30 +821,25 @@ export default {
width: 100%;
height: 100%;
}
.add-border {
text-align: center;
color: rgba(0, 0, 0, 0.45);
.add-icon {
margin-top: 20px;
height: 20px;
font-size: 17px;
}
.add-text {
height: 30px;
font-size: 12px;
}
}
}
.img-btns,
img {
width: 100%;
height: 100%;
}
.video-panel {
width: 100%;
height: 100%;
......@@ -863,19 +847,16 @@ export default {
align-items: center;
justify-content: center;
position: relative;
video {
position: absolute;
object-fit: fill;
}
.el-icon-video-play {
z-index: 10;
font-size: 20px;
color: #fff;
cursor: pointer;
}
.el-icon-close {
position: absolute;
top: 0px;
......@@ -886,7 +867,6 @@ export default {
}
}
}
.container {
h4,
.share-container {
......@@ -894,45 +874,36 @@ export default {
font-weight: 600;
color: rgba(0, 0, 0, 0.85);
margin: 17px 0 17px 20px;
&:first-child {
padding-top: 17px;
margin-top: 0;
}
}
}
.photoWrap {
margin-top: 20px;
margin-left: -154px;
}
.space {
margin-bottom: 32px;
}
.track {
&-tips {
font-size: 14px;
color: #999999;
}
&-info {
margin-left: 8px;
}
&-behavior {
color: #606266;
}
}
.share {
margin-bottom: 20px;
&-container {
display: flex;
justify-content: space-between;
.share-unfold {
span {
font-size: 12px;
......@@ -941,65 +912,54 @@ export default {
}
}
}
&-tips {
color: #999999;
font-size: 14px;
margin-left: 16px;
}
}
.material-bottom {
height: 78px;
position: relative;
.el-form-item {
position: absolute;
top: 25%;
left: 40%;
.el-form-item__content {
margin-left: 0;
}
}
}
.el-input--small,
.el-select,
.el-select--small {
width: 432px;
}
.btn-cancle {
border-color: #5850ff;
color: #5850ff;
}
.put-img,
.avatar-uploader-desc,
.view-phone {
float: left;
margin-right: 8px;
.task {
width: 104px;
height: 104px;
border-radius: 10px;
}
}
.put-img {
width: 104px;
height: 104px;
border-radius: 10px;
display: inline-block;
position: relative;
img {
width: 104px;
height: 104px;
}
.mask {
position: absolute;
background: rgba(101, 101, 101, 0.6);
......@@ -1010,42 +970,34 @@ export default {
width: 100%;
height: 100%;
border-radius: 10px;
h3 {
text-align: center;
margin-top: 40%;
img {
width: 16px;
height: 16px;
}
.del-img {
padding-left: 12px;
}
}
}
}
.tag-show {
margin-right: 8px;
margin-top: 20px;
.el-button {
display: inline-flex;
color: #5850ff;
}
}
.put-img:hover .mask {
opacity: 1;
}
.pdf-show {
display: inline-flex;
position: relative;
height: 32px;
input {
position: absolute;
top: 0;
......@@ -1054,14 +1006,12 @@ export default {
height: 100%;
}
}
.avatar-uploader-desc {
width: 104px;
height: 104px;
border-radius: 4px;
border: 1px dashed rgba(0, 0, 0, 0.15);
position: relative;
&-icon {
width: 16px;
height: 16px;
......@@ -1069,14 +1019,12 @@ export default {
top: 28px;
left: 44px;
}
&-word {
position: absolute;
top: 58px;
left: 24px;
color: #666666;
}
input {
position: absolute;
top: 0;
......@@ -1085,34 +1033,28 @@ export default {
height: 100%;
}
}
.view-phone {
margin-top: 85px;
color: #5850ff;
}
.avatar {
width: 178px;
height: 178px;
display: block;
}
.share-desc {
padding-bottom: 30px;
display: flex;
justify-content: space-between;
&-right-box {
margin-right: 50px;
width: 290px;
height: 566px;
position: relative;
&-phone {
width: 290px;
height: 566px;
}
.content-show {
background-color: #fff;
width: 160px;
......@@ -1124,17 +1066,14 @@ export default {
left: 71px;
display: flex;
justify-content: space-between;
&-img {
width: 30px;
height: 30px;
img {
width: 30px;
height: 30px;
}
}
.content-title {
color: #333333;
max-width: 100px;
......@@ -1144,7 +1083,6 @@ export default {
font-size: 13px;
margin-bottom: 4px;
}
.content-word {
color: #999999;
line-height: 14px;
......@@ -1160,63 +1098,49 @@ export default {
}
}
}
.img-plus {
width: 200px;
height: 200px;
}
.gl-footer {
z-index: 999;
}
.form-item-container {
margin-top: 32px !important;
}
.el-form-item {
margin-bottom: 20px !important;
}
/deep/ .el-form-item__label {
line-height: 25px;
}
/deep/ .el-form-item__content {
line-height: 25px;
}
.label-word {
display: inline-block;
img {
vertical-align: middle;
}
}
ul {
margin-top: 5px;
.pdf-show {
// width: 200px;
list-style: none;
align-items: center;
position: relative;
padding: 0 8px;
.pdf-name {
margin-right: 20px;
&:hover {
color: #5850ff;
}
}
&:hover {
cursor: pointer;
background-color: rgba(88, 80, 255, 0.2) !important;
}
i {
position: absolute;
right: 5px;
......@@ -1224,7 +1148,6 @@ ul {
}
}
}
.video-dsialog {
z-index: 2001;
position: fixed;
......@@ -1234,7 +1157,6 @@ ul {
left: 0;
overflow: auto;
background: rgba($color: #000000, $alpha: 0.5);
&-panel {
background: #000000;
position: absolute;
......@@ -1246,12 +1168,10 @@ ul {
box-sizing: border-box;
padding: 10px 20px 20px;
overflow: hidden;
.video-close {
display: flex;
justify-content: flex-end;
height: 40px;
i {
cursor: pointer;
font-size: 25px;
......
......@@ -42,7 +42,6 @@
</ul>
</div>
</template>
<script>
import * as dayjs from 'dayjs'
......@@ -184,7 +183,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
.status-words {
margin-left: 5px;
......
......@@ -3,7 +3,6 @@
<div id="div-demo"></div>
</div>
</template>
<script>
import E from 'wangeditor'
export default {
......@@ -113,7 +112,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
#div-demo {
// margin: 16px 300px 0 0;
......
......@@ -106,7 +106,6 @@
<VideoShowDia ref="VideoShowDia" :dialogVisible="dialogVisibleImg"></VideoShowDia>
</div>
</template>
<script>
const materialStatus = {
'0': 'normal',
......@@ -446,14 +445,12 @@ export default {
window.sessionStorage.setItem('firstLogin', 'true')
}
},
videoOpen(scope) {
console.log(scope)
this.dialogVisibleImg = true
let dialogSrc = scope.materialContentRpcResponse.materialUrl
this.$refs.VideoShowDia.init(dialogSrc)
},
// 重置
handleReset() {
this.searchForm = {
......@@ -560,13 +557,13 @@ export default {
let videoHtml = html.match(/<video.*?(?:>|\/>)/g)
if (imgHtml) {
let imgSrc = imgHtml[0].match('<img[^<>]*? src="([^<>]*?)"')
item.materialContentRpcResponse.materialUrl = imgSrc[1]
item.materialContentRpcResponse.materialUrl = imgSrc? imgSrc[1] :''
item.urlType = 'img'
item.imgCount = imgHtml.length
}
if (videoHtml) {
let videoSrc = videoHtml[0].match('<video[^<>]*? src="([^<>]*?)"')
item.materialContentRpcResponse.materialUrl = videoSrc[1]
item.materialContentRpcResponse.materialUrl = videoSrc ? videoSrc[1] :''
item.urlType = 'video'
}
}
......@@ -627,7 +624,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
.videoMask {
position: absolute;
......
......@@ -38,22 +38,18 @@
name="0"
></el-tab-pane>
<el-tab-pane
v-if="!isSpecialMerchat"
label="已付款"
name="1"
></el-tab-pane>
<el-tab-pane
v-if="!isSpecialMerchat"
label="未付款"
name="2"
></el-tab-pane>
<el-tab-pane
v-if="!isSpecialMerchat"
label="已退款"
name="3"
></el-tab-pane>
<el-tab-pane
v-if="!isSpecialMerchat"
label="售后订单"
name="4"
></el-tab-pane>
......@@ -340,7 +336,6 @@ export default {
data () {
return {
size: 'small',
isSpecialMerchat: true,
url: url,
isEdit: true,
orderCode: '',
......@@ -487,29 +482,29 @@ export default {
type: 'input',
maxlength: 50
},
{
label: '车架号',
name: 'vin',
labelWidth: 56,
type: 'input',
maxlength: 50
},
{
label: '推荐人',
name: 'shareStaffName',
labelWidth: 56,
type: 'input',
maxlength: 100
},
{
label: '推荐人类型',
name: 'shareStaffSource',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'shareStaffSourceList'
},
// {
// label: '车架号',
// name: 'vin',
// labelWidth: 56,
// type: 'input',
// maxlength: 50
// },
// {
// label: '推荐人',
// name: 'shareStaffName',
// labelWidth: 56,
// type: 'input',
// maxlength: 100
// },
// {
// label: '推荐人类型',
// name: 'shareStaffSource',
// type: 'select',
// optionList: [],
// optionId: 'confId',
// optionLabel: 'confName',
// optionsName: 'shareStaffSourceList'
// },
{
label: '活动名称',
name: 'activityName',
......@@ -524,20 +519,20 @@ export default {
type: 'input',
maxlength: 100
},
{
label: '手机号',
name: 'customerPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
},
{
label: '推荐人手机号',
name: 'shareStaffPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
},
// {
// label: '手机号',
// name: 'customerPhone',
// labelWidth: 56,
// type: 'input',
// maxlength: 11
// },
// {
// label: '推荐人手机号',
// name: 'shareStaffPhone',
// labelWidth: 56,
// type: 'input',
// maxlength: 11
// },
{
label: '测试单',
name: 'orderType',
......@@ -695,7 +690,7 @@ export default {
fn: '商品发货'
},
condition: row => {
return !this.isSpecialMerchat && row.deliveryType == 2 && row.orderStatus == 6
return row.deliveryType == 2 && row.orderStatus == 6
},
listeners: {
click: this.handleExpressInfo
......@@ -722,7 +717,7 @@ export default {
type: 'text'
},
condition: row => {
return !this.isSpecialMerchat && row.afterSaleStatus == 4
return row.afterSaleStatus == 4
},
listeners: {
click: this.handleReceiving
......@@ -743,45 +738,45 @@ export default {
return cellValue.customerName || '-'
}
},
{
label: '手机号',
prop: 'customerPhone',
width: 160,
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
},
{
label: '其他',
prop: 'otherInformation',
width: 210
},
// {
// label: '手机号',
// prop: 'customerPhone',
// width: 160,
// formatter: cellValue => {
// return cellValue.customerPhone || '-'
// }
// },
// {
// label: '其他',
// prop: 'otherInformation',
// width: 210
// },
{
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 210
},
{
label: '推荐人',
prop: 'shareStaffName',
width: 210,
addHtml: 'shareStaffName'
},
{
label: '指派人',
prop: 'assignName',
width: 210,
addHtml: 'assignName'
},
{
label: '推荐人手机号',
prop: 'shareStaffPhone',
width: 160,
formatter: cellValue => {
return cellValue.shareStaffPhone || '-'
}
},
// {
// label: '推荐人',
// prop: 'shareStaffName',
// width: 210,
// addHtml: 'shareStaffName'
// },
// {
// label: '指派人',
// prop: 'assignName',
// width: 210,
// addHtml: 'assignName'
// },
// {
// label: '推荐人手机号',
// prop: 'shareStaffPhone',
// width: 160,
// formatter: cellValue => {
// return cellValue.shareStaffPhone || '-'
// }
// },
{
label: '订单时间',
prop: 'createdDate',
......@@ -798,20 +793,20 @@ export default {
return cellValue.payDate ? dayjs(cellValue.payDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '核销时间',
prop: 'verificationDate',
width: '180',
formatter: cellValue => {
return cellValue.verificationDate ? dayjs(cellValue.verificationDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '车架号',
prop: 'vinNo',
width: 130,
addHtml: 'vinNo'
},
// {
// label: '核销时间',
// prop: 'verificationDate',
// width: '180',
// formatter: cellValue => {
// return cellValue.verificationDate ? dayjs(cellValue.verificationDate).format('YYYY-MM-DD HH:mm:ss') : '-'
// }
// },
// {
// label: '车架号',
// prop: 'vinNo',
// width: 130,
// addHtml: 'vinNo'
// },
{
label: '订单状态',
prop: 'orderStatus',
......@@ -947,7 +942,7 @@ export default {
}
},
created () {
this.checkMerchant()
// this.checkMerchant()
if (window.__POWERED_BY_QIANKUN__) {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
......@@ -1042,18 +1037,18 @@ export default {
})
},
checkMerchant () {
this.$apis.orderManage.checkMerchartApi({}).then(res => {
this.isSpecialMerchat = res
var hideList = ['售后状态', '订单类型', '结算方式', '商户订单号', '车架号', '推荐人', '推荐人类型', '手机号', '推荐人手机号']
if (this.isSpecialMerchat) {
hideList.forEach(item => {
this.showOrHideAttr('searchFormData', item, true)
})
this.deleteAttr(['手机号', '其他', '微信名称', '推荐人', '推荐人手机号', '车架号', '商户订单号'])
}
})
},
// checkMerchant () {
// this.$apis.orderManage.checkMerchartApi({}).then(res => {
// this.isSpecialMerchat = res
// var hideList = ['售后状态', '订单类型', '结算方式', '商户订单号', '车架号', '推荐人', '推荐人类型', '手机号', '推荐人手机号']
// if (this.isSpecialMerchat) {
// hideList.forEach(item => {
// this.showOrHideAttr('searchFormData', item, true)
// })
// this.deleteAttr(['手机号', '其他', '微信名称', '推荐人', '推荐人手机号', '车架号', '商户订单号'])
// }
// })
// },
secondConfirm (title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) {
this.$confirm(txt, title, {
......@@ -1275,9 +1270,9 @@ export default {
},
handleTabClick () {
if (this.isSpecialMerchat) {
return true
}
// if (this.isSpecialMerchat) {
// return true
// }
this.handleSearch()
},
......
......@@ -16,7 +16,7 @@
:title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
<el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item>
<!-- <el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item> -->
</el-form>
</div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
......@@ -121,22 +121,22 @@ export default {
label: '订单时间',
name: 'createdDateStr'
},
{
label: '手机号码',
name: 'customerPhone'
},
{
label: '推荐人',
name: 'shareStaffName'
},
{
label: '推荐人类型',
name: 'shareStaffTypeName'
},
{
label: '车架号',
name: 'vin'
},
// {
// label: '手机号码',
// name: 'customerPhone'
// },
// {
// label: '推荐人',
// name: 'shareStaffName'
// },
// {
// label: '推荐人类型',
// name: 'shareStaffTypeName'
// },
// {
// label: '车架号',
// name: 'vin'
// },
{
label: '门店信息',
name: 'merchantName'
......@@ -166,10 +166,10 @@ export default {
label: '尾款',
name: 'crowdFundingPrice'
},
{
label: '发货地址',
name: 'shipAddress'
},
// {
// label: '发货地址',
// name: 'shipAddress'
// },
{
label: '微信名称',
name: 'weChatName'
......@@ -288,22 +288,22 @@ export default {
this.detailFormData.splice(idx, 1)
}
// 其他信息
var formDescribeObj = {
label: '其他信息',
name: 'formDescribe',
contentName: 'formContent',
attrList: ['First', 'Second']
}
this.detailForm[formDescribeObj.name] = ''
this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : ''
this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : ''
formDescribeObj.attrList.forEach(item => {
let label = this.detailForm[formDescribeObj.name + item]
let value = this.detailForm[formDescribeObj.contentName + item]
if (label) {
this.detailForm[formDescribeObj.name] += label + ':' + value + ' '
}
})
// var formDescribeObj = {
// label: '其他信息',
// name: 'formDescribe',
// contentName: 'formContent',
// attrList: ['First', 'Second']
// }
// this.detailForm[formDescribeObj.name] = ''
// this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : ''
// this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : ''
// formDescribeObj.attrList.forEach(item => {
// let label = this.detailForm[formDescribeObj.name + item]
// let value = this.detailForm[formDescribeObj.contentName + item]
// if (label) {
// this.detailForm[formDescribeObj.name] += label + ':' + value + ' '
// }
// })
// 商品名称
this.detailForm.goodsName = this.detailForm.orderGoods.length ? this.detailForm.orderGoods.map(item => item.goodsName).join(',') : '-'
this.formToRow('detailFormData')
......
......@@ -252,8 +252,27 @@ export default {
{
label: '活动名称',
prop: 'activityName',
width: 220,
fixed: 'left'
width: 220
},
{
label: '浏览量(次)',
prop: 'viewAmount',
addHtml: 'linkText',
width: 140
},
{
label: '访客',
prop: 'fansAmount',
addHtml: 'linkText'
},
{
label: '分享',
prop: 'shareAmount',
addHtml: 'linkText'
},
{
label: '销量',
prop: 'saleAmount'
},
{
label: '门店',
......@@ -281,12 +300,6 @@ export default {
}
},
{
label: '浏览量(次)',
prop: 'viewAmount',
addHtml: 'linkText',
width: 140
},
{
label: '进账',
prop: 'income',
formatter: cellValue => {
......@@ -308,20 +321,6 @@ export default {
}
},
{
label: '访客',
prop: 'fansAmount',
addHtml: 'linkText'
},
{
label: '分享',
prop: 'shareAmount',
addHtml: 'linkText'
},
{
label: '销量',
prop: 'saleAmount'
},
{
label: '秒杀价(元)',
name: 'activityPrice',
width: 140,
......
......@@ -468,7 +468,9 @@ export default {
reservationInstallContactsName: '',
reservationInstallContactsPhone: '',
targetStock: '',
paymentAccountSource: '1',
paymentAccountId: '',
payMannerId: '',
// 战报内容配置
activityActionReport: {
produceReportSummary: '',
......@@ -1100,6 +1102,28 @@ export default {
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: '定金收款账户',
name: 'paymentAccountId',
type: 'select',
......@@ -1218,7 +1242,11 @@ export default {
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'
}),
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 {
true
)
})
this.changeFormAttr('configEditFormData', 'isDisabled', ['定金收款账户'], true)
this.changeFormAttr('configEditFormData', 'isDisabled', ['账户类型', '定金收款账户'], true)
}
}
},
......@@ -1807,6 +1835,8 @@ export default {
this.handleMusicChange(this.musicList.length - 1)
}
}
// 定金收款账户
this.editForm.paymentAccountSource = this.editForm.paymentAccountSource ? this.editForm.paymentAccountSource + '' : '1'
// 表单设置
this.editForm.formDescribeCheck = []
this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1
......@@ -2191,15 +2221,27 @@ export default {
this.liveEditFormData.find(item => item.name == 'liveBroadcastRoomId').optionList = staff
})
},
// 定金收款账户
getPayList() {
this.$apis.seckillActivity.getPayListApi({}).then(res => {
this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = res
this.editForm.paymentAccountId = this.editForm.paymentAccountId || res.find(item => item.isDefault == 'Y').id
getPayMerchatList() {
this.$apis.seckillActivity.getPayMerchatListApi({ pageNum: 1, pageSize: 9999 }).then(res => {
res.list.forEach(item => {
item.id = item.payMannerId
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.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 {
this.activeName = obj.activeName
},
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.$refs.baseInfoRef.parentCustomerObj.phone = info.predictCountObj.phone
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 {
type: 'input',
isClear: true,
maxlength: 11
},
{
label: '企微名称',
name: 'nickName',
type: 'input',
isClear: true,
}
],
// 表格
......@@ -80,6 +86,14 @@ export default {
}
},
{
label: '企微名称',
prop: 'nickNameList',
width: '130px',
formatter: cellValue => {
return cellValue.nickNameList[0] && cellValue.nickNameList[0].nickName || '-'
}
},
{
label: '客户手机号',
prop: 'customerPhone',
width: '130px',
......@@ -197,16 +211,20 @@ export default {
var selectIds = currentList.map(item => item.id)
var selectedIds = val.map(item => item.id)
var tempList = []
val.forEach(item => {
val.forEach((item,index) => {
if (!selectIds.includes(item.id) && tableIds.includes(item.id) && this.selectedCustomerList.length < this.maxCustNum) {
this.selectedCustomerList.push(item)
}
if (item.nickNameList.length){
this.selectedCustomerList[index].customerNickName = item.nickNameList[0].nickName || ''
}
})
this.selectedCustomerList.forEach(item => {
if (selectedIds.includes(item.id) || !tableIds.includes(item.id)) {
tempList.push(item)
}
})
this.selectedCustomerList = tempList
this.recoverySelected()
},
......
......@@ -7,6 +7,7 @@
</div>
<div class="container">
<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">
<div class="table-btns" slot="auth-button" slot-scope="scope">
......@@ -17,6 +18,7 @@
</div>
</div>
</template>
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
......@@ -77,6 +79,29 @@ export default {
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',
name: '编辑',
......@@ -113,7 +138,7 @@ export default {
{
label: 'SOP名称',
prop: 'sopName',
width: 260,
width: 240,
line: 1
},
{
......@@ -171,9 +196,11 @@ export default {
}
}
},
mounted() {
this.getOptionsList('searchFormData')
},
methods: {
handleJump(path, row = {}) {
this.$router.push({
......@@ -181,6 +208,7 @@ export default {
query: row ? { id: row.id, fromPage: '/marketing/sop/sopList' } : ''
})
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
......@@ -215,13 +243,16 @@ export default {
query: params
})
},
// 结束
handleEnd(row) {
this.secondConfirm('结束', '结束SOP后,将不再进行营销任务自动推送,且不可恢复。是否确定结束?', 'sop', 'endSopEventApi', { sopId: row.id })
},
handleDelete(row) {
this.secondConfirm('删除', 'SOP删除后,不可恢复。是否确定删除?', 'sop', 'deleteSopEventApi', { sopId: row.id })
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
......@@ -247,18 +278,22 @@ export default {
})
}
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.sopListRef.data.length ? (this.$refs.sopListRef.tableHeightValues = '') : this.$refs.sopListRef.setTableHeightFun()
},
handleBack() {
this.$router.push({
path: '/sop/index'
})
},
handleSearch() {
this.$refs.sopListRef.refreshTable()
},
handleReset() {
this.searchForm = {
sopName: '',
......@@ -269,6 +304,7 @@ export default {
}
}
</script>
<style scoped>
.sop-list .sop-back-btn {
position: absolute;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!