Commit 2409d3cb by 张立顺

Merge branch 'dev_v4.25.1' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into dev_v4.25.1
2 parents 74120fdc 29e02f2e
......@@ -606,6 +606,21 @@ export const orderManageStatusList = [
{ confId: "10", confName: "售后完成" },
{ confId: "11", confName: "待审批" }
]
export const orderManageStatusList_integral = [
{ confId: "1", confName: "待付款" },
{ confId: "2", confName: "已支付" },
{ confId: "3", 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: "售后完成" },
{ confId: "11", confName: "待审批" }
]
export const orderSourceList = [
{ confId: "1", confName: "商城订单" },
{ confId: "2", confName: "直播订单" },
......
......@@ -82,7 +82,7 @@
label="服务项目:">
<span>{{ !filterEmpty(item.serviceItemNames) ? item.serviceItemNames : '无' }}</span>
</el-form-item>
<el-form-item class="d2-drawer-item"
<el-form-item class="d2-drawer-item flex_1"
v-if="$$(commodityInfo.goodsInfo,'goodsType') == 1"
label="部位:">
<span>{{ item.positionNames }}</span>
......@@ -145,7 +145,7 @@ export default {
getInfo(id) {
getGoodsInfoById({ id: id }).then(res => {
res?.upgradeGoodsList?.forEach(item => {
let positionNamesArr = item?.goodsInfo?.goodsType == 1 ? deepClone(this.positionTypeList).filter(val => item.position.includes(val.position)) : []
let positionNamesArr = item?.goodsInfo?.goodsType == 1 ? deepClone(this.positionTypeList).filter(val => item.position?.includes(val.position)) : []
item.positionNames = positionNamesArr.length ? positionNamesArr.map(subItem => { return subItem?.confName }).join('/') : ''
item.serviceItemNames = item?.upgradeGoodsServiceItemsList?.map(v => { return `${v.serviceName}-${v.serviceGrade}/${v.servicePeriod}` })?.join(',')
})
......
......@@ -204,6 +204,7 @@ export default {
created() { },
mounted() {
this.routeInfo = this.$route.query
this.getCrowdfundingOrderConfig()
},
......@@ -273,7 +274,7 @@ export default {
name: "finalPaymentAmount"
},
{
label: "发货地址",
label: this.routeInfo.orderType == 'integralShopping' ? "收货人信息" : "发货地址",
name: "shipAddress"
},
{
......@@ -307,7 +308,6 @@ export default {
// }
]
this.detailFormData = detailFormData
this.routeInfo = this.$route.query
this.getInfo()
this.formToRow("afterInfoData")
},
......
......@@ -981,7 +981,7 @@ export default {
label: "订单状态",
name: "orderStatuses",
type: "select",
// multiple: true,
multiple: true,
optionList: [],
optionId: "confId",
optionLabel: "confName",
......
......@@ -23,7 +23,7 @@
<div class="tab-list">
<div class="tabs">
<el-tabs type="card"
v-model="searchForm.requestSource"
v-model="tabClickVal"
@tab-click="handleTabClick">
<template v-for="(i, index) in requestSourceList">
<el-tab-pane :label="i"
......@@ -241,7 +241,7 @@
<script>
import {
businessType,
orderManageStatusList,
orderManageStatusList_integral,
afterSaleStatusList,
orderSourceList,
deliveryTypeList
......@@ -258,6 +258,7 @@ export default {
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
isExpressVisible: false,
isEdit: true,
editChildRef: 'editChildRef',
......@@ -299,7 +300,8 @@ export default {
shareStaffName: "",
shareStaffType: "",
goodsName: "",
requestSource: "0"
requestSource: "0",
payStatus: ''
},
statisticsInfo: {
orderCount: "",
......@@ -362,19 +364,19 @@ export default {
"全部订单",
"已付款",
"未付款",
"已退款",
"售后订单"
// "已退款",
// "售后订单"
// "待审批"
],
// 基本数据
baseData: {
searchOrderStatusList: orderManageStatusList.filter((item) =>
searchOrderStatusList: orderManageStatusList_integral.filter((item) =>
["1", "3", "21", "22", "6", "9"].includes(item.confId)
),
searchAfterSaleStatusList: afterSaleStatusList.filter((item) =>
["1", "6", "7"].includes(item.confId)
),
orderStatusList: orderManageStatusList,
orderStatusList: orderManageStatusList_integral,
afterSaleStatusList: afterSaleStatusList,
orderSourceList: orderSourceList,
deliveryTypeList: deliveryTypeList,
......@@ -418,13 +420,15 @@ export default {
},
ruleVisible: false,
recordInfo: null,
ruleInfoVisible: false
ruleInfoVisible: false,
tabClickVal: ''
}
},
name: "IntegralShopping",
mounted() {
this.getCrowdfundingOrderConfig()
this.getCount()
// this.getCount()
},
methods: {
ruleDialogClose(flag) {
......@@ -489,6 +493,7 @@ export default {
if (valid) {
var params = deepClone(this.expressForm)
params.orderCode = this.orderCode
params.userName = this.userInfo.loginAccount.userName
// console.log(params)
// return
orderManage.addDeliveryApi(params).then(res => {
......@@ -533,7 +538,7 @@ export default {
},
handleSearch() {
this.$refs.crowdfundTable.refreshTable()
this.getCount()
// this.getCount()
},
handleExport() {
var params = this.getParams()
......@@ -542,8 +547,18 @@ export default {
})
},
handleTabClick() {
if (this.tabClickVal == 1) {//查询已付款
this.searchForm.payStatus = 2
this.searchForm.requestSource = 0
} else if (this.tabClickVal == 2) {//查询未付款
this.searchForm.payStatus = ''
this.searchForm.requestSource = 2
} else {//查询全部订单
this.searchForm.payStatus = ''
this.searchForm.requestSource = 0
}
this.$refs.crowdfundTable.refreshTable()
this.getCount()
// this.getCount()
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
......@@ -582,7 +597,8 @@ export default {
shareStaffName: "",
shareStaffType: "",
goodsName: "",
requestSource: "0"
requestSource: "0",
payStatus: ''
}
this.handleSearch()
},
......@@ -600,34 +616,51 @@ export default {
label: "商品名称",
prop: "customerName",
width: 180,
html: true,
formatter: (cellValue) => {
return cellValue.orderGoods?.length
? cellValue.orderGoods.map((item) => item.goodsName).join(",")
: "-"
var html = '-'
var list = []
if (cellValue.orderGoods && cellValue.orderGoods.length > 0) {
cellValue.orderGoods.map(item => {
list.push(item.goodsName)
})
html = list.join('<br>')
}
return html
}
},
{
label: "单价(元)",
prop: "goodsPrice",
width: "120",
html: true,
formatter: (cellValue) => {
let _goodsPrice = "0"
if (cellValue.orderGoods) {
_goodsPrice = cellValue.orderGoods[0].activityPrice
var html = '-'
var list = []
if (cellValue.orderGoods && cellValue.orderGoods.length > 0) {
cellValue.orderGoods.map(item => {
list.push(item.activityPrice)
})
html = list.join('<br>')
}
return _goodsPrice
return html
}
},
{
label: "数量",
prop: "goodsNum",
width: "120",
html: true,
formatter: (cellValue) => {
let _goodsNum = "0"
if (cellValue.orderGoods) {
_goodsNum = cellValue.orderGoods[0].goodsNumber
var html = '-'
var list = []
if (cellValue.orderGoods && cellValue.orderGoods.length > 0) {
cellValue.orderGoods.map(item => {
list.push(item.goodsNumber)
})
html = list.join('<br>')
}
return _goodsNum
return html
}
},
{
......@@ -715,6 +748,11 @@ export default {
formatter: (cellValue) => {
return { 0: "未分账", 1: "待确认", 2: "待分账", 3: "已分账", 4: "分账中" }[cellValue.ledgerStatus] || "-"
}
},
{
label: "商户名称",
prop: "merchantName",
width: "180"
}
]
const searchFormData = [
......@@ -761,7 +799,7 @@ export default {
label: "订单状态",
name: "orderStatuses",
type: "select",
// multiple: true,
multiple: true,
optionList: [],
optionId: "confId",
optionLabel: "confName",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!