Commit c0dbf650 by 前端

Merge branch 'SAAS+V4.53.0-0528' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.53.0-0528
2 parents b6df2a27 8afdc3d0
...@@ -299,3 +299,15 @@ export function getSonCarBrandIds(data) { ...@@ -299,3 +299,15 @@ export function getSonCarBrandIds(data) {
data.method = 'dj.api.car.series.list.by.son.car.brandIds' data.method = 'dj.api.car.series.list.by.son.car.brandIds'
return request(data, "post") return request(data, "post")
} }
/** 删除平板首页配置 */
export function deleteConfig(data) {
data.method = 'dj.api.mindworkplate.pad.home.page.config.delete'
return request(data, "post")
}
/** 接待首页素材详情 */
export function getMateralDetail(data) {
data.method = 'dj.api.smartcarlife.reception.home.page.material.detail'
return request(data, "post")
}
\ No newline at end of file \ No newline at end of file
...@@ -100,3 +100,9 @@ export function getOrderByScore(data) { ...@@ -100,3 +100,9 @@ export function getOrderByScore(data) {
data.method = `dj.api.smartcarlife.staff.motivation.order.score` data.method = `dj.api.smartcarlife.staff.motivation.order.score`
return request(data) return request(data)
} }
/** 积分退款订单详情查询 */
export function getGoodsSubOrder(data) {
data.method = 'dj.api.smartcarlife.goodsOrder.goodsSubOrder.list'
return request(data)
}
\ No newline at end of file \ No newline at end of file
...@@ -31,7 +31,7 @@ export const routerName = { ...@@ -31,7 +31,7 @@ export const routerName = {
authId: "9140104", authId: "9140104",
parentId: "91401", parentId: "91401",
label: "标记退款", label: "标记退款",
handle: "handleRefund" handle: "openRefundDetail"
}, },
{ {
authId: "9140102", authId: "9140102",
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData"> :form-data="showFormData">
<template slot="brand"> <template slot="brand">
<el-cascader ref="cascader" v-model="searchForm.brandId" filterable :options="options" :value-key="'id'" :props="cascaderProps" <el-cascader ref="cascader" v-model="searchForm.brandId" filterable :options="options" :value-key="'id'"
clearable></el-cascader> :props="cascaderProps" clearable></el-cascader>
</template> </template>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
...@@ -24,11 +24,56 @@ ...@@ -24,11 +24,56 @@
</d2-table-header> </d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<div slot="brandName" slot-scope="scope">
<template v-if="scope.scope.brandName">
{{ scope.scope.brandName.split(",").length > 1 ? scope.scope.brandName.split(",")[0] + '...' :
scope.scope.brandName.split(",")[0]}}
<el-popover placement="top-start" width="200" trigger="hover">
<p v-for="(item, index) in scope.scope.brandName.split(',')" :key="index">
{{ item }}
</p>
<span class="trick-no" slot="reference" v-show="scope.scope.brandName.split(',').length > 1">({{
scope.scope.brandName.split(",").length - 1 }})</span>
<!-- <el-button slot="reference">hover 激活</el-button> -->
</el-popover>
</template>
<template v-else>-</template>
</div>
<div slot="subBrandName" slot-scope="scope">
<template v-if="scope.scope.subBrandName">
{{ scope.scope.subBrandName.split(",").length > 1 ? scope.scope.subBrandName.split(",")[0] + '...' :
scope.scope.subBrandName.split(",")[0]}}
<el-popover placement="top-start" width="200" trigger="hover">
<p v-for="(item, index) in scope.scope.subBrandName.split(',')" :key="index">
{{ item }}
</p>
<span class="trick-no" slot="reference" v-show="scope.scope.subBrandName.split(',').length > 1">({{
scope.scope.subBrandName.split(",").length - 1 }})</span>
<!-- <el-button slot="reference">hover 激活</el-button> -->
</el-popover>
</template>
<template v-else>-</template>
</div>
<div slot="merchantName" slot-scope="scope">
<template v-if="scope.scope.merchantName">
{{ scope.scope.merchantName.split(",").length > 1 ? scope.scope.merchantName.split(",")[0] + '...' :
scope.scope.merchantName.split(",")[0]}}
<el-popover placement="top-start" width="200" trigger="hover">
<p v-for="(item, index) in scope.scope.merchantName.split(',')" :key="index">
{{ item }}
</p>
<span class="trick-no" slot="reference" v-show="scope.scope.merchantName.split(',').length > 1">({{
scope.scope.merchantName.split(",").length - 1 }})</span>
<!-- <el-button slot="reference">hover 激活</el-button> -->
</el-popover>
</template>
<template v-else>-</template>
</div>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleEdit(scope.scope)"> <el-button type="text" @click="handleEdit(scope.scope)">
编辑 编辑
</el-button> </el-button>
<el-button type="text" @click="handleClone(scope.scope)"> <el-button type="text" @click="handleDelete(scope.scope)">
删除 删除
</el-button> </el-button>
</div> </div>
...@@ -39,7 +84,7 @@ ...@@ -39,7 +84,7 @@
</template> </template>
<script> <script>
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
import { getConfigList, getCarbrandTree, getListShop4sByRef } from "@api/contentManager" import { getConfigList, getCarbrandTree, getListShop4sByRef, deleteConfig, getMateralDetail } from "@api/contentManager"
export default { export default {
data() { data() {
return { return {
...@@ -71,62 +116,29 @@ export default { ...@@ -71,62 +116,29 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: "品牌", label: "品牌",
prop: "merchantName" prop: "brandName",
addHtml: "brandName"
}, },
{ {
label: "子品牌", label: "子品牌",
prop: "merchantId" prop: "subBrandName",
addHtml: "subBrandName"
}, },
{ {
label: "关联门店", label: "关联门店",
prop: "merchantId", prop: "merchantName",
addHtml: "polishContent" addHtml: "merchantName"
}, },
{ {
label: "更新时间", label: "更新时间",
prop: "merchantId", prop: "updatedDate",
}, },
] ]
}, },
baseData: { baseData: {
shopList: [], shopList: [],
}, },
options: [{ options: [],
value: 'zhinan',
label: '指南',
children: [{
value: 'shejiyuanze',
label: '设计原则',
}, {
value: 'daohang',
label: '导航'
}]
}, {
value: 'zujian',
label: '组件',
children: [{
value: 'basic',
label: 'Basic',
}, {
value: 'form',
label: 'Form',
}, {
value: 'data',
label: 'Data',
}, {
value: 'notice',
label: 'Notice',
}, {
value: 'navigation',
label: 'Navigation',
}, {
value: 'others',
label: 'Others',
}]
}, {
value: 'ziyuan',
label: '资源',
}],
cascaderProps: { checkStrictly: true, value: 'id' } cascaderProps: { checkStrictly: true, value: 'id' }
} }
}, },
...@@ -138,7 +150,7 @@ export default { ...@@ -138,7 +150,7 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
const {brandId} = this.searchFormSearch const { brandId } = this.searchFormSearch
if (brandId) { if (brandId) {
this.searchFormSearch.brandId = brandId[brandId.length - 1] this.searchFormSearch.brandId = brandId[brandId.length - 1]
} }
...@@ -217,6 +229,37 @@ export default { ...@@ -217,6 +229,37 @@ export default {
}, },
handleDialog() { handleDialog() {
this.$router.push({ name: "addEquity" }) this.$router.push({ name: "addEquity" })
},
async handleEdit(row) {
const res = await getMateralDetail({id: row.id})
console.log(res)
this.$router.push({ name: "addEquity", query: {
id: row.id,
isRelMerchant: res.isRelMerchant,
materialInfoList: res.materialInfoList,
brandData: res.relBrandList,
storeData: res.relMerchantList
} })
},
handleDelete(row) {
this.$confirm("删除后相关品牌素材将从展业助手中移除", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
closeOnClickModal: false
})
.then(async() => {
const res = await deleteConfig({id: row.id})
if (res) {
this.$message.success('删除成功')
this.$refs.table.refreshTable(true, true)
}
else this.$message.error('删除失败')
})
.catch((err) => {
console.log(err)
})
} }
} }
} }
...@@ -225,4 +268,11 @@ export default { ...@@ -225,4 +268,11 @@ export default {
.m-t-40 { .m-t-40 {
margin-top: 40px; margin-top: 40px;
} }
.trick-no {
cursor: pointer;
font-size: 13px;
color: #2a58ad;
line-height: 20px;
}
</style> </style>
...@@ -70,7 +70,8 @@ export default { ...@@ -70,7 +70,8 @@ export default {
props: { props: {
dialogVisible: Boolean, dialogVisible: Boolean,
formInfo: Object, formInfo: Object,
brandData: Array brandData: Array,
levelId: Number
}, },
watch: { watch: {
formInfo(val) { formInfo(val) {
...@@ -99,7 +100,8 @@ export default { ...@@ -99,7 +100,8 @@ export default {
seriesId: carSeries.id, seriesId: carSeries.id,
seriesName: carSeries.name, seriesName: carSeries.name,
contentPicUrl, contentPicUrl,
index index,
levelId: this.levelId
} }
this.$emit("dialogConfirm", obj) this.$emit("dialogConfirm", obj)
this.formData = { this.formData = {
......
...@@ -1445,7 +1445,6 @@ export default { ...@@ -1445,7 +1445,6 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
this.$EventBus.$off("packageInfoList") this.$EventBus.$off("packageInfoList")
this.$EventBus.$off("shelfUpdateContractMer")
this.$EventBus.$off("shelfUpdateParMer") this.$EventBus.$off("shelfUpdateParMer")
this.$EventBus.$off("shelfUpdatMerchantId") this.$EventBus.$off("shelfUpdatMerchantId")
} }
......
...@@ -118,12 +118,11 @@ export default { ...@@ -118,12 +118,11 @@ export default {
return this.goodInfoList return this.goodInfoList
}, },
submitParamsPackages() { submitParamsPackages() {
this.goodInfoList = [] this.packageInfoList = []
this.packageTabs.forEach((item, idx) => { this.packageTabs.forEach((item, idx) => {
const info = this.$refs["packageTabRef" + idx][0].returnThisTabDate() const info = this.$refs["packageTabRef" + idx][0].returnThisTabDate()
this.packageInfoList.push(info) this.packageInfoList.push(info)
}) })
// console.log("this.packageInfoList", this.packageInfoList)
return this.packageInfoList return this.packageInfoList
}, },
submit() { submit() {
......
...@@ -163,10 +163,6 @@ export default { ...@@ -163,10 +163,6 @@ export default {
merchantName: merchantName merchantName: merchantName
} }
}) })
// this.$EventBus.$emit("shelfUpdateContractMer", {
// merchantId: value,
// merchantName: merchantName
// })
} }
}, },
{ {
......
...@@ -541,7 +541,7 @@ export default { ...@@ -541,7 +541,7 @@ export default {
}, },
salesProportionPercentInput(e) { salesProportionPercentInput(e) {
e = e.replace(/[^\d.]/g, "") e = e.replace(/[^\d.]/g, "")
const oldValue = `${this.formData["salesProportionPercent"]}` const oldValue = `${this.formData["oldesalesProportionPercent"]}`
this.$set( this.$set(
this.formData, this.formData,
"salesProportionPercent", "salesProportionPercent",
......
...@@ -509,7 +509,7 @@ export default { ...@@ -509,7 +509,7 @@ export default {
}), }),
salesProportionPercentInput(e) { salesProportionPercentInput(e) {
e = e.replace(/[^\d.]/g, "") e = e.replace(/[^\d.]/g, "")
const oldValue = `${this.packageForm["salesProportionPercent"]}` const oldValue = `${this.packageForm["oldesalesProportionPercent"]}`
this.$set( this.$set(
this.packageForm, this.packageForm,
"salesProportionPercent", "salesProportionPercent",
......
...@@ -1473,7 +1473,6 @@ export default { ...@@ -1473,7 +1473,6 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
this.$EventBus.$off("packageInfoList") this.$EventBus.$off("packageInfoList")
this.$EventBus.$off("shelfUpdateContractMer")
this.$EventBus.$off("shelfUpdateParMer") this.$EventBus.$off("shelfUpdateParMer")
this.$EventBus.$off("shelfUpdatMerchantId") this.$EventBus.$off("shelfUpdatMerchantId")
} }
......
...@@ -169,10 +169,6 @@ export default { ...@@ -169,10 +169,6 @@ export default {
merchantName: merchantName merchantName: merchantName
} }
}) })
// this.$EventBus.$emit("shelfUpdateContractMer", {
// merchantId: value,
// merchantName: merchantName
// })
} }
}, },
{ {
......
...@@ -215,7 +215,7 @@ export default { ...@@ -215,7 +215,7 @@ export default {
} }
var params = { var params = {
businessCode: this.routeObj.businessCode, businessCode: this.routeObj.businessCode,
merchant: this.$refs.shopMerchant.editData, merchants: this.$refs.shopMerchant.editData,
settleDistributeRule: this.$refs.divisionConfig.submitParams, settleDistributeRule: this.$refs.divisionConfig.submitParams,
reconciliationRule: this.$refs.financeConfig.submitParams reconciliationRule: this.$refs.financeConfig.submitParams
} }
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
businessCode: this.routeObj.businessCode, businessCode: this.routeObj.businessCode,
goods: this.$refs.goodsInfo.submitParamsGoods(), goods: this.$refs.goodsInfo.submitParamsGoods(),
packages: this.$refs.goodsInfo.submitParamsPackages(), packages: this.$refs.goodsInfo.submitParamsPackages(),
merchant: [this.$refs.shopMerchant.editData], merchants: [this.$refs.shopMerchant.editData],
settleDistributeRule: settleDistributeRule:
settleDistributeRule || this.$refs.divisionConfig.submitParams, settleDistributeRule || this.$refs.divisionConfig.submitParams,
reconciliationRule: reconciliationRule:
......
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
} }
var params = { var params = {
businessCode: this.routeObj.businessCode, businessCode: this.routeObj.businessCode,
merchant: this.$refs.multilateralShopMerchant.getAllParams(), merchants: this.$refs.multilateralShopMerchant.getAllParams(),
settleDistributeRule: this.$refs.divisionConfig.submitParams, settleDistributeRule: this.$refs.divisionConfig.submitParams,
reconciliationRule: this.$refs.financeConfig.submitParams reconciliationRule: this.$refs.financeConfig.submitParams
} }
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
businessCode: this.routeObj.businessCode, businessCode: this.routeObj.businessCode,
goods: this.$refs.goodsInfo.submitParamsGoods(), goods: this.$refs.goodsInfo.submitParamsGoods(),
packages: this.$refs.goodsInfo.submitParamsPackages(), packages: this.$refs.goodsInfo.submitParamsPackages(),
merchant: this.$refs.multilateralShopMerchant.getAllParams(), merchants: this.$refs.multilateralShopMerchant.getAllParams(),
settleDistributeRule: settleDistributeRule:
settleDistributeRule || this.$refs.divisionConfig.submitParams, settleDistributeRule || this.$refs.divisionConfig.submitParams,
reconciliationRule: reconciliationRule:
......
...@@ -138,6 +138,16 @@ export default { ...@@ -138,6 +138,16 @@ export default {
optionsName: "approveTypeOpt" optionsName: "approveTypeOpt"
}, },
{ {
label: "上架类型",
name: "shelfType",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "shelfTypeOpt"
},
{
label: "系统状态", label: "系统状态",
name: "systemStatus", name: "systemStatus",
type: "select", type: "select",
......
...@@ -368,6 +368,14 @@ export default { ...@@ -368,6 +368,14 @@ export default {
busiInfoAttrObj: { busiInfoAttrObj: {
fixed: [ fixed: [
{ {
label: "退款子项",
name: "refundSubOrderCode"
},
{
label: "可退总价",
name: "refundableTotalPrice"
},
{
label: "退款类型", label: "退款类型",
name: "refundTypeTxt" name: "refundTypeTxt"
}, },
......
<template> <template>
<d2-dialog title="请选择退款明细" :is-visible.sync="refundVisible" width="70%" btn-ok-label="下一步" <el-dialog title="请选择退款明细" :visible.sync="refundVisible" :before-close="handleClose"
@confirmDialog="handleConfirm" @closeDialog="handleClose" class="relateStore"> :close-on-click-modal="false" width="70%" class="relateStore">
<div> <div>
<el-table ref="seletingTable" :data="tableData" class="table" border @select="handleChange" <el-table ref="seletingTable" :data="tableData" class="table" border @select="handleChange"
@select-all="handleAll"> @select-all="handleAll">
...@@ -15,7 +15,11 @@ ...@@ -15,7 +15,11 @@
</el-table> </el-table>
<div class="total">可选可退总价:<div class="price">¥{{ total }}</div></div> <div class="total">可选可退总价:<div class="price">¥{{ total }}</div></div>
</div> </div>
</d2-dialog> <span slot="footer" class="dialog-footer">
<el-button @click="handleClose">取 消</el-button>
<el-button type="primary" @click="handleConfirm" :disabled="!refundSubOrderCode">下一步</el-button>
</span>
</el-dialog>
</template> </template>
<script> <script>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
> >
<div class="detail-content"> <div class="detail-content">
<div class="form_div"> <div class="form_div">
<el-form class="edit-sub-block" label-width="110px" :inline="true"> <el-form class="edit-sub-block" label-width="140px" :inline="true">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="客户:"> <el-form-item label="客户:">
...@@ -154,6 +154,26 @@ ...@@ -154,6 +154,26 @@
{{ addScore ? addScore : "-" }} {{ addScore ? addScore : "-" }}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col
:span="8"
v-if="detailInfo.status == '已失效'"
>
<el-form-item label="退款金额:" class="halfItem">
{{
detailInfo.orderMoney
? "¥" + detailInfo.orderMoney.toFixed(2)
: "-"
}}
</el-form-item>
</el-col>
<el-col
:span="8"
v-if="detailInfo.status == '已失效'"
>
<el-form-item label="退款子订单信息:" class="halfItem">
{{ detailInfo.refundSubOrderCode ? detailInfo.refundSubOrderCode : "-" }}
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
......
<template>
<el-dialog title="请选择退款明细" :visible.sync="refundVisible" :before-close="handleClose"
:close-on-click-modal="false" width="70%" class="relateStore">
<div>
<el-table ref="seletingTable" :data="tableData" class="table" border @select="handleChange"
@select-all="handleAll">
<el-table-column :selectable-fn="selectableFn" type="selection" width="55" align="center" />
<template v-for="item in tableColumn">
<el-table-column :prop="item.prop" :label="item.label" align="center">
<span slot-scope="scope">{{
scope.row[item.prop] ? scope.row[item.prop] : "-"
}}</span>
</el-table-column>
</template>
</el-table>
<div class="total">可选可退总价:<div class="price">¥{{ total }}</div></div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose">取 消</el-button>
<el-button type="primary" @click="handleConfirm" :disabled="!refundSubOrderCode">下一步</el-button>
</span>
</el-dialog>
</template>
<script>
import { getGoodsSubOrder } from "@api/point"
export default {
name: 'refundDetail',
data() {
return {
tableData: [],
tableColumn: [
{
label: '子订单编码',
prop: 'subOrderCode'
},
{
label: '商品名称',
prop: 'goodsName'
},
{
label: '商品别名',
prop: 'goodsAlias'
},
{
label: '商品ID',
prop: 'goodsCommodityCode'
},
{
label: '分类',
prop: 'upgradeGoodsTypeName'
},
{
label: '售价',
prop: 'upgradePrice'
},
{
label: '数量/件',
prop: 'number'
},
{
label: '支付金额',
prop: 'totalPrice'
}
],
total: 0,
refundSubOrderCode: ''
}
},
props: {
refundVisible: {
type: Boolean,
default: false
},
dataInfo: {
type: Object,
default: {}
}
},
watch: {
dataInfo(val) {
console.log(val)
if (val && val.orderCode) this.getList(val.orderCode)
}
},
methods: {
// 设置禁用
selectableFn(row) {
console.log(row)
if (row.status == 2) return false
else if (row.status == 1) return true
},
async getList(orderCode) {
const res = await getGoodsSubOrder({ orderCode })
this.tableData = res
},
handleChange(selection) {
console.log(selection)
this.getParams(selection)
},
handleAll(selection) {
console.log(selection)
this.getParams(selection)
},
getParams(selection) {
let _total = 0
let _refundSubOrderCode = []
selection.forEach(item => {
_total += item.totalPrice
_refundSubOrderCode.push(item.subOrderCode)
})
this.total = _total
this.refundSubOrderCode = _refundSubOrderCode.join('/')
console.log(this.refundSubOrderCode)
},
handleConfirm() {
const {refundSubOrderCode, total} = this
this.$emit("handleConfirm", {
total,
refundSubOrderCode
})
},
handleClose() {
this.$emit("handleClose")
}
}
}
</script>
<style lang="scss" scoped>
.total {
display: flex;
align-items: center;
color: #666666;
font-size: 14px;
.price {
color: #2A58AD;
margin-left: 10px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -103,11 +103,13 @@ ...@@ -103,11 +103,13 @@
> >
</glsx-combi-form> </glsx-combi-form>
</d2-dialog> </d2-dialog>
<refundDetail :dataInfo="dataInfo" :refundVisible="refundDetailVisible" @handleClose="handleRefundDetailClose" @handleConfirm="handleConfirm"></refundDetail>
</div> </div>
</d2-container> </d2-container>
</template> </template>
<script> <script>
import refundDetail from './components/refundDetail'
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import detailDialog from "./components/detailDialog" import detailDialog from "./components/detailDialog"
...@@ -125,7 +127,8 @@ import { ...@@ -125,7 +127,8 @@ import {
export default { export default {
name: "PointList", name: "PointList",
components: { components: {
detailDialog detailDialog,
refundDetail
}, },
data() { data() {
var checkIntegral = (rule, value, callback) => { var checkIntegral = (rule, value, callback) => {
...@@ -387,7 +390,10 @@ export default { ...@@ -387,7 +390,10 @@ export default {
width: "290px", width: "290px",
isDisabled: false isDisabled: false
} }
] ],
refundDetailVisible: false,
dataInfo: {},
refundInfo: {}
} }
}, },
computed: { computed: {
...@@ -650,6 +656,24 @@ export default { ...@@ -650,6 +656,24 @@ export default {
// }) // })
}) })
}, },
// 添加选择退款明细弹窗
openRefundDetail(data) {
this.refundDetailVisible = true
this.dataInfo = {
orderCode: data.orderCode
}
this.refundInfo = data
},
handleRefundDetailClose() {
this.refundDetailVisible = false
},
handleConfirm(val) {
console.log(val, '=====')
this.refundInfo.refundSubOrderCode = val.refundSubOrderCode
this.refundInfo.total = val.total
this.handleRefund(this.refundInfo) // 原来的逻辑
this.refundDetailVisible = false
},
//标记退款 //标记退款
handleRefund(data) { handleRefund(data) {
this.refundVisible = true this.refundVisible = true
...@@ -660,6 +684,8 @@ export default { ...@@ -660,6 +684,8 @@ export default {
this.refundForm.refundPoints = data.integralIncome //退还积分 this.refundForm.refundPoints = data.integralIncome //退还积分
this.refundForm.refundAmount = data.orderMoney //退还金额 this.refundForm.refundAmount = data.orderMoney //退还金额
this.refundForm.staffUuid = data.staffUuid this.refundForm.staffUuid = data.staffUuid
this.refundForm.refundSubOrderCode = data.refundSubOrderCode
this.refundForm.refundableTotalPrice = data.total
//当前积分能抵扣的最大值 //当前积分能抵扣的最大值
this.getScore() this.getScore()
}, },
...@@ -721,7 +747,9 @@ export default { ...@@ -721,7 +747,9 @@ export default {
refundPoints: this.refundForm.refundPoints, refundPoints: this.refundForm.refundPoints,
refundAmount: this.refundForm.refundAmount, refundAmount: this.refundForm.refundAmount,
employeeUserId: this.refundForm.employeeUserId, employeeUserId: this.refundForm.employeeUserId,
employeeName: this.refundForm.employeeName employeeName: this.refundForm.employeeName,
refundSubOrderCode: this.refundForm.refundSubOrderCode,
refundableTotalPrice: this.refundForm.refundableTotalPrice
}) })
.then((res) => { .then((res) => {
if (res) { if (res) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!