现场调试修改 入库 出库 放货重新分配货位
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<view class="input-group">
|
||||
<uni-easyinput
|
||||
v-model="trayCode"
|
||||
:placeholder="$t('outbound.ckMakeSureByTray.trayCodePlaceholder')"
|
||||
placeholder="请输入或扫码输入托盘条码"
|
||||
:clearable="true"
|
||||
@input="handleInput"
|
||||
@clear="handleClear"
|
||||
@@ -16,26 +16,26 @@
|
||||
</view>
|
||||
|
||||
<view class="loading-container" v-if="loading">
|
||||
<uni-load-more status="loading" :content-text="{contentdown: $t('outbound.ckMakeSureByTray.loading'),contentrefresh: $t('outbound.ckMakeSureByTray.loading'),contentnomore: $t('outbound.ckMakeSureByTray.noMoreData')}"></uni-load-more>
|
||||
<uni-load-more status="loading" :content-text="{contentdown: '加载中...',contentrefresh: '加载中...',contentnomore: '没有更多数据'}"></uni-load-more>
|
||||
</view>
|
||||
|
||||
<view class="materials-list" v-if="materialList.length > 0">
|
||||
<view v-for="(item, index) in materialList" :key="index" class="material-card">
|
||||
<view class="material-header">
|
||||
<text class="material-title">{{ item.extraField.materialDesc || item.productId }}</text>
|
||||
<text class="material-code">{{ item.productId }} | {{ $t('outbound.ckMakeSureByTray.quantity') }}: {{ item.outQuantity }}{{ $t('outbound.ckMakeSureByTray.unit') }}</text>
|
||||
<text class="material-title">{{ item.productName }}</text>
|
||||
<text class="material-code">{{ item.productId }} | 数量: {{ item.outQuantity }}件</text>
|
||||
</view>
|
||||
<!-- <view class="material-content">
|
||||
<view class="material-info">
|
||||
<text class="info-label">{{ $t('outbound.ckMakeSureByTray.batchNo') }}:</text>
|
||||
<text class="info-label">批次号:</text>
|
||||
<text class="info-value">{{ item.batchNo || '无' }}</text>
|
||||
</view>
|
||||
<view class="material-info">
|
||||
<text class="info-label">{{ $t('outbound.ckMakeSureByTray.spec') }}:</text>
|
||||
<text class="info-label">规格:</text>
|
||||
<text class="info-value">{{ item.extraField.spec || '无' }}</text>
|
||||
</view>
|
||||
<view class="material-info">
|
||||
<text class="info-label">{{ $t('outbound.ckMakeSureByTray.unit') }}:</text>
|
||||
<text class="info-label">单位:</text>
|
||||
<text class="info-value">{{ item.extraField.unit || '件' }}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
@@ -43,7 +43,7 @@
|
||||
</view>
|
||||
|
||||
<view class="button-group" v-if="materialList.length > 0">
|
||||
<button class="submit-button" @click="handleSubmit">{{ $t('outbound.ckMakeSureByTray.confirmOutbound') }}</button>
|
||||
<button class="submit-button" @click="handleSubmit">确认出库</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -101,13 +101,13 @@
|
||||
this.materialList = response.data
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: this.$t('outbound.ckMakeSureByTray.trayInfoNotFound'),
|
||||
title: '未找到托盘信息',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
uni.showToast({
|
||||
title: this.$t('outbound.ckMakeSureByTray.getTrayInfoFailed'),
|
||||
title: '获取托盘信息失败',
|
||||
icon: 'none'
|
||||
})
|
||||
} finally {
|
||||
@@ -118,7 +118,7 @@
|
||||
async handleSubmit() {
|
||||
if (!this.trayCode) {
|
||||
uni.showToast({
|
||||
title: this.$t('outbound.ckMakeSureByTray.enterTrayCode'),
|
||||
title: '请输入托盘条码',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
if (this.materialList.length === 0) {
|
||||
uni.showToast({
|
||||
title: this.$t('outbound.ckMakeSureByTray.noOutboundMaterial'),
|
||||
title: '没有可出库的物料',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
@@ -139,7 +139,7 @@
|
||||
})
|
||||
if (response.code==200) {
|
||||
uni.showToast({
|
||||
title: this.$t('outbound.ckMakeSureByTray.outboundSuccess'),
|
||||
title: '出库成功',
|
||||
icon: 'success'
|
||||
})
|
||||
// 清空数据
|
||||
@@ -155,7 +155,7 @@
|
||||
|
||||
} catch (error) {
|
||||
uni.showToast({
|
||||
title: this.$t('outbound.ckMakeSureByTray.outboundFailed'),
|
||||
title: '出库失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user