This commit is contained in:
aihe 2024-07-01 22:33:31 +08:00
parent dfdf8ccaf3
commit aba110b1cf

View File

@ -6,7 +6,7 @@
<view class="blcok-white">
<u-row justify="between">
<view style="flex:1;">
<tpx-scan-input v-model:value="submitParam.yundanhao"></tpx-scan-input>
<tpx-scan-input v-model:value="orderNo" @change="handleScanValChange"></tpx-scan-input>
</view>
<view class="pl-10">
<u-button custom-style="height: 74rpx;">确定</u-button>
@ -74,10 +74,10 @@
<template v-slot:footer>
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
<u-row>
<u-button size="large" shape="circle" @click="goto(`warehousing/detail`)"
<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 size="large" shape="circle"
<u-button @click="handleJinCang" size="large" shape="circle"
custom-style="width: 400rpx;height:80rpx;font-size: 30rpx;" type="primary">货齐开单</u-button>
</u-row>
</view>
@ -89,12 +89,13 @@
</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 },
@ -106,28 +107,22 @@
},
data() {
return {
billCode: '',
pageLoading: true,
queryOption: {
billCode: '', // 运单id
},
submitParam: {
yundanhao: '',
stockRoomId: '',
countryId: '',
wayId: '',
type: '',
paytype: '',
otherDes: '',
prodId: 1,
tips: [],
revtime: '',
gdList: [{},{}]
}
}
},
onShareAppMessage() {
return {
// title: '',
// path: 'TODO'
}
},
onLoad() {
onLoad(option) {
this.queryOption = option
this.initData();
},
onUnload() {
@ -135,12 +130,31 @@
},
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(val){
val && ( this.queryOrderDetail({ billCode: val }) )
}),
handleDialogClick(curModal){
curModal.show = true
},
// registerWarehouseInInfo getWareHouseInNo
async handleJinCang() {
let params = {}
await apiService.registerWarehouseInInfo({params, _loading: true})
this.showToast('操作成功')
this.resetForm()
},
resetForm() {
this.submitParam = {}
this.billCode = ''
}
// getWareHouseInNo
}
}