Commit ae29ec74 authored by 何远江's avatar 何远江

仓位转移

parent cfd281ec
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
<NavBar title="仓位转移"></NavBar> <NavBar title="仓位转移"></NavBar>
<view class="selectSheet"> <view class="selectSheet">
<u-row gutter="16"> <u-row gutter="16">
<u-col span="6"> <!-- <u-col span="6">
<u-picker v-model="show" mode="selector" :default-selector="[0]" range-key="text" :range="actionSheetList"></u-picker> <u-picker v-model="show" mode="selector" :default-selector="[0]" range-key="text" :range="actionSheetList"></u-picker>
<u-input v-model="value" placeholder="请选择工厂" :type="type" :border="border" @click="show = true" /> <u-input v-model="value" placeholder="请选择工厂" :type="type" :border="border" @click="show = true" />
</u-col> </u-col> -->
<u-col span="6"> <u-col span="12">
<u-picker v-model="depotShow" mode="selector" :default-selector="[0]" range-key="LGOBE" :range="depotLists" @confirm="actionSheetCallback"></u-picker> <u-picker v-model="depotShow" mode="selector" :default-selector="[0]" range-key="LGOBE" :range="depotLists" @confirm="actionSheetCallback"></u-picker>
<u-input v-model="LGOBE" placeholder="请选择仓库别" :type="type" :border="border" @click="depotShow = true" /> <u-input v-model="LGOBE" placeholder="请选择仓库别" :type="type" :border="border" @click="depotShow = true" />
<!-- <u-action-sheet :list="depotLists" v-model="depotShow" @click="actionSheetCallback"></u-action-sheet> --> <!-- <u-action-sheet :list="depotLists" v-model="depotShow" @click="actionSheetCallback"></u-action-sheet> -->
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
></uni-easyinput> ></uni-easyinput>
</view> </view>
</StickyNavBar> </StickyNavBar>
<ContentLoadingMore class="cardbox"> <ContentLoadingMore :list='goodsList' class="cardbox">
<view class="cardContent" v-for="(item, index) in goodsList"> <view class="cardContent" v-for="(item, index) in goodsList" :key="item.CHARG">
<view class="cardTitle"> <view class="cardTitle">
<text class="cardItemLabel">物料批号:</text> <text class="cardItemLabel">物料批号:</text>
<text class="cardItemValue">{{ item.CHARG }}</text> <text class="cardItemValue">{{ item.CHARG }}</text>
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
}, },
created() { created() {
this.getDepotLists(); this.getDepotLists();
this.getPlnr('10000820240327000018|10000320002') this.getPlnr('240418000007|00010000060000030.000|10000000000011')
}, },
methods: { methods: {
getDepotLists() { getDepotLists() {
...@@ -150,16 +150,17 @@ export default { ...@@ -150,16 +150,17 @@ export default {
ITEM: this.goodsList ITEM: this.goodsList
} }
]); ]);
const params = {
TYPE: 'ZY',
ZENCODE: "",
BUDAT: "",
BLDAT: "",
LFSNR: "",
ITEM: this.goodsList
}
this.$u.api.sapApi this.$u.api.sapApi
.sapRrm([ .sapRrm([params])
{
BLDAT: '20240325',
BUDAT: '20240325',
ZENCODE: 'A012',
TYPE: 'ZY',
ITEM: this.goodsList
}
])
.then((res) => { .then((res) => {
this.loading = false; this.loading = false;
if(!Array.isArray(res)){ if(!Array.isArray(res)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment