emis-app/pages/deliveryDeal/storage.vue

187 lines
5.1 KiB
Vue
Raw Normal View History

2024-02-01 07:51:22 +00:00
<template>
2024-06-29 17:37:45 +00:00
<tpx-page>
<tpx-layout>
<template v-slot:body>
<view class="com-jianju pos-rlt pb-30" style="padding-top: 2rpx;">
<view class="blcok-white">
<u-row justify="between">
<view style="flex:1;">
2024-07-13 04:46:17 +00:00
<tpx-scan-input v-model:value="billCode" @scanChange="handleScanValChange"></tpx-scan-input>
2024-06-29 17:37:45 +00:00
</view>
<view class="pl-10">
2024-07-13 04:46:17 +00:00
<u-button @click="handleScanValChange" custom-style="height: 74rpx;">确定</u-button>
2024-06-29 17:37:45 +00:00
</view>
</u-row>
</view>
<view class="mt-30" @click="goto(``)">
<u-row justify="space-between">
<view class="com-section">进仓单号:TWO291929</view>
<view>
<button size="mini">订单详情</button>
</view>
</u-row>
</view>
<view class="blcok-white">
<u-row justify="between">
<view class="font-30 font-weight">缅甸</view>
<view class="font-30 font-weight">缅甸特快</view>
</u-row>
<u-row custom-style="margin-top:20rpx;" justify="between">
<view >
<text class="clr-sub">寄件人:</text>
<text>李先生</text>
</view>
<view >
<text class="clr-sub">手机号:</text>
<text>18627068352</text>
</view>
</u-row>
</view>
2024-02-01 07:51:22 +00:00
2024-06-29 17:37:45 +00:00
<view class="com-section mt-30">托寄货物描述</view>
<view class="blcok-white">
<tpx-input placeholder="进仓后缀" :isWhite="true"></tpx-input>
<view class="mt-30">
<bpe-gooditem-edit-tmp :value="submitParam"></bpe-gooditem-edit-tmp>
2024-02-01 07:51:22 +00:00
</view>
</view>
2024-06-29 17:37:45 +00:00
<view class="blcok-white">
<bpe-goodphoto-tmp title="货物照片" :value="submitParam" filedName="phName"></bpe-goodphoto-tmp>
</view>
<view class="blcok-white">
<bpe-good-kuaidi-tmp :value="submitParam"></bpe-good-kuaidi-tmp>
</view>
<view class="blcok-white">
<bpe-goodsize-tmp :value="submitParam"></bpe-goodsize-tmp>
<u-row justify="space-between" align="top" custom-style="margin-top:20rpx;">
<view >备注</view>
<view style="width: 70%;">
<u-textarea v-model="submitParam.otherDes" border="surround" height="120" placeholder="备注"
2024-08-05 10:13:59 +00:00
maxlength="300" count></u-textarea>
2024-06-29 17:37:45 +00:00
</view>
</u-row>
</view>
2024-02-01 07:51:22 +00:00
</view>
2024-06-29 17:37:45 +00:00
</template>
<template v-slot:footer>
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
<u-row>
2024-07-01 14:33:31 +00:00
<u-button @click="goto(`warehousing/detail`)" size="large" shape="circle"
2024-06-29 17:37:45 +00:00
custom-style="width: 260rpx;height:80rpx;font-size: 30rpx;" :plain="true" type="primary">进仓登记</u-button>
2024-07-01 14:33:31 +00:00
<u-button @click="handleJinCang" size="large" shape="circle"
2024-06-29 17:37:45 +00:00
custom-style="width: 400rpx;height:80rpx;font-size: 30rpx;" type="primary">货齐开单</u-button>
2024-02-01 07:51:22 +00:00
</u-row>
</view>
2024-06-29 17:37:45 +00:00
</template>
</tpx-layout>
</tpx-page>
2024-02-01 07:51:22 +00:00
</template>
<script>
2024-07-01 14:33:31 +00:00
import { debounce } from "@/common/util"
2024-02-01 07:51:22 +00:00
import BpeGooditemEditTmp from "@/components/buns-post-edit-templates/bpe-gooditem-edit-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import BoDetailTmp from "@/components/buns-order-templates/bo-detail-tmp"
import BpeGoodKuaidiTmp from "@/components/buns-post-edit-templates/bpe-good-kuaidi-tmp"
import BpeGoodsizeTmp from "@/components/buns-post-edit-templates/bpe-goodsize-tmp"
2024-07-01 14:33:31 +00:00
import * as apiService from "@/common/api"
2024-02-01 07:51:22 +00:00
export default {
components: { BpeGooditemEditTmp, BpeGoodphotoTmp, BoDetailTmp, BpeGoodKuaidiTmp, BpeGoodsizeTmp },
props: {
2024-06-29 17:37:45 +00:00
2024-02-01 07:51:22 +00:00
},
computed: {
},
data() {
return {
2024-07-01 14:33:31 +00:00
billCode: '',
pageLoading: true,
queryOption: {
billCode: '', // 运单id
},
2024-02-01 07:51:22 +00:00
submitParam: {
2024-07-01 14:33:31 +00:00
2024-02-01 07:51:22 +00:00
}
}
},
onShareAppMessage() {
return {
}
},
2024-07-01 14:33:31 +00:00
onLoad(option) {
this.queryOption = option
2024-02-01 07:51:22 +00:00
this.initData();
},
onUnload() {
},
methods: {
initData() {
2024-07-01 14:33:31 +00:00
this.billCode = this.queryOption.billCode
this.billCode && (this.queryOrderDetail(this.queryOption))
2024-02-01 07:51:22 +00:00
},
2024-07-01 14:33:31 +00:00
async queryOrderDetail(params) {
let res = await apiService.getOrderDetail({...params, _loading: true})
this.submitParam = res.data
this.pageLoading = false
},
2024-07-13 04:46:17 +00:00
handleScanValChange: debounce(function(){
this.queryOrderDetail({ billCode: this.billCode })
2024-07-01 14:33:31 +00:00
}),
2024-02-01 07:51:22 +00:00
handleDialogClick(curModal){
curModal.show = true
},
2024-07-01 14:33:31 +00:00
async handleJinCang() {
let params = {}
await apiService.registerWarehouseInInfo({params, _loading: true})
this.showToast('操作成功')
this.resetForm()
},
resetForm() {
this.submitParam = {}
this.billCode = ''
}
// getWareHouseInNo
2024-02-01 07:51:22 +00:00
}
}
</script>
<style lang="scss">
@import '@/common/uni-nvue.scss';
page {
background-color: #F6F6F6;
height: 100% !important;
}
</style>
<style scoped lang="scss">
.yunf-item {
margin-bottom: 20rpx;
padding: 30rpx;
background: #F6F6F6;
border-radius: 20rpx;
border: 2rpx solid transparent;
&.active {
border-color: $uni-color-primary;
}
}
.yunf-input-item{
padding: 26rpx 0;
border-bottom: 2rpx solid #F6F6F6;
}
</style>