uu
This commit is contained in:
parent
28a974fa2a
commit
d54d9268a3
@ -255,6 +255,10 @@ page{
|
|||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buns-auth{
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
/************* 动画 /**************/
|
/************* 动画 /**************/
|
||||||
.animated{animation-duration: 0.5s;animation-fill-mode:both}
|
.animated{animation-duration: 0.5s;animation-fill-mode:both}
|
||||||
.animated.fast{animation-duration: 0.3s}
|
.animated.fast{animation-duration: 0.3s}
|
||||||
|
|||||||
@ -198,7 +198,7 @@ const dealBtnMap = {
|
|||||||
qianShouScan: { title: '签收扫描', subTitle: "", icon: getCdnUrl(`home/qianshsm.png`), url: 'deliveryDeal/signedScanning', code: authCodeEnum.qianShouScan },
|
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' },
|
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 },
|
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' },
|
baoJiaShiSuan: { title: '报价试算', subTitle: "", icon: getCdnUrl(`home/baojshs.png`), url: 'post/freightCalculate' },
|
||||||
wenTiJian: { title: '问题件', subTitle: "", icon: getCdnUrl(`home/wentijian.png`), url: 'deliveryDeal/problemsRegisteScanning' },
|
wenTiJian: { title: '问题件', subTitle: "", icon: getCdnUrl(`home/wentijian.png`), url: 'deliveryDeal/problemsRegisteScanning' },
|
||||||
daoPaiScan: { title: '到派扫描', subTitle: "", icon: getCdnUrl(`home/daohsm.png`), url: 'deliveryDeal/arriveDeliveryScanning' },
|
daoPaiScan: { title: '到派扫描', subTitle: "", icon: getCdnUrl(`home/daohsm.png`), url: 'deliveryDeal/arriveDeliveryScanning' },
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<u-input :placeholder="placeholder" :fontSize="fontSize" :modelValue="value"
|
<u-input :placeholder="placeholder" :fontSize="fontSize" :modelValue="value"
|
||||||
:custom-style="`border-radius: 10rpx;padding: 11rpx 20rpx;${customStyle};`"
|
:custom-style="`border-radius: 10rpx;padding: 11rpx 20rpx;${customStyle};`"
|
||||||
@change="handleChange"
|
@change="handleInputChange"
|
||||||
>
|
>
|
||||||
<template v-if="iconPos == 'left'" v-slot:prefix>
|
<template v-if="iconPos == 'left'" v-slot:prefix>
|
||||||
<u-icon @click="handleScan" name="scan" :size="fontSize*1.5"></u-icon>
|
<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>
|
<u-icon @click="handleScan" name="scan" :size="fontSize*1.5"></u-icon>
|
||||||
</template>
|
</template>
|
||||||
</u-input>
|
</u-input>
|
||||||
<tpx-physics-scan @onChange="handleChange"></tpx-physics-scan>
|
<tpx-physics-scan @onChange="handleScanChange"></tpx-physics-scan>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -64,11 +64,19 @@
|
|||||||
methods: {
|
methods: {
|
||||||
async handleScan() {
|
async handleScan() {
|
||||||
const res = await scanCode()
|
const res = await scanCode()
|
||||||
this.handleChange(res)
|
this.handleScanChange(res)
|
||||||
},
|
},
|
||||||
handleChange(val){
|
handleChange(val){
|
||||||
this.$emit('change', val)
|
this.$emit('change', val)
|
||||||
this.$emit('update:value', val)
|
this.$emit('update:value', val)
|
||||||
|
},
|
||||||
|
handleInputChange(val){
|
||||||
|
this.$emit('inputChange', val)
|
||||||
|
this.handleChange(val)
|
||||||
|
},
|
||||||
|
handleScanChange(val){
|
||||||
|
this.$emit('scanChange', val)
|
||||||
|
this.handleChange(val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="width: 130rpx;">运单号</view>
|
<view style="width: 130rpx;">运单号</view>
|
||||||
<view style="flex:1;">
|
<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>
|
||||||
<view class="pl-10">
|
<view class="pl-10">
|
||||||
<u-button @click="handleCreateOrderNo()"
|
<u-button @click="handleCreateOrderNo()"
|
||||||
@ -349,6 +349,12 @@
|
|||||||
|
|
||||||
initEvent() {
|
initEvent() {
|
||||||
|
|
||||||
|
},
|
||||||
|
handleScanChange(val) {
|
||||||
|
// 扫码回调 要重新查询新运单信息,并覆盖老的
|
||||||
|
this.queryOption.billCode = val
|
||||||
|
this.initData();
|
||||||
|
this.initEvent()
|
||||||
},
|
},
|
||||||
async handleCreateOrderNo() {
|
async handleCreateOrderNo() {
|
||||||
const res = await apiService.createOrderNo()
|
const res = await apiService.createOrderNo()
|
||||||
|
|||||||
@ -459,7 +459,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="scss">
|
||||||
.list-item {
|
.list-item {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
|||||||
@ -66,8 +66,12 @@ export default {
|
|||||||
rootState
|
rootState
|
||||||
}, options) {
|
}, options) {
|
||||||
if(!state.token) {
|
if(!state.token) {
|
||||||
goto("login/login", 2)
|
console.log('缺少token')
|
||||||
throw new Error('缺少token')
|
// TODO
|
||||||
|
setTimeout(()=> {
|
||||||
|
goto("login/login", 2)
|
||||||
|
}, 200)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const resInfo = await apiService.getInfoByApp()
|
const resInfo = await apiService.getInfoByApp()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user