同步
This commit is contained in:
parent
ed8d66fae6
commit
a077e09159
@ -5,10 +5,10 @@
|
||||
<view class="pb-20">
|
||||
<u-row>
|
||||
<u-col span="8">
|
||||
<text class="font-weight">运单号</text>
|
||||
<text class="font-weight">{{customTabelConf.head[0] || '运单号'}}</text>
|
||||
</u-col>
|
||||
<u-col span="4">
|
||||
<text class="font-weight">扫描时间</text>
|
||||
<text class="font-weight">{{customTabelConf.head[1] || '扫描时间'}}</text>
|
||||
</u-col>
|
||||
</u-row>
|
||||
</view>
|
||||
@ -52,6 +52,13 @@
|
||||
default () {
|
||||
return false
|
||||
}
|
||||
},
|
||||
customTabelConf: {
|
||||
default () {
|
||||
return {
|
||||
head: []
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@ -79,5 +86,11 @@
|
||||
|
||||
</style>
|
||||
<style scoped lang="scss">
|
||||
|
||||
.yditem{
|
||||
padding: 20rpx 0;
|
||||
border-top: 2px solid #F6F6F6;
|
||||
&:last-child{
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -2,7 +2,8 @@
|
||||
<u-row justify="between">
|
||||
<u-row @click="setClipboardData(modelInfo.billCode)">
|
||||
<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 class="pl-10">
|
||||
<u-icon name="file-text" size="32" custom-style=""></u-icon>
|
||||
@ -24,9 +25,9 @@
|
||||
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('search/toline.png')">
|
||||
<image style="width: 70rpx;height: 14rpx;" :src="getCdnUrl('post/toline.png')">
|
||||
</image>
|
||||
<!-- getCdnUrl('search/toline-grey.png') -->
|
||||
<!-- getCdnUrl('post/toline-grey.png') -->
|
||||
<view class="mt-10">
|
||||
<tpx-text-dic :value="modelInfo.waybillStatus" :list="dicData.emis_waybill_status" ></tpx-text-dic>
|
||||
</view>
|
||||
|
||||
@ -30,12 +30,14 @@
|
||||
<view class="edm-input-item">
|
||||
<tpx-text-item label="是否需要代垫运费">
|
||||
<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>
|
||||
</tpx-text-item>
|
||||
</view>
|
||||
|
||||
<view v-if="modelInfo.blPrepareInFreight" class="edm-input-item">
|
||||
<view v-if="modelInfo.blPrepareInFreight == '1'" class="edm-input-item">
|
||||
<tpx-text-item label="代垫预估">
|
||||
<template v-slot:right>
|
||||
<tpx-input v-model:value="modelInfo.prepareInEstFee" _digit="5" inputAlign="right" suffix="CNY"></tpx-input>
|
||||
@ -98,7 +100,11 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
handleDDianSwitch(val){
|
||||
if(val!=1) {
|
||||
this.modelInfo.prepareInEstFee = undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -61,6 +61,15 @@
|
||||
</u-row>
|
||||
</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>
|
||||
|
||||
<script>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<text class="clr-sub 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.length || '0'}}cm
|
||||
{{item.height || '0'}}cm
|
||||
</view>
|
||||
</u-col>
|
||||
<u-col v-if="item.nationArea" span="6">
|
||||
|
||||
@ -33,6 +33,6 @@
|
||||
}
|
||||
|
||||
.submit {
|
||||
border-bottom: 1rpx solid #BEBEBE;
|
||||
border-bottom: 2rpx solid #BEBEBE;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -55,7 +55,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
curDealPromise: {}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@ -74,11 +74,23 @@
|
||||
handleBtnCheck(type) {
|
||||
if(type == 'yes') {
|
||||
this.$emit('onSure')
|
||||
this.curDealPromise?.resolve?.(true)
|
||||
} else {
|
||||
this.handleCloseModal()
|
||||
this.curDealPromise?.resolve?.(false)
|
||||
this.$emit('onClose')
|
||||
this.$emit('onCancel')
|
||||
}
|
||||
this.curDealPromise = {}
|
||||
},
|
||||
getConfirmResult(){
|
||||
// 显示弹框,并返回promise
|
||||
this.$emit('update:show', true)
|
||||
return new Promise((resolve, reject)=> {
|
||||
this.curDealPromise = {
|
||||
resolve
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<u-icon name="close" size="32" color="#999"></u-icon>
|
||||
</view>
|
||||
</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 class="lgd-body" :style="`padding: 0rpx 30rpx;${contentStyle}`">
|
||||
<slot></slot>
|
||||
|
||||
@ -20,11 +20,11 @@
|
||||
let sty1 = 'border:0;border-radius: 10rpx;padding: 11rpx 20rpx;'
|
||||
// if(this.isWhite) {
|
||||
// bgColor = '#fff'
|
||||
// sty1 += 'border: 1rpx solid #dadbde;'
|
||||
// sty1 += 'border: 2rpx solid #dadbde;'
|
||||
// }
|
||||
if(true) {
|
||||
bgColor = '#fff'
|
||||
sty1 += 'border: 1rpx solid #dadbde;'
|
||||
sty1 += 'border: 2rpx solid #dadbde;'
|
||||
}
|
||||
if(!this.disabled) {
|
||||
sty1 += `background-color:${bgColor};`
|
||||
|
||||
@ -114,6 +114,7 @@
|
||||
return
|
||||
}
|
||||
if (reload) {
|
||||
this.$emit('onListReload', this.searchParam)
|
||||
this.page.pageNum = 1
|
||||
this.showLoading()
|
||||
}
|
||||
|
||||
@ -96,10 +96,10 @@
|
||||
}
|
||||
.c-white{
|
||||
background-color: #fff;
|
||||
border: 1rpx solid #dadbde;
|
||||
border: 2rpx solid #dadbde;
|
||||
}
|
||||
.c-grey{
|
||||
background-color: #F6F6F6;
|
||||
border: 1rpx solid #dadbde;
|
||||
border: 2rpx solid #dadbde;
|
||||
}
|
||||
</style>
|
||||
@ -46,7 +46,9 @@
|
||||
</template>
|
||||
<script>
|
||||
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 {
|
||||
props: {
|
||||
@ -54,6 +56,7 @@
|
||||
data() {
|
||||
return {
|
||||
submitParams: {
|
||||
isEncrypt: true,
|
||||
username: '',
|
||||
password: '',
|
||||
remberPassport: []
|
||||
@ -77,11 +80,19 @@
|
||||
const { submitParams } = this
|
||||
this.showLoading()
|
||||
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)
|
||||
setSessionLoginInfo(submitParams)
|
||||
this.goto("tabBar/home/home")
|
||||
this.goto("tabBar/sending/sending")
|
||||
}catch(e){
|
||||
console.error("USERKEY.LOGIN===catch error:", e)
|
||||
}
|
||||
this.hideLoading()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user