Commit dd1b09a6 by chenwq

众筹版本回退

1 parent 9197b7d1
......@@ -3,14 +3,12 @@
<div class="marketing order-manage">
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex">
<div class="flex-default">
<el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="全部订单" name="allOrder"></el-tab-pane>
<el-tab-pane label="售后订单" name="afterOrder"></el-tab-pane>
</el-tabs>
<span class="table-tips">
已生成有效订单
<span class="txt-blue">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span>
......@@ -23,7 +21,6 @@
</div>
<el-button class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="weChatName" class="flex-align" slot-scope="scope">
......@@ -124,7 +121,6 @@
</GLDialog>
</div>
</template>
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
......@@ -497,29 +493,19 @@ export default {
tableOption: true,
tableColumns: [
{
label: '客户名称',
prop: 'customerName',
line: 2,
width: 180,
formatter: cellValue => {
return cellValue.customerName || '-'
}
label: '订单编号',
prop: 'orderCode',
width: '180'
},
{
label: '手机号',
prop: 'customerPhone',
width: 130,
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
formatter: cellValue => {
return cellValue.customerPhone || '-'
return cellValue.outTradeNo || '-'
}
},
{
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '订单时间',
prop: 'createdDate',
width: '180',
......@@ -544,6 +530,29 @@ export default {
}
},
{
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '客户名称',
prop: 'customerName',
line: 2,
width: 180,
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '手机号',
prop: 'customerPhone',
width: 130,
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
},
{
label: '车架号',
prop: 'vinNo',
width: 130,
......@@ -586,12 +595,6 @@ export default {
}
},
{
label: '其他信息',
prop: '',
width: '180',
line: 1
},
{
label: '活动名称',
prop: 'activityName',
width: '120'
......@@ -625,19 +628,6 @@ export default {
formatter: cellValue => {
return this.baseData.deliveryTypeList.map(item => item.confId).includes(cellValue.deliveryType + '') ? this.baseData.deliveryTypeList.find(item => item.confId == cellValue.deliveryType).confName : '-'
}
},
{
label: '订单编号',
prop: 'orderCode',
width: '180'
},
{
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
formatter: cellValue => {
return cellValue.outTradeNo || '-'
}
}
]
},
......@@ -662,12 +652,10 @@ export default {
}
}
},
mounted() {
// this.getCount()
this.getOptionsList('searchFormData')
},
methods: {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
......@@ -682,7 +670,6 @@ export default {
delete params.createDate
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
......@@ -690,7 +677,6 @@ export default {
resolve()
})
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
......@@ -716,7 +702,6 @@ export default {
})
}
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
......@@ -738,7 +723,6 @@ export default {
}
})
},
getCount() {
var params = this.getParams()
delete params.createDate
......@@ -746,7 +730,6 @@ export default {
this.statisticsInfo = res || { orderCount: '', payPriceTotal: '', refundTotal: '' }
})
},
handleDetail(row) {
this.$router.push({
path: '/orderManage/orderDetail',
......@@ -755,7 +738,6 @@ export default {
}
})
},
// 输入快递信息 - start
handleExpressClose() {
this.isExpressVisible = !this.isExpressVisible
......@@ -765,7 +747,6 @@ export default {
deliveryNumber: ''
}
},
handleExpressConfirm() {
this.$refs.expressRef.$refs[this.editChildRef].validate(valid => {
if (valid) {
......@@ -785,13 +766,11 @@ export default {
}
})
},
handleExpressInfo(row) {
this.isExpressVisible = !this.isExpressVisible
this.orderCode = row.orderCode
},
// 输入快递信息 - end
// 订单核销 - start
handleWriteOffClose() {
this.isWriteOffVisible = !this.isWriteOffVisible
......@@ -800,7 +779,6 @@ export default {
verificationCode: ''
}
},
handleWriteOffConfirm() {
this.$refs.writeOffRef.$refs[this.editChildRef].validate(valid => {
if (valid) {
......@@ -820,7 +798,6 @@ export default {
}
})
},
handleWriteOff(row) {
if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode })
......@@ -830,7 +807,6 @@ export default {
this.orderCode = row.orderCode
},
// 订单核销 - end
// 退款审核 - start
handleExamineClose() {
this.isExamineVisible = !this.isExamineVisible
......@@ -843,7 +819,6 @@ export default {
contactPhone: ''
}
},
submitExamine(params) {
this.$apis.orderManage.examineAllowApi(params).then(res => {
this.$message({
......@@ -857,7 +832,6 @@ export default {
}
})
},
handleExamineConfirm() {
var params = {
id: this.orderInfo.id
......@@ -876,7 +850,6 @@ export default {
this.submitExamine(params)
}
},
handleExamine(row) {
this.orderCode = row.orderCode
this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => {
......@@ -887,14 +860,12 @@ export default {
})
},
// 退款审核 - end
// 确认收货 - start
handleReceivingClose() {
this.isReceivingVisible = !this.isReceivingVisible
this.orderCode = ''
this.orderInfo = {}
},
handleReceivingConfirm() {
var params = {
id: this.orderInfo.id
......@@ -911,7 +882,6 @@ export default {
}
})
},
handleReceiving(row) {
this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => {
this.orderInfo = res || {}
......@@ -921,7 +891,6 @@ export default {
})
},
// 确认收货 - end
setTableFinishFun() {
this.$refs.allOrderRef.data.forEach(item => {
item.vinNo = item.vin ? (item.vin.split(',').length > 1 ? item.vin.split(',') : item.vin) : '-'
......@@ -930,22 +899,18 @@ export default {
this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun()
this.getCount()
},
handleSearch() {
this.$refs.allOrderRef.refreshTable()
},
handleTabClick() {
this.handleSearch()
},
handleExport(row) {
var params = this.getParams()
this.$apis.orderManage.orderExportApi(params).then(res => {
exportFn(res)
})
},
handleReset() {
this.searchForm = {
orderCode: '',
......@@ -967,7 +932,6 @@ export default {
}
}
</script>
<style lang="scss">
.order-table-popover {
min-width: 80px !important;
......@@ -993,4 +957,4 @@ export default {
color: #5092ff;
}
}
</style>
</style>
\ No newline at end of file
<!-- 众筹活动 -->
<template>
<div class="edit-share marketing edit-box edit-activity" v-loading="loading">
<!-- 基本信息 -->
<div class="container edit-container" style="min-height: 520px !important;">
<div class="container edit-container">
<!-- 基本信息 -->
<p class="edit-title">基本信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="activityImg" class="edit-tips m-t-8">展示在首页的活动详情页</div>
......@@ -67,9 +67,7 @@
</p>
</template>
</glsx-combi-form>
</div>
<!-- 活动配置 -->
<div class="container edit-container crowd-config">
<!-- 活动配置 -->
<p class="edit-title">活动配置</p>
<glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData" :formRules="editRule">
<template slot="customerServiceFlag" slot-scope="scope">
......@@ -140,8 +138,7 @@
</div>
</glsx-combi-form>
</div>
<!-- 展示 -->
<!-- <div class="wechat-box">
<div class="wechat-box">
<img class="w-100-percent" src="@/assets/seckillActivity/phone.png" />
<div class="wechat-back">
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
......@@ -168,7 +165,6 @@
<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">
......@@ -189,7 +185,7 @@
</div>
<img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
</div>
</div> -->
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button>
<el-button v-if="routeInfo.addOrEdit != 'detail'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
......@@ -197,7 +193,6 @@
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog>
</div>
</template>
<script>
import { limitPrice } from '@/common/constant'
export default {
......@@ -671,9 +666,8 @@ export default {
]
}
},
mounted() {
this.setMinHeight('.crowd-config')
this.setMinHeight()
this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getMerchantInfo()
var id = this.routeInfo.id
......@@ -693,7 +687,6 @@ export default {
}
}
},
watch: {
editForm: {
handler(val) {
......@@ -723,7 +716,6 @@ export default {
this.editForm.fictitiousViewQuantity = limitPrice(newValue, oldValue, 7, 0, 0)
}
},
methods: {
changeFormAttr(formName, attrName, labelList, attrValue) {
labelList.forEach(item => {
......@@ -754,11 +746,9 @@ export default {
return ''
}
},
addZero(i) {
return i < 10 ? `0${i}` : `${i}`
},
findCountDownTime() {
let startTime = new Date(this.editForm.activityTime[0])
let endTime = new Date(this.editForm.activityTime[1])
......@@ -771,7 +761,6 @@ export default {
endTime: activityStatus == 1 ? startTime : activityStatus == 2 ? endTime : endTime
}
},
countDown() {
if (this.editForm.activityTime && this.editForm.activityTime.length) {
let { activityStatus, startTime, endTime } = this.findCountDownTime()
......@@ -810,16 +799,13 @@ export default {
}
}
},
handleTimeChange(value, targetItem) {
!value && (this.editForm[targetItem.name] = [])
},
handleIsLimit(val) {
this.editForm.limitPurchaseNumber = val == 1 ? '' : '1'
this.editRule.limitPurchaseNumber[0].required = val != 1
},
handleRelateProChange(val) {
this.editRule.goodsId[0].required = val == 2
var idx = this.editFormData.findIndex(item => item.name == 'goodsId')
......@@ -844,7 +830,6 @@ export default {
}
this.isSingleSelectVisible = !this.isSingleSelectVisible
},
getGoodInfo(id) {
this.$apis.proManage.getProInfoApi({ id: id }).then(res => {
this.selectedProInfo = this.$common.utils.deepClone(res)
......@@ -859,7 +844,6 @@ export default {
}
})
},
// 规格值解构
changeSpecs(isRecovery) {
this.specsWidth = 100 / (this.specificationDetailList.length + 4) + '%'
......@@ -915,7 +899,6 @@ export default {
break
}
}
if (this.activityInfo && this.activityInfo.specificationDetailWithGoodsList) {
for (var k = 0; k < this.activityInfo.specificationDetailWithGoodsList.length; k++) {
var templ = this.activityInfo.specificationDetailWithGoodsList[k]
......@@ -946,20 +929,16 @@ export default {
recoverySpec() {
this.changeSpecs(true)
},
//规格-秒杀价输入控制
activityPrice_input(val, maxValue) {
return this.limitPriceForInput(val, 5, 2, 0, maxValue)
},
//规格-活动库存输入控制
goodsStock_input(val, maxValue) {
return this.limitPriceForInput(val, 5, 0, 0, maxValue)
},
// 音乐
handleMusicUpload() { },
musicUpload(e, targetItem) {
var reader = new FileReader()
var file = e
......@@ -997,7 +976,6 @@ export default {
})
}
},
// 音乐
handleMusic(targetItem, idx) {
// stop-音频结束;play-音频播放
......@@ -1018,12 +996,10 @@ export default {
}
})
},
stopMusic() {
this.playObj.idx = -1
this.playObj.src = ''
},
handleMusicChange(idx) {
this.musicList.forEach((item, index) => {
if (index != idx) {
......@@ -1033,17 +1009,14 @@ export default {
this.musicList[idx].isCheck = !this.musicList[idx].isCheck
this.editForm.activityMusic = this.musicList[idx].isCheck ? this.musicList[idx].addr : ''
},
handleMusicBeforeUpload(file, targetItem) {
this.stopMusic()
this.musicUpload(file, targetItem)
},
handleMusicDelete(targetItem) {
this.$set(this.editForm, targetItem.name, '')
this.fileList = []
},
// 表单设置
handleDescribeAdd() {
this.formDescribeList.push({
......@@ -1062,7 +1035,6 @@ export default {
}
})
},
getMerchantInfo() {
this.loading = true
let merchantId = this.$globalState.session.merchantId
......@@ -1091,7 +1063,6 @@ export default {
this.loading = false
})
},
getInfo() {
this.loading = true
this.$apis.seckillActivity
......@@ -1169,7 +1140,6 @@ export default {
this.loading = false
})
},
validateRules() {
if (this.specificationDetailList.length) {
this.editRule.activityPrice[0].required = false
......@@ -1179,7 +1149,6 @@ export default {
this.editRule.goodsStock[0].required = true
}
},
getCouponInfoParams() {
var _this = this
var param = this.$common.utils.deepClone(this.editForm)
......@@ -1229,15 +1198,12 @@ export default {
Object.values(this.describeIdxToAttr).forEach((item, idx) => {
param['formDescribe' + item] = this.formDescribeList.length > idx ? this.formDescribeList[idx].value : ''
})
return param
},
// 跳转
whereToGo(id) {
document.getElementById(id).scrollIntoView()
},
checkValid(validList) {
for (let i = 0; i < validList.length; i++) {
let item = validList[i]
......@@ -1248,11 +1214,9 @@ export default {
}
return true
},
addOrUpdate() {
this.loading = true
var params = this.getCouponInfoParams()
this.$apis.seckillActivity
.addOrUpdateActivityApi(params)
.then(res => {
......@@ -1268,7 +1232,6 @@ export default {
this.loading = false
})
},
handleConfirm() {
this.stopMusic()
this.validateRules()
......@@ -1359,7 +1322,6 @@ export default {
.edit-product-dh .table-spesc tbody tr {
border: 1px solid #e7e7e7;
}
.edit-product-dh .table-spesc tbody td {
display: inline-block;
box-sizing: border-box;
......@@ -1375,7 +1337,6 @@ export default {
.edit-product-dh .w-320 {
width: 320px;
}
/* 规格 */
.edit-activity {
position: relative;
......@@ -1620,16 +1581,14 @@ export default {
cursor: pointer;
border-left: 1px solid rgb(220, 223, 230);
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 3px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
</style>
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!