uu
This commit is contained in:
parent
6312df88d8
commit
fafdc131bf
@ -106,6 +106,12 @@ export const getOrderList = (data = {})=> {
|
||||
return coreRequest(url.getOrderList, data, {}, "GET")
|
||||
}
|
||||
|
||||
// 订单列表
|
||||
export const getWaybillStatMap = (data = {})=> {
|
||||
return coreRequest(url.getWaybillStatMap, data, {}, "GET")
|
||||
}
|
||||
|
||||
|
||||
// 订单详情
|
||||
export const getOrderDetail = (data = {})=> {
|
||||
return coreRequest(url.getOrderDetail, data, {}, "GET")
|
||||
|
||||
@ -38,6 +38,7 @@ export default {
|
||||
calcVolumeWeight: `/emis/emisWaybill/calcVolumeWeight`, // 体积重量计算
|
||||
warehouseInList: `/emis/emisWarehouseIn/listSimple`, // 下单-进仓单列表
|
||||
getOrderList: `/emis/emisWaybill/listSimple`, // 订单列表
|
||||
getWaybillStatMap: `/emis/emisWaybill/getWaybillStatMap`, // 运单统计数据
|
||||
getOrderDetail: `/emis/emisWaybill/getWaybillDetail`, // 订单详情
|
||||
scanRecord: `/emis/emisTmsScanRecord/scan`, // 扫描- 揽收
|
||||
getRealGetWaybillPrintData: `/emis/emisWaybill/realGetPrintList`, // 运单 打印数据
|
||||
@ -54,5 +55,6 @@ export default {
|
||||
queryScanWaybillList: `/emis/emisWaybill/queryScanWaybillList`, // 1-发件清单 2-到件清单 3-派件清单
|
||||
uploadWaybillAttach: `/emis/emisWaybillAttachment/uploadWaybillAttach`, // 运单附件上传
|
||||
getPackNo: `/emis/common/getPackNo`, // 生成合包号
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -6,24 +6,6 @@
|
||||
<view class="com-jianju" style="padding: 30rpx;background-color:#B12D29;border-radius: 30rpx;">
|
||||
<u-row justify="between">
|
||||
<view class="clr-wht font-32 font-weight">订单概况</view>
|
||||
|
||||
<tpx-select mode="drop" v-model:value="searchParam.date" :list="dateRangeList" >
|
||||
<u-row custom-style="width: 200rpx;;" justify="end">
|
||||
<u-button :hairline="false" shape="circle" size="mini" custom-style="border-radius: 23rpx;font-size: 26rpx;height: 50rpx;min-width: 130rpx;width: auto;display:flex;margin:0;">
|
||||
<u-row justify="between" custom-style="width: 100%;">
|
||||
<view :style="'padding-right: 4rpx;white-space: nowrap;' + 'color: #666;'">
|
||||
<u-row>
|
||||
<text>统计-</text>
|
||||
<tpx-text-dic :value="searchParam.date" :list="dateRangeList"></tpx-text-dic>
|
||||
</u-row>
|
||||
</view>
|
||||
<u-icon :name="showSearchMore?'arrow-up-fill':'arrow-down-fill'"
|
||||
color="#666" size="18" custom-style="margin-top: 2rpx;"
|
||||
></u-icon>
|
||||
</u-row>
|
||||
</u-button>
|
||||
</u-row>
|
||||
</tpx-select>
|
||||
</u-row>
|
||||
|
||||
<u-row v-if="staticDataList.length > 0" justify="between" custom-style="margin-top:30rpx;">
|
||||
@ -53,7 +35,7 @@
|
||||
@tabchange="(val)=> { handleSearchParamChange() }" v-slot="curOrdTab"
|
||||
>
|
||||
<text slot>
|
||||
(<text>{{curOrdTab.item.val}}</text>)
|
||||
(<text>{{ staticInfo.orderStat[curOrdTab.item.val] || 0 }}</text>)
|
||||
</text>
|
||||
</tpx-tabs>
|
||||
</u-col>
|
||||
@ -112,8 +94,8 @@
|
||||
staticDataList(){
|
||||
let { commStat } = this.staticInfo
|
||||
let list = [
|
||||
{ title: '待处理订单', subTitle: commStat.estMoney || 0, url: '', code: authCodeEnum.dingDanGaiKuang },
|
||||
{ title: '累计处理订单', subTitle: commStat.waitPay || 0, url: '', code: authCodeEnum.dingDanGaiKuang }
|
||||
{ title: '待处理订单', subTitle: commStat.waitDoNum || 0, url: '', code: authCodeEnum.dingDanGaiKuang },
|
||||
{ title: '累计处理订单', subTitle: commStat.hasDoNum || 0, url: '', code: authCodeEnum.dingDanGaiKuang }
|
||||
]
|
||||
list = getAuthList({ list, _thisPage: this })
|
||||
return list
|
||||
@ -126,7 +108,8 @@
|
||||
authCodeEnum,
|
||||
...JSON.parse(JSON.stringify({ dateRangeList })),
|
||||
searchParam: {
|
||||
date: dateRangeList[0].val,
|
||||
billCode: '',
|
||||
_date: [],
|
||||
waybillStatType: dicData?.emis_waybill_stat_type?.[0]?.val,
|
||||
},
|
||||
queryOption: {
|
||||
@ -149,6 +132,7 @@
|
||||
},
|
||||
onShow(){
|
||||
this?.$refs?.listRef?.getDataList?.(true) // 重置到第一页数据
|
||||
this.initData()
|
||||
},
|
||||
onLoad(option) {
|
||||
this.queryOption = option
|
||||
@ -159,7 +143,17 @@
|
||||
methods: {
|
||||
getListFun: apiService.getOrderList,
|
||||
initData(){
|
||||
|
||||
this.getStaticData()
|
||||
},
|
||||
async getStaticData(){
|
||||
const staRes = await apiService.getWaybillStatMap()
|
||||
let { hasDoNum, waitDoNum, statNumList } = staRes.data
|
||||
this.staticInfo.commStat = { hasDoNum, waitDoNum }
|
||||
let orderStat = {}
|
||||
statNumList.map(t=> {
|
||||
orderStat[t.statType] = t.statNum
|
||||
})
|
||||
this.staticInfo.orderStat = orderStat
|
||||
},
|
||||
async handleDealItem(item, deal = { type: '1' }) {
|
||||
let itemQuery = `?billCode=${item.billCode || ''}&orderSn=${item.orderSn || ''}`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user