Commit b5c2dbd5 by 前端

Merge branch 'v3.12.0' into 'DJ_master'

合并6月底版本

See merge request !27
2 parents 0e53ece7 3b757048
...@@ -65,6 +65,7 @@ const SERCH_GOODSNAME = { ...@@ -65,6 +65,7 @@ const SERCH_GOODSNAME = {
type: 'input', type: 'input',
isClear: true isClear: true
} }
const DISABLE_MERCHANTID =[44191564,44191528,44191536,44184606,44209510]
export default { export default {
name: '', name: '',
props: { props: {
...@@ -315,6 +316,7 @@ export default { ...@@ -315,6 +316,7 @@ export default {
created() { created() {
this.tableParams = this.tableParams2 this.tableParams = this.tableParams2
const { session } = this.$globalState const { session } = this.$globalState
this.merchantId = session.merchantId
this.accountLevel = session.accountLevel this.accountLevel = session.accountLevel
this.isAdmin = session.admin this.isAdmin = session.admin
// 1.工厂 2省代 3市代 4门店 // 1.工厂 2省代 3市代 4门店
...@@ -440,8 +442,11 @@ export default { ...@@ -440,8 +442,11 @@ export default {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startdate = utils.dateFormat(openInfo.openDate, 'YYYY-MM-DD 00:00:00') let startdate = utils.dateFormat(openInfo.openDate, 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(new Date(), 'YYYY-MM-DD 23:59:59') let endDate = utils.dateFormat(new Date(), 'YYYY-MM-DD 23:59:59')
params.paySuccessDateStartDate = startdate const ISEXIT = DISABLE_MERCHANTID.includes(Number(this.merchantId))
params.paySuccessDateEndDate = endDate if(!ISEXIT){
params.paySuccessDateStartDate = startdate
params.paySuccessDateEndDate = endDate
}
return params return params
}, },
getCurStoreId(e) { getCurStoreId(e) {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<span>,累计订单支付金额:</span> <span>,累计订单支付金额:</span>
<span style="color: #5850ff">¥{{ tableCountInfo.totalPrice || 0 }}</span> <span style="color: #5850ff">¥{{ tableCountInfo.totalPrice || 0 }}</span>
<span>元,累计导流方利润:</span> <span>元,累计导流方利润:</span>
<span style="color: #5850ff">{{ tableCountInfo.totalShopGrossProfit || 0 }}</span> <span style="color: #5850ff">{{ tableCountInfo.totalShopProfitMoney || 0 }}</span>
<span>元</span> <span>元</span>
</div> </div>
<div class="right_select"> <div class="right_select">
...@@ -64,9 +64,10 @@ ...@@ -64,9 +64,10 @@
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>支付方式:</span> <span>支付方式:</span>
<span v-if="orderDetail.payOrder.payType == 1" class="h19_title">微信支付</span> <!-- <span v-if="orderDetail.payOrder.payType == 1" class="h19_title">微信支付</span>
<span v-if="orderDetail.payOrder.payType == 2" class="h19_title">线下支付</span> <span v-if="orderDetail.payOrder.payType == 2" class="h19_title">线下支付</span>
<span v-if="orderDetail.payOrder.payType == 3" class="h19_title">POS机收款</span> <span v-if="orderDetail.payOrder.payType == 3" class="h19_title">POS机收款</span> -->
<span v-if="orderDetail.payOrder.payType" class="h19_title">{{pageTypeObj[orderDetail.payOrder.payType]}}</span>
</div> </div>
<div class="info_text flex_img"> <div class="info_text flex_img">
<span>收款凭证:</span> <span>收款凭证:</span>
...@@ -201,6 +202,14 @@ import { converterApi } from '../../api/modules/converter' ...@@ -201,6 +202,14 @@ import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util' import utils from '../../util/util'
const logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务'] const logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务']
const orderStatusList = ['待升级', '未升级', '待支付', '已支付', '已退款', '已完成'] const orderStatusList = ['待升级', '未升级', '待支付', '已支付', '已退款', '已完成']
const PAYTYPEOBJ = {
1: "微信支付",
2: "4S店支付",
3: "POS机收款",
4: "支付宝支付",
5: "嘀加收款"
}
const DISABLE_MERCHANTID =[44191564,44191528,44191536,44184606,44209510]
export default { export default {
name: '', name: '',
...@@ -209,6 +218,7 @@ export default { ...@@ -209,6 +218,7 @@ export default {
}, },
data() { data() {
return { return {
pageTypeObj:PAYTYPEOBJ,
dynamicTableShow: true, dynamicTableShow: true,
rowNumber: 2, rowNumber: 2,
refreshKey: Date.now(), refreshKey: Date.now(),
...@@ -255,7 +265,15 @@ export default { ...@@ -255,7 +265,15 @@ export default {
{ {
confId: 3, confId: 3,
confName: 'POS机' confName: 'POS机'
} },
{
confId: 4,
confName: '支付宝支付'
},
{
confId: 5,
confName: '嘀加收款'
},
] ]
}, },
{ {
...@@ -703,13 +721,17 @@ export default { ...@@ -703,13 +721,17 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.merchantId);
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate) let startDate = utils.dateFormat(openInfo.openDate)
let endDate = utils.dateFormat(new Date()) let endDate = utils.dateFormat(new Date())
this.openCount = openInfo.openCount || 0 this.openCount = openInfo.openCount || 0
let params = { let params = {}
payStartDateStr: utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00'), // 2023.6.28 特殊门店不需要默认传支付时间
payEndDateStr: utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59') const ISEXIT = DISABLE_MERCHANTID.includes(Number(this.merchantId))
if(!ISEXIT){
params.payStartDateStr = utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00')
params.payEndDateStr = utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59')
} }
this.defaultStart = utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00') this.defaultStart = utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00')
this.defaultEnd = utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59') this.defaultEnd = utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59')
...@@ -887,8 +909,11 @@ export default { ...@@ -887,8 +909,11 @@ export default {
params.payStartDateStr = startDate params.payStartDateStr = startDate
params.payEndDateStr = endDate params.payEndDateStr = endDate
} else { } else {
params.payStartDateStr = this.defaultStart const ISEXIT = DISABLE_MERCHANTID.includes(Number(this.merchantId))
params.payEndDateStr = this.defaultEnd if(!ISEXIT){
params.payStartDateStr = this.defaultStart
params.payEndDateStr = this.defaultEnd
}
} }
if (this.searchForm.payType || this.searchForm.payType === 0) { if (this.searchForm.payType || this.searchForm.payType === 0) {
//支付方式 //支付方式
...@@ -942,7 +967,8 @@ export default { ...@@ -942,7 +967,8 @@ export default {
item.rule = `${ruleType}${item.shopTrafficMoneyCalculateType == 0 ? '' : item.shopTrafficMoneyCalculateValue}${item.shopTrafficMoneyCalculateType == 0 ? '' : '%'}` item.rule = `${ruleType}${item.shopTrafficMoneyCalculateType == 0 ? '' : item.shopTrafficMoneyCalculateValue}${item.shopTrafficMoneyCalculateType == 0 ? '' : '%'}`
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账' item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账'
item.paySuccessDate = utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss') item.paySuccessDate = utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss')
item.payTypeName = item.payType == 1 ? '微信支付' : item.payType == 2 ? '线下收款' : 'POS机' // item.payTypeName = item.payType == 1 ? '微信支付' : item.payType == 2 ? '线下收款' : 'POS机'
item.payTypeName = PAYTYPEOBJ[item.payType]
return item return item
}) })
this.tableTotal = res.total this.tableTotal = res.total
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!