This commit is contained in:
aihe 2024-05-10 11:15:31 +08:00
parent 28a974fa2a
commit d54d9268a3
6 changed files with 31 additions and 9 deletions

View File

@ -255,6 +255,10 @@ page{
height: 100% !important;
}
buns-auth{
display: contents;
}
/************* 动画 /**************/
.animated{animation-duration: 0.5s;animation-fill-mode:both}
.animated.fast{animation-duration: 0.3s}

View File

@ -198,7 +198,7 @@ const dealBtnMap = {
qianShouScan: { title: '签收扫描', subTitle: "", icon: getCdnUrl(`home/qianshsm.png`), url: 'deliveryDeal/signedScanning', code: authCodeEnum.qianShouScan },
fenBoScan: { title: '分拨发件', subTitle: "", icon: getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/distributeOutgoing' },
paiJianScan: { title: '派件扫描', subTitle: "", icon: getCdnUrl(`home/paijsm.png`), url: 'deliveryDeal/deliveryScanning', code: authCodeEnum.paiJianScan },
yunDanXiuGai: { title: '运单修改', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: 'post/post' },
yunDanXiuGai: { title: '运单修改', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: 'post/openorder' },
baoJiaShiSuan: { title: '报价试算', subTitle: "", icon: getCdnUrl(`home/baojshs.png`), url: 'post/freightCalculate' },
wenTiJian: { title: '问题件', subTitle: "", icon: getCdnUrl(`home/wentijian.png`), url: 'deliveryDeal/problemsRegisteScanning' },
daoPaiScan: { title: '到派扫描', subTitle: "", icon: getCdnUrl(`home/daohsm.png`), url: 'deliveryDeal/arriveDeliveryScanning' },

View File

@ -1,7 +1,7 @@
<template>
<u-input :placeholder="placeholder" :fontSize="fontSize" :modelValue="value"
:custom-style="`border-radius: 10rpx;padding: 11rpx 20rpx;${customStyle};`"
@change="handleChange"
@change="handleInputChange"
>
<template v-if="iconPos == 'left'" v-slot:prefix>
<u-icon @click="handleScan" name="scan" :size="fontSize*1.5"></u-icon>
@ -11,7 +11,7 @@
<u-icon @click="handleScan" name="scan" :size="fontSize*1.5"></u-icon>
</template>
</u-input>
<tpx-physics-scan @onChange="handleChange"></tpx-physics-scan>
<tpx-physics-scan @onChange="handleScanChange"></tpx-physics-scan>
</template>
<script>
@ -64,11 +64,19 @@
methods: {
async handleScan() {
const res = await scanCode()
this.handleChange(res)
this.handleScanChange(res)
},
handleChange(val){
this.$emit('change', val)
this.$emit('update:value', val)
},
handleInputChange(val){
this.$emit('inputChange', val)
this.handleChange(val)
},
handleScanChange(val){
this.$emit('scanChange', val)
this.handleChange(val)
}
}
}

View File

@ -7,7 +7,7 @@
<u-row justify="between">
<view style="width: 130rpx;">运单号</view>
<view style="flex:1;">
<tpx-scan-input v-model:value="submitParam.billCode"></tpx-scan-input>
<tpx-scan-input v-model:value="submitParam.billCode" @scanChange="handleScanChange"></tpx-scan-input>
</view>
<view class="pl-10">
<u-button @click="handleCreateOrderNo()"
@ -349,6 +349,12 @@
initEvent() {
},
handleScanChange(val) {
// 扫码回调 要重新查询新运单信息,并覆盖老的
this.queryOption.billCode = val
this.initData();
this.initEvent()
},
async handleCreateOrderNo() {
const res = await apiService.createOrderNo()

View File

@ -459,7 +459,7 @@ export default {
}
</script>
<style scoped>
<style scoped lang="scss">
.list-item {
font-size: 26rpx;
margin-bottom: 20rpx;

View File

@ -66,8 +66,12 @@ export default {
rootState
}, options) {
if(!state.token) {
goto("login/login", 2)
throw new Error('缺少token')
console.log('缺少token')
// TODO
setTimeout(()=> {
goto("login/login", 2)
}, 200)
return
}
const resInfo = await apiService.getInfoByApp()