Compare commits

..

10 Commits

Author SHA1 Message Date
linfso
84391ce4a8 md 2025-08-19 22:09:42 +08:00
linfso
d3233d9c1d md 2025-08-15 16:52:14 +08:00
linfso
467ee15584 md 2025-08-15 14:54:16 +08:00
linfso
faaa04d1e6 md 2025-08-15 14:54:04 +08:00
linfso
a40e440d02 md 2025-08-15 14:23:03 +08:00
linfso
cb0444f757 md 2025-08-15 14:22:52 +08:00
linfso
6d87feaa93 md 2025-08-15 14:22:35 +08:00
linfso
62174891d8 账单显示优化调整 2025-07-08 17:33:02 +08:00
linfso
7607f7c920 md 2025-07-02 17:21:11 +08:00
linfso
9bf3eed711 仓库收货模式变动导致报关和清关模式发生改变 2025-05-20 12:54:26 +08:00
14 changed files with 495 additions and 168 deletions

View File

@ -11,6 +11,16 @@ export const getInfoBySettleBillNo = (data = {})=> {
return coreRequest(url.getInfoBySettleBillNo, data, {}, 'get') return coreRequest(url.getInfoBySettleBillNo, data, {}, 'get')
} }
// 获取简化账单信息
export const getSimpleInfoBySettleBillNo = (data = {})=> {
return coreRequest(url.getSimpleInfoBySettleBillNo, data, {}, 'get')
}
// 获取子账单信息
export const getSubBillListBySettleBillNo = (data = {})=> {
return coreRequest(url.getSubBillListBySettleBillNo, data, {}, 'get')
}
// 获取微信支付二维码 // 获取微信支付二维码
export const getWxPayQrCode = (data = {})=> { export const getWxPayQrCode = (data = {})=> {
return coreRequest(url.getWxPayQrCode, data, {}, 'get') return coreRequest(url.getWxPayQrCode, data, {}, 'get')

View File

@ -101,4 +101,7 @@ export const querySappNotifyTplList = (data = {})=> {
export const getOnlineKefuH5Url = (data = {})=> { export const getOnlineKefuH5Url = (data = {})=> {
return coreRequest(url.getOnlineKefuH5Url, data, {}, 'get') return coreRequest(url.getOnlineKefuH5Url, data, {}, 'get')
} }
export const getLbsRecordListByBillCode = (data = {})=> {
return coreRequest(url.getLbsRecordListByBillCode, data, {}, "GET")
}

View File

@ -56,6 +56,10 @@ export default {
scanCheckBillCode: `/oms2c/emisWaybill/scanCheckBillCode`, // 扫码下单寄件-checke scanCheckBillCode: `/oms2c/emisWaybill/scanCheckBillCode`, // 扫码下单寄件-checke
queryBSettleillList: `/oms2c/emisSettleBill/listSimple`, // 账单列表 queryBSettleillList: `/oms2c/emisSettleBill/listSimple`, // 账单列表
getInfoBySettleBillNo: `/oms2c/emisSettleBill/getInfoBySettleBillNo`, // 获取账单详情 getInfoBySettleBillNo: `/oms2c/emisSettleBill/getInfoBySettleBillNo`, // 获取账单详情
getSimpleInfoBySettleBillNo: `/oms2c/emisSettleBill/getSimpleInfoBySettleBillNo`, // 获取简化账单详情
getSubBillListBySettleBillNo: `/oms2c/emisSettleBill/listSubBill`, // 获取账单子账单明细
getWxPayQrCode: `/oms2c/emisSettleBill/getWxPayQrCode`, // 获取微信支付二维码 getWxPayQrCode: `/oms2c/emisSettleBill/getWxPayQrCode`, // 获取微信支付二维码
sumbitWxPay: `/oms2c/emisSettleBill/sumbitWxPay`, // 账单-唤起微信立即支付 sumbitWxPay: `/oms2c/emisSettleBill/sumbitWxPay`, // 账单-唤起微信立即支付
@ -66,6 +70,7 @@ export default {
querySappNotifyTplList: `/oms2c/common/querySappNotifyTplList`, // 小程序订阅消息模板列表 querySappNotifyTplList: `/oms2c/common/querySappNotifyTplList`, // 小程序订阅消息模板列表
getOnlineKefuH5Url: `/oms2c/common/getOnlineKefuH5Url`, // 获取客服消息链接 getOnlineKefuH5Url: `/oms2c/common/getOnlineKefuH5Url`, // 获取客服消息链接
reportBatchWsInError: `/oms2c/emisWarehouseIn/reportBatchWsInError`, // 进仓单异常反馈 reportBatchWsInError: `/oms2c/emisWarehouseIn/reportBatchWsInError`, // 进仓单异常反馈
getLbsRecordListByBillCode: `/oms2c/common/getLbsRecordListByBillCode`, // 获取运单lbs信息
} }

21
common/custom.js Normal file
View File

@ -0,0 +1,21 @@
/**
* This is just a simple version of deep copy
* Has a lot of edge cases bug
* If you want to use a perfect deep copy, use lodash's _.cloneDeep
* @param {Object} source
* @returns {Object}
*/
export function deepClone(source) {
if (!source && typeof source !== 'object') {
throw new Error('error arguments', 'deepClone')
}
const targetObj = source.constructor === Array ? [] : {}
Object.keys(source).forEach(keys => {
if (source[keys] && typeof source[keys] === 'object') {
targetObj[keys] = deepClone(source[keys])
} else {
targetObj[keys] = source[keys]
}
})
return targetObj
}

View File

@ -1,9 +1,9 @@
export default (path)=> { export default (path)=> {
// return `/sta_back/images/${path}` // return `/sta_back/images/${path}`
return `https://oms.jtrs56.com/static/sapp/images/${path}` return `https://oms.tanex56.com/static/sapp/images/${path}`
} }
export const getCdnRoot = (path)=> { export const getCdnRoot = (path)=> {
// return `/static/${path}` // return `/static/${path}`
return `https://oms.jtrs56.com/static/sapp/${path}` return `https://oms.tanex56.com/static/sapp/${path}`
} }

View File

@ -0,0 +1,110 @@
<template>
<u-row justify="between">
<u-row @click="setClipboardData(modelInfo.billCode)">
<view>
<u-text v-if="modelInfo.billCode" :text="`运单号:${modelInfo.billCode}` " size="26"></u-text>
<u-text v-else :text="`订单号:${modelInfo.orderSn}` " size="26"></u-text>
</view>
<view class="pl-10">
<u-icon name="file-text" size="32" custom-style=""></u-icon>
</view>
</u-row>
<view>
<!-- <view v-if="showInfoBtn" @click="goto(`post/detail?billCode=${modelInfo.billCode}`)" class="com-tag-grey">
运单信息
</view> -->
<tpx-text-dic v-if="!showInfoBtn" :value="modelInfo.orderStatus" :list="dicData.emis_order_status" ></tpx-text-dic>
</view>
</u-row>
<view @click="goto(`post/detail?billCode=${modelInfo.billCode}`)">
<u-row custom-style="margin-top: 5rpx;" justify="center">
<u-col span="4">
<u-text :text="(sender.countryName + sender.provinceName)||'-'" size="30" :bold="true" align="center"></u-text>
<!-- <u-text :text="sender.name" size="26" color="#999" margin="20rpx 0 0 0"
align="center"></u-text> -->
</u-col>
<u-col span="4" justify="center" align="center" custom-style="text-align: center;">
<image style="width: 70rpx;height: 14rpx;" :src="getCdnUrl('post/toline.png')">
</image>
<!-- getCdnUrl('post/toline-grey.png') -->
<view class="mt-10">
<tpx-text-dic :value="modelInfo.waybillStatus" :list="dicData.emis_waybill_status" ></tpx-text-dic>
</view>
</u-col>
<u-col span="4">
<u-text :text="(reciever.countryName + reciever.provinceName)||'-'" size="30" :bold="true" align="center"></u-text>
<!-- <u-text :text="reciever.name" size="26" color="#999" margin="20rpx 0 0 0"
align="center"></u-text> -->
</u-col>
</u-row>
<u-text v-if="modelInfo.blSign!=1" :text="`下单时间:${modelInfo.sendDate}`" color="#999" size="24"
margin="10rpx 0 0 0"></u-text>
<u-text v-if="modelInfo.blSign==1" :text="`签收时间:${modelInfo.signDate}`" color="#999" size="24"
margin="10rpx 0 0 0"></u-text>
</view>
</template>
<script>
export default {
computed: {
modelInfo: {
get() {
return this.value
}
},
sender() {
let obj = JSON.parse(JSON.stringify(this.value?.sender || this.value || {}))
obj.countryName = obj.sendCountryName || obj.countryName
obj.provinceName = obj.sendProvinceName || obj.provinceName
obj.name = obj.sendName || obj.name
return obj
},
reciever() {
let obj = JSON.parse(JSON.stringify(this.value?.reciever || this.value || {}))
obj.countryName = obj.receiveCountryName || obj.countryName
obj.provinceName = obj.receiveProvinceName || obj.provinceName
obj.name = obj.receiveName || obj.name
return obj
},
dicData() {
return this.$store.getters.dicData
}
},
props: {
value: {
default () {
return {}
}
},
showInfoBtn: {
default () {
return true
}
},
},
data() {
return {}
},
created() {
},
onHide() {
},
unmounted() {
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>

View File

@ -80,6 +80,12 @@
return 'dfl' return 'dfl'
} }
}, },
pageSize: {
default () {
return 20
}
},
maxHeight: { maxHeight: {
default () { default () {
return '' return ''
@ -91,7 +97,7 @@
reqLoading: false, reqLoading: false,
page: { // 分页参数 page: { // 分页参数
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: this.pageSize,
}, },
showLoadMore: false, // 是否显示加载更多的loading showLoadMore: false, // 是否显示加载更多的loading
loadedAll: false, // 是否加载了所有数据 loadedAll: false, // 是否加载了所有数据

View File

@ -1,6 +1,6 @@
{ {
"name" : "探路速运", "name" : "探路速运",
"appid" : "__UNI__21F858F", "appid" : "__UNI__BAEB38C",
"description" : "探路速运", "description" : "探路速运",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
@ -98,6 +98,18 @@
"appkey_ios" : "aatodo", "appkey_ios" : "aatodo",
"appkey_android" : "b7feefb9882f1d0953fbeffb1cef8aec" "appkey_android" : "b7feefb9882f1d0953fbeffb1cef8aec"
} }
},
"share" : {
"weixin" : {
"appid" : "wx79c800bfadd5b081",
"UniversalLinks" : ""
}
},
"oauth" : {
"weixin" : {
"appid" : "wx79c800bfadd5b081",
"UniversalLinks" : ""
}
} }
}, },
"orientation" : [ "portrait-primary" ], "orientation" : [ "portrait-primary" ],

View File

@ -14,7 +14,8 @@
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"dayjs": "^1.11.10", "coordtransform": "^2.1.2",
"dayjs": "^1.11.13",
"file-saver": "2.0.5" "file-saver": "2.0.5"
}, },
"dcloudext": { "dcloudext": {

View File

@ -1,119 +1,164 @@
<template> <template>
<tpx-page> <tpx-page>
<tpx-layout> <tpx-layout>
<template #body> <template v-slot:header>
<view> <view >
<view class="dt-head"> <view class="dt-head">
<u-text :text="'账单信息'" size="30" :bold="true"></u-text>
<u-line margin="20rpx 0 20rpx"></u-line>
<view class="dt-item"> <view class="dt-item">
<view class="lb1">账单编号</view> <view class="lb1">账单编号:</view>
<view class="lb2">{{info.settleBillNo}}</view> <view class="lb2" style="font-weight: bold;">{{info.settleBillNo}}</view>
</view> </view>
<view class="dt-item"> <view class="dt-item">
<view class="lb1">出账日期</view> <view class="lb1">账单日期:</view>
<view class="lb2">{{info.settleStartDate}}</view> <view class="lb2">{{info.createTime}}</view>
</view> </view>
<view class="dt-item"> <view class="dt-item">
<view class="lb1">总票数</view> <u-row justify="between" align="top">
<view class="lb2">{{info.sendPieceSum}}</view> <u-col span="12">
</view> <!-- <u-text :text="`账单月份:${info.billMonth}`" size="26"
<view class="dt-item"> margin="14rpx 0 0 0"></u-text> -->
<view class="lb1">总件数</view> <u-text :text="`总票数:${info.sendPieceSum}`" size="26"
<view class="lb2">{{info.pieceNumber}}</view> margin="14rpx 0 0 0"></u-text>
</view> <u-text :text="`结算重量:${info.feeWeight}KG`" size="26"
<view class="dt-item"> margin="14rpx 0 0 0"></u-text>
<view class="lb1">总重量</view>
<view class="lb2">{{info.feeWeight}}</view> <u-text :text="`总费用:${info.recMoney}CNY`" size="26"
</view> margin="14rpx 0 0 0"></u-text>
<view class="dt-item">
<view class="lb1">应付金额</view> </u-col>
<view class="lb2 clr-prm">¥{{info.recMoney}}</view> <u-col span="12">
</view> <u-text :text="`总件数:${info.pieceNumber}`" size="26"
<view class="dt-item"> margin="14rpx 0 0 0"></u-text>
<view class="lb1">已付金额</view> <view >
<view class="lb2 clr-prm">¥{{info.recedMoney}}</view> <u-text v-if="info.openBillStatus == '0'" :text="`开票状态:未开票`" size="26"margin="14rpx 0 0 0"></u-text>
</view> <u-text v-if="info.openBillStatus == '1'" :text="`开票状态:已开票`" size="26"margin="14rpx 0 0 0"></u-text>
<view class="dt-item"> <u-text v-if="info.openBillStatus == '2'" :text="`开票状态:部分开票`" size="26"margin="14rpx 0 0 0"></u-text>
<view class="lb1">开票状态</view> <u-text v-if="info.openBillStatus == '3'" :text="`开票状态:不开票`" size="26"margin="14rpx 0 0 0"></u-text>
<view class="lb2">
<tetx v-if="info.openBillStatus == 0">未开票</tetx>
<tetx v-if="info.openBillStatus == 1">已开票</tetx>
<tetx v-if="info.openBillStatus == 2">部分开票</tetx>
</view>
</view>
<view v-if="info.paymentStatus==1" class="dt-item">
<view class="lb1">支付状态</view>
<view class="lb2 clr-prm font-weight">已支付</view>
</view>
<!-- <view class="dt-item mt-30">
<view class="lb1">收款账户</view>
<view class="lb2">
<u-row >
<u-avatar size="80" shape="square"></u-avatar>
<view class="pl-10">
<u-text :text="'江苏探路者国际物流有限公司'" size="28" :bold="true" ></u-text>
<u-text :text="'介绍'" size="26" color="#666" margin="10rpx 0 0 0"></u-text>
</view> </view>
</u-row> <u-text :text="`已付费用:${info.recedMoney}CNY`" size="26"
margin="14rpx 0 0 0"></u-text>
</u-col>
</u-row>
</view>
<view class="dt-item" >
<view class="">支付状态:</view>
<view class="lb2">
<text v-if="info.paymentStatus == '0'">未付款</text>
<text v-if="info.paymentStatus == '1'">已付款</text>
<text v-if="info.paymentStatus == '2'">部分付款</text>
</view> </view>
</view> --> <!-- <view class="lb2 clr-prm font-weight">已付款</view> -->
</view>
<view v-if="info.paymentStatus!=1" class="dt-item mt-30"> <view v-if="info.paymentStatus!=1&&info.thisPayMoney>0" class="dt-item mt-30">
<view class="lb1">支付金额</view> <view class="">待支付:</view>
<view class="zhfxin"> <view class="zhfxin">
<view style="text-align: center;width: 300rpx;"> <view style="display: inline-block;">
<u-image :src="payQrImageUrl" height="300" width="300" radius="10"></u-image> <u-text :text="`¥${info.thisPayMoney}`" size="42" :bold="true" color="red" align="center"></u-text>
<view class="mt-10" style="display: inline-block;"> </view>
<u-text :text="`¥${info.thisPayMoney}`" size="32" :bold="true" color="#B12D29" align="center"></u-text> </view>
</view> </view>
<view v-if="info.paymentStatus!=1" class="dt-item mt-30">
<view style="width: 50px;">备注:</view>
<view >
<view v-if="info.blLockOnlinePay=='T'" style="display: inline-block;">
<u-text :text="`${info.lockOnlinePayReason}`" size="42" color="red" align="left"></u-text>
</view>
<view v-if="info.blLockOnlinePay!='T'" style="display: inline-block;">
<u-text :text="`账单支持在线支付,收款和开票:探路供应链(江苏)有限公司`" size="26" color="black" align="left"></u-text>
</view> </view>
<u-text margin="20rpx 0 0 0" :text="'请使用微信或支付宝扫以上码支付'" size="28" :bold="true"></u-text>
</view> </view>
</view> </view>
</view> </view>
<view style="background: #fff;padding-left: 10px;">
<view class="dt-body"> <u-text :text="'运单列表:'" size="30" :bold="true"></u-text>
<u-text :text="'运单列表'" size="30" :bold="true"></u-text>
<u-line margin="20rpx 0 20rpx"></u-line> <u-line margin="20rpx 0 20rpx"></u-line>
<view v-for="(item) in info.subBillList" class="yditem">
<view class="ydi-lab">
<view>
<u-text :text="'运单号'" size="26" color="#999"></u-text>
</view>
<view>
<u-text :text="item.billCode" size="28" :bold="true" align="right"></u-text>
</view>
</view>
<view class="ydi-lab mt-10">
<view>
<u-text :text="'应付金额'" size="26" color="#999"></u-text>
</view>
<view>
<u-text :text="`¥${item.billFee}`" size="28" :bold="true" color="#B12D29" align="right"></u-text>
</view>
</view>
</view>
<tpx-empty v-if="!(info.subBillList && info.subBillList.length > 0)" size="sm"></tpx-empty>
</view> </view>
</view> </view>
</template> </template>
<template v-slot:body>
<view class="pos-abt-all">
<tpx-scroll-view v-model:resObject="resData" :pageSize="5" :searchParam="searchParam" :getListFun="getListFun"
ref="listRef"
>
<view class="">
<!-- 列表数据 -->
<view v-for="(item) in resData.list" class="ord-list-item" >
<u-row justify="between" align="top">
<u-col span="6">
<u-text :text="`运单号:${item.billCode}`" size="26" :bold="true"
margin="14rpx 0 0 0"></u-text>
<!-- <view style="display: inline-flex;">
<u-text :text="`运单号:`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`${item.billCode}`" :bold="true" size="26"
margin="0rpx 0 0 0"></u-text>
</view> -->
<u-text :text="`发件人:${item.waybillDetail.sendName}`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`总运费:${item.waybillDetail.freight}CNY`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`实际重量:${item.waybillDetail.billWeight}KG`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`体积:${item.waybillDetail.totalVolume}m³`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`产品类型:${item.waybillDetail.productTypeName}`" size="26"
margin="14rpx 0 0 0"></u-text>
</u-col>
<u-col span="6">
<u-text :text="`寄件日期:${this.formatSendDay(item.waybillDetail.sendDate)}`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`快件类型:${item.waybillDetail.sendSiteName}--${item.waybillDetail.dispatchUnderlingSiteName}`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`件数:${item.waybillDetail.parcelQty}`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`结算重量:${item.waybillDetail.settlementWeight}KG`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`寄件公司:${item.waybillDetail.sendCompany}`" size="26"
margin="14rpx 0 0 0"></u-text>
</u-col>
</u-row>
<u-row >
<u-col span="12">
<u-text :text="`费用备注:${item.waybillDetail.feeRemark}`" size="26"
margin="14rpx 0 0 0"></u-text>
</u-col>
</u-row>
</view>
</view>
</tpx-scroll-view>
</view>
</template>
<template #footer> <template #footer>
<view v-if="info.paymentStatus!=1" class="blcok-white-noradius"> <view v-if="info.paymentStatus!=1&&info.blLockOnlinePay!='T'&&info.thisPayMoney>0" class="blcok-white-noradius">
<u-button @click="handleCallPay()" type="primary" size="large" shape="circle" <u-button @click="handleCallPay()" type="primary" size="large" shape="circle"
custom-style="height:80rpx;font-size: 30rpx;" custom-style="height:80rpx;font-size: 30rpx;"
>支付</u-button> >立即支付</u-button>
</view> </view>
</template> </template>
</tpx-layout> </tpx-layout>
</tpx-page>
</tpx-page>
</template> </template>
<script> <script>
import dayjs from "dayjs"
import * as apiService from "@/common/api" import * as apiService from "@/common/api"
import { checkParams } from "@/common/validate" import { checkParams } from "@/common/validate"
@ -139,6 +184,10 @@
info: {}, info: {},
payQrImageUrl: '', payQrImageUrl: '',
pageLoading: true, pageLoading: true,
searchParam: {
settleBillNo: '',
},
resData: { list: [] }
} }
}, },
onLoad(queryOption) { onLoad(queryOption) {
@ -152,23 +201,55 @@
getSendSiteList: apiService.getSendSiteList, getSendSiteList: apiService.getSendSiteList,
async initData() { async initData() {
await this.getDetailData() await this.getDetailData()
if(this.info.paymentStatus != 1) {
await this.getPayQrcode()
}
this.pageLoading = false this.pageLoading = false
this.triggerListReload();
}, },
async getDetailData(){ async getDetailData(){
let res = await apiService.getInfoBySettleBillNo({settleBillNo: this.queryOption.blNo, _loading: true }) let res = await apiService.getSimpleInfoBySettleBillNo({settleBillNo: this.queryOption.blNo, _loading: true })
this.info = res.data || {} this.info = res.data || {}
this.searchParam.settleBillNo=this.queryOption.blNo;
},
triggerListReload(){
this?.$refs?.listRef?.getDataList?.(true) // 重置到第一页数据
},
async getListFun(param){
console.log("===>getListFun===>",param);
param.settleBillNo=this.queryOption.blNo;
let res = await apiService.getSubBillListBySettleBillNo(param)
return res
}, },
async getPayQrcode(){ async getPayQrcode(){
let res = await apiService.getWxPayQrCode({settleBillNo: this.queryOption.blNo, _loading: true })
this.payQrImageUrl = res.data
}, },
async handleCallPay(){ async handleCallPay(){
let res = await apiService.sumbitWxPay({settleBillNo: this.queryOption.blNo, _loading: true }) let info = this.$store.getters.userInfo
console.log(res) let openId = info.openId;
debugger let res = await apiService.sumbitWxPay({settleBillNo: this.queryOption.blNo,openId:openId,_loading: true })
// 调起微信支付
let weChatPayData = res.data;
uni.requestPayment({
provider: 'wxpay',
timeStamp: weChatPayData.timeStamp,
nonceStr: weChatPayData.nonceStr,
package: weChatPayData.package,
signType: weChatPayData.signType,
paySign: weChatPayData.paySign,
success: function(res) {
uni.showToast({
title: '支付成功',
icon: 'none'
});
},
fail: function(err) {
uni.showToast({
title: '支付失败:'+err,
icon: 'none'
});
}
});
},
formatSendDay(sendDate){
return dayjs(sendDate).format('YYYY-MM-DD');
}, },
} }
} }
@ -180,11 +261,25 @@
background-color: #F6F6F6; background-color: #F6F6F6;
height: 100% !important; height: 100% !important;
} }
.customer_nav_bar {
padding-top: 30rpx;
background-color: #FFF;
position: relative;
}
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
.pgb-cont{
padding: 30rpx;
}
.pgb-header {
// padding-top: --status-bar-height;
padding-top: 30rpx;
background-color: #FFF;
position: relative;
}
.dt-head { .dt-head {
margin-top: 30rpx; // margin-top: 30rpx;
padding: 30rpx; padding: 30rpx;
background-color: #FFF; background-color: #FFF;
position: relative; position: relative;
@ -202,24 +297,40 @@
.lb1 { .lb1 {
width: 160rpx; width: 160rpx;
font-size: 26rpx; font-size: 26rpx;
color: #999; color: #000;
} }
.lb2{ .lb2{
font-size: 26rpx; font-size: 26rpx;
font-weight: bold;
} }
} }
.zhfxin{
.ord-list-item{
box-shadow: 0rpx 3rpx 12rpx 0rpx rgba(139,139,139,0.06);
border-radius: 20rpx;
padding: 22rpx 30rpx;
background-color: #fff;
margin-bottom: 30rpx;
} }
.yditem{ .search-more-panel{
padding: 20rpx 20rpx; overflow: hidden;
background-color: #F6F6F6; position: absolute;
border-radius: 6rpx; left: 0;
margin-bottom: 20rpx; right: 0;
height: calc(70vh);
z-index: 200;
} }
.ydi-lab{ .smp-body{
padding: 30rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: column;
justify-content: space-between; height: 100%;
align-items: center; background-color: #FFF;
border-radius: 0 0 30rpx 30rpx;
box-sizing: border-box;
}
.smp-content{
flex: 1;
position: relative;
} }
</style> </style>

View File

@ -5,14 +5,14 @@
<view class="pgb-header"> <view class="pgb-header">
<view class="com-jianju" style=""> <view class="com-jianju" style="">
<tpx-search placeholder="请输入运单号/订单号" v-model:value="searchParam.searchValue" @change="handleSearch" bgColor="#FFF" :timelyTrigger="false"></tpx-search> <tpx-search placeholder="请输入运单号" v-model:value="searchParam.params.billCode" @change="handleSearch" bgColor="#FFF" :timelyTrigger="false"></tpx-search>
</view> </view>
<view class="com-jianju" style="padding-top: 30rpx;"> <view class="com-jianju" style="padding-top: 30rpx;">
<u-row justify="between" align="top"> <u-row justify="between" align="top">
<u-col span="12"> <u-col span="12">
<!-- 订单状态 --> <!-- 订单状态 -->
<tpx-tabs :list="dicData.emis_settlebill_status_tab" v-model:value="searchParam.params.queryType" <tpx-tabs :list="dicData.emis_settlebill_status_tab" v-model:value="searchParam.paymentStatus"
v-slot="curOrdTab" v-slot="curOrdTab"
> >
<text slot> <text slot>
@ -70,29 +70,46 @@
<!-- 列表数据 --> <!-- 列表数据 -->
<view v-for="(item) in resData.list" class="ord-list-item" > <view v-for="(item) in resData.list" class="ord-list-item" >
<u-row justify="between"> <u-row justify="between">
<text>{{item.settleBillNo}}</text> <text style="font-weight: bold;">账单号:{{item.settleBillNo}}</text>
<view class="com-tag-grey font-26"> <!-- <view class="com-tag-grey font-26">
<tetx v-if="item.openBillStatus == 0">未开票</tetx> <tetx v-if="item.openBillStatus == '0'">未开票</tetx>
<tetx v-if="item.openBillStatus == 1">已开票</tetx> <tetx v-if="item.openBillStatus == '1'">已开票</tetx>
<tetx v-if="item.openBillStatus == 2">部分开票</tetx> <tetx v-if="item.openBillStatus == '2'">部分开票</tetx>
</view> <tetx v-if="item.openBillStatus == '3'">不开票</tetx>
</view> -->
</u-row> </u-row>
<view class="mt-10" @click="handleDealItem(item, { type: 1 })"> <view class="mt-10" @click="handleDealItem(item, { type: 1 })">
<u-row justify="between" align="top"> <u-row justify="between" align="top">
<u-col span="6"> <u-col span="6">
<u-text :text="`账单月份:${item.billMonth}`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`总票数:${item.sendPieceSum}`" size="26" <u-text :text="`总票数:${item.sendPieceSum}`" size="26"
margin="14rpx 0 0 0"></u-text> margin="14rpx 0 0 0"></u-text>
<u-text :text="`总重量:${item.feeWeight}`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`总件数:${item.pieceNumber}`" size="26" <u-text :text="`总件数:${item.pieceNumber}`" size="26"
margin="14rpx 0 0 0"></u-text>
<u-text :text="`结算重量:${item.feeWeight} KG`" size="26"
margin="14rpx 0 0 0"></u-text> margin="14rpx 0 0 0"></u-text>
<view >
<u-text v-if="item.openBillStatus == '0'" :text="`开票状态:未开票`" size="26"margin="14rpx 0 0 0"></u-text>
<u-text v-if="item.openBillStatus == '1'" :text="`开票状态:已开票`" size="26"margin="14rpx 0 0 0"></u-text>
<u-text v-if="item.openBillStatus == '2'" :text="`开票状态:部分开票`" size="26"margin="14rpx 0 0 0"></u-text>
<u-text v-if="item.openBillStatus == '3'" :text="`开票状态:不开票`" size="26"margin="14rpx 0 0 0"></u-text>
</view>
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<u-text :text="`应付金额:${item.recMoney}CNY`" size="26"
margin="14rpx 0 0 0"></u-text> <u-text :text="`总费用:${item.recMoney}CNY`" size="26"margin="14rpx 0 0 0"></u-text>
<u-text :text="`已付金额:${item.recedMoney}CNY`" size="26" <u-text :text="`已付费用:${item.recedMoney}CNY`" size="26"margin="14rpx 0 0 0"></u-text>
margin="14rpx 0 0 0"></u-text> <u-text :text="`待支付:${(item.recMoney-item.recedMoney).toFixed(2)}CNY`" size="26"margin="14rpx 0 0 0"></u-text>
<view >
<u-text v-if="item.paymentStatus == '0'" :text="`付款状态:未付款`" size="26"margin="14rpx 0 0 0"></u-text>
<u-text v-if="item.paymentStatus == '1'" :text="`付款状态:已付款`" size="26"margin="14rpx 0 0 0"></u-text>
<u-text v-if="item.paymentStatus == '2'" :text="`付款状态:部分付款`" size="26"margin="14rpx 0 0 0"></u-text>
</view>
</u-col> </u-col>
</u-row> </u-row>
</view> </view>
@ -151,8 +168,9 @@
searchParam: { searchParam: {
searchValue: '', searchValue: '',
_date: [], _date: [],
paymentStatus: '0',
params: { params: {
queryType: dicData.emis_settlebill_status_tab?.[0]?.val, billCode:null
} }
}, },
queryOption: { queryOption: {

View File

@ -5,33 +5,42 @@
<template v-slot:body> <template v-slot:body>
<div style="min-height: 100%;display: flex;flex-direction: column;"> <div style="min-height: 100%;display: flex;flex-direction: column;">
<view style="position: relative;"> <view style="position: relative;">
<map :markers="map.markers" :latitude="map.latitude" :longitude="map.longitude" <map
style="width: 750rpx;height: 400rpx;" :polyline="[...polyline]"
:latitude="map.latitude"
:longitude="map.longitude"
:scale="map.scale"
style="width: 750rpx;height: 70vh;"
></map> ></map>
<view class="mp-base-block"> <view style="position: absolute;top:5px;width: 95%;padding-left: 8px;padding-right: 8px">
<bpd-send-reciever-tmp :value="modelInfo"></bpd-send-reciever-tmp> <view class="mp-base-block">
<bpd-map-reciever-panel :value="modelInfo"></bpd-map-reciever-panel>
</view>
</view> </view>
<view class="mp-base-block blackbg" @click="makePhoneCall(modelInfo.takePieceEmployeePhone)"> <view style="position: absolute;top:62vh;width: 95%;padding-left: 8px;padding-right: 8px">
<u-row justify="between"> <view class="mp-base-block blackbg" @click="makePhoneCall(modelInfo.takePieceEmployeePhone)">
<u-row> <u-row justify="between">
<tpx-image :src="getCdnUrl('post/run.png')" width="30" height="30"></tpx-image> <u-row>
<view class="ml-20">探路小哥 - {{modelInfo.takePieceEmployeeName}}</view> <tpx-image :src="getCdnUrl('post/run.png')" width="30" height="30"></tpx-image>
<view class="ml-20">探路小哥 - {{modelInfo.takePieceEmployeeName}}</view>
</u-row>
<tpx-image v-if="modelInfo.takePieceEmployeePhone" :src="getCdnUrl('post/call.png')" width="60" height="60"></tpx-image>
</u-row> </u-row>
<tpx-image v-if="modelInfo.takePieceEmployeePhone" :src="getCdnUrl('post/call.png')" width="60" height="60"></tpx-image> </view>
</u-row>
</view> </view>
</view> </view>
<view class="dt-block mt-20"> <view class="dt-block mt-20">
<view style="color: #b12d29;font-size: 10px;" >温馨提示:由于小程序腾讯地图局限,中国外地图道路可能显示不全,请通过网页查询。</view>
<view class="mb-20"> <view class="mb-20">
<buns-locus-pos :billCode="queryOption.billCode"></buns-locus-pos> <buns-locus-pos :billCode="queryOption.billCode"></buns-locus-pos>
</view> </view>
</view> </view>
</div> </div>
</template> </template>
<template v-slot:footer> <!-- <template v-slot:footer>
<view class="blcok-white-noradius" style="margin-top: 0;"> <view class="blcok-white-noradius" style="margin-top: 0;">
<u-row justify="space-around"> <u-row justify="space-around">
<u-button @click="goBack()" :plain="true" size="large" shape="circle" <u-button @click="goBack()" :plain="true" size="large" shape="circle"
@ -43,15 +52,15 @@
</u-button> </u-button>
</u-row> </u-row>
</view> </view>
</template> </template> -->
</tpx-layout> </tpx-layout>
</tpx-page> </tpx-page>
</template> </template>
<script> <script>
import coordtransform from 'coordtransform';
import * as apiService from "@/common/api" import * as apiService from "@/common/api"
import BpdSendRecieverTmp from "@/components/buns-post-detail-templates/bpd-send-reciever-tmp" import BpdMapRecieverPanel from "@/components/buns-post-detail-templates/bpd-map-reciever-panel"
export default { export default {
props: { props: {
@ -62,32 +71,24 @@
return this.$store.getters.dicData return this.$store.getters.dicData
}, },
}, },
components: { BpdSendRecieverTmp }, components: { BpdMapRecieverPanel },
data() { data() {
return { return {
queryOption: { queryOption: {
billCode: '', // 运单id billCode: '', // 运单id
}, },
modelInfo: {}, modelInfo: {},
dataList:[],
polyline: [{
width: 4,
points: [],
arrowLine: true,
color: '#28f',
}],
map: { map: {
latitude: 23.106574, //纬度 latitude: 23.106574, //纬度
longitude: 113.324587, //经度 longitude: 113.324587, //经度
scale: 13, //缩放级别 scale: 6, //缩放级别
markers: [{
latitude: 23.106574, //纬度
longitude: 113.324587, //经度
title: '出发地------',
iconPath: this.getCdnUrl('mine/kjcha.png'),
width: 50,
height: 50,
label: {
content: '发货地址',
color: '#fff',
borderRadius: '10',
bgColor: '#B12D29',
padding: '10'
}
}]
} }
} }
}, },
@ -106,6 +107,34 @@
let res = await apiService.getOrderDetail({billCode: this.queryOption.billCode, _loading: true}) let res = await apiService.getOrderDetail({billCode: this.queryOption.billCode, _loading: true})
// 通过对象合并才能修改父级 数据 // 通过对象合并才能修改父级 数据
Object.assign(this.modelInfo, res.data || {}) Object.assign(this.modelInfo, res.data || {})
const resLbs = await apiService.getLbsRecordListByBillCode({
billCode: this.queryOption.billCode
});
if (resLbs && resLbs.code === 200) {
let lbsRecordList=resLbs.data.lbsRecordList;
if( lbsRecordList && lbsRecordList.length>0){
let currentInfo=lbsRecordList[lbsRecordList.length-1];
this.map.latitude=this.cvtToWgs84(currentInfo.longitude, currentInfo.latitude)[1];
this.map.longitude=this.cvtToWgs84(currentInfo.longitude, currentInfo.latitude)[0];
this.dataList=lbsRecordList;
let points = lbsRecordList.map(item => ({
latitude: this.cvtToWgs84(item.longitude, item.latitude)[1],
longitude: this.cvtToWgs84(item.longitude, item.latitude)[0]
}));
this.polyline[0].points=points;
}
}
},
cvtToWgs84(longitude, latitude) {
let lng = longitude / 1000000;
let lat = latitude / 1000000;
return coordtransform.wgs84togcj02(lng, lat);
} }
} }
} }

View File

@ -433,24 +433,18 @@
this.submitParam.sendSiteCode = item.code; this.submitParam.sendSiteCode = item.code;
this.submitParam.sendSiteName = item.name this.submitParam.sendSiteName = item.name
// 重新计算产品
// this.handleWayChange()
}, },
handlePickupMethodChange(val){ handlePickupMethodChange(val){
this.submitParam.pickupMethod=val; this.submitParam.pickupMethod=val;
console.log("==>val==>",val); // 上门取件方式
console.log("==>this.submitParam.pickupMethod==>",this.submitParam.pickupMethod);
if(this.submitParam.pickupMethod==2){ if(this.submitParam.pickupMethod==2){
this.submitParam.intoWarehouseCode=null; this.submitParam.intoWarehouseCode=null;
this.submitParam.intoWarehouseName=null; this.submitParam.intoWarehouseName=null;
// 重新选择寄件网点
this.updateDltSendSite({ lineCode: this.submitParam.transLine }) this.updateDltSendSite({ lineCode: this.submitParam.transLine })
this.handleWayChange()
} }
// 仓库收货,整柜提货 // 仓库收货,整柜提货
else if(this.submitParam.pickupMethod==1 || this.submitParam.pickupMethod==3){ else if(this.submitParam.pickupMethod==1 || this.submitParam.pickupMethod==3){
// 重新计算产品
this.handleWayChange()
} }
}, },
handleCstClrChange(val){ handleCstClrChange(val){

View File

@ -40,6 +40,13 @@
</view> </view>
<view class="dt-block"> <view class="dt-block">
<view class="dt-tle">
<view class="t1">物流动态</view>
<view class="t2">
<u-button @click="goto(`post/locus?billCode=${searchParam.billCode}`)" shape="circle" :plain="true" custom-style="height: 50rpx;font-size:28rpx;">查看轨迹</u-button>
</view>
</view>
<u-line margin="20rpx 0 20rpx"></u-line>
<view class="mb-20"> <view class="mb-20">
<buns-locus-pos :billCode="searchParam.billCode" ref="lcusRef"></buns-locus-pos> <buns-locus-pos :billCode="searchParam.billCode" ref="lcusRef"></buns-locus-pos>
</view> </view>