Commit 27cc2d6d by 前端

Merge branch 'v3.13.1' into 'master'

V3.13.1

See merge request !68
2 parents 3eff9a19 0cf4a039
...@@ -1918,7 +1918,7 @@ ...@@ -1918,7 +1918,7 @@
} }
}, },
"vue-loader-v16": { "vue-loader-v16": {
"version": "npm:vue-loader@16.8.3", "version": "npm:vue-loader-v16@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz", "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==", "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true, "dev": true,
...@@ -8506,6 +8506,11 @@ ...@@ -8506,6 +8506,11 @@
"integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
"dev": true "dev": true
}, },
"number-precision": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/number-precision/-/number-precision-1.6.0.tgz",
"integrity": "sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ=="
},
"oauth-sign": { "oauth-sign": {
"version": "0.9.0", "version": "0.9.0",
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,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.4", "glsx-components": "^1.5.4",
"number-precision": "^1.6.0",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
"vuex": "^3.1.2", "vuex": "^3.1.2",
......
import { http } from '@/main'
const url1 = '/rop-scrm-entmicro/router'
const url = '/rop-scrm-shopmall/router'
//门店号选择服务
const getMerchantList = params => {
params.method = 'entmicro.api.merchant.listDepartmentTree.select.merchant'
return http({
url: url1,
method: 'post',
data: params,
sign: true
})
}
//分页查询线索喜报配置信息
const getClueReportList = params => {
params.method = `scrm.api.shopmall.clueReportConfig.page`
return http({
url,
method: 'post',
data: params,
sign: true
})
}
// 新增或修改喜报配置
const updateClueReportConfig = params => {
params.method = `scrm.api.shopmall.clueReportConfig.insertOrUpdate`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 根据ID获取线索喜报配置信息
const getClueDetailById = params => {
params.method = `scrm.api.shopmall.clueReportConfig.getById`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
export default { getMerchantList, getClueReportList, updateClueReportConfig,getClueDetailById }
...@@ -18,8 +18,8 @@ module.exports = { ...@@ -18,8 +18,8 @@ module.exports = {
code_message_map: {} code_message_map: {}
}, },
request: { request: {
// baseURL: 'http://scrm.test.glsx.com.cn/', baseURL: '//scrm.test.glsx.com.cn/',
baseURL: 'http://192.168.2.42:8064/', // baseURL: 'http://192.168.2.42:8064/',
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -10,18 +10,17 @@ ...@@ -10,18 +10,17 @@
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 export const fetchConfig = function (common) {
export const fetchConfig = function(isEnv = true) {
// console.log(1111111)
// if (isEnv) { // if (isEnv) {
// let { request } = cfg // let { request } = cfg
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
//return window.fetch('https://', {}).then(res => res.json()) let params = { moduleName: 'activityCenter', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config',httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config') return common.utils.getConfig(params)
return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
vue.prototype.$config = cfg vue.prototype.$config = cfg
......
...@@ -12,7 +12,7 @@ let instance = null ...@@ -12,7 +12,7 @@ let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common, merchantId, saasOrder } = await fetchConfig() const { response, request, sign, secret, sign_common, request_common, merchantId, saasOrder } = await fetchConfig(common)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$merchantId = merchantId Vue.prototype.$merchantId = merchantId
Vue.prototype.$saasOrder = saasOrder Vue.prototype.$saasOrder = saasOrder
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="config-wrap gl-form-page"> <div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px"> <el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:"> <el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange"> <el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option> <el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -254,9 +254,11 @@ export default { ...@@ -254,9 +254,11 @@ export default {
getMerchantList(sign) { getMerchantList(sign) {
this.$apis.battle.getMerchantList({}).then(res => { this.$apis.battle.getMerchantList({}).then(res => {
this.merchantList = res this.merchantList = res
if (!sign) { if (!sign) {
this.config.merchantId = res[0]?.merchantId this.config.merchantId = res[0]?.merchantId
this.config.merchantName = res[0]?.merchantName this.config.merchantName = res[0]?.merchantName
this.getDepartmentTree()
} }
}) })
}, },
...@@ -341,6 +343,7 @@ export default { ...@@ -341,6 +343,7 @@ export default {
this.selectGroupName = res.data.result || [] this.selectGroupName = res.data.result || []
}) })
this.getGroupList(this.wechat.staffId) this.getGroupList(this.wechat.staffId)
this.getDepartmentTree()
} else { } else {
this.groupCofListInput = { this.groupCofListInput = {
// xiReportValue: [{ name: '' }], // xiReportValue: [{ name: '' }],
...@@ -352,7 +355,6 @@ export default { ...@@ -352,7 +355,6 @@ export default {
zhanReportValue: [{ name: '' }] zhanReportValue: [{ name: '' }]
} }
} }
this.getDepartmentTree()
}, },
getGroupList(id, isReset = false) { getGroupList(id, isReset = false) {
this.$apis.saasOrder.getGroupList({ msgStaffIdList: id }).then(res => { this.$apis.saasOrder.getGroupList({ msgStaffIdList: id }).then(res => {
...@@ -526,12 +528,22 @@ export default { ...@@ -526,12 +528,22 @@ export default {
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
}) })
if (res.data) { if (res.data) {
this.$router.go(-1) this.$router.push({
path: '/bulletin/index',
query: {
activeName: '1'
}
})
} }
}) })
}, },
handlebattleClose() { handlebattleClose() {
this.$router.go(-1) this.$router.push({
path: '/bulletin/index',
query: {
activeName: '1'
}
})
this.clearData() this.clearData()
} }
} }
...@@ -605,4 +617,7 @@ export default { ...@@ -605,4 +617,7 @@ export default {
line-height: 20px; line-height: 20px;
} }
} }
.is-reverse {
transform: rotate(180deg);
}
</style> </style>
<!-- 转化订单推送 1.1-->
<template>
<div class="activity">
<!-- 表格区域 开始 -->
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex-between title">
<div class="title-text">喜报列表</div>
<el-button :size="size" type="primary" class="battle-set-btn" @click="handlebattleOn()">新增</el-button>
</div>
<GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="content" slot-scope="scope">
<div>{{ formatterContent(scope.scope) }}</div>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handlebattleOn(scope.scope.id, 'edit')">编辑</el-button>
</div>
</GLTable>
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
export default {
data() {
return {
url: url,
// 搜索
searchForm: {
merchantId: '',
merchantName: '',
groupMerchantName: ''
},
tableSearchForm:{},
searchFormData: [
{
label: '4S店',
name: 'merchantName',
type: 'input',
maxlength: 128
},
{
label: '商户号',
name: 'merchantId',
type: 'input',
maxlength: 9
},
{
label: '企微名称',
name: 'groupMerchantName',
type: 'select',
width: '215px',
optionList: [],
optionId: 'merchantName',
optionLabel: 'merchantName'
}
],
getListApi: this.$apis.clewOrder.getClueReportList,
tableParams: {
listName: 'list',
tableOption: true,
// // 行数据的key
// mutiSelectUniqueKey: 'activityId',
// 多选ref的名称
// mutiSelectName: 'activity',
tableColumns: [
{
label: '4S店',
prop: 'merchantName',
formatter: cellValue => {
return cellValue.merchantName + (cellValue.merchantId || '')
}
},
{
label: '企微',
prop: 'groupMerchantName',
width: 200
},
{
label: '推送人',
prop: 'staffName',
line: 1,
width: 200
},
{
label: '内容',
prop: 'content',
addHtml: 'content'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
baseData: {
merchantList: []
}
}
},
mounted() {
this.getMerchantList()
},
methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = JSON.parse(JSON.stringify(this.searchForm))
this.searchForm.groupMerchantName == '全部' ? (this.tableSearchForm.groupMerchantName = '') : ''
resolve()
})
},
getMerchantList() {
this.$apis.battle.getMerchantList({}).then(res => {
this.baseData.merchantList = res
this.merchantList = res
this.searchFormData[2].optionList = [{ merchantId: '全部', merchantName: '全部' }].concat(this.merchantList)
})
},
formatterContent(cellValue) {
let txt = '#1线索文字喜报'
cellValue.groupConfigList.forEach(item => {
txt += `【${item.groupName}】`
})
return txt
},
handleReset() {
this.searchForm = {
merchantId: '',
merchantName: '',
groupMerchantName: ''
}
this.tableSearchForm={
merchantId: '',
merchantName: '',
groupMerchantName: ''
}
this.handleSearch()
},
handlebattleOn(id) {
let params = {
id
}
this.$router.push({
path: '/bulletin/addClewConfig',
query: params
})
},
handleClick() {
this.handleSearch()
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.battleRef.data.length ? (this.$refs.battleRef.tableHeightValues = '') : this.$refs.battleRef.setTableHeightFun()
},
handleSearch() {
this.$refs.battleRef.refreshTable()
}
}
}
</script>
<style scoped lang="scss">
.message-Z-zinde {
z-index: 9999 !important;
}
.activity {
.container {
margin-top: 16px;
.title {
height: 32px;
line-height: 32px;
margin-bottom: 10px;
.title-text {
font-weight: 600;
font-size: 16px;
color: #333333;
margin-left: 4px;
}
}
}
}
</style>
<template>
<GLDialog :mode="mode" title="线索喜报配置" :before-close="handlebattleClose" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="handlebattleClose">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
<img src="@/assets/buttetin/clew.png" />
</div>
<p class="color-3 txt-center text-14">图示效果</p>
</div>
<div class="right-wrap">
<el-form ref="form" :model="form" label-width="154px">
<div class="item-line">
<el-form-item label="编辑文本:" class="verbal-wrap">
<verbal :btnList="btnList" :maxNum="200" :mapList="mapList" ref="verbalRef"></verbal>
</el-form-item>
</div>
</el-form>
<div class="explain">
<div class="color6 weight-6 font-14">
<i class="el-icon-warning"></i>
推送机制说明
</div>
<p class="mrp">
主要推送以下2个场景:
<br />
1.当客户在C端小程序商城浏览某个商品或活动超过10秒;
<br />
2.客户发起订单支付但最终未支付。
</p>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
export default {
props: {
content: {
type: String,
default: ''
},
isDialogVisible: Boolean
},
data() {
return {
mode: 'big',
btnList: [
{
type: 1,
name: '表情'
},
{
type: 2,
name: '客户姓名'
},
{
type: 2,
name: '手机号'
},
{
type: 2,
name: '线索来源'
},
{
type: 2,
name: '具体线索'
},
{
type: 2,
name: '浏览时长'
}
],
mapList: {
客户姓名: '${customerName}',
手机号: '${phone}',
线索来源: '${source}',
具体线索: '${clue}',
浏览时长: '${browseTime}'
}
}
},
created() {
this.$nextTick(() => {
this.$refs.verbalRef && this.$refs.verbalRef.update(this.content)
})
},
methods: {
handlebattleConfirm() {
this.isDialogVisible = false
let content = this.$refs.verbalRef.getTextValue()
this.$emit('handlePreview', { data: content })
},
handlebattleClose() {
this.$emit('handleClose')
}
}
}
</script>
<style lang="scss" scoped>
.popup-wrap {
display: flex;
padding: 0 72px;
.img-wrap {
width: 250px;
height: 560px;
margin-bottom: 14px;
img {
width: 100%;
height: 100%;
}
}
.right-wrap {
margin-top: 12px;
/deep/.el-form-item {
margin-bottom: 0px;
}
.item-line {
margin-bottom: 20px;
}
.switchStyle /deep/ .el-switch__label {
position: absolute;
display: none;
color: #fff;
font-size: 12px !important;
line-height: 20px;
}
.el-switch__core {
background-color: rgba(166, 166, 166, 1);
}
.switchStyle /deep/.el-switch__label--left {
z-index: 9;
left: 20px;
}
.switchStyle /deep/ .el-switch__label--right {
z-index: 9;
left: 4px;
}
.switchStyle /deep/ .el-switch__label.is-active {
display: block;
}
.switchStyle /deep/ .el-switch__core {
width: 56px !important;
}
.switchStyle /deep/ .el-switch__label {
width: 56px !important;
}
.explain {
width: 486px;
background: #f4f6fc;
padding: 16px;
margin-left: 70px;
box-sizing: border-box;
position: absolute;
bottom: 85px;
.el-icon-warning {
width: 16px;
height: 16px;
margin-right: 4px;
}
.mrp {
margin: 8px 0 0 20px;
line-height: 22px;
}
}
}
.warn {
font-size: 12px;
color: #999999;
margin-left: 154px;
}
.verbal-wrap {
/deep/ .el-form-item__content {
width: 448px;
}
/deep/ .btn-group-panel .btn-group {
flex-wrap: wrap;
justify-content: none;
.add-btn {
margin-bottom: 5px;
}
}
}
}
</style>
<template>
<div class="select-store">
<!-- width="600px" -->
<GLDialog bigTitle="选择门店"
mode="big"
:visible.sync="dialogVisible"
:before-close="handleClose"
:close-on-click-modal="false"
@onOk="handleConfirm"
@onCancel="handleClose">
<glsx-combi-form ref="showSearch"
labelWidth="105px"
:formObj="searchForm"
:formData="searchFormData">
<span slot="footer">
<el-button :size="size"
type="primary"
@click="resetTable">查询</el-button>
</span>
</glsx-combi-form>
<!-- : :hasPage="false"
:getListApi="getListApi"
:tableData="storeList" -->
<GLTable ref="storeRef"
:noDataImg="url"
:tableTotal="total"
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
@refreshTable="getList"
:tableData="storeList"
:hasNum="false"
:setTableFinishFun="setTableFinishFun">
<div slot="radioHtml"
class="store-table"
slot-scope="scope">
<el-radio v-model="merchantId"
:label="scope.scope.merchantNo"
@click.native="handleClick(scope.scope)"></el-radio>
</div>
</GLTable>
<!-- <span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确 定</el-button>
</span> -->
</GLDialog>
</div>
</template>
<script>
import url from '@/assets/empty.png'
export default {
name: 'selectStore',
data() {
return {
url: url,
searchForm: {
merchantId: '',
merchantName: ''
},
// getListApi: this.$apis.common.getMerchantList,
total: 0,
storeList: [],
heightBox: 200,
merchantId: '',
merchantName: '',
// 搜索
searchFormData: [
{
label: '商户名称',
name: 'merchantName',
type: 'input',
placeholder: '请输入商户名称',
width: '300px',
labelWidth: '10px'
},
{
label: '商户ID',
name: 'merchantId',
type: 'input',
inputType: 'number',
placeholder: '请输入商户ID',
width: '300px',
labelWidth: '10px'
}
],
pageConfig: {
pageSize: 10,
currentPage: 1
},
tableParams: {
listName: 'list',
// tableOption: true,
// 行数据的key
// mutiSelectUniqueKey: 'staffId',
// checkSelectKey: 'staffId',
// checkSelectVal: [],
// 多选ref的名称
// mutiSelectName: 'list',
tableColumns: [
{
label: '',
prop: '',
width: 80,
addHtml: 'radioHtml'
},
{
label: '序号',
prop: 'idx',
width: 80
},
{
label: '商户名称',
prop: 'merchantName',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
},
{
label: '商户id',
prop: 'merchantNo',
formatter: cellValue => {
return cellValue.merchantNo || '-'
}
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
baseData: {}
}
},
props: {
dialogVisible: {
type: Boolean,
default: false
},
storeSearchForm: {
type: Object
},
merchantInfo: {
required: true
}
// merchantId: {
// type: String,
//
// }
// orderCode: {
// type: String,
// required: true
// }
},
mounted() {
// this.userInfo = this.$globalState.session
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 0.15 * clientHeight - 425
this.merchantId = this.merchantInfo
this.getList()
},
methods: {
getList(pageCon) {
pageCon && (this.pageConfig = pageCon)
var params = {
merchantId: this.merchantId,
...this.searchForm,
...this.pageConfig
// merchantId: '44209390',
}
this.$apis.common.getMerchantList(params).then(res => {
this.storeList = res.list
this.total = res.total
// // this.storeList = res.staffUnitList
// // var page = this.$refs.staffRef.page
// // // 添加序号
// pageConfig
let nowIndex = this.pageConfig.pageSize * (this.pageConfig.currentPage - 1)
this.storeList.forEach((item, index) => {
item.idx = index + 1 + nowIndex
})
// this.$refs.staffRef.tableHeightValues = '460px'
// })
})
},
resetTable() {
this.$refs.storeRef.page.currentPage = 1
this.getList()
},
setTableFinishFun() {
// console.log(this.$refs.staffRef.data)
// this.storeList = this.$refs.staffRef.data
//接收到的数据为空
this.$refs.staffRef.tableHeightValues = '460px'
},
handleClick(val) {
// let { merchantId, merchantName } =val
this.merchantId = val.merchantNo
this.merchantName = val.merchantName
// let temp = JSON.parse(JSON.stringify(val))
// delete temp.idx
// this.staffUuid = val.uuid
// this.store = val
},
handleClose() {
this.$emit('handleRelateStoreClose')
},
handleConfirm() {
// if (!this.staffUuid)
// return this.$message({
// message: '请先选择员工',
// type: 'error'
// })
// let parmas = {
// subOrderCode: this.orderCode,
// staffUuid: this.staffUuid
// }
// this.$apis.orderManage.signerOrder(parmas).then(res => {
// console.log(res)
// })
// this.staffUuid
this.$emit('handleRelateStoreConfirm', {
merchantId: this.merchantId,
merchantName: this.merchantName
})
}
}
}
</script>
<style lang="scss">
.select-store {
.storeDailog {
width: 500px;
}
.title {
margin-bottom: 12px;
}
.customer-tag-box {
display: flex;
margin: 20px 16px;
.tag-label {
display: inline-block;
height: 30px;
line-height: 30px;
}
.input-tag-wrapper {
max-height: 75px;
overflow: auto;
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 5px;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 648px;
display: flex;
align-items: center;
cursor: pointer;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
}
// .customer-list {
// width: calc(100% - 280px);
// margin-right: 10px;
// }
.p-16 {
padding: 16px;
}
.store-table .el-radio__label {
display: none;
}
}
</style>
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
<div class="activity"> <div class="activity">
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex-between title"> <div class="flex-between title">
<div class="title-text">专员列表</div> <div class="title-text">专员列表</div>
<!-- <el-button :size="size" <!-- <el-button :size="size"
...@@ -10,7 +12,6 @@ ...@@ -10,7 +12,6 @@
class="battle-set-btn" class="battle-set-btn"
@click="battleSetHandle">批量配置专员</el-button> --> @click="battleSetHandle">批量配置专员</el-button> -->
</div> </div>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable"> <GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
<div slot="activityTime" slot-scope="scope">{{ dateFormatFun(scope.scope.startTime) }}-{{ dateFormatFun(scope.scope.endTime) }}</div> <div slot="activityTime" slot-scope="scope">{{ dateFormatFun(scope.scope.startTime) }}-{{ dateFormatFun(scope.scope.endTime) }}</div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
......
...@@ -8,11 +8,14 @@ ...@@ -8,11 +8,14 @@
import battle from './components/battle/index.vue' import battle from './components/battle/index.vue'
import saasOrder from './components/saasOrder/index.vue' import saasOrder from './components/saasOrder/index.vue'
import vehicleDamageOrder from './components/vehicleDamageOrder/index.vue' import vehicleDamageOrder from './components/vehicleDamageOrder/index.vue'
import clewOrder from './components/clewOrder/index.vue'
export default { export default {
components: { components: {
battle, battle,
saasOrder, saasOrder,
vehicleDamageOrder vehicleDamageOrder,
clewOrder
}, },
data() { data() {
return { return {
...@@ -28,18 +31,27 @@ export default { ...@@ -28,18 +31,27 @@ export default {
name: '2' name: '2'
}, },
{ {
label: '2.1', label: '1.4',
name: '3' name: '3'
},
{
label: '2.1',
name: '4'
} }
] ]
} }
}, },
created() {
this.activeName = this.$route.query.activeName ? this.$route.query.activeName : '1'
this.handleClick()
},
methods: { methods: {
handleClick() { handleClick() {
let componetObj = { let componetObj = {
1: 'saasOrder', 1: 'saasOrder',
2: 'battle', 2: 'battle',
3: 'vehicleDamageOrder' 3: 'clewOrder',
4: 'vehicleDamageOrder'
} }
this.currentComponent = componetObj[this.activeName] this.currentComponent = componetObj[this.activeName]
} }
......
...@@ -371,11 +371,23 @@ ...@@ -371,11 +371,23 @@
:cancelText="approvalInfo.verificationVoucher ? '不通过': '取消'" :cancelText="approvalInfo.verificationVoucher ? '不通过': '取消'"
:orderCode="orderCode" :orderCode="orderCode"
> >
<ul v-if="approvalInfo.verificationVoucher" class="approvalWrap"> <ul
<li v-for="item in userInfo" :key="item.key" class="approvalInfoItem"> v-if="approvalInfo.verificationVoucher"
class="approvalWrap"
>
<li
v-for="item in userInfo"
:key="item.key"
class="approvalInfoItem"
>
{{ item.label }} {{ item.label }}
<span v-if="item.key!='verificationVoucher'">{{ approvalInfo[item.key] || '--' }}</span> <span v-if="item.key!='verificationVoucher'">{{ approvalInfo[item.key] || '--' }}</span>
<el-image v-else style="width: 100px; height: 100px" :src="approvalInfo[item.key]" :preview-src-list="[approvalInfo[item.key]]"></el-image> <el-image
v-else
style="width: 100px; height: 100px"
:src="approvalInfo[item.key]"
:preview-src-list="[approvalInfo[item.key]]"
></el-image>
</li> </li>
</ul> </ul>
<ul v-else> <ul v-else>
...@@ -390,12 +402,36 @@ ...@@ -390,12 +402,36 @@
<li class="approvalInfoItem">提交时间: {{ approvalInfo.confirmInstallTime }}</li> <li class="approvalInfoItem">提交时间: {{ approvalInfo.confirmInstallTime }}</li>
</ul> </ul>
</GLDialog> </GLDialog>
<GLDialog title="审批不通过" mode="mid" :visible.sync="isCancelVisible" @onOk="confirmNoPass(1)" @onCancel="closePassDialog"> <GLDialog
title="审批不通过"
mode="mid"
:visible.sync="isCancelVisible"
@onOk="confirmNoPass(1)"
@onCancel="closePassDialog"
>
<div class="noPassDialog"> <div class="noPassDialog">
<span class="tip">请输入审批不通过的原因</span> <span class="tip">请输入审批不通过的原因</span>
<el-form class="form" ref="cancelRef" label-width="154px" :rules="cancelRules" :model="cancelForm"> <el-form
<el-form-item label="原因说明:" prop="reasonsForFailure"> class="form"
<el-input style="width: 432px;" :size="size" type="textarea" v-model="cancelForm.reasonsForFailure" placeholder="请输入审批不通过说明" maxlength="50" rows="3" show-word-limit></el-input> ref="cancelRef"
label-width="154px"
:rules="cancelRules"
:model="cancelForm"
>
<el-form-item
label="原因说明:"
prop="reasonsForFailure"
>
<el-input
style="width: 432px;"
:size="size"
type="textarea"
v-model="cancelForm.reasonsForFailure"
placeholder="请输入审批不通过说明"
maxlength="50"
rows="3"
show-word-limit
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -565,6 +601,8 @@ import { utils } from 'glsx-common' ...@@ -565,6 +601,8 @@ import { utils } from 'glsx-common'
import { dateFormat } from '../../utils/index' import { dateFormat } from '../../utils/index'
import selectStaff from './components/selectStaff.vue' import selectStaff from './components/selectStaff.vue'
import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant' import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
import NP from 'number-precision'
const userInfo = [ const userInfo = [
{ {
label: '员工名称:', label: '员工名称:',
...@@ -642,7 +680,12 @@ export default { ...@@ -642,7 +680,12 @@ export default {
activityNames: [], activityNames: [],
goodsName: '', goodsName: '',
requestSource: '0', requestSource: '0',
afterSaleType: '' afterSaleType: '',
//2023.7.13需求👇
ledgerStatus: '',
tailOrderStatus: '',
transactionReferenceId: ''
//2023.7.13需求--结束
}, },
tableSearchForm: {}, tableSearchForm: {},
statisticsInfo: { statisticsInfo: {
...@@ -1172,7 +1215,53 @@ export default { ...@@ -1172,7 +1215,53 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return cellValue.outTradeNo || '-' return cellValue.outTradeNo || '-'
} }
},
{
label: '尾款状态',
prop: 'tailOrderStatus',
width: '180',
formatter: cellValue => {
return {
0: '未支付',
1: '已支付',
2: '已退款'
}[cellValue.tailOrderStatus] || '-'
}
},
{
label: '交易参考号',
prop: 'transactionReferenceId',
width: '180',
formatter: cellValue => {
return cellValue.transactionReferenceId || '-'
} }
},
{
label: '分账状态',
prop: 'ledgerStatus',
width: '180',
formatter: cellValue => {
return {
0: '未分账',
1: '待确认',
2: '待分账',
3: '已分账'
}[cellValue.ledgerStatus] || '-'
}
},
{
label: '尾款金额',
prop: 'finalPaymentAmount',
width: '180',
formatter: cellValue => {
let val = '-'
if (cellValue.finalPaymentAmount != null) {
val = NP.divide(cellValue.finalPaymentAmount / 100)
if(!String(val).includes('.')) val += '.00'
}
return val
}
},
], ],
searchFormData = [ searchFormData = [
{ {
...@@ -1403,8 +1492,69 @@ export default { ...@@ -1403,8 +1492,69 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'marketingStatusList' optionsName: 'marketingStatusList'
},
{
label: '尾款状态',
name: 'tailOrderStatus',
type: 'select',
optionList: [
{
confId: null,
confName: '全部'
},
{
confId: '0',
confName: '未支付'
},
{
confId: '1',
confName: '已支付'
},
{
confId: '2',
confName: '已退款'
}
],
optionId: 'confId',
optionLabel: 'confName',
},
{
label: '交易参考号',
name: 'transactionReferenceId',
labelWidth: 56,
type: 'input',
maxlength: 25
},
{
label: '分账状态',
name: 'ledgerStatus',
type: 'select',
optionList: [
{
confId: null,
confName: '全部'
},
{
confId: '0',
confName: '未分账'
},
{
confId: '1',
confName: '待确认'
},
{
confId: '2',
confName: '待分账'
},
{
confId: '3',
confName: '已分账'
} }
], ],
optionId: 'confId',
optionLabel: 'confName',
},
],
hideStatus = false hideStatus = false
try { try {
const res = await this.$apis.common.getCrowdfundingOrderConfig(), const res = await this.$apis.common.getCrowdfundingOrderConfig(),
...@@ -1485,22 +1635,22 @@ export default { ...@@ -1485,22 +1635,22 @@ export default {
}, },
//取消弹框,如果没有凭证,直接关闭 //取消弹框,如果没有凭证,直接关闭
handleApprovalClose () { handleApprovalClose () {
if(this.approvalInfo.verificationVoucher){ if (this.approvalInfo.verificationVoucher) {
this.openPassDialog() this.openPassDialog()
}else{ } else {
this.writeOffApprovalVisible = false this.writeOffApprovalVisible = false
} }
}, },
// 确认不通过审批 // 确认不通过审批
confirmNoPass(){ confirmNoPass () {
this.$refs?.cancelRef?.validate(valid => { this.$refs?.cancelRef?.validate(valid => {
if(valid) this.handleApprovalConfirm(1) if (valid) this.handleApprovalConfirm(1)
}) })
}, },
// 确认通过审批 // 确认通过审批
handleApprovalConfirm (type) { handleApprovalConfirm (type) {
let params = { orderCode: this.orderCode } let params = { orderCode: this.orderCode }
if(type==1) { if (type == 1) {
params.reasonsForFailure = this.cancelForm.reasonsForFailure params.reasonsForFailure = this.cancelForm.reasonsForFailure
params.failureflag = true params.failureflag = true
} }
...@@ -1511,14 +1661,14 @@ export default { ...@@ -1511,14 +1661,14 @@ export default {
}) })
}, },
//关闭不通过弹窗 //关闭不通过弹窗
closePassDialog() { closePassDialog () {
this.isCancelVisible = false this.isCancelVisible = false
this.cancelForm = { this.cancelForm = {
reasonsForFailure: '' reasonsForFailure: ''
} }
}, },
// 打开不通过弹窗 // 打开不通过弹窗
openPassDialog() { openPassDialog () {
this.$refs?.cancelRef?.clearValidate() this.$refs?.cancelRef?.clearValidate()
this.writeOffApprovalVisible = false this.writeOffApprovalVisible = false
this.isCancelVisible = true this.isCancelVisible = true
...@@ -1532,15 +1682,15 @@ export default { ...@@ -1532,15 +1682,15 @@ export default {
orderCode: val.orderCode orderCode: val.orderCode
}) })
.then(result => { .then(result => {
if(result){ if (result) {
if(result.verificationVoucher){ if (result.verificationVoucher) {
result.confirmInstallTime = result.confirmInstallTime ? dateFormat(result.confirmInstallTime) : '' result.confirmInstallTime = result.confirmInstallTime ? dateFormat(result.confirmInstallTime) : ''
result.crowdFundingPrice = result.crowdFundingPrice || 0 result.crowdFundingPrice = result.crowdFundingPrice || 0
result.payPrice = result.payPrice || 0 result.payPrice = result.payPrice || 0
result.tailPrice = (result.crowdFundingPrice - result.payPrice) + '元' result.tailPrice = (result.crowdFundingPrice - result.payPrice) + '元'
this.approvalInfo = result this.approvalInfo = result
this.writeOffApprovalVisible = true this.writeOffApprovalVisible = true
}else{ } else {
this.$apis.orderManage this.$apis.orderManage
.getInstallInfo({ .getInstallInfo({
subOrderCode: val.orderCode subOrderCode: val.orderCode
...@@ -2076,7 +2226,7 @@ export default { ...@@ -2076,7 +2226,7 @@ export default {
margin: 0 8px 0 0 !important; margin: 0 8px 0 0 !important;
} }
} }
.el-select .el-select__tags>span{ .el-select .el-select__tags > span {
width: 80%; width: 80%;
display: flex !important; display: flex !important;
} }
...@@ -2115,25 +2265,25 @@ export default { ...@@ -2115,25 +2265,25 @@ export default {
margin-left: 8px; margin-left: 8px;
} }
} }
.approvalWrap{ .approvalWrap {
margin-left: 84px; margin-left: 84px;
} }
.noPassDialog{ .noPassDialog {
.tip{ .tip {
margin-left: 72px; margin-left: 72px;
width: 522px; width: 522px;
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
} }
.form{ .form {
margin-top: 16px; margin-top: 16px;
.el-form-item__label{ .el-form-item__label {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
padding-right: 10px; padding-right: 10px;
} }
.el-textarea__inner{ .el-textarea__inner {
font-family: auto; font-family: auto;
} }
} }
......
...@@ -308,7 +308,9 @@ export default { ...@@ -308,7 +308,9 @@ export default {
}, },
handleSearch () { handleSearch () {
const { query } = this.$route
this.$refs.browserRef.refreshTable() this.$refs.browserRef.refreshTable()
if (query.type == 1) this.getTotal(this.$apis.seckillActivity.getBrowseListApi, query.id)
}, },
handleReset () { handleReset () {
...@@ -320,10 +322,12 @@ export default { ...@@ -320,10 +322,12 @@ export default {
this.handleSearch() this.handleSearch()
}, },
async getTotal (apiName, activityId) { async getTotal (apiName, activityId) {
const { total } = await apiName({ const { customerName, mobile } = this.searchForm, { total } = await apiName({
pageSize: 10, pageSize: 10,
pageNum: 1, pageNum: 1,
activityId activityId,
customerName,
mobile
}) })
this.total = total this.total = total
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!