Commit d593a9cb by cen

fix: 修复bug

1 parent 16c4d793
...@@ -2,7 +2,7 @@ import http from '../request/http' ...@@ -2,7 +2,7 @@ import http from '../request/http'
module.exports = { module.exports = {
/**新建车损报价单 */ /**新建车损报价单 */
quotationAdd (data) { quotationAdd(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add',
projectName: 'boutique', projectName: 'boutique',
...@@ -10,7 +10,7 @@ module.exports = { ...@@ -10,7 +10,7 @@ module.exports = {
}) })
}, },
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */ /** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade (data) { quotationUpgrade(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate',
projectName: 'boutique', projectName: 'boutique',
...@@ -18,7 +18,7 @@ module.exports = { ...@@ -18,7 +18,7 @@ module.exports = {
}) })
}, },
// 校验订单是否需要上传合同协议 // 校验订单是否需要上传合同协议
checkZyPayFlag (data) { checkZyPayFlag(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check',
projectName: 'boutique', projectName: 'boutique',
...@@ -27,7 +27,7 @@ module.exports = { ...@@ -27,7 +27,7 @@ module.exports = {
}, },
// 查询店铺配置 // 查询店铺配置
getShopMerchantPointConfig (data) { getShopMerchantPointConfig(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.shopMerchantPointConfig.get', method: 'dj.api.smartcarlife.shopMerchantPointConfig.get',
projectName: 'boutique', projectName: 'boutique',
...@@ -36,7 +36,7 @@ module.exports = { ...@@ -36,7 +36,7 @@ module.exports = {
}, },
/** 查询报价单信息 */ /** 查询报价单信息 */
getQuotationInfoById (data) { getQuotationInfoById(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id',
projectName: 'boutique', projectName: 'boutique',
...@@ -46,7 +46,7 @@ module.exports = { ...@@ -46,7 +46,7 @@ module.exports = {
/** /**
* 订单详情 * 订单详情
*/ */
getOrderDetail (data) { getOrderDetail(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.detail', method: 'dj.api.smartcarlife.order.detail',
projectName: 'boutique', projectName: 'boutique',
...@@ -54,7 +54,7 @@ module.exports = { ...@@ -54,7 +54,7 @@ module.exports = {
}) })
}, },
/**pos支付 */ /**pos支付 */
getPosQr (data) { getPosQr(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.payOrder.create', method: 'dj.api.smartcarlife.payOrder.create',
projectName: 'boutique', projectName: 'boutique',
...@@ -65,7 +65,7 @@ module.exports = { ...@@ -65,7 +65,7 @@ module.exports = {
* 查询门店录单设置 * 查询门店录单设置
}, },
*/ */
orderSettingList (data) { orderSettingList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.field.setting.list', method: 'dj.api.smartcarlife.order.field.setting.list',
projectName: 'boutique', projectName: 'boutique',
...@@ -74,7 +74,7 @@ module.exports = { ...@@ -74,7 +74,7 @@ module.exports = {
}, },
/** 报价单分页列表 */ /** 报价单分页列表 */
quotationPage (data) { quotationPage(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique', projectName: 'boutique',
...@@ -82,7 +82,7 @@ module.exports = { ...@@ -82,7 +82,7 @@ module.exports = {
}) })
}, },
/** 根据id查询报价单数据 */ /** 根据id查询报价单数据 */
getQuotationInfo (data) { getQuotationInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate',
projectName: 'boutique', projectName: 'boutique',
...@@ -90,7 +90,7 @@ module.exports = { ...@@ -90,7 +90,7 @@ module.exports = {
}) })
}, },
/** 修改车损报价单客户基本信息信息 */ /** 修改车损报价单客户基本信息信息 */
updateCustomerInfo (data) { updateCustomerInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
projectName: 'boutique', projectName: 'boutique',
...@@ -99,7 +99,7 @@ module.exports = { ...@@ -99,7 +99,7 @@ module.exports = {
}, },
/** 报价单订单分状态统计信息 */ /** 报价单订单分状态统计信息 */
orderStatistics (data) { orderStatistics(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
projectName: 'boutique', projectName: 'boutique',
...@@ -107,7 +107,7 @@ module.exports = { ...@@ -107,7 +107,7 @@ module.exports = {
}) })
}, },
// 查询订单是否支持状态变更 // 查询订单是否支持状态变更
getOrderRefundStep (data) { getOrderRefundStep(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist', method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique', projectName: 'boutique',
...@@ -115,7 +115,7 @@ module.exports = { ...@@ -115,7 +115,7 @@ module.exports = {
}) })
}, },
/**报价单-撤销工单 */ /**报价单-撤销工单 */
cancelOrderById (data) { cancelOrderById(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.quotation.cancel', method: 'dj.api.smartcarlife.quotation.cancel',
projectName: 'boutique', projectName: 'boutique',
...@@ -123,7 +123,7 @@ module.exports = { ...@@ -123,7 +123,7 @@ module.exports = {
}) })
}, },
// 车损报价单战败订单创建 // 车损报价单战败订单创建
defeatOrderCreate (data) { defeatOrderCreate(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order',
projectName: 'boutique', projectName: 'boutique',
...@@ -131,7 +131,7 @@ module.exports = { ...@@ -131,7 +131,7 @@ module.exports = {
}) })
}, },
// 更新合同协议内容 // 更新合同协议内容
updateZyInfo (data) { updateZyInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update',
projectName: 'boutique', projectName: 'boutique',
...@@ -139,7 +139,7 @@ module.exports = { ...@@ -139,7 +139,7 @@ module.exports = {
}) })
}, },
/** 根据商户号商品id获取可选升级商品列表 */ /** 根据商户号商品id获取可选升级商品列表 */
quotationGoodsList (data) { quotationGoodsList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.quotationGoods.list', method: 'dj.api.smartcarlife.quotationGoods.list',
projectName: 'boutique', projectName: 'boutique',
...@@ -148,14 +148,14 @@ module.exports = { ...@@ -148,14 +148,14 @@ module.exports = {
}, },
/** /**
* /** 修改车损报价单信息 */ * /** 修改车损报价单信息 */
updateQuotation (data) { updateQuotation(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update',
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
}, },
getCheckEmployeeList (data) { getCheckEmployeeList(data) {
// 0->2.0 1->1.1 2->1.2 3->1.3 场景对应 // 0->2.0 1->1.1 2->1.2 3->1.3 场景对应
// data.sceneList = [1] // data.sceneList = [1]
return http.post({ return http.post({
...@@ -166,7 +166,7 @@ module.exports = { ...@@ -166,7 +166,7 @@ module.exports = {
// return api.post("dj.api.smartcarlife.employee.getByMerchantId", data); // return api.post("dj.api.smartcarlife.employee.getByMerchantId", data);
}, },
/** 更新报价单状态 */ /** 更新报价单状态 */
updateOrderStatus (data) { updateOrderStatus(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update',
projectName: 'boutique', projectName: 'boutique',
...@@ -178,7 +178,7 @@ module.exports = { ...@@ -178,7 +178,7 @@ module.exports = {
* 服务信息详情 * 服务信息详情
* *
*/ */
getServiceInfoDetail (data) { getServiceInfoDetail(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.detail', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.detail',
projectName: 'boutique', projectName: 'boutique',
...@@ -186,7 +186,7 @@ module.exports = { ...@@ -186,7 +186,7 @@ module.exports = {
}) })
}, },
/** 权益单分页列表 */ /** 权益单分页列表 */
equityPage (data) { equityPage(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.page', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.page',
projectName: 'boutique', projectName: 'boutique',
...@@ -194,7 +194,7 @@ module.exports = { ...@@ -194,7 +194,7 @@ module.exports = {
}) })
}, },
/** 权益单统计信息 */ /** 权益单统计信息 */
equityStatistics (data) { equityStatistics(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.statics', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.statics',
projectName: 'boutique', projectName: 'boutique',
...@@ -202,7 +202,7 @@ module.exports = { ...@@ -202,7 +202,7 @@ module.exports = {
}) })
}, },
// 更新客户签名 // 更新客户签名
updateCustomerNameUrlAPI (data) { updateCustomerNameUrlAPI(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.updateCustomerNameUrl', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.updateCustomerNameUrl',
projectName: 'boutique', projectName: 'boutique',
...@@ -210,7 +210,7 @@ module.exports = { ...@@ -210,7 +210,7 @@ module.exports = {
}) })
}, },
/** 查询合同*/ /** 查询合同*/
equityOrderList (data) { equityOrderList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.listContracts', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.listContracts',
projectName: 'boutique', projectName: 'boutique',
...@@ -218,7 +218,7 @@ module.exports = { ...@@ -218,7 +218,7 @@ module.exports = {
}) })
}, },
/** 打印合同*/ /** 打印合同*/
printContract (data) { printContract(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.print', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.print',
projectName: 'boutique', projectName: 'boutique',
...@@ -228,31 +228,53 @@ module.exports = { ...@@ -228,31 +228,53 @@ module.exports = {
/** /**
* 提交前检查车架号是否已购买 * 提交前检查车架号是否已购买
*/ */
checkVinBuyEquityOrder (data) { checkVinBuyEquityOrder(data) {
return http.post({ return http.post(
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.vin.check', {
projectName: 'boutique', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.vin.check',
...data projectName: 'boutique',
}, true) ...data
},
true
)
}, },
/**提交权益单 /**提交权益单
* *
*/ */
addEquityOrder (data) { addEquityOrder(data) {
return http.post({ return http.post(
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.add', {
projectName: 'boutique', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.add',
...data projectName: 'boutique',
}, true) ...data
},
true
)
}, },
/** /**
* 订单号查服务信息详情 * 订单号查服务信息详情
*/ */
getEquityOrderByOrderId (data) { getEquityOrderByOrderId(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.handler', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.handler',
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
}, },
// 查询订单是否支持状态变更
getOrderRefundStep(data) {
return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique',
...data
})
},
/** 标记错误订单 */
errorOrderById(data) {
return http.post({
method: 'dj.api.smartcarlife.quotation.correct',
projectName: 'boutique',
...data
})
}
} }
...@@ -96,8 +96,6 @@ export default { ...@@ -96,8 +96,6 @@ export default {
name: this.getFileNameFromUrl(url.trim()), name: this.getFileNameFromUrl(url.trim()),
size: 0 // 从字符串无法获取文件大小 size: 0 // 从字符串无法获取文件大小
}))) })))
console.log('this.contractData', this.contractData)
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.popup.open() this.$refs.popup.open()
...@@ -281,7 +279,6 @@ export default { ...@@ -281,7 +279,6 @@ export default {
// 获取合同文件数组 // 获取合同文件数组
getContractFiles() { getContractFiles() {
console.log(this.contractData,'this.contractData')
const files = this.contractData[this.uploadField.key] const files = this.contractData[this.uploadField.key]
return Array.isArray(files) ? files : [] return Array.isArray(files) ? files : []
}, },
......
...@@ -131,6 +131,24 @@ ...@@ -131,6 +131,24 @@
</view> </view>
</template> </template>
</PublishPopup> </PublishPopup>
<PublishPopup ref="errorOrderPopup" popupClass="errorOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="工单标记">
<template #content>
<view class="error-order-box modatcontent">
<view class="error-order-title">订单编号:{{ orderCardDetail.payId }}</view>
<view class="error-order-content">
若工单信息有误,确定操作可标记为
<span style="color: #4673ff">“已失效”</span>
,并补录新工单以供线下核对。
</view>
</view>
</template>
<template #footer>
<view class="footer-box flex justify-center">
<view class="cancle-btn btn" @click.stop="cancelError">取消</view>
<view class="sure-btn btn" @click.stop="confirmError">确认</view>
</view>
</template>
</PublishPopup>
</view> </view>
</template> </template>
<script> <script>
...@@ -186,6 +204,16 @@ export default { ...@@ -186,6 +204,16 @@ export default {
if (order.equityOrderStatus == 0 && order.equityGoodsFlag == 1) { if (order.equityOrderStatus == 0 && order.equityGoodsFlag == 1) {
config.secondaryButtons.push({ text: '去处理', type: 'secondary', dataType: 'handle' }) config.secondaryButtons.push({ text: '去处理', type: 'secondary', dataType: 'handle' })
} }
// 待上传协议状态也支持撤销
if (order.payType == 1) {
// 线上支付显示"错误工单"
config.secondaryButtons.push({ text: '错误工单', type: 'secondary', dataType: 'error' })
} else {
// 非线上支付显示"撤销工单"
config.secondaryButtons.push({ text: '撤销工单', type: 'secondary', dataType: 'revoke' })
}
return config return config
} }
...@@ -254,10 +282,30 @@ export default { ...@@ -254,10 +282,30 @@ export default {
} }
} }
} }
// 战败(-1)、已退款(6)不支持撤销
// 战败、支付方式为2、已完成状态不显示撤销按钮,其他状态都显示 if (order.orderStatus != -1 && order.orderStatus != '-1' && order.orderStatus != 6) {
if (order.orderStatus != 5 && order.orderStatus != '-1' && order.orderStatus != -1 && order.payType != 2) { // 待报价(0)、待支付(2),支持撤销
config.secondaryButtons.push({ text: '撤销', type: 'secondary', dataType: 'revoke' }) if (order.orderStatus == 0 || order.orderStatus == 2) {
config.secondaryButtons.push({ text: '撤销工单', type: 'secondary', dataType: 'revoke' })
}
// 已支付(3)、已完成(5),除了线上支付外都能撤销
else if (order.orderStatus == 3 || order.orderStatus == 5) {
if (order.payType == 1) {
// 线上支付显示"错误工单"
config.secondaryButtons.push({ text: '错误工单', type: 'secondary', dataType: 'error' })
} else {
// 非线上支付显示"撤销工单"
config.secondaryButtons.push({ text: '撤销工单', type: 'secondary', dataType: 'revoke' })
}
}
// 其他状态,支持撤销
else {
if (order.payType == 1) {
config.secondaryButtons.push({ text: '错误工单', type: 'secondary', dataType: 'error' })
} else {
config.secondaryButtons.push({ text: '撤销工单', type: 'secondary', dataType: 'revoke' })
}
}
} }
} }
} else { } else {
...@@ -439,6 +487,10 @@ export default { ...@@ -439,6 +487,10 @@ export default {
// 处理撤销 // 处理撤销
this.revokeOrder() this.revokeOrder()
break break
case 'error':
// 处理错误订单
this.isErrorOrder()
break
case 'default': case 'default':
// 处理默认情况 // 处理默认情况
break break
...@@ -491,6 +543,15 @@ export default { ...@@ -491,6 +543,15 @@ export default {
defeatOrder() { defeatOrder() {
this.$refs.defeatOrderPopup.open(this.orderCardDetail) this.$refs.defeatOrderPopup.open(this.orderCardDetail)
}, },
async isErrorOrder() {
// 校验订单是否可标记为错误订单(在退款流程中无法流转)
let refundStep = await uni.$api.equityApi.getOrderRefundStep({
orderCode: this.orderCardDetail.payId
})
console.log(refundStep, 'refundStep')
if (refundStep == 'Y') return this.showRefundAlert('error')
this.$refs.errorOrderPopup.open(this.orderCardDetail)
},
showRefundAlert(type) { showRefundAlert(type) {
const text = type == 'error' ? '订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。' : '订单已发起退款,禁止撤销!如需撤销请联系总部运营。' const text = type == 'error' ? '订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。' : '订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
uni.showModal({ uni.showModal({
...@@ -554,6 +615,38 @@ export default { ...@@ -554,6 +615,38 @@ export default {
}) })
} }
}, },
cancelSelection() {
this.$refs.defeatOrderPopup.closePopup()
},
confirmError() {
const that = this
uni.showLoading({
mask: true
})
uni.$api.equityApi
.errorOrderById({
oldQuotationId: that.orderCardDetail.id,
needCreateNewOrder: false
})
.then(res => {
console.log(res, 'res')
if (res) {
that.$refs.errorOrderPopup.closePopup()
uni.hideLoading()
uni.showToast({
title: '提交成功',
icon: 'none'
})
setTimeout(() => {
that.$emit('refresh')
// _this.getList();
}, 500)
}
})
},
cancelError() {
this.$refs.errorOrderPopup.closePopup()
},
onConfirm(val) { onConfirm(val) {
console.log(val) console.log(val)
let urls = [] let urls = []
...@@ -738,6 +831,96 @@ export default { ...@@ -738,6 +831,96 @@ export default {
} }
} }
} }
::v-deep .errorOrderPopup .uni-popup__wrapper {
position: relative;
border-radius: toRpx(32);
opacity: 1;
width: toRpx(848);
height: toRpx(512);
background-color: #fff !important;
.popup-top-box {
text-align: left;
padding: toRpx(48) toRpx(64);
border-radius: toRpx(32) toRpx(32) 0 0;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
&-title {
color: #1a1a1a;
font-size: toRpx(40);
font-weight: 500;
}
.icon-close {
font-size: toRpx(40) !important;
color: rgba(26, 26, 26, 0.6) !important;
}
}
.modatcontent {
box-sizing: border-box;
padding: 0 toRpx(64);
.modalbox {
display: flex;
align-items: center;
box-sizing: border-box;
border-radius: toRpx(16);
background: #f7f8fa;
height: toRpx(136);
border-radius: toRpx(8);
margin: 0 auto;
color: #292d33;
font-size: toRpx(28);
font-weight: 500;
& + .modalbox {
margin-top: toRpx(16);
}
.sprite-icon {
margin: 0 toRpx(24) 0 toRpx(32);
}
}
.act {
border: toRpx(2) solid #347bff;
background: #347bff1a;
}
.error-order-title {
color: #666666;
font-size: toRpx(32);
font-weight: 400;
}
.error-order-content {
margin-top: toRpx(16);
color: #666666;
font-size: toRpx(32);
font-weight: 400;
}
}
.footer-box {
width: 100%;
height: toRpx(164);
background-color: #fff;
position: absolute;
bottom: 0;
border-radius: 0 0 toRpx(32) toRpx(32);
.btn {
width: 40%;
height: toRpx(80);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
}
.cancle-btn {
background: #f0f1f5;
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
margin-left: toRpx(32);
}
}
}
.order-card { .order-card {
padding: toRpx(36) toRpx(32); padding: toRpx(36) toRpx(32);
border-radius: toRpx(24); border-radius: toRpx(24);
......
...@@ -158,7 +158,9 @@ export default { ...@@ -158,7 +158,9 @@ export default {
console.log(val) console.log(val)
this.searchObj = null this.searchObj = null
this.searchObj = val this.searchObj = val
if (this.searchObj?.zyPayStatus == '1') this.searchObj.orderStatus = 7
console.log(this.searchObj) console.log(this.searchObj)
if (!this.searchObj.orderStatus && this.searchObj.orderStatus !== 0 && this.searchObj.orderStatus !== '0') { if (!this.searchObj.orderStatus && this.searchObj.orderStatus !== 0 && this.searchObj.orderStatus !== '0') {
this.tabIndex = 0 this.tabIndex = 0
} else { } else {
...@@ -198,8 +200,6 @@ export default { ...@@ -198,8 +200,6 @@ export default {
merchantIds: [localUserInfo.shopMerchantId], merchantIds: [localUserInfo.shopMerchantId],
...this.searchObj ...this.searchObj
} }
delete params.orderStatus
if (params?.zyPayStatus == '1') params.orderStatus = 7
uni.$api.equityApi uni.$api.equityApi
.orderStatistics(params) .orderStatistics(params)
.then(result => { .then(result => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!