1
This commit is contained in:
@@ -31,14 +31,6 @@
|
||||
<view class="scroll-view-last" v-if="newMaterialList.length === 1">上次批次号:</view>
|
||||
<packageCard v-if="newMaterialList.length > 0" :packageInfo="newMaterialList[newMaterialList.length - 1]">
|
||||
</packageCard>
|
||||
<!-- <scroll-view class="scroll-view-box" :scroll-y="true">
|
||||
<view v-for="(item, index) in oldMaterialList">
|
||||
<materialItem style="background-color: darkgray" :materialInfo="item"></materialItem>
|
||||
</view>
|
||||
<view v-for="(item, index) in newMaterialList">
|
||||
<materialItem style="background-color: whitesmoke" :materialInfo="item" @click.native="handleDeleteItem(item, index)"></materialItem>
|
||||
</view>
|
||||
</scroll-view> -->
|
||||
</view>
|
||||
<!-- 底部按钮 -->
|
||||
<view class="button-box">
|
||||
@@ -201,37 +193,6 @@
|
||||
this.loading = false;
|
||||
}
|
||||
});
|
||||
// const checkData = {
|
||||
// originalCode: data.originalCode
|
||||
// };
|
||||
// WarehoseApi.isExistedWarehouse(checkData).then((res) => {
|
||||
// if (res.code !== 200 || res.data) {
|
||||
// uni.showModal({
|
||||
// title: '提示',
|
||||
// content: '货物录入异常,已在其他库录入!',
|
||||
// showCancel: false,
|
||||
// confirmText: '确定'
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
// // 此时扫描的是箱号
|
||||
// // 当前录入的箱号是否在同一批次录入过
|
||||
// // 曾经是否扫过
|
||||
// if (this.newMaterialList.length > 0) {
|
||||
// for (let item of this.newMaterialList) {
|
||||
// if (item.patchCode === data.patchCode) {
|
||||
// uni.showModal({
|
||||
// title: '提示',
|
||||
// content: '此货物已录入过',
|
||||
// showCancel: false,
|
||||
// confirmText: '确定'
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// });
|
||||
}
|
||||
},
|
||||
|
||||
@@ -302,7 +263,7 @@
|
||||
return;
|
||||
}
|
||||
uni.showToast({
|
||||
icon: 'success',
|
||||
icon: 'none',
|
||||
title: '入库成功!' + res.msg
|
||||
});
|
||||
this.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user