Commit 4bfdebb3 by 张立顺

v3.2 众筹模块迁移

1 parent 026cf89d
......@@ -161,4 +161,15 @@ const getMerchantInfoApi = params => {
})
}
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi }
// 根据门店号获取员工列表
const getMerchantStaff = params => {
params.method = 'scrm.api.shopmall.crowd.funding.staff.get'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi, getMerchantStaff }
......@@ -137,4 +137,42 @@ const updateOrderType = params => {
})
}
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, updateOrderType }
/** 设置活动的指派人 */
const signerOrder = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.appointer.update'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: false
})
}
// /router/scrm.api.stoassistant.user.activity.confirm.install.info/1.0.0
/** 获取确认安装待审核信息 */
const getInstallInfo = params => {
params.method = 'scrm.api.stoassistant.user.activity.confirm.install.info'
return http({
url: '/rop-scrm-stoassistant/router',
method: 'POST',
data: params,
sign: true,
returnAll: false
})
}
/** 根据订单号核销众筹活动订单 */
const orderVerfication = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.verfication'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: false
})
}
export default { getInstallInfo, orderVerfication, signerOrder, getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, updateOrderType }
import { http } from '@/main'
const defaultPath = 'scrm.api.shopmall.goods.'
const getListApi = params => {
params.method = `${defaultPath}page.curMerchant`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getProShareApi = params => {
params.method = `${defaultPath}get.shared`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const topProApi = params => {
params.method = `${defaultPath}updateToTop`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateStatusProApi = params => {
params.method = `${defaultPath}updateStatus`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const deleteTakeProApi = params => {
params.method = `${defaultPath}deleteTakeGoods`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getProInfoApi = params => {
params.method = `${defaultPath}getById`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const insertOrUpdateProApi = params => {
params.method = `${defaultPath}insertOrUpdate`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateTakeProApi = params => {
params.method = `${defaultPath}updateTake`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getGoodsCommentListApi = params => {
params.method = 'scrm.api.shopmall.backstage.orderGoodsComment.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getBusinessTypeByIdApi = params => {
params.method = 'scrm.api.shopmall.goods.getBusinessTypeById'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const deleteGoodsApi = params => {
params.method = 'scrm.api.shopmall.goods.deleteGoods'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi, deleteGoodsApi }
......@@ -172,6 +172,17 @@ const getLiveListApi = params => {
})
}
/**定金收款账户下拉列表 */
const getPayListApi = params => {
params.method = 'scrm.api.shopmall.activity.payment.account.list'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
/**数据看板员工排名 */
const getRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.page'
......@@ -202,4 +213,60 @@ const getDataBoardApi = params => {
sign: true
})
}
export default { getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi }
/**每日订单量统计 */
const getDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**导出每日订单量统计 */
const exportDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity.export'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-详情导出 */
const liveroomDetailexport = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailexport'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-分页详情 */
const liveroomDetailpage = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailpage'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-概览 */
const liveroomOverview = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.overview'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics }
......@@ -133,16 +133,6 @@ html {
word-break: break-all;
}
body,
html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #f4f5fa;
}
.el-range-editor.is-active,
.el-range-editor.is-active:hover {
border-color: #5850ff;
......@@ -882,4 +872,11 @@ html {
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
ul li {
padding: 0;
margin: 0;
list-style: none;
}
\ No newline at end of file
......@@ -31,22 +31,60 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
}
}
function aToExport(url) {
var a = document.createElement('a')
a.setAttribute('id', 'exportToExport')
a.setAttribute('href', url)
a.setAttribute('target', '_blank')
document.body.appendChild(a)
a.click()
}
/**
* url下载文件
*
*/
function downLoadFile(url) {
// console.log(row)
// return
const Temp = document.createElement('a')
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
Temp.href = url
// console.log(url)
// console.log(Temp.href)
document.body.append(Temp)
Temp.click()
document.body.removeChild(Temp)
}
// const orderManageStatusList = [
// { confId: '1', confName: '未支付' },
// { confId: '2', confName: '已支付' },
// { confId: '3', confName: '已失效' },
// { confId: '4', confName: '已发货' },
// { confId: '5', confName: '已收货' },
// { confId: '6', confName: '待审核' },
// { confId: '7', confName: '审核成功' },
// { confId: '8', confName: '审核失败' },
// { confId: '9', confName: '待确认' },
// { confId: '10', confName: '退款中' },
// { confId: '11', confName: '已退款' },
// { confId: '12', confName: '退款失败' },
// { confId: '13', confName: '待发货' },
// { confId: '14', confName: '待安装' },
// { confId: '15', confName: '已安装' }
// ]
const orderManageStatusList = [
{ confId: '1', confName: '未支付' },
{ confId: '1', confName: '待付款' },
{ confId: '2', confName: '已支付' },
{ confId: '3', confName: '已失效' },
{ confId: '4', confName: '已发货' },
{ confId: '5', confName: '已收货' },
{ confId: '6', confName: '待审核' },
{ confId: '7', confName: '审核成功' },
{ confId: '8', confName: '审核失败' },
{ confId: '9', confName: '待确认' },
{ confId: '10', confName: '退款中' },
{ confId: '11', confName: '已退款' },
{ confId: '12', confName: '退款失败' },
{ confId: '13', confName: '待发货' },
{ confId: '14', confName: '待安装' },
{ confId: '15', confName: '已安装' }
// { confId: '21', confName: '待收货(待核销)' },
{ confId: '21', confName: '待核销' },
{ confId: '22', confName: '已核销' },
// { confId: '22', confName: '已收货(已核销)' },
{ confId: '6', confName: '待发货' },
// { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' },
{ confId: '9', confName: '售后中' },
{ confId: '10', confName: '售后完成' }
]
const orderSourceList = [
......@@ -206,4 +244,4 @@ function setMinHeight(calssName = '.edit-container') {
document.querySelector(calssName).style.minHeight = minHeight
}
export { limitPrice, orderManageStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, afterSaleStatusList, exportFn, setMinHeight }
export { limitPrice, aToExport, orderManageStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, afterSaleStatusList, exportFn, setMinHeight, downLoadFile }
<!-- 选择商品 - 单选 -->
<template>
<GLDialog class="single-pro" bigTitle="选择商品" mode="big" :before-close="handleSingleSelectClose" :okText="productList.length ? '确定' : '创建商品'" :visible.sync="isSingleSelectVisible" @onOk="handleSingleSelectConfirm" @onCancel="handleSingleSelectClose">
<GLDialog class="single-pro"
bigTitle="选择商品"
mode="big"
:before-close="handleSingleSelectClose"
:okText="productList.length ? '确定' : '创建商品'"
:visible.sync="isSingleSelectVisible"
@onOk="handleSingleSelectConfirm"
@onCancel="handleSingleSelectClose">
<div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack">
<div class="noproDiv"
v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" />
<p class="noproP">系统暂无已创建的商品</p>
</div>
<el-radio-group v-model="infoId" v-if="productList.length" class="pro-group">
<el-radio :class="['pro-box', item.id == infoId ? 'active' : '']" v-for="item in productList" :key="item.id" :label="item.id">
<img v-show="item.id == infoId" class="icon-check" src="@/assets/icon-check.png" />
<img class="goods-img" :src="item.goodsImage" />
<el-radio-group v-model="infoId"
v-if="productList.length"
class="pro-group">
<el-radio :class="['pro-box', item.id == infoId ? 'active' : '']"
v-for="item in productList"
:key="item.id"
:label="item.id">
<img v-show="item.id == infoId"
class="icon-check"
src="@/assets/icon-check.png" />
<img class="goods-img"
:src="item.goodsImage" />
<div class="txt-box">
<p :title="item.goodsName" class="ellipsis">{{ item.goodsName }}</p>
<p :title="item.goodsName"
class="ellipsis">{{ item.goodsName }}</p>
<p class="f-s-12">销量:{{ item.saleAmount }}</p>
<p class="f-s-12">库存:{{ item.goodsStock }}</p>
<p class="f-s-12">零售价:{{ item.retailPrice }}</p>
<p :title="item.merchantName" class="ellipsis f-s-12">门店名称:{{ item.merchantName }}</p>
<p :title="item.merchantName"
class="ellipsis f-s-12">门店名称:{{ item.merchantName }}</p>
</div>
</el-radio>
</el-radio-group>
......@@ -44,7 +62,11 @@ export default {
},
selectedProInfo: {
type: Object,
default: () => {}
default: () => { }
},
merchantId: {
type: String,
required: true
}
},
......@@ -62,20 +84,21 @@ export default {
goodsStatus: 1,
goodsSource: 1,
pageNum: 1,
pageSize: 100000
pageSize: 100000,
merchantId: this.merchantId
}
var that = this
this.$apis.common.getMerchantGoodsListApi(params).then(res => {
// console.log(res)
this.fnCallBack = true
this.productList = res.list
this.productList.forEach(function(item) {
this.productList.forEach(function (item) {
item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) {
let retailPriceList = item.specificationDetailList.sort(function(a, b) {
let retailPriceList = item.specificationDetailList.sort(function (a, b) {
return a.retailPrice - b.retailPrice
})
let stockeList = item.specificationDetailList.sort(function(a, b) {
let stockeList = item.specificationDetailList.sort(function (a, b) {
return a.stock - b.stock
})
let minRatilPrice = retailPriceList[0].retailPrice / 100
......
<template>
<div class="select-crowd">
<GLDialog bigTitle="选择人群" mode="big" :visible.sync="dialogVisible" :before-close="handleClose" :close-on-click-modal="false" @onOk="handleConfirm" @onCancel="handleClose">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<div class="select-staff">
<!-- class="staffDailog" -->
<GLDialog bigTitle="选择员工"
mode="big"
width="600px"
: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="getList">查询</el-button>
<el-button :size="size"
type="primary"
@click="getList">查询</el-button>
</span>
</glsx-combi-form>
<GLTable ref="crowdRef" :pageConf="pageConf" :hasNum="false" :noDataImg="url" :tableData="crowdList" :tableTotal="total" :tableParams="tableParams" @refreshTable="getList" :setTableFinishFun="setTableFinishFun">
<div slot="radioHtml" class="crowd-table" slot-scope="scope">
<el-radio v-model="selectedCrowdId" :label="scope.scope.crowdId" @click.native="handleClick(scope.scope)"></el-radio>
<!-- :pageConf="pageConf" -->
<GLTable ref="staffRef"
:hasPage="false"
:hasNum="false"
:noDataImg="url"
:tableData="staffList"
:tableTotal="total"
:tableParams="tableParams"
@refreshTable="getList"
:setTableFinishFun="setTableFinishFun">
<div slot="radioHtml"
class="staff-table"
slot-scope="scope">
<el-radio v-model="staffUuid"
:label="scope.scope.uuid"
@click.native="handleClick(scope.scope)"></el-radio>
</div>
</GLTable>
<!-- <span slot="footer" class="dialog-footer">
......@@ -22,33 +48,35 @@
<script>
import url from '@/assets/empty.png'
export default {
name: 'selectCrowd',
name: 'selectStaff',
data() {
return {
url: url,
searchForm: {
keyword: ''
name: ''
},
total: 0,
crowdList: [],
staffList: [],
heightBox: 200,
selectedCrowdId: '',
staffUuid: '',
// 搜索
searchFormData: [
{
label: '关键字',
name: 'keyword',
label: '员工',
name: 'name',
type: 'input',
placeholder: '请输入人群名称'
placeholder: '请输入员工名称',
width: '300px',
labelWidth: '10px'
}
],
// 表格
// getListApi: this.$apis.common.getCrowdTreeListApi,
// getListApi: this.$apis.common.getstaffTreeListApi,
tableParams: {
listName: 'crowdUnitList',
listName: 'staffUnitList',
// 行数据的key
// mutiSelectUniqueKey: 'crowdId',
// checkSelectKey: 'crowdId',
// mutiSelectUniqueKey: 'staffId',
// checkSelectKey: 'staffId',
// checkSelectVal: [],
// 多选ref的名称
// mutiSelectName: 'list',
......@@ -65,23 +93,11 @@ export default {
width: 80
},
{
label: '人群名称',
prop: 'crowdName',
label: '员工姓名',
prop: 'staffName',
formatter: cellValue => {
return cellValue.crowdName || '-'
return cellValue.staffName || '-'
}
},
{
label: '人群描述',
prop: 'crowdDesc',
formatter: cellValue => {
return cellValue.crowdDesc || '-'
}
},
{
label: '预估人数',
prop: 'total',
width: '160px'
}
]
},
......@@ -95,67 +111,89 @@ export default {
type: Boolean,
default: false
},
selectedCrowdList: {
type: Array,
default: () => []
selectedstaffUuid: {
type: String
},
merchantId: {
type: String,
required: true
},
orderCode: {
type: String,
required: true
}
},
mounted() {
this.userInfo = this.$globalState.session
// this.userInfo = this.$globalState.session
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 0.15 * clientHeight - 425
this.staffUuid = this.selectedstaffUuid
this.getList()
},
methods: {
getList() {
var params = {
req: {
...this.searchForm,
crowdType: 3,
merchantId: this.userInfo.merchantId,
pageNum: this.$refs.crowdRef ? this.$refs.crowdRef.page.pageNum : 1,
pageSize: this.$refs.crowdRef ? this.$refs.crowdRef.page.pageSize : 10
}
merchantId: this.merchantId,
// merchantId: '44209390',
...this.searchForm
}
this.$apis.common.getCrowdTreeListApi(params).then(res => {
this.crowdList = res.crowdUnitList
this.total = res.total
var page = this.$refs.crowdRef.page
// 添加序号
this.crowdList.forEach((item, index) => {
item.idx = index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1
this.$apis.common.getMerchantStaff(params).then(res => {
console.log(res)
this.staffList = res
// this.staffList = res.staffUnitList
// this.total = res.total
// var page = this.$refs.staffRef.page
// // 添加序号
this.staffList.forEach((item, index) => {
item.idx = index + 1
})
this.selectedCrowdList.length && (this.selectedCrowdId = +this.selectedCrowdList[0].crowdId)
this.$refs.crowdRef.tableHeightValues = '460px'
this.$refs.staffRef.tableHeightValues = '460px'
})
},
setTableFinishFun() {
this.crowdList = this.$refs.crowdRef.data
this.staffList = this.$refs.staffRef.data
//接收到的数据为空
this.$refs.crowdRef.tableHeightValues = '460px'
this.$refs.staffRef.tableHeightValues = '460px'
},
handleClick(val) {
let temp = JSON.parse(JSON.stringify(val))
delete temp.idx
this.selectedCrowdList = [temp]
console.log(val)
// let temp = JSON.parse(JSON.stringify(val))
// delete temp.idx
// this.staffUuid = val.uuid
},
handleClose() {
this.$emit('handleCrowdCustClose')
this.$emit('handleStoreClose')
},
handleConfirm() {
this.$emit('handleCrowdCustConfirm', this.selectedCrowdList)
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.$emit('handleStaffConfirm', this.staffUuid)
})
}
}
}
</script>
<style lang="scss">
.select-crowd {
.select-staff {
.staffDailog {
width: 500px;
}
.title {
margin-bottom: 12px;
}
......@@ -201,7 +239,7 @@ export default {
.p-16 {
padding: 16px;
}
.crowd-table .el-radio__label {
.staff-table .el-radio__label {
display: none;
}
}
......
......@@ -37,7 +37,7 @@
name="3"></el-tab-pane>
<el-tab-pane label="售后订单"
name="4"></el-tab-pane>
<el-tab-pane label="售后订单"
<el-tab-pane label="待审批"
name="5"></el-tab-pane>
</el-tabs>
</div>
......@@ -109,7 +109,9 @@
<div slot="assignName"
slot-scope="scope">
<div>
<span>{{ scope.scope.assignStaffName }}</span>
<img class="img-36 pointer img-circle"
:src="scope.scope.assignStaffImageUrl || scope.scope.shareStaffImageUrl" />
<span>{{ scope.scope.assignStaffName || scope.scope.shareStaffName }}</span>
<span @click="handlerAssign(scope.scope)"
class="assignLabel">指派</span>
</div>
......@@ -245,11 +247,31 @@
</el-form>
</GLDialog>
<!-- 指派员工 -->
<select-Crowd v-if="isCrowdCustVisible"
:dialogVisible="isCrowdCustVisible"
:selectedCrowdList="JSON.parse(JSON.stringify(customerDataList[0].list))"
@handleCrowdCustClose="handleCrowdCustClose"
@handleCrowdCustConfirm="handleDialogConfirm"></select-Crowd>
<select-staff v-if="isStaffVisible"
:merchantId="merchantId"
:orderCode="orderCode"
:dialogVisible="isStaffVisible"
@handleStaffClose="handleStaffClose"
@handleStaffConfirm="handleDialogConfirm"></select-staff>
<!-- 核销审批 -->
<GLDialog v-if="writeOffApprovalVisible"
title="核销审批"
width="400px"
:visible.sync="writeOffApprovalVisible"
@onCancel="handleApprovalClose"
@onOk="handleApprovalComfirm"
:orderCode="orderCode">
<ul>
<li class="approvalInfoTips">
<img class="tips-img"
src="@/assets/icon-info.png" />
请确定是否核销此订单?
</li>
<li class="approvalInfoItem">员工名称: {{ approvalInfo.staffName }}</li>
<li class="approvalInfoItem">提交时间: {{ approvalInfo.confirmInstallTime }}</li>
</ul>
</GLDialog>
<!-- :selectedCrowdList="JSON.parse(JSON.stringify(customerDataList[0].list))" -->
<!-- <GLDialog :bigTitle="'选择成员'"
mode="big"
:visible.sync="membersVisible"
......@@ -265,21 +287,23 @@
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import selectCrowd from './components/selectCrowd.vue'
import selectStaff from './components/selectStaff.vue'
import { orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
export default {
name: 'orderManage',
components: {
// SelectMember,
selectCrowd
selectStaff
},
data() {
return {
isCrowdCustVisible: false,
isStaffVisible: false,
size: 'small',
url: url,
isEdit: true,
orderCode: '',
merchantId: '',
approvalInfo: {},
oldVal: {
orderStatuses: [],
afterSaleStatuses: []
......@@ -291,7 +315,8 @@ export default {
merchantName: '',
customerName: '',
createDate: [],
orderSource: '',
orderSource: '4',
requestType: '1', //运营版 固定传值 实现筛选全部订单
deliveryType: '',
vin: '',
shareStaffName: '',
......@@ -399,15 +424,15 @@ export default {
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '订单类型',
name: 'orderSource',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'orderSourceList'
},
// {
// label: '订单类型',
// name: 'orderSource',
// type: 'select',
// optionList: [],
// optionId: 'confId',
// optionLabel: 'confName',
// optionsName: 'orderSourceList'
// },
{
label: '结算方式',
name: 'deliveryType',
......@@ -473,10 +498,20 @@ export default {
labelWidth: 56,
type: 'input',
maxlength: 11
},
{
label: '测试单',
name: 'orderType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'testSheetTypeList'
}
],
// 快递信息
isExpressVisible: false,
writeOffApprovalVisible: false,
editChildRef: 'editChildRef',
expressForm: {
deliveryCompany: '',
......@@ -501,7 +536,7 @@ export default {
}
],
// 订单核销
isWriteOffVisible: false,
writeOffForm: {
verificationCode: ''
},
......@@ -645,6 +680,20 @@ export default {
listeners: {
click: this.handleReceiving
}
},
{
type: 'el-button',
name: '核销审批',
attrs: {
type: 'text'
},
condition: row => {
// return true
return row.afterSaleStatus == 11
},
listeners: {
click: this.handleWriteOffApproval
}
}
],
// 表格
......@@ -826,6 +875,10 @@ export default {
shareStaffTypeList: [
{ confId: '1', confName: '个微' },
{ confId: '2', confName: '企微' }
],
testSheetTypeList: [
{ confId: '0', confName: '否' },
{ confId: '1', confName: '是' }
]
}
}
......@@ -881,10 +934,36 @@ export default {
})
}
},
handleApprovalClose() {
this.writeOffApprovalVisible = !this.writeOffApprovalVisible
},
handleApprovalComfirm() {
this.$apis.orderManage.orderVerfication({ orderCode: this.orderCode }).then(result => {
this.handleApprovalClose()
this.handleSearch()
})
},
// 核销审批
handleWriteOffApproval(val) {
this.orderCode = val.orderCode
this.$apis.orderManage
.getInstallInfo({
subOrderCode: val.orderCode
// subOrderCode: 'S2211111603132050'
})
.then(result => {
this.approvalInfo = result
// console.log(result)
})
this.handleApprovalClose()
},
// 订单指派
handlerAssign(item) {
// this.
console.log(item)
this.merchantId = item.merchantId
this.orderCode = item.orderCode
this.isStaffVisible = true
},
// 改变订单类型
changeOrderType(item) {
......@@ -1008,8 +1087,12 @@ export default {
})
},
handleCrowdCustClose() {
this.isCrowdCustVisible = !this.isCrowdCustVisible
handleStaffClose() {
this.isStaffVisible = !this.isStaffVisible
},
handleDialogConfirm() {
this.handleStaffClose()
this.handleSearch()
},
handleWriteOff(row) {
if (row.orderSource == 4) {
......@@ -1223,4 +1306,14 @@ export default {
}
}
}
.approvalInfoTips {
font-weight: 500;
font-size: 16px;
color: #1d1d1d;
margin-bottom: 16px;
}
.approvalInfoItem {
margin-left: 20px;
margin-bottom: 10px;
}
</style>
......@@ -4,10 +4,16 @@
<div class="edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
<el-form label-width="100px"
:inline="true">
<el-row v-for="(item, index) in detailFormDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
class="row-item">
<span class="detail-txt ellipsis-1"
: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>
......@@ -15,43 +21,61 @@
</div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true">
<el-form label-width="100px"
:inline="true">
<el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span>
</el-form-item>
</el-form>
<div v-if="orderGoods.length" class="p-l-40">
<div v-if="orderGoods.length"
class="p-l-40">
<table class="show-table">
<tbody>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px;">
<td><img :src="item.goodsImage" class="img-60" /></td>
<tr v-for="(item, index) in orderGoods"
:key="index"
style="height: 70px;">
<td><img :src="item.goodsImage"
class="img-60" /></td>
<td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 *
{{ item.goodsNumber }}</td>
</tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;">
<td style="text-align: left;" colspan="3">优惠券</td>
<tr v-if="detailForm.subOrderCoupon"
style="height: 40px;">
<td style="text-align: left;"
colspan="3">优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container edit-container" v-if="orderRefund">
<div class="container edit-container"
v-if="orderRefund">
<p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in afterInfoDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label">
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
<el-form label-width="100px"
:inline="true">
<el-row v-for="(item, index) in afterInfoDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label">
<span class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
</el-form-item>
</el-row>
</el-form>
<div class="form-img">
<el-form label-width="100px" :inline="true">
<el-form label-width="100px"
:inline="true">
<el-form-item label="售后凭证">
<div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
<span v-for="(item, index) in orderRefund.imgUrls"
:key="index">
<el-image class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"></el-image>
</span>
</div>
</el-form-item>
......@@ -60,7 +84,8 @@
</div>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button @click="handleCancel"
size="medium">取消</el-button>
</GLFooter>
</div>
</template>
......@@ -134,10 +159,14 @@ export default {
name: 'orderStatusName'
},
{
label: '支付总价',
label: '支付定金',
name: 'payPrice'
},
{
label: '尾款',
name: 'crowdFundingPrice'
},
{
label: '发货地址',
name: 'shipAddress'
},
......@@ -248,6 +277,10 @@ export default {
}
this.orderGoods = res.orderGoods || []
this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '0元'
this.detailForm.crowdFundingPrice = ''
if (res.payPrice && res.crowdFundingPrice) {
this.detailForm.crowdFundingPrice = res.crowdFundingPrice - res.payPrice + '元'
}
this.detailForm.orderSourceName = this.baseData.orderSourceList.map(item => item.confId).includes(res.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == res.orderSource).confName : '-'
this.detailForm.orderStatusName = this.baseData.orderStatusList.map(item => item.confId).includes(res.orderStatus + '') ? this.baseData.orderStatusList.find(item => item.confId == res.orderStatus).confName : '-'
if (!this.detailForm.takeFee) {
......
<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="getList">查询</el-button>
</span>
</glsx-combi-form>
<!-- : :hasPage="false"
:hasNum="false" :tableData="storeList" -->
<GLTable ref="storeRef"
:noDataImg="url"
:tableTotal="total"
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
@refreshTable="getList"
:getListApi="getListApi"
: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: '商户ID',
name: 'merchantId',
type: 'input',
placeholder: '请输入商户ID',
width: '300px',
labelWidth: '10px'
},
{
label: '商户名称',
name: 'merchantName',
type: 'input',
placeholder: '请输入商户名称',
width: '300px',
labelWidth: '10px'
}
],
// 表格
// getListApi: this.$apis.common.getstaffTreeListApi,
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 || '-'
}
}
]
},
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() {
var params = {
merchantId: this.merchantId,
// merchantId: '44209390',
...this.searchForm
}
// this.$apis.common.getSimpleMerchantList(params).then(res => {
// console.log(res)
// this.storeList = res
// // this.storeList = res.staffUnitList
// // this.total = res.total
// // var page = this.$refs.staffRef.page
// // // 添加序号
// this.storeList.forEach((item, index) => {
// item.idx = index + 1
// })
// this.$refs.staffRef.tableHeightValues = '460px'
// })
},
setTableFinishFun() {
// console.log(this.$refs.staffRef.data)
// this.storeList = this.$refs.staffRef.data
//接收到的数据为空
this.$refs.staffRef.tableHeightValues = '460px'
},
handleClick(val) {
console.log(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>
<template>
<div class="wechat-box marketing">
<img class="w-100-percent"
src="@/assets/seckillActivity/phone.png" />
<img class="w-100-percent" src="@/assets/seckillActivity/phone.png" />
<div class="wechat-back">
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
<img class="wechat-head"
src="@/assets/seckillActivity/crowd-head.png" />
<img class="icon-server"
src="@/assets/seckillActivity/icon-server.png" />
<img class="wechat-head" src="@/assets/seckillActivity/crowd-head.png" />
<img class="icon-server" src="@/assets/seckillActivity/icon-server.png" />
<div class="wechat-inner-box">
<div class="wechat-banner-img">
<img class="icon-music"
src="@/assets/seckillActivity/icon-music.png" />
<img
:src="editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')" />
<img class="wechat-customer"
src="@/assets/seckillActivity/crowd-customer.png" />
<img class="icon-music" src="@/assets/seckillActivity/icon-music.png" />
<img :src="editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')" />
<img class="wechat-customer" src="@/assets/seckillActivity/crowd-customer.png" />
<div class="w-100-percent txt-center">
<video v-if="editForm.activityVideoList.length"
class="wechat-video"
controls>
<source :src="editForm.activityVideoList[0]"
type="video/mp4" />
<video v-if="editForm.activityVideoList.length" class="wechat-video" controls>
<source :src="editForm.activityVideoList[0]" type="video/mp4" />
</video>
</div>
<div class="wechat-block">
......@@ -30,51 +21,36 @@
<div>
<p class="m-b-10">{{ editForm.sponsorName }}</p>
<p class="m-b-10 wechat-sub-addr">{{ editForm.activityAddressDetailName }}</p>
<p class="wechat-time"
v-if="editForm.activityTime && editForm.activityTime.length">
活动时间:{{ editForm.activityTime[0].split(' ')[0] }}-{{ editForm.activityTime[1].split(' ')[0] }}
</p>
<p class="wechat-time" v-if="editForm.activityTime && editForm.activityTime.length">活动时间:{{ editForm.activityTime[0].split(' ')[0] }}-{{ editForm.activityTime[1].split(' ')[0] }}</p>
</div>
<img class="icon-addr"
src="@/assets/seckillActivity/icon-addr.png" />
<img class="icon-addr" src="@/assets/seckillActivity/icon-addr.png" />
</div>
</div>
<div class="wechat-block">
<p class="wechat-block-title">{{ countDownObj.typeTxt }}</p>
<p v-if="countDownObj.activityStatus != 3"
class="wechat-count-down">
<span
v-if="editForm.activityTime && editForm.activityTime.length">{{ editForm.activityTime[0].split(' ')[0].split('-')[2] }}</span>
<p v-if="countDownObj.activityStatus != 3" class="wechat-count-down">
<span v-if="editForm.activityTime && editForm.activityTime.length">{{ editForm.activityTime[0].split(' ')[0].split('-')[2] }}</span>
日开始活动,还差
<span class="wechat-txt">{{ countDownObj.d }}</span>
天
<span class="wechat-txt">{{ countDownObj.h }}</span>
时
<span class="wechat-txt">{{ countDownObj.m }}</span>
分
<span class="wechat-txt">{{ countDownObj.s }}</span>
秒
<span class="wechat-txt">{{ countDownObj.d }}</span>天
<span class="wechat-txt">{{ countDownObj.h }}</span>时
<span class="wechat-txt">{{ countDownObj.m }}</span>分
<span class="wechat-txt">{{ countDownObj.s }}</span>秒
</p>
<img v-else
class="count-down-img"
src="@/assets/seckillActivity/count-down.png" />
<img v-else class="count-down-img" src="@/assets/seckillActivity/count-down.png" />
</div>
<div class="w-100-percent txt-center">
<img class="crowd-jdt"
src="@/assets/seckillActivity/crowd-jdt.png" />
<img class="crowd-jdt" src="@/assets/seckillActivity/crowd-jdt.png" />
</div>
<div class="wechat-block service">
<div class="serve"
v-if="editForm.activityServices.length">
<div class="serve" v-if="editForm.activityServices.length">
<div class="box flex">
<div style="width: 26px;">服务</div>
<div class="serve-text flex-center">
<template v-for="(i, index) in editForm.activityServices">
<div :key="index"
class="flex-default">
<div :key="index" class="flex-default">
{{ i.title }}
<span v-if="index != editForm.activityServices.length - 1">·</span>
</div>
......@@ -93,16 +69,12 @@
</div>
<div v-if="editForm.activityExperienceDTOs.length">
<div class="head-box">
<img class="icon-head"
src="@/assets/seckillActivity/icon-default-head.png" />
<img class="icon-head" src="@/assets/seckillActivity/icon-default-head.png" />
<span>虚拟人物1</span>
</div>
<div class="m-t-10">{{ editForm.activityExperienceDTOs[0].experience }}</div>
<div v-if="editForm.activityExperienceDTOs[0].activityExperienceImgs.length">
<img class="img-w-h m-t-10"
v-for="(item, index) in editForm.activityExperienceDTOs[0].activityExperienceImgs"
:key="index"
:src="item" />
<img class="img-w-h m-t-10" v-for="(item, index) in editForm.activityExperienceDTOs[0].activityExperienceImgs" :key="index" :src="item" />
</div>
</div>
</div>
......@@ -129,8 +101,7 @@
</div>
</div>
<div>
<img class="wechat-footer"
src="@/assets/seckillActivity/crowd-footer.png" />
<img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
</div>
</div>
</div>
......@@ -147,18 +118,16 @@ export default {
props: {
editForm: {
type: Object,
default: () => {
return {}
}
default: () => { }
},
countDownObj: {
type: Object,
default: () => {
return {}
}
default: () => { }
}
},
mounted() { },
methods: {}
}
</script>
......
......@@ -394,9 +394,10 @@ export default {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this
// console.log(this.$GLBUTTION_PERMISSIONS)
console.log(this.$GLBUTTION_PERMISSIONS)
// console.log(this.$GLBUTTION_PERMISSIONS)
// debugger
let test = this.__getRoutes(this)
console.log(test, 'test')
// console.log(test, 'test')
},
methods: {
......
......@@ -98,13 +98,6 @@ export default {
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'statusList'
},
{
label: '门店',
name: 'merchantName',
type: 'input',
width: '215px',
maxlength: 20
}
],
// 表格按钮
......@@ -212,11 +205,6 @@ export default {
addHtml: 'activityImg'
},
{
label: '门店',
prop: 'merchantName',
width: 220
},
{
label: '浏览量(次)',
prop: 'viewAmount',
width: 140
......@@ -226,14 +214,6 @@ export default {
prop: 'saleAmount'
},
{
label: '退单数',
prop: 'chargeBackNumber'
},
{
label: '核销数',
prop: 'verificationNumber'
},
{
label: '秒杀价(元)',
name: 'activityPrice',
width: 140,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!