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