This commit is contained in:
aihe 2024-07-10 13:33:52 +08:00
parent ed8d66fae6
commit a077e09159
12 changed files with 73 additions and 20 deletions

View File

@ -5,10 +5,10 @@
<view class="pb-20"> <view class="pb-20">
<u-row> <u-row>
<u-col span="8"> <u-col span="8">
<text class="font-weight">运单号</text> <text class="font-weight">{{customTabelConf.head[0] || '运单号'}}</text>
</u-col> </u-col>
<u-col span="4"> <u-col span="4">
<text class="font-weight">扫描时间</text> <text class="font-weight">{{customTabelConf.head[1] || '扫描时间'}}</text>
</u-col> </u-col>
</u-row> </u-row>
</view> </view>
@ -52,6 +52,13 @@
default () { default () {
return false return false
} }
},
customTabelConf: {
default () {
return {
head: []
}
}
} }
}, },
data() { data() {
@ -79,5 +86,11 @@
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
.yditem{
padding: 20rpx 0;
border-top: 2px solid #F6F6F6;
&:last-child{
padding-bottom: 0;
}
}
</style> </style>

View File

@ -2,7 +2,8 @@
<u-row justify="between"> <u-row justify="between">
<u-row @click="setClipboardData(modelInfo.billCode)"> <u-row @click="setClipboardData(modelInfo.billCode)">
<view> <view>
<u-text :text="`运单号:${modelInfo.billCode}` " size="26"></u-text> <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>
<view class="pl-10"> <view class="pl-10">
<u-icon name="file-text" size="32" custom-style=""></u-icon> <u-icon name="file-text" size="32" custom-style=""></u-icon>
@ -24,9 +25,9 @@
align="center"></u-text> align="center"></u-text>
</u-col> </u-col>
<u-col span="4" justify="center" align="center" custom-style="text-align: center;"> <u-col span="4" justify="center" align="center" custom-style="text-align: center;">
<image style="width: 70rpx;height: 14rpx;" :src="getCdnUrl('search/toline.png')"> <image style="width: 70rpx;height: 14rpx;" :src="getCdnUrl('post/toline.png')">
</image> </image>
<!-- getCdnUrl('search/toline-grey.png') --> <!-- getCdnUrl('post/toline-grey.png') -->
<view class="mt-10"> <view class="mt-10">
<tpx-text-dic :value="modelInfo.waybillStatus" :list="dicData.emis_waybill_status" ></tpx-text-dic> <tpx-text-dic :value="modelInfo.waybillStatus" :list="dicData.emis_waybill_status" ></tpx-text-dic>
</view> </view>

View File

@ -30,12 +30,14 @@
<view class="edm-input-item"> <view class="edm-input-item">
<tpx-text-item label="是否需要代垫运费"> <tpx-text-item label="是否需要代垫运费">
<template v-slot:right> <template v-slot:right>
<u-switch v-model="modelInfo.blPrepareInFreight" activeValue="1" inactiveValue="0" active-color="#B12D29" size="34"></u-switch> <u-switch v-model="modelInfo.blPrepareInFreight" @change="handleDDianSwitch"
activeValue="1" inactiveValue="0" active-color="#B12D29" size="34"
></u-switch>
</template> </template>
</tpx-text-item> </tpx-text-item>
</view> </view>
<view v-if="modelInfo.blPrepareInFreight" class="edm-input-item"> <view v-if="modelInfo.blPrepareInFreight == '1'" class="edm-input-item">
<tpx-text-item label="代垫预估"> <tpx-text-item label="代垫预估">
<template v-slot:right> <template v-slot:right>
<tpx-input v-model:value="modelInfo.prepareInEstFee" _digit="5" inputAlign="right" suffix="CNY"></tpx-input> <tpx-input v-model:value="modelInfo.prepareInEstFee" _digit="5" inputAlign="right" suffix="CNY"></tpx-input>
@ -98,7 +100,11 @@
}, },
methods: { methods: {
handleDDianSwitch(val){
if(val!=1) {
this.modelInfo.prepareInEstFee = undefined
}
}
} }
} }
</script> </script>

View File

@ -61,6 +61,15 @@
</u-row> </u-row>
</view> </view>
<view class="edm-input-item">
<u-row justify="between" align="top">
<text class="font-28 pt-20 font-weight">货值</text>
<view>
<tpx-input v-model:value="modelInfo.realValue" placeholder="" inputAlign="right" suffix="美元" _digit="5"></tpx-input>
</view>
</u-row>
</view>
</template> </template>
<script> <script>

View File

@ -20,7 +20,7 @@
<text class="clr-sub pr-10">尺寸</text> <text class="clr-sub pr-10">尺寸</text>
{{item.length || '0'}}cm<text class="clr-sub pl-10 pr-10">*</text> {{item.length || '0'}}cm<text class="clr-sub pl-10 pr-10">*</text>
{{item.width || '0'}}cm<text class="clr-sub pl-10 pr-10 ">*</text> {{item.width || '0'}}cm<text class="clr-sub pl-10 pr-10 ">*</text>
{{item.length || '0'}}cm {{item.height || '0'}}cm
</view> </view>
</u-col> </u-col>
<u-col v-if="item.nationArea" span="6"> <u-col v-if="item.nationArea" span="6">

View File

@ -33,6 +33,6 @@
} }
.submit { .submit {
border-bottom: 1rpx solid #BEBEBE; border-bottom: 2rpx solid #BEBEBE;
} }
</style> </style>

View File

@ -55,7 +55,7 @@
}, },
data() { data() {
return { return {
curDealPromise: {}
} }
}, },
created() { created() {
@ -74,11 +74,23 @@
handleBtnCheck(type) { handleBtnCheck(type) {
if(type == 'yes') { if(type == 'yes') {
this.$emit('onSure') this.$emit('onSure')
this.curDealPromise?.resolve?.(true)
} else { } else {
this.handleCloseModal() this.handleCloseModal()
this.curDealPromise?.resolve?.(false)
this.$emit('onClose') this.$emit('onClose')
this.$emit('onCancel') this.$emit('onCancel')
} }
this.curDealPromise = {}
},
getConfirmResult(){
// 显示弹框,并返回promise
this.$emit('update:show', true)
return new Promise((resolve, reject)=> {
this.curDealPromise = {
resolve
}
})
} }
} }
} }

View File

@ -11,7 +11,7 @@
<u-icon name="close" size="32" color="#999"></u-icon> <u-icon name="close" size="32" color="#999"></u-icon>
</view> </view>
</u-row> </u-row>
<view style="height: 1rpx;background-color: rgb(214, 215, 217);position: absolute;left: 0rpx;right: 0rpx;;"></view> <view style="height: 2rpx;background-color: rgb(214, 215, 217);position: absolute;left: 0rpx;right: 0rpx;;"></view>
</view> </view>
<view class="lgd-body" :style="`padding: 0rpx 30rpx;${contentStyle}`"> <view class="lgd-body" :style="`padding: 0rpx 30rpx;${contentStyle}`">
<slot></slot> <slot></slot>

View File

@ -20,11 +20,11 @@
let sty1 = 'border:0;border-radius: 10rpx;padding: 11rpx 20rpx;' let sty1 = 'border:0;border-radius: 10rpx;padding: 11rpx 20rpx;'
// if(this.isWhite) { // if(this.isWhite) {
// bgColor = '#fff' // bgColor = '#fff'
// sty1 += 'border: 1rpx solid #dadbde;' // sty1 += 'border: 2rpx solid #dadbde;'
// } // }
if(true) { if(true) {
bgColor = '#fff' bgColor = '#fff'
sty1 += 'border: 1rpx solid #dadbde;' sty1 += 'border: 2rpx solid #dadbde;'
} }
if(!this.disabled) { if(!this.disabled) {
sty1 += `background-color:${bgColor};` sty1 += `background-color:${bgColor};`

View File

@ -114,6 +114,7 @@
return return
} }
if (reload) { if (reload) {
this.$emit('onListReload', this.searchParam)
this.page.pageNum = 1 this.page.pageNum = 1
this.showLoading() this.showLoading()
} }

View File

@ -96,10 +96,10 @@
} }
.c-white{ .c-white{
background-color: #fff; background-color: #fff;
border: 1rpx solid #dadbde; border: 2rpx solid #dadbde;
} }
.c-grey{ .c-grey{
background-color: #F6F6F6; background-color: #F6F6F6;
border: 1rpx solid #dadbde; border: 2rpx solid #dadbde;
} }
</style> </style>

View File

@ -46,7 +46,9 @@
</template> </template>
<script> <script>
import { USERKEY } from "@/store/actionKey" import { USERKEY } from "@/store/actionKey"
import { getSessionLoginInfo, setSessionLoginInfo } from "@/session" import { getSessionLoginInfo, setSessionLoginInfo, setSessionXToken } from "@/session"
import { encrypt } from "@/common/libs/jsencrypt_utils"
export default { export default {
props: { props: {
@ -54,6 +56,7 @@
data() { data() {
return { return {
submitParams: { submitParams: {
isEncrypt: true,
username: '', username: '',
password: '', password: '',
remberPassport: [] remberPassport: []
@ -77,11 +80,19 @@
const { submitParams } = this const { submitParams } = this
this.showLoading() this.showLoading()
try{ try{
await this.$store.dispatch(USERKEY.LOGIN, submitParams) setSessionXToken() // 登录前先清除xtoke
await this.$store.dispatch(USERKEY.LOGIN, {
...submitParams,
...(submitParams.isEncrypt ? {
password: encrypt(submitParams.password),
username: encrypt(submitParams.username),
} : {})
})
await this.$store.dispatch(USERKEY.GETUSERINFO) await this.$store.dispatch(USERKEY.GETUSERINFO)
setSessionLoginInfo(submitParams) setSessionLoginInfo(submitParams)
this.goto("tabBar/home/home") this.goto("tabBar/sending/sending")
}catch(e){ }catch(e){
console.error("USERKEY.LOGIN===catch error:", e)
} }
this.hideLoading() this.hideLoading()
} }