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 { ...@@ -552,6 +552,7 @@ export default {
this.minPirceForAll = goods[0].retailPrice this.minPirceForAll = goods[0].retailPrice
goods.forEach((item, index) => { goods.forEach((item, index) => {
if (item.retailPrice < this.minPirceForAll) { if (item.retailPrice < this.minPirceForAll) {
console.log(item)
this.minPirceForAll = item.retailPrice this.minPirceForAll = item.retailPrice
} }
}) })
......
...@@ -174,6 +174,25 @@ ...@@ -174,6 +174,25 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</GLDialog> </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> </div>
</template> </template>
...@@ -195,6 +214,8 @@ export default { ...@@ -195,6 +214,8 @@ export default {
orderStatuses: [], orderStatuses: [],
afterSaleStatuses: [] afterSaleStatuses: []
}, },
refundVisible: false,
refundParams: {},
searchForm: { searchForm: {
orderCode: '', orderCode: '',
orderStatuses: [], orderStatuses: [],
...@@ -331,7 +352,13 @@ export default { ...@@ -331,7 +352,13 @@ export default {
}, },
listeners: { listeners: {
click: row => { 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 { ...@@ -848,6 +875,27 @@ export default {
optionsName: 'testSheetTypeList' optionsName: 'testSheetTypeList'
}, },
{ {
label: '退款类型',
name: 'afterSaleType',
type: 'select',
optionList: [
{
confId: null,
confName: '全部'
},
{
confId: '2',
confName: '退定金'
},
{
confId: '1',
confName: '退订单'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '业务场景', label: '业务场景',
name: 'businessType', name: 'businessType',
type: 'select', type: 'select',
...@@ -971,7 +1019,12 @@ export default { ...@@ -971,7 +1019,12 @@ export default {
this.tableParams.tableColumns.splice(idx, 1) 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 () { // checkMerchant () {
// this.$apis.orderManage.checkMerchartApi({}).then(res => { // this.$apis.orderManage.checkMerchartApi({}).then(res => {
// this.isSpecialMerchat = res // this.isSpecialMerchat = res
...@@ -1231,6 +1284,23 @@ export default { ...@@ -1231,6 +1284,23 @@ export default {
min-width: 80px !important; min-width: 80px !important;
padding: 8px 12px !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 { .order-manage {
.container { .container {
padding: 20px 14px; padding: 20px 14px;
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <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"> <template slot="goodsImage" slot-scope="scope">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block"> <el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.goodsImage" /> <img class="table-popover-img" :src="scope.scope.goodsImage" />
...@@ -39,7 +38,6 @@ ...@@ -39,7 +38,6 @@
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import shareDialog from '../productGroup/components/shareDialog' import shareDialog from '../productGroup/components/shareDialog'
import { truncate } from 'fs'
export default { export default {
name: 'productGroup', name: 'productGroup',
data() { data() {
...@@ -194,7 +192,7 @@ export default { ...@@ -194,7 +192,7 @@ export default {
fn: '自建查看' fn: '自建查看'
}, },
condition: row => { condition: row => {
return row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3) return row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3 || row.goodsSource == 4)
}, },
listeners: { listeners: {
click: row => this.handleEdit(3, row) click: row => this.handleEdit(3, row)
...@@ -337,6 +335,10 @@ export default { ...@@ -337,6 +335,10 @@ export default {
{ {
confId: '3', confId: '3',
confName: '总部商品' confName: '总部商品'
},
{
confId: '4',
confName: '配置升级商品'
} }
] ]
} }
...@@ -346,8 +348,7 @@ export default { ...@@ -346,8 +348,7 @@ export default {
components: { components: {
shareDialog shareDialog
}, },
created() { created() {},
},
mounted() { mounted() {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
...@@ -522,8 +523,8 @@ export default { ...@@ -522,8 +523,8 @@ export default {
} else { } else {
this.$refs.proGroupRef.tableHeightValues = '' this.$refs.proGroupRef.tableHeightValues = ''
this.$refs.proGroupRef.data.forEach(item => { this.$refs.proGroupRef.data.forEach(item => {
item.saleAmount = item.goodsStatistics.saleAmount item.saleAmount = item.goodsStatistics&&item.goodsStatistics.saleAmount
if (item.specificationDetailList&&item.specificationDetailList.length > 1) { if (item.specificationDetailList && item.specificationDetailList.length > 1) {
let retailPriceList = JSON.parse(JSON.stringify(item.specificationDetailList)) let retailPriceList = JSON.parse(JSON.stringify(item.specificationDetailList))
retailPriceList.sort((a, b) => { retailPriceList.sort((a, b) => {
return a.retailPrice - b.retailPrice return a.retailPrice - b.retailPrice
...@@ -539,7 +540,7 @@ export default { ...@@ -539,7 +540,7 @@ export default {
item.retailPrice = minRatilPrice == maxRatilPrice ? minRatilPrice.toFixed(2) : minRatilPrice.toFixed(2) + '-' + maxRatilPrice.toFixed(2) item.retailPrice = minRatilPrice == maxRatilPrice ? minRatilPrice.toFixed(2) : minRatilPrice.toFixed(2) + '-' + maxRatilPrice.toFixed(2)
item.minRatilPrice = minRatilPrice.toFixed(2) item.minRatilPrice = minRatilPrice.toFixed(2)
item.goodsStock = minStock == maxStock ? minStock : minStock + '-' + maxStock 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.retailPrice = (item.specificationDetailList[0].retailPrice / 100).toFixed(2)
item.minRatilPrice = item.retailPrice item.minRatilPrice = item.retailPrice
item.goodsStock = item.specificationDetailList[0].stock 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!