Commit aa8085b1 by cen

feat:权益列表

1 parent e1e5dc7f
...@@ -24,5 +24,22 @@ module.exports = { ...@@ -24,5 +24,22 @@ module.exports = {
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
projectName: 'boutique',
...data
})
},
/** 报价单订单分状态统计信息 */
orderStatistics(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
projectName: 'boutique',
...data
})
} }
} }
...@@ -110,6 +110,9 @@ ...@@ -110,6 +110,9 @@
.mr-12 { .mr-12 {
margin-right: toRpx(12); margin-right: toRpx(12);
} }
.mr-20 {
margin-right: toRpx(20);
}
.mr-24 { .mr-24 {
margin-right: toRpx(24); margin-right: toRpx(24);
} }
......
<template> <template>
<view class="list"> <view class="list">
<view <view @click="currentId = ''" :class="['item flex', { active: !currentId }]">
@click="currentId = ''"
:class="['item flex',{active:!currentId}]"
>
<view class="sprite-icon icon-tag-checked"></view> <view class="sprite-icon icon-tag-checked"></view>
全部 全部
</view> </view>
<template v-for="(i, index) in list"> <template v-for="(i, index) in list">
<view <view :key="index" @click="currentId = i.id" :class="['item flex', { active: currentId == i.id }]">
:key="index"
@click="currentId = i.id"
:class="['item flex',{active:currentId == i.id}]"
>
<view class="sprite-icon icon-tag-checked"></view> <view class="sprite-icon icon-tag-checked"></view>
{{i.name}} {{ i.name }}
</view> </view>
</template> </template>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
export default { export default {
name: 'OrderStatusList', name: 'OrderStatusList',
inject: ['userInfo'], inject: ['userInfo'],
data () { data () {
return { return {
// 订单状态 (0待报价、1待确认、2待支付、3已支付、5已完成、6已退款、9已撤销、11错误订单、-1战败)
list: Object.freeze([ list: Object.freeze([
{ {
name: '待跟进', name: '待报价',
value: [1], value: 0,
id: 1 id: 1
}, },
{ {
name: '已支付', name: '待确认',
value: [4], value: 1,
id: 2 id: 2
}, },
{ {
name: '待支付', name: '待支付',
value: [3], value: 2,
id: 3 id: 3
}, },
{ {
name: '已撤销', name: '已支付',
value: [9], value: 3,
id: 4 id: 4
}, },
{ {
name: '战败', name: '已完成',
value: [2], value: 5,
id: 5 id: 5
}, },
{ {
name: '已评价', name: '已退款',
value: [6], value: 6,
id: 6 id: 6
}, },
{ {
name: '已关闭', name: '已撤销',
value: [10], value: 9,
id: 7 id: 7
}, },
{ {
name: '已失效', name: '错误订单',
value: [11], value: 11,
id: 8 id: 8
}, },
{ {
name: '未施工', name: '战败',
value: ['N'], value: -1,
id: 9
},
{
name: '已施工',
value: ['Y'],
id: 10
},
{
name: '已退款',
value: [5, 12],
id: 11 id: 11
} }
]), ]),
...@@ -110,8 +94,9 @@ export default { ...@@ -110,8 +94,9 @@ export default {
methods: { methods: {
initList () { initList () {
let { data, params: { idKey }, list } = this let { data, params: { idKey }, list } = this
if (data[idKey]) { console.log(data, idKey ,'32938928392')
let item = list.find(val => val.value.join(',') == data[idKey].join(',')) if (data[idKey] !== undefined && data[idKey] !== null && data[idKey] !== '') {
let item = list.find(val => val.value == data[idKey])
this.currentId = item ? item.id : '' this.currentId = item ? item.id : ''
} }
this.$emit('onComplete') this.$emit('onComplete')
...@@ -120,7 +105,7 @@ export default { ...@@ -120,7 +105,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.list { .list {
display: grid; display: grid;
grid-template-columns: repeat(6, 1fr); grid-template-columns: repeat(6, 1fr);
...@@ -156,4 +141,4 @@ export default { ...@@ -156,4 +141,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -5,7 +5,7 @@ const screenList = [ ...@@ -5,7 +5,7 @@ const screenList = [
componentName: 'EmployeeList', componentName: 'EmployeeList',
params: { params: {
cacheData: [], cacheData: [],
idKey: 'sellerUserIdList' idKey: 'transferIds'
}, },
hasToggle: true, hasToggle: true,
toggle: false toggle: false
...@@ -16,7 +16,7 @@ const screenList = [ ...@@ -16,7 +16,7 @@ const screenList = [
componentName: 'EmployeeList', componentName: 'EmployeeList',
params: { params: {
cacheData: [], cacheData: [],
idKey: 'userIdList' idKey: 'referrerIds'
}, },
hasToggle: true, hasToggle: true,
toggle: false toggle: false
...@@ -25,7 +25,7 @@ const screenList = [ ...@@ -25,7 +25,7 @@ const screenList = [
title: '订单时间', title: '订单时间',
componentName: 'TimeList', componentName: 'TimeList',
params: { params: {
idKey: ['placeOrderStartDateStr', 'placeOrderEndDateStr'], idKey: ['minCreateTime', 'maxCreateTime'],
currentIdKey: 'orderTimeId' currentIdKey: 'orderTimeId'
} }
}, },
...@@ -33,7 +33,7 @@ const screenList = [ ...@@ -33,7 +33,7 @@ const screenList = [
title: '支付时间', title: '支付时间',
componentName: 'TimeList', componentName: 'TimeList',
params: { params: {
idKey: ['installUpgradeBeginTimeStr', 'installUpgradeEndTimeStr'], idKey: ['minPayTime', 'maxPayTime'],
currentIdKey: 'payTimeId' currentIdKey: 'payTimeId'
} }
}, },
...@@ -41,7 +41,7 @@ const screenList = [ ...@@ -41,7 +41,7 @@ const screenList = [
title: '订单状态', title: '订单状态',
componentName: 'OrderStatusList', componentName: 'OrderStatusList',
params: { params: {
idKey: 'statusList' idKey: 'orderStatus'
} }
}, },
{ {
......
...@@ -90,6 +90,11 @@ export default { ...@@ -90,6 +90,11 @@ export default {
}, },
methods: { methods: {
open(data) { open(data) {
console.log('open', data)
const { orderStatus } =data
if(orderStatus !== undefined && orderStatus !== null && orderStatus !== '') {
this.$set(this.chooseContent, 'orderStatus', orderStatus)
}
this.$refs.popup.open() this.$refs.popup.open()
}, },
clear() { clear() {
...@@ -101,10 +106,11 @@ export default { ...@@ -101,10 +106,11 @@ export default {
}, },
choose(i) { choose(i) {
let { key, value, keys, currentIdKey, currentId } = i; let { key, value, keys, currentIdKey, currentId } = i;
console.log('choose', key, value)
let updatedChooseContent = { ...this.chooseContent }; let updatedChooseContent = { ...this.chooseContent };
let needRefresh = false; let needRefresh = false;
// 有订单状态,将合同协议状态置为全部 // 有订单状态,将合同协议状态置为全部
if (key == 'statusList' && value) { if (key == 'orderStatus' && value) {
if (updatedChooseContent.zyPayStatus !== undefined) { if (updatedChooseContent.zyPayStatus !== undefined) {
this.$delete(updatedChooseContent, 'zyPayStatus') this.$delete(updatedChooseContent, 'zyPayStatus')
needRefresh = true needRefresh = true
...@@ -112,8 +118,8 @@ export default { ...@@ -112,8 +118,8 @@ export default {
} }
// 有合同协议状态时,将订单状态置为全部 // 有合同协议状态时,将订单状态置为全部
if (key == 'zyPayStatus' && value) { if (key == 'zyPayStatus' && value) {
if (updatedChooseContent.statusList !== undefined) { if (updatedChooseContent.orderStatus !== undefined) {
this.$delete(updatedChooseContent, 'statusList') this.$delete(updatedChooseContent, 'orderStatus')
needRefresh = true needRefresh = true
} }
} }
...@@ -121,14 +127,15 @@ export default { ...@@ -121,14 +127,15 @@ export default {
if (keys) { if (keys) {
if (currentIdKey) this.$set(updatedChooseContent, currentIdKey, currentId || '') if (currentIdKey) this.$set(updatedChooseContent, currentIdKey, currentId || '')
keys.map(e => { keys.map(e => {
if (value[e]) this.$set(updatedChooseContent, e, value[e]) if (value[e] !== undefined && value[e] !== null && value[e] !== '') this.$set(updatedChooseContent, e, value[e])
else this.$delete(updatedChooseContent, e) else this.$delete(updatedChooseContent, e)
}) })
} else { } else {
if (value) this.$set(updatedChooseContent, key, value) if (value !== undefined && value !== null && value !== '') this.$set(updatedChooseContent, key, value)
else this.$delete(updatedChooseContent, key) else this.$delete(updatedChooseContent, key)
} }
this.chooseContent = updatedChooseContent; this.chooseContent = updatedChooseContent;
console.log('chooseContent',this.chooseContent)
if (needRefresh) { if (needRefresh) {
this.componentKey = Date.now() this.componentKey = Date.now()
} }
......
...@@ -184,6 +184,18 @@ module.exports = { ...@@ -184,6 +184,18 @@ module.exports = {
], ],
grassInfo: {}, grassInfo: {},
orderCode: '', orderCode: '',
userInfo: {} userInfo: {},
orderStatusObj: {
0: { text: '待报价', color: '#F7A431', background: '#FFF5E6' },
1: { text: '待确认', color: '#F7A431', background: '#FFF5E6' },
2: { text: '待支付', color: '#F7A431', background: '#FFF5E6' },
3: { text: '已支付', color: '#2CCA74', background: '#EAF9F1' },
4: { text: '已支付', color: '#2CCA74', background: '#EAF9F1' },
5: { text: '已完成', color: '#F7A431', background: '#FFF5E6' },
'-1': { text: '战败', color: '#F24724', background: '#FDECE9' },
9: { text: '已撤销', color: '#999999', background: ' #9999991a;' },
11: { text: '已失效', color: '#F7A431', background: '#FFF5E6' },
6: { text: '已退款', color: '#F7A431', background: '#FFF5E6' }
}
} }
} }
...@@ -2,43 +2,33 @@ ...@@ -2,43 +2,33 @@
<template> <template>
<view class="order-card" @click.stop="cardClick"> <view class="order-card" @click.stop="cardClick">
<view class="order-card-top-box flex justify-between"> <view class="order-card-top-box flex justify-between">
<text>{{ orderCardDetail.customer.customerName }}</text> <view class="flex item-center">
<view class="status text-center" :style="{ color: orderCardDetail.statuscolor, 'background-color': orderCardDetail.statusbackground }"> <text class="mr-20">{{ orderCardDetail.customerName }}</text>
<view v-if="orderCardDetail.status == 1 || orderCardDetail.status == 3"> <!-- 标记为已开票的 不可编辑客户信息 invoicing 2已开票 -->
<view v-if="status[orderCardDetail.status].background"> <view v-if="isOrder">
<view v-if="orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 5 || orderCardDetail.orderStatus == -1" @click="jumpUpdate" :class="['updateInfo flex', orderCardDetail.orderStatus == '6' || orderCardDetail.invoicing == '2' ? 'isHide' : '']">
<view class="sprite-icon icon-edit mr-8"></view>
客户信息
</view>
</view>
</view>
<!-- 待上传合同协议且是已支付的订单 -->
<view class="status text-center" :style="{ color: status[0].color, 'background-color': status[0].background }" v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传</view>
<view v-else class="status text-center" :style="{ color: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }">
<!-- <view v-if="orderCardDetail.orderStatus == 1 || orderCardDetail.orderStatus == 3">
<view v-if="status[orderCardDetail.orderStatus].background">
<view class="arc y-center"> <view class="arc y-center">
<view class="outside box-center" :style="{ 'background-color': status[orderCardDetail.status].background }" /> <view class="outside box-center" :style="{ 'background-color': status[orderCardDetail.orderStatus].background }" />
<view class="inside box-center" :style="{ 'background-color': status[orderCardDetail.status].color }" /> <view class="inside box-center" :style="{ 'background-color': status[orderCardDetail.orderStatus].color }" />
</view> </view>
</view> </view>
</view> </view> -->
<!-- 优先显示已撤销的 然后是已施工的 最后是其他的 --> <!-- 优先显示已撤销的 然后是已施工的 最后是其他的 -->
<!-- {{li.status==9?status[li.status].text: (li.constructionFlag == 'Y'?'已施工':status[li.status].text) }} --> <!-- {{li.status==9?status[li.status].text: (li.constructionFlag == 'Y'?'已施工':status[li.status].text) }} -->
{{ orderCardDetail.statusText }} {{ status[orderCardDetail.orderStatus].text }}
</view> </view>
</view> </view>
<view> <view>
<view class="goods-list" :style="{ paddingBottom: orderCardDetail.subOrderList && orderCardDetail.subOrderList.length < 1 ? '0' : '' }" v-if="orderCardDetail.subOrderList && orderCardDetail.subOrderList.length > 0">
<view>
<view v-for="(i, sindex) in orderCardDetail.subOrderList" :key="sindex" class="goods flex justify-between" :class="{ 'no-margin': orderCardDetail.subOrderList.length === 1 }" v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex < 2">
<view class="goods-name text-hide flex">
<view class="point"></view>
{{ i.upgradeGoodsAlias || i.upgradeGoodsName || i.packageName || '' }}
</view>
<view class="goods-price">
¥
<text>{{ i.totalPrice || 0 }}</text>
</view>
</view>
<view v-if="orderCardDetail.subOrderList.length > 2" class="goods-more">
<text @click.stop="showAllGoodsList">
{{ orderCardDetail.showAllGoodsListFlag ? '收起' : '查看全部' }}
</text>
(共{{ orderCardDetail.subOrderList.length }}件)
</view>
</view>
</view>
<view class="info-box"> <view class="info-box">
<view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryUserId ? pointsMultiObj : orderObj" :key="sindex"> <view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryUserId ? pointsMultiObj : orderObj" :key="sindex">
<view class="order flex align-center"> <view class="order flex align-center">
...@@ -142,7 +132,7 @@ export default { ...@@ -142,7 +132,7 @@ export default {
return order_mixins.data.payType || {} return order_mixins.data.payType || {}
}, },
status() { status() {
return order_mixins.data.status || {} return order_mixins.data.orderStatusObj || {}
} }
}, },
data() { data() {
...@@ -153,48 +143,119 @@ export default { ...@@ -153,48 +143,119 @@ export default {
pointsMultiObj: [ pointsMultiObj: [
{ {
label: '销售顾问 /录单员', label: '销售顾问 /录单员',
arr: ['merchantName', 'employeeName'] arr: ['merchantName', 'referrerName']
}, },
{ {
label: '交付人员', label: '交付人员',
arr: ['merchantName', 'deliveryEmployeeName'] arr: ['merchantName', 'deliveryName']
}, },
{ {
label: '转化人员', label: '转化人员',
arr: ['sellerMerchantName', 'sellerName'] arr: ['parkMerchantName', 'transferName']
},
{
label: '车架号',
key: 'carVin'
},
{
label: '购买商品',
key: 'goodsNameAlias',
otherKey: 'goodsName'
}, },
{ {
label: '工单编号', label: '工单编号',
key: 'orderCode' key: 'payId',
canCopy: true
},
{
label: '交易流水号',
key: 'tradeNo',
canCopy: true
},
{
label: '拒升原因',
key: 'remark'
}, },
{ {
label: '工单时间', label: '支付时间',
key: 'orderTime' key: 'payTime'
},
{
label: '创建时间',
key: 'createdTime'
},
{
label: '支付方式',
key: 'payType',
mapValue: {
1: '线上支付',
2: '门店收款',
5: '嘀加收款',
6: '对公转账',
7: '其它收款'
}
} }
], ],
orderObj: [ orderObj: [
{ {
label: '销售顾问', label: '销售顾问',
arr: ['merchantName', 'employeeName'] arr: ['merchantName', 'referrerName']
}, },
{ {
label: '转化人员', label: '转化人员',
arr: ['sellerMerchantName', 'sellerName'] arr: ['parkMerchantName', 'transferName']
},
{
label: '车架号',
key: 'carVin'
},
{
label: '购买商品',
key: 'goodsNameAlias',
otherKey: 'goodsName'
}, },
{ {
label: '工单编号', label: '工单编号',
key: 'orderCode' key: 'payId',
canCopy: true
}, },
{ {
label: '工单时间', label: '交易流水号',
key: 'orderTime' key: 'tradeNo',
// key: "transactionNo",
canCopy: true
},
{
label: '拒升原因',
key: 'remark'
},
{
label: '支付时间',
key: 'payTime'
},
{
label: '创建时间',
key: 'createdTime'
},
{
label: '支付方式',
key: 'payType',
mapValue: {
1: '线上支付',
2: '门店收款',
5: '嘀加收款',
6: '对公转账',
7: '其它收款'
}
} }
], ],
localUserInfo: null localUserInfo: null,
isOrder: null
} }
}, },
mounted() { mounted() {
this.localUserInfo = uni.$storage.get('userInfo') this.localUserInfo = uni.$storage.get('userInfo')
this.isOrder = !(this.localUserInfo?.isSuper || this.localUserInfo?.loginRole == 3 || this.localUserInfo.loginRole == 5 || this.localUserInfo?.loginRole == 6)
}, },
methods: { methods: {
// 查看全部商品 // 查看全部商品
......
<template> <template>
<view class="order-management"> <view class="order-management">
<view class="search-box"> <view class="search-box">
<input class="search-input" placeholder-class="placeholder" v-model="keyword" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" /> <input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<view class="clear flex" @click="clear"> <view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="keyword"></uni-icons> <uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons>
</view> </view>
</view> </view>
...@@ -193,13 +193,13 @@ export default { ...@@ -193,13 +193,13 @@ export default {
} }
], ],
tabList: [ tabList: [
{ tabName: '全部', num: 0 }, { tabName: '全部', num: 0, value: null },
{ tabName: '待报价', num: 0 }, { tabName: '待报价', num: 0, value: 0 },
{ tabName: '待支付', num: 0 }, { tabName: '待支付', num: 0, value: 2 },
{ tabName: '已支付', num: 0 }, { tabName: '已支付', num: 0, value: 3 },
{ tabName: '已完成', num: 0 }, { tabName: '已完成', num: 0, value: 5 },
{ tabName: '战败', num: 0 }, { tabName: '战败', num: 0, value: -1 },
{ tabName: '待上传协议', num: 0 } { tabName: '待上传协议', num: 0, value: 7 }
], ],
tabIndex: 0, tabIndex: 0,
waitinputorderTabList: [ waitinputorderTabList: [
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
{ name: '超分账期', showQuestion: true } { name: '超分账期', showQuestion: true }
], ],
activeIndex: 0, activeIndex: 0,
keyword: '', customerName: '',
searchObj: {}, searchObj: {},
dataList: [], dataList: [],
triggered: false, triggered: false,
...@@ -265,11 +265,11 @@ export default { ...@@ -265,11 +265,11 @@ export default {
}, },
switchTab(index) { switchTab(index) {
this.tabIndex = index this.tabIndex = index
delete this.searchObj.statusList this.searchObj.orderStatus = this.tabList[index].value
this.search() this.search()
}, },
openFilter() { openFilter() {
this.$refs.openFilter.open() this.$refs.openFilter.open(this.searchObj)
}, },
openFilterConfirm(val) { openFilterConfirm(val) {
console.log(val) console.log(val)
...@@ -301,18 +301,21 @@ export default { ...@@ -301,18 +301,21 @@ export default {
} }
}, },
getStatByStatus() { getStatByStatus() {
if ((this.searchObj.statusList && this.searchObj.statusList[0] == 'Y') || (this.searchObj.statusList && this.searchObj.statusList[0] == 'N')) { const localUserInfo = uni.$storage.get('userInfo')
this.searchObj.constructionFlag = this.searchObj.statusList[0] console.log(this.searchObj)
delete this.searchObj.statusList let params = {
customerName: this.customerName,
merchantIds: [localUserInfo.shopMerchantId],
...this.searchObj
} }
uni.$api.boutiqueApi if (!localUserInfo.isSuper && localUserInfo.loginRole != 3 && localUserInfo?.loginRole != 6) {
.statByStatus({ params.transferIds = [localUserInfo.uuid]
...this.searchObj, }
keyword: this.keyword, if (params?.zyPayStatus == '1') params.orderStatus = 7
sceneType: 1 uni.$api.equitApi
}) .orderStatistics(params)
.then(result => { .then(result => {
const labelList = ['totalCount', 'waitUpgradeCount', 'upgradedCount', 'notUpgradeCount'] const labelList = ['total', 'waitQuotation', 'waitPay', 'paySuccess', 'completed', 'defeat']
labelList.map((item, index) => { labelList.map((item, index) => {
this.tabList[index].num = result[item] ? result[item] : 0 this.tabList[index].num = result[item] ? result[item] : 0
}) })
...@@ -365,93 +368,33 @@ export default { ...@@ -365,93 +368,33 @@ export default {
}) })
}, },
queryList(pageNo, pageSize) { queryList(pageNo, pageSize) {
// let { pageSize, currentPage, orderStatus, customerName, userInfo, storeInfo, nothing, staffUuid, zyPayStatus } = this.data, const localUserInfo = uni.$storage.get('userInfo')
// { screenForm } = this, console.log(this.searchObj)
// merchantId = '' let params = {
// if (!screenForm) screenForm = {} pageSize,
// if (nothing) { currentPage: pageNo,
// return customerName: this.customerName,
// } merchantIds: [localUserInfo.shopMerchantId],
// let params = { ...this.searchObj
// pageSize, }
// currentPage, if (!localUserInfo.isSuper && localUserInfo.loginRole != 3 && localUserInfo?.loginRole != 6) {
// customerName, params.transferIds = [localUserInfo.uuid]
// orderStatus, }
// merchantId,
// zyPayStatus
// }
// if (!userInfo.isSuper && userInfo.loginRole != 3 && userInfo?.loginRole != 6) {
// // debugger
// params.transferIds = [userInfo.uuid]
// }
// if (staffUuid) { // if (staffUuid) {
// params.transferIds = [staffUuid] // params.transferIds = [staffUuid]
// } else { // } else {
// params.merchantId = storeInfo?.merchantId // params.merchantId = storeInfo?.merchantId
// } // }
// uni.$api.equitApi uni.$api.equitApi
// .quotationPage(obj) .quotationPage(params)
// .then(result => { .then(result => {
// const { list, total } = result console.log(result)
// // 这个是用来判断哪些用户可以撤销的 this.$refs.paging.complete(result.list)
// let userType = (!this.localUserInfo.isSuper && this.localUserInfo.merchantType) || (this.localUserInfo.loginRole !== 3 && this.localUserInfo?.loginRole !== 6) })
// // let userType = true .catch(err => {
// list.map(e => { this.$refs.paging.complete(false)
// if (e.orderTime) e.orderTime = dayjs(new Date(e.orderTime)).format('YYYY-MM-DD HH:mm:ss') console.log(err)
// e.subOrderList.map(i => { })
// i.totalPrice = Number(utils.decimal(i.totalPrice, 2)).toFixed(2)
// })
// e.total_price = e.totalPrice
// e.totalPrice = Number(utils.decimal(e.totalPrice, 2)).toFixed(2)
// // 开票按钮
// e.invoiceName = e.invoiceStatus == 2 ? '查看发票' : '申请开票'
// // && e.status != 1 待跟进现在也能撤销
// let orderType = (this.localUserInfo.userType == 1 || this.localUserInfo.userType == 2) && e.status != 9 && ![1, 3, 4].includes(e.selectPayType)
// // let orderType = this.localUserInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1
// // console.log(userType);
// // console.log(orderType);
// e.repeal = userType && orderType
// // 处理subOrderList 商品为空的情况
// e.subOrderList = e.subOrderList.filter(item => item.merchantGoodsId)
// e.packageGoodsList?.forEach(item => {
// item.packageGoodsOrderList.forEach(g => {
// g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.upgradePrice
// })
// item.goodsList = item.packageGoodsOrderList
// item.price = item.goodsList.reduce((prev, cur) => {
// return prev + Number(cur.totalPrice) / Number(cur.number)
// }, 0)
// item.count = item.goodsList.length ? item.goodsList[0].number : 1
// let total = item.price * item.count
// item.totalPrice = utils.decimal(total, 2)
// })
// if (e.packageGoodsList && e.packageGoodsList.length) {
// e.subOrderList = e.subOrderList.concat(e.packageGoodsList)
// }
// // e.subOrderList = e.subOrderList.filter(item => item.id)
// // 处理显示订单右上角文字
// let text = this.status[e.status].text
// let color = this.status[e.status].color
// let background = this.status[e.status].background
// // 不是订单失效状态优先显示已施工
// if (![9, 11, 12].includes(e.status) && e.constructionFlag == 'Y') {
// text = '已施工'
// color = '#347BFF'
// background = '#F3F7FC'
// }
// e.statusText = text
// e.statuscolor = color
// e.statusbackground = background
// // 商品是否包含太阳膜
// e.isFilmOrder = e.subOrderList?.findIndex(subE => subE?.upgradeGoodsType == 1) > -1
// })
// console.log(list)
this.$refs.paging.complete([])
// })
// .catch(err => {
// this.$refs.paging.complete(false)
// console.log(err)
// })
}, },
// 10s轮询一次待补录 // 10s轮询一次待补录
getWaitOrder() { getWaitOrder() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!