187 lines
5.0 KiB
Vue
187 lines
5.0 KiB
Vue
<template>
|
||
<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;">
|
||
<tpx-scan-input v-model:value="billCode" @scanChange="handleScanValChange"></tpx-scan-input>
|
||
</view>
|
||
<view class="pl-10">
|
||
<u-button @click="handleScanValChange" custom-style="height: 74rpx;">确定</u-button>
|
||
</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>
|
||
|
||
|
||
<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>
|
||
</view>
|
||
</view>
|
||
|
||
<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="备注"
|
||
maxlength="50" count></u-textarea>
|
||
</view>
|
||
</u-row>
|
||
</view>
|
||
|
||
</view>
|
||
</template>
|
||
<template v-slot:footer>
|
||
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
|
||
<u-row>
|
||
<u-button @click="goto(`warehousing/detail`)" size="large" shape="circle"
|
||
custom-style="width: 260rpx;height:80rpx;font-size: 30rpx;" :plain="true" type="primary">进仓登记</u-button>
|
||
|
||
<u-button @click="handleJinCang" size="large" shape="circle"
|
||
custom-style="width: 400rpx;height:80rpx;font-size: 30rpx;" type="primary">货齐开单</u-button>
|
||
</u-row>
|
||
</view>
|
||
</template>
|
||
</tpx-layout>
|
||
|
||
</tpx-page>
|
||
|
||
</template>
|
||
|
||
<script>
|
||
import { debounce } from "@/common/util"
|
||
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"
|
||
import * as apiService from "@/common/api"
|
||
|
||
export default {
|
||
components: { BpeGooditemEditTmp, BpeGoodphotoTmp, BoDetailTmp, BpeGoodKuaidiTmp, BpeGoodsizeTmp },
|
||
props: {
|
||
|
||
},
|
||
computed: {
|
||
|
||
},
|
||
data() {
|
||
return {
|
||
billCode: '',
|
||
pageLoading: true,
|
||
queryOption: {
|
||
billCode: '', // 运单id
|
||
},
|
||
submitParam: {
|
||
|
||
}
|
||
}
|
||
},
|
||
onShareAppMessage() {
|
||
return {
|
||
}
|
||
},
|
||
onLoad(option) {
|
||
this.queryOption = option
|
||
this.initData();
|
||
},
|
||
onUnload() {
|
||
|
||
},
|
||
methods: {
|
||
initData() {
|
||
this.billCode = this.queryOption.billCode
|
||
this.billCode && (this.queryOrderDetail(this.queryOption))
|
||
},
|
||
async queryOrderDetail(params) {
|
||
let res = await apiService.getOrderDetail({...params, _loading: true})
|
||
this.submitParam = res.data
|
||
this.pageLoading = false
|
||
},
|
||
handleScanValChange: debounce(function(){
|
||
this.queryOrderDetail({ billCode: this.billCode })
|
||
}),
|
||
handleDialogClick(curModal){
|
||
curModal.show = true
|
||
},
|
||
async handleJinCang() {
|
||
let params = {}
|
||
await apiService.registerWarehouseInInfo({params, _loading: true})
|
||
this.showToast('操作成功')
|
||
this.resetForm()
|
||
},
|
||
resetForm() {
|
||
this.submitParam = {}
|
||
this.billCode = ''
|
||
}
|
||
// getWareHouseInNo
|
||
|
||
}
|
||
}
|
||
</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> |