Commit 2f0e2deb by 前端

Merge branch 'v3.14.0' into 'master'

V3.14.0

See merge request !526
2 parents cf86c7f9 1ea1486d
......@@ -552,6 +552,7 @@ export default {
this.minPirceForAll = goods[0].retailPrice
goods.forEach((item, index) => {
if (item.retailPrice < this.minPirceForAll) {
console.log(item)
this.minPirceForAll = item.retailPrice
}
})
......
......@@ -174,6 +174,25 @@
</el-form-item>
</el-form>
</GLDialog>
<!-- 退款类型 -->
<GLDialog mode="mid" class="refund-dialog" title="退款" :visible.sync="refundVisible" @onCancel="refundVisible = !refundVisible" @onOk="refundFun">
<div class="gl-form-page gl-form-min">
<el-form ref="form" label-width="154px">
<el-form-item label="退款类型:">
<el-radio-group v-model="refundParams.afterSaleType">
<div class="refund-item">
<el-radio v-model="radio" label="2">退定金</el-radio>
<div class="refund-tips">选择此项不会扣减实际订单数</div>
</div>
<div class="refund-item">
<el-radio v-model="radio" label="1">退订单</el-radio>
<div class="refund-tips">选择此项会扣减实际订单数</div>
</div>
</el-radio-group>
</el-form-item>
</el-form>
</div>
</GLDialog>
</div>
</template>
......@@ -195,6 +214,8 @@ export default {
orderStatuses: [],
afterSaleStatuses: []
},
refundVisible: false,
refundParams: {},
searchForm: {
orderCode: '',
orderStatuses: [],
......@@ -331,7 +352,13 @@ export default {
},
listeners: {
click: row => {
this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => {}, this.searchForm.requestSource != 0)
if (row.paymentModel == 3) {
this.refundVisible = true
this.refundParams = {
orderCode: row.orderCode,
afterSaleType: '2'
}
} else this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode, afterSaleType: '1' }, () => {}, this.searchForm.requestSource != 0)
}
}
},
......@@ -848,6 +875,27 @@ export default {
optionsName: 'testSheetTypeList'
},
{
label: '退款类型',
name: 'afterSaleType',
type: 'select',
optionList: [
{
confId: null,
confName: '全部'
},
{
confId: '2',
confName: '退定金'
},
{
confId: '1',
confName: '退订单'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '业务场景',
name: 'businessType',
type: 'select',
......@@ -971,7 +1019,12 @@ export default {
this.tableParams.tableColumns.splice(idx, 1)
})
},
async refundFun() {
let { refundParams } = this
const res = this.$apis.orderManage.crowdFundRefundApi(refundParams)
this.refundVisible = false
this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false)
},
// checkMerchant () {
// this.$apis.orderManage.checkMerchartApi({}).then(res => {
// this.isSpecialMerchat = res
......@@ -1231,6 +1284,23 @@ export default {
min-width: 80px !important;
padding: 8px 12px !important;
}
.refund-dialog {
.refund-item {
padding-top: 14px;
}
.refund-tips {
font-size: 14px;
margin: 8px 0 6px 0;
color: #999999;
}
.refund-dialog-tips-close {
margin-left: auto;
cursor: pointer;
}
.tips-img {
margin: 0 8px 0 0 !important;
}
}
.order-manage {
.container {
padding: 20px 14px;
......
......@@ -9,7 +9,6 @@
<!-- 表格区域 开始 -->
<GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="goodsImage" slot-scope="scope">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.goodsImage" />
......@@ -39,7 +38,6 @@
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import shareDialog from '../productGroup/components/shareDialog'
import { truncate } from 'fs'
export default {
name: 'productGroup',
data() {
......@@ -194,7 +192,7 @@ export default {
fn: '自建查看'
},
condition: row => {
return row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3)
return row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3 || row.goodsSource == 4)
},
listeners: {
click: row => this.handleEdit(3, row)
......@@ -337,6 +335,10 @@ export default {
{
confId: '3',
confName: '总部商品'
},
{
confId: '4',
confName: '配置升级商品'
}
]
}
......@@ -346,8 +348,7 @@ export default {
components: {
shareDialog
},
created() {
},
created() {},
mounted() {
this.getOptionsList('searchFormData')
},
......@@ -522,8 +523,8 @@ export default {
} else {
this.$refs.proGroupRef.tableHeightValues = ''
this.$refs.proGroupRef.data.forEach(item => {
item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList&&item.specificationDetailList.length > 1) {
item.saleAmount = item.goodsStatistics&&item.goodsStatistics.saleAmount
if (item.specificationDetailList && item.specificationDetailList.length > 1) {
let retailPriceList = JSON.parse(JSON.stringify(item.specificationDetailList))
retailPriceList.sort((a, b) => {
return a.retailPrice - b.retailPrice
......@@ -539,7 +540,7 @@ export default {
item.retailPrice = minRatilPrice == maxRatilPrice ? minRatilPrice.toFixed(2) : minRatilPrice.toFixed(2) + '-' + maxRatilPrice.toFixed(2)
item.minRatilPrice = minRatilPrice.toFixed(2)
item.goodsStock = minStock == maxStock ? minStock : minStock + '-' + maxStock
} else if (item.specificationDetailList&&item.specificationDetailList.length == 1) {
} else if (item.specificationDetailList && item.specificationDetailList.length == 1) {
item.retailPrice = (item.specificationDetailList[0].retailPrice / 100).toFixed(2)
item.minRatilPrice = item.retailPrice
item.goodsStock = item.specificationDetailList[0].stock
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!