uu
This commit is contained in:
parent
dfdf8ccaf3
commit
aba110b1cf
@ -6,7 +6,7 @@
|
|||||||
<view class="blcok-white">
|
<view class="blcok-white">
|
||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="flex:1;">
|
<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>
|
||||||
<view class="pl-10">
|
<view class="pl-10">
|
||||||
<u-button custom-style="height: 74rpx;">确定</u-button>
|
<u-button custom-style="height: 74rpx;">确定</u-button>
|
||||||
@ -74,10 +74,10 @@
|
|||||||
<template v-slot:footer>
|
<template v-slot:footer>
|
||||||
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
|
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
|
||||||
<u-row>
|
<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>
|
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>
|
custom-style="width: 400rpx;height:80rpx;font-size: 30rpx;" type="primary">货齐开单</u-button>
|
||||||
</u-row>
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
@ -89,12 +89,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { debounce } from "@/common/util"
|
||||||
import BpeGooditemEditTmp from "@/components/buns-post-edit-templates/bpe-gooditem-edit-tmp"
|
import BpeGooditemEditTmp from "@/components/buns-post-edit-templates/bpe-gooditem-edit-tmp"
|
||||||
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
||||||
import BoDetailTmp from "@/components/buns-order-templates/bo-detail-tmp"
|
import BoDetailTmp from "@/components/buns-order-templates/bo-detail-tmp"
|
||||||
import BpeGoodKuaidiTmp from "@/components/buns-post-edit-templates/bpe-good-kuaidi-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 BpeGoodsizeTmp from "@/components/buns-post-edit-templates/bpe-goodsize-tmp"
|
||||||
|
import * as apiService from "@/common/api"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { BpeGooditemEditTmp, BpeGoodphotoTmp, BoDetailTmp, BpeGoodKuaidiTmp, BpeGoodsizeTmp },
|
components: { BpeGooditemEditTmp, BpeGoodphotoTmp, BoDetailTmp, BpeGoodKuaidiTmp, BpeGoodsizeTmp },
|
||||||
@ -106,28 +107,22 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
billCode: '',
|
||||||
|
pageLoading: true,
|
||||||
|
queryOption: {
|
||||||
|
billCode: '', // 运单id
|
||||||
|
},
|
||||||
submitParam: {
|
submitParam: {
|
||||||
yundanhao: '',
|
|
||||||
stockRoomId: '',
|
|
||||||
countryId: '',
|
|
||||||
wayId: '',
|
|
||||||
type: '',
|
|
||||||
paytype: '',
|
|
||||||
otherDes: '',
|
|
||||||
prodId: 1,
|
|
||||||
tips: [],
|
|
||||||
revtime: '',
|
|
||||||
gdList: [{},{}]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
return {
|
return {
|
||||||
// title: '',
|
|
||||||
// path: 'TODO'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(option) {
|
||||||
|
this.queryOption = option
|
||||||
this.initData();
|
this.initData();
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
@ -135,12 +130,31 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
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){
|
handleDialogClick(curModal){
|
||||||
curModal.show = true
|
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
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user