Commit 833b6e0b by 胡悦

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 53e8bf42 457787e2
......@@ -2,7 +2,7 @@ import http from '../request/http'
module.exports = {
/**新建车损报价单 */
quotationAdd (data) {
quotationAdd(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add',
projectName: 'boutique',
......@@ -10,7 +10,7 @@ module.exports = {
})
},
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade (data) {
quotationUpgrade(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate',
projectName: 'boutique',
......@@ -18,7 +18,7 @@ module.exports = {
})
},
// 校验订单是否需要上传合同协议
checkZyPayFlag (data) {
checkZyPayFlag(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check',
projectName: 'boutique',
......@@ -27,7 +27,7 @@ module.exports = {
},
// 查询店铺配置
getShopMerchantPointConfig (data) {
getShopMerchantPointConfig(data) {
return http.post({
method: 'dj.api.smartcarlife.shopMerchantPointConfig.get',
projectName: 'boutique',
......@@ -36,7 +36,7 @@ module.exports = {
},
/** 查询报价单信息 */
getQuotationInfoById (data) {
getQuotationInfoById(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id',
projectName: 'boutique',
......@@ -46,7 +46,7 @@ module.exports = {
/**
* 订单详情
*/
getOrderDetail (data) {
getOrderDetail(data) {
return http.post({
method: 'dj.api.smartcarlife.order.detail',
projectName: 'boutique',
......@@ -54,7 +54,7 @@ module.exports = {
})
},
/**pos支付 */
getPosQr (data) {
getPosQr(data) {
return http.post({
method: 'dj.api.smartcarlife.payOrder.create',
projectName: 'boutique',
......@@ -65,7 +65,7 @@ module.exports = {
* 查询门店录单设置
},
*/
orderSettingList (data) {
orderSettingList(data) {
return http.post({
method: 'dj.api.smartcarlife.order.field.setting.list',
projectName: 'boutique',
......@@ -74,7 +74,7 @@ module.exports = {
},
/** 报价单分页列表 */
quotationPage (data) {
quotationPage(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique',
......@@ -82,7 +82,7 @@ module.exports = {
})
},
/** 根据id查询报价单数据 */
getQuotationInfo (data) {
getQuotationInfo(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate',
projectName: 'boutique',
......@@ -90,7 +90,7 @@ module.exports = {
})
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo (data) {
updateCustomerInfo(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
projectName: 'boutique',
......@@ -99,7 +99,7 @@ module.exports = {
},
/** 报价单订单分状态统计信息 */
orderStatistics (data) {
orderStatistics(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
projectName: 'boutique',
......@@ -107,7 +107,7 @@ module.exports = {
})
},
// 查询订单是否支持状态变更
getOrderRefundStep (data) {
getOrderRefundStep(data) {
return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique',
......@@ -115,7 +115,7 @@ module.exports = {
})
},
/**报价单-撤销工单 */
cancelOrderById (data) {
cancelOrderById(data) {
return http.post({
method: 'dj.api.smartcarlife.quotation.cancel',
projectName: 'boutique',
......@@ -123,7 +123,7 @@ module.exports = {
})
},
// 车损报价单战败订单创建
defeatOrderCreate (data) {
defeatOrderCreate(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order',
projectName: 'boutique',
......@@ -131,7 +131,7 @@ module.exports = {
})
},
// 更新合同协议内容
updateZyInfo (data) {
updateZyInfo(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update',
projectName: 'boutique',
......@@ -139,7 +139,7 @@ module.exports = {
})
},
/** 根据商户号商品id获取可选升级商品列表 */
quotationGoodsList (data) {
quotationGoodsList(data) {
return http.post({
method: 'dj.api.smartcarlife.quotationGoods.list',
projectName: 'boutique',
......@@ -148,14 +148,14 @@ module.exports = {
},
/**
* /** 修改车损报价单信息 */
updateQuotation (data) {
updateQuotation(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update',
projectName: 'boutique',
...data
})
},
getCheckEmployeeList (data) {
getCheckEmployeeList(data) {
// 0->2.0 1->1.1 2->1.2 3->1.3 场景对应
// data.sceneList = [1]
return http.post({
......@@ -166,7 +166,7 @@ module.exports = {
// return api.post("dj.api.smartcarlife.employee.getByMerchantId", data);
},
/** 更新报价单状态 */
updateOrderStatus (data) {
updateOrderStatus(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update',
projectName: 'boutique',
......@@ -178,11 +178,27 @@ module.exports = {
* 服务信息详情
*
*/
getServiceInfoDetail (data) {
getServiceInfoDetail(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.detail',
projectName: 'boutique',
...data
})
},
/** 权益单分页列表 */
equityPage(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.page',
projectName: 'boutique',
...data
})
},
/** 权益单统计信息 */
equityStatistics(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.statics',
projectName: 'boutique',
...data
})
}
}
......@@ -11,7 +11,7 @@
</view>
<view :class="['left-tabs', { three: tabs.length == 3 }]">
<template v-for="(i, index) in tabs">
<view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index, i)" v-if="!i.hidden">
<view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index, i)" v-if="!i.hidden && (i.name !== 'ActivityCenter' || activityTabVisible)">
<view class="icon-box">
<view :class="['sprite-icon', `icon-${i.icon}${tabIndex == index ? '-active' : ''}`]"></view>
</view>
......@@ -289,35 +289,38 @@ export default {
merchantId: shopMerchantId,
scene
}).then(result => {
console.log('有客户权限',result)
if (result) {
this.hasPerson = true
// this.activityTabVisible = scene !== 7
// this.tabs[this.tabs.length-1].hidden = scene !== 7
this.$nextTick(() => {
const activityTabIcon = document.querySelector('.sprite-icon.icon-activity')
if (activityTabIcon) {
const activityTab = activityTabIcon.closest('.tab-item')
if (activityTab) {
if (scene === 7) {
activityTab.style.display = 'none'
} else {
activityTab.style.display = 'block'
}
}
}
})
// this.$nextTick(() => {
// const activityTabIcon = document.querySelector('.sprite-icon.icon-activity')
// if (activityTabIcon) {
// const activityTab = activityTabIcon.closest('.tab-item')
// if (activityTab) {
// if (scene === 7) {
// activityTab.style.display = 'none'
// } else {
// activityTab.style.display = 'block'
// }
// }
// }
// })
this.activityTabVisible = scene !== 7;
} else {
// this.tabs[this.tabs.length-1].hidden = false
// this.activityTabVisible = false
this.$nextTick(() => {
const activityTabIcon = document.querySelector('.sprite-icon.icon-activity')
if (activityTabIcon) {
const activityTab = activityTabIcon.closest('.tab-item')
if (activityTab) {
activityTab.style.display = 'none'
}
}
})
// this.$nextTick(() => {
// const activityTabIcon = document.querySelector('.sprite-icon.icon-activity')
// if (activityTabIcon) {
// const activityTab = activityTabIcon.closest('.tab-item')
// if (activityTab) {
// activityTab.style.display = 'none'
// }
// }
// })
this.activityTabVisible = false;
}
})
},
......
......@@ -147,6 +147,24 @@ module.exports = {
background: '#EAF1FF'
}
},
// 0待补单;2提单成功;3提单失败
equityStatus: {
0: {
text: '已完成',
color: '#2cca74',
background: '#eaf9f1'
},
2: {
text: '待补录',
color: '#F7A431',
background: '#FFF5E6'
},
3: {
text: '提单失败',
color: '#f24724',
background: '#fdece9'
}
},
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销
statusList: [
{
......
......@@ -22,7 +22,7 @@
</view>
<z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()" @openPay="openPay"></OrderCard>
<EquityCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()" @openPay="openPay"></EquityCard>
</z-paging>
<!-- <OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" /> -->
<!-- 支付弹框 -->
......@@ -34,7 +34,7 @@
import order_mixins from '../../order_mixins.js'
import { interceptionMixin } from '@/mixin/index'
import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin'
import OrderCard from './OrderCard'
import EquityCard from './EquityCard'
import PublishPopup from '@/components/PublishPopup.vue'
import dayjs from 'dayjs'
import utils from '@/utils/utils'
......@@ -45,7 +45,7 @@ export default {
name: 'OrderManagement',
mixins: [ZPMixin, interceptionMixin],
components: {
OrderCard,
EquityCard,
PublishPopup,
// OrderScreenContract,
OrderPay
......@@ -180,15 +180,12 @@ export default {
const localUserInfo = uni.$storage.get('userInfo')
console.log(this.searchObj, 'this.searchObj')
let params = {
customerName: this.customerName,
merchantIds: [localUserInfo.shopMerchantId],
...this.searchObj
merchantId: localUserInfo.shopMerchantId
}
if (params?.zyPayStatus == '1') params.orderStatus = 7
uni.$api.equityApi
.orderStatistics(params)
.equityStatistics(params)
.then(result => {
const labelList = ['total', 'waitQuotation', 'waitPay', 'paySuccess', 'completed', 'defeat']
const labelList = ['totalOder', 'ladingOder', 'failed', 'success']
labelList.map((item, index) => {
this.tabList[index].num = result[item] ? result[item] : 0
})
......@@ -245,22 +242,17 @@ export default {
console.log(this.searchObj)
let params = {
pageSize,
currentPage: pageNo,
pageNum: pageNo,
customerName: this.customerName,
merchantIds: [localUserInfo.shopMerchantId],
...this.searchObj
merchantId: localUserInfo.shopMerchantId,
orderStatus: ''
}
if (params?.zyPayStatus == '1') params.orderStatus = 7
// if (staffUuid) {
// params.transferIds = [staffUuid]
// } else {
// params.merchantId = storeInfo?.merchantId
// }
uni.$api.equityApi
.quotationPage(params)
.equityPage(params)
.then(result => {
console.log(result)
this.$refs.paging.complete(result.list)
this.$refs.paging.complete(result.data)
})
.catch(err => {
this.$refs.paging.complete(false)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!