2024-03-12 17:41:00 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="content">
|
|
|
|
|
|
<view class="title-box">
|
2024-03-15 17:56:22 +08:00
|
|
|
|
<!-- <span class="title-text">入库</span> -->
|
2024-03-12 17:41:00 +08:00
|
|
|
|
<view class="warehoseInfo-box">
|
2024-08-16 16:06:55 +08:00
|
|
|
|
<view>
|
|
|
|
|
|
仓库编号:{{ warehouseInfo.warehouse + ' ' + warehouseInfo.location }}
|
|
|
|
|
|
<span></span>
|
|
|
|
|
|
</view>
|
2024-03-15 17:56:22 +08:00
|
|
|
|
<view class="row">
|
|
|
|
|
|
<view class="col">层号:{{ warehouseInfo.layer }}</view>
|
|
|
|
|
|
<view class="col">货架:{{ warehouseInfo.shelf }}</view>
|
|
|
|
|
|
</view>
|
2024-03-22 17:28:39 +08:00
|
|
|
|
<view class="row">
|
|
|
|
|
|
<span class="col">总货物数:{{ quantityTotal }}</span>
|
|
|
|
|
|
<span class="col">总箱数:{{ newMaterialList.length }}</span>
|
|
|
|
|
|
</view>
|
2024-03-15 17:56:22 +08:00
|
|
|
|
<view>
|
2024-04-18 08:26:16 +08:00
|
|
|
|
<view v-if="searchType === 1" class="color1 aciton-box">请扫仓库码</view>
|
|
|
|
|
|
<view v-if="searchType === 2" class="color2 aciton-box">请扫箱码</view>
|
2024-03-15 17:56:22 +08:00
|
|
|
|
<!-- 扫描操作 -->
|
|
|
|
|
|
<view class="pda-search-box">
|
2025-10-09 23:21:33 +08:00
|
|
|
|
<PdaScanInput @getInfo="handleGetInfo" :type="searchType" :warehouseInfo="warehouseInfo"></PdaScanInput>
|
2024-03-15 17:56:22 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2024-03-12 17:41:00 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-08-22 18:28:25 +08:00
|
|
|
|
<!-- 上次批次号 -->
|
|
|
|
|
|
<view class="last-batch-info">
|
2025-10-09 23:21:33 +08:00
|
|
|
|
<view class="scroll-view-last" v-if="newMaterialList.length > 1">上次批次号:{{ newMaterialList[newMaterialList.length - 2].patchCode }}</view>
|
2025-08-22 18:28:25 +08:00
|
|
|
|
<view class="scroll-view-last" v-if="newMaterialList.length <= 1">上次批次号:</view>
|
|
|
|
|
|
</view>
|
2024-03-12 17:41:00 +08:00
|
|
|
|
<!-- 货物列表 -->
|
2024-03-15 17:56:22 +08:00
|
|
|
|
<view class="scroll-view-box">
|
2025-03-26 16:26:50 +08:00
|
|
|
|
<view class="scroll-view-title">{{ this.isStrict ? '' : '无校验' }}入库清单</view>
|
2025-08-22 18:28:25 +08:00
|
|
|
|
<view class="scroll-view-content">
|
|
|
|
|
|
<!-- 优化后的packageCard组件使用 -->
|
2025-10-09 23:21:33 +08:00
|
|
|
|
<packageCard v-for="(item, index) in newMaterialList" :packageInfo="item" :key="item.originalCode" @delete="handleDeleteItem"></packageCard>
|
2025-08-22 18:28:25 +08:00
|
|
|
|
</view>
|
2024-03-12 17:41:00 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<!-- 底部按钮 -->
|
|
|
|
|
|
<view class="button-box">
|
2025-10-09 23:21:33 +08:00
|
|
|
|
<u-button style="width: 40%" type="error" @click="clear" :disabled="loading" :loading="loading">全部重置</u-button>
|
|
|
|
|
|
<u-button style="width: 40%" type="success" @click="handlerSubmit" :disabled="loading" :loading="loading">入库</u-button>
|
2024-03-12 17:41:00 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-08-16 16:06:55 +08:00
|
|
|
|
import materialItem from '@/components/material-item/material-item.vue';
|
|
|
|
|
|
import packageCard from '@/components/package-card/package-card.vue';
|
|
|
|
|
|
import * as WarehoseApi from '@/api/warehouse/warehose.js';
|
2025-08-22 18:28:25 +08:00
|
|
|
|
import { showOperationConfirm, isRepeatPackage, isChangeBatch, clearRepeatPackages, debounce } from './utils.js';
|
2024-08-16 16:06:55 +08:00
|
|
|
|
// 入库
|
|
|
|
|
|
export default {
|
|
|
|
|
|
components: {
|
|
|
|
|
|
materialItem,
|
|
|
|
|
|
packageCard
|
|
|
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
// 入库模式(true严格追溯 false不严格不追溯)
|
|
|
|
|
|
isStrict: false,
|
|
|
|
|
|
loading: false,
|
|
|
|
|
|
clearData: {},
|
|
|
|
|
|
// 仓库信息
|
|
|
|
|
|
warehouseInfo: {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
warehouse: '',
|
|
|
|
|
|
warehouse_num: '',
|
|
|
|
|
|
location: '',
|
|
|
|
|
|
shelf: '',
|
|
|
|
|
|
layer: '',
|
|
|
|
|
|
number: 0
|
|
|
|
|
|
},
|
|
|
|
|
|
// 货物信息
|
|
|
|
|
|
lastPackageInfo: {
|
|
|
|
|
|
// 工单号
|
|
|
|
|
|
workoderID: '',
|
|
|
|
|
|
// 批次号(工单号+箱号+班组)
|
|
|
|
|
|
patchCode: '',
|
|
|
|
|
|
// 零件号
|
|
|
|
|
|
partNumner: '',
|
|
|
|
|
|
// 描述
|
|
|
|
|
|
productionDescribe: '',
|
|
|
|
|
|
// 出厂日期/生产日期
|
|
|
|
|
|
productionTime: '',
|
|
|
|
|
|
// 此箱数量
|
|
|
|
|
|
quantity: 0
|
|
|
|
|
|
},
|
|
|
|
|
|
// 库位历史信息
|
|
|
|
|
|
oldMaterialList: [],
|
|
|
|
|
|
// 库位新录入货物信息
|
|
|
|
|
|
newMaterialList: [],
|
|
|
|
|
|
// 1-仓库扫码 2-货物扫码
|
|
|
|
|
|
searchType: 1
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
watch: {},
|
|
|
|
|
|
onLoad(e) {
|
|
|
|
|
|
if (e.isStrict === 'true') {
|
|
|
|
|
|
this.isStrict = true;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.isStrict = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
|
|
|
this.init();
|
|
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
quantityTotal() {
|
|
|
|
|
|
let num = 0;
|
|
|
|
|
|
for (let index = 0; index < this.newMaterialList.length; index++) {
|
|
|
|
|
|
num += this.newMaterialList[index].quantity * 1;
|
2024-03-15 17:56:22 +08:00
|
|
|
|
}
|
2024-08-16 16:06:55 +08:00
|
|
|
|
return num;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
init() {
|
|
|
|
|
|
// 需要展示的参数:【零件号[物料号](35233201041) 描述(鲨鱼鳍) 箱号+班组(BNW240312023_18B1) 数量 时间 】
|
|
|
|
|
|
// 初始化,并且清空数据
|
|
|
|
|
|
this.clearData.warehouseInfo = JSON.parse(JSON.stringify(this.warehouseInfo));
|
|
|
|
|
|
this.clearData.oldMaterialList = JSON.parse(JSON.stringify(this.oldMaterialList));
|
|
|
|
|
|
this.clearData.newMaterialList = JSON.parse(JSON.stringify(this.newMaterialList));
|
|
|
|
|
|
this.searchType = 1;
|
2024-03-12 17:41:00 +08:00
|
|
|
|
},
|
2024-08-16 16:06:55 +08:00
|
|
|
|
clear() {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
uni.showModal({
|
|
|
|
|
|
title: '确认重置',
|
|
|
|
|
|
content: '确定要重置所有数据吗?',
|
|
|
|
|
|
showCancel: true,
|
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
|
confirmText: '确认',
|
|
|
|
|
|
success: (res) => {
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
this.warehouseInfo = JSON.parse(JSON.stringify(this.clearData.warehouseInfo));
|
|
|
|
|
|
this.oldMaterialList = JSON.parse(JSON.stringify(this.clearData.oldMaterialList));
|
|
|
|
|
|
this.newMaterialList = JSON.parse(JSON.stringify(this.clearData.newMaterialList));
|
|
|
|
|
|
this.searchType = 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2024-03-12 17:41:00 +08:00
|
|
|
|
},
|
2024-08-16 16:06:55 +08:00
|
|
|
|
handleGetInfo(data, type) {
|
|
|
|
|
|
if (type === 1) {
|
|
|
|
|
|
// 仓库扫完后是箱号
|
|
|
|
|
|
this.searchType = 2;
|
|
|
|
|
|
this.warehouseInfo = data?.warehoseInfo;
|
|
|
|
|
|
this.newMaterialList = [];
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
} else if (type === 2) {
|
2025-10-09 23:21:33 +08:00
|
|
|
|
if (this.loading) {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
showOperationConfirm('提示', '请等待加载完成!', false);
|
|
|
|
|
|
return;
|
2024-04-30 13:23:49 +08:00
|
|
|
|
}
|
2024-08-16 16:06:55 +08:00
|
|
|
|
// 此时扫描的是箱号
|
|
|
|
|
|
// 当前录入的箱号是否在同一批次录入过
|
|
|
|
|
|
// 曾经是否扫过
|
2025-10-09 23:21:33 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
if (this.newMaterialList.length > 0) {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
// 检查是否为重复箱
|
|
|
|
|
|
if (isRepeatPackage(this.newMaterialList, data.patchCode)) {
|
|
|
|
|
|
showOperationConfirm('提示', '此货物已录入过!', false);
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
return;
|
2024-08-23 17:00:34 +08:00
|
|
|
|
}
|
2025-08-22 18:28:25 +08:00
|
|
|
|
|
|
|
|
|
|
// 检查是否更换了批次
|
2025-10-09 23:21:33 +08:00
|
|
|
|
if (isChangeBatch(this.newMaterialList, data.productionTime)) {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
showOperationConfirm('提示', '已更换入库批次!', false);
|
2024-05-17 10:37:35 +08:00
|
|
|
|
}
|
2024-03-27 17:20:31 +08:00
|
|
|
|
}
|
2024-08-16 16:06:55 +08:00
|
|
|
|
const checkData = {
|
|
|
|
|
|
production_packcode: data.originalCode,
|
|
|
|
|
|
location: this.warehouseInfo.location,
|
|
|
|
|
|
//严格模式
|
|
|
|
|
|
isStrict: this.isStrict
|
|
|
|
|
|
};
|
|
|
|
|
|
this.loading = true;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
// 使用Promise包装API调用,避免setTimeout可能带来的问题
|
|
|
|
|
|
const checkWarehousingPromise = WarehoseApi.checkWarehousing(checkData);
|
|
|
|
|
|
const timeoutPromise = new Promise((resolve, reject) => {
|
|
|
|
|
|
setTimeout(() => reject(new Error('timeout')), 10000);
|
2024-08-16 16:06:55 +08:00
|
|
|
|
});
|
2025-08-22 18:28:25 +08:00
|
|
|
|
Promise.race([checkWarehousingPromise, timeoutPromise])
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
if (res.code === 200 && res.data) {
|
|
|
|
|
|
this.newMaterialList.push(data);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
uni.showModal({
|
|
|
|
|
|
title: '提示',
|
|
|
|
|
|
content: '不可入库:' + res.msg,
|
|
|
|
|
|
showCancel: false,
|
|
|
|
|
|
confirmText: '确定'
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
|
if (error.message === 'timeout') {
|
|
|
|
|
|
uni.showModal({
|
|
|
|
|
|
title: '提示',
|
|
|
|
|
|
content: '请求超时,请重试!',
|
|
|
|
|
|
showCancel: false,
|
|
|
|
|
|
confirmText: '确定'
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
|
|
|
|
|
uni.showModal({
|
|
|
|
|
|
title: '提示',
|
|
|
|
|
|
content: '请求异常,请重试!',
|
|
|
|
|
|
showCancel: false,
|
|
|
|
|
|
confirmText: '确定'
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
.finally(() => {
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2025-08-22 18:28:25 +08:00
|
|
|
|
// 删除货物项
|
|
|
|
|
|
handleDeleteItem(item) {
|
|
|
|
|
|
showOperationConfirm('删除提示', '是否从列表中删除此货物?', true).then((res) => {
|
|
|
|
|
|
if (res.confirm) {
|
2025-10-09 23:21:33 +08:00
|
|
|
|
const index = this.newMaterialList.findIndex((i) => i.originalCode === item.originalCode);
|
2025-08-22 18:28:25 +08:00
|
|
|
|
if (index > -1) {
|
|
|
|
|
|
this.newMaterialList.splice(index, 1);
|
|
|
|
|
|
}
|
2024-03-15 17:56:22 +08:00
|
|
|
|
}
|
2025-08-22 18:28:25 +08:00
|
|
|
|
});
|
2024-08-16 16:06:55 +08:00
|
|
|
|
},
|
|
|
|
|
|
// 入库提交
|
|
|
|
|
|
handlerSubmit() {
|
|
|
|
|
|
if (this.newMaterialList.length === 0) {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
showOperationConfirm('提示', '无入库货物!', false);
|
2024-08-16 16:06:55 +08:00
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
// 箱重复提醒 this.isPackageRepeat()
|
|
|
|
|
|
if (this.isPackageRepeat()) {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
showOperationConfirm('重复箱校验', '检测到存在重复箱,是否自动清除?', true).then((res) => {
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
this.clearRepeatPackage();
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2025-08-22 18:28:25 +08:00
|
|
|
|
|
|
|
|
|
|
showOperationConfirm('入库操作', '是否确认入库?', true).then((res) => {
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
let list = [];
|
|
|
|
|
|
for (let item of this.newMaterialList) {
|
|
|
|
|
|
list.push(item.originalCode);
|
|
|
|
|
|
}
|
|
|
|
|
|
const data = {
|
|
|
|
|
|
location: this.warehouseInfo.location,
|
|
|
|
|
|
packagelist: list
|
|
|
|
|
|
};
|
|
|
|
|
|
// 优化防抖处理机制,使用更可靠的防抖函数
|
|
|
|
|
|
const debouncedSubmit = (() => {
|
|
|
|
|
|
let timeoutId;
|
|
|
|
|
|
return () => {
|
|
|
|
|
|
// 清除之前的定时器
|
|
|
|
|
|
if (timeoutId) {
|
|
|
|
|
|
clearTimeout(timeoutId);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 设置新的定时器执行入库操作
|
|
|
|
|
|
timeoutId = setTimeout(() => {
|
2025-10-09 23:21:33 +08:00
|
|
|
|
WarehoseApi.handlerIntoProductWarehouse(data)
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
|
if (res.data === 0 || !res.data) {
|
|
|
|
|
|
showOperationConfirm('提示', '入库失败:' + res.msg, false);
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
icon: 'none',
|
|
|
|
|
|
title: '入库成功!' + res.msg
|
|
|
|
|
|
});
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
this.oldMaterialList = JSON.parse(JSON.stringify(this.clearData.oldMaterialList));
|
|
|
|
|
|
this.newMaterialList = JSON.parse(JSON.stringify(this.clearData.newMaterialList));
|
|
|
|
|
|
} else {
|
|
|
|
|
|
showOperationConfirm('提示', '入库失败!', false);
|
2025-08-22 18:28:25 +08:00
|
|
|
|
this.loading = false;
|
|
|
|
|
|
}
|
2025-10-09 23:21:33 +08:00
|
|
|
|
})
|
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
|
// 处理请求失败的情况,确保loading状态被重置
|
|
|
|
|
|
//console.error('入库请求失败:', error);
|
|
|
|
|
|
//showOperationConfirm('提示', '请求失败,请重试!', false);
|
2025-08-22 18:28:25 +08:00
|
|
|
|
this.loading = false;
|
2025-10-09 23:21:33 +08:00
|
|
|
|
});
|
2025-08-22 18:28:25 +08:00
|
|
|
|
}, 1000); // 1秒防抖延迟
|
|
|
|
|
|
};
|
|
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
// 调用防抖函数
|
|
|
|
|
|
debouncedSubmit();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.loading = false;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
// 入库箱去重校验,数据是否有重复
|
2025-08-22 18:28:25 +08:00
|
|
|
|
// 统一重复检查逻辑,使用Map提高查找效率
|
2024-08-16 16:06:55 +08:00
|
|
|
|
isPackageRepeat() {
|
|
|
|
|
|
let oldList = this.newMaterialList;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
let seen = new Map();
|
2024-08-16 16:06:55 +08:00
|
|
|
|
for (let item of oldList) {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
if (seen.has(item.originalCode)) {
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
seen.set(item.originalCode, true);
|
2024-04-30 13:23:49 +08:00
|
|
|
|
}
|
2025-08-22 18:28:25 +08:00
|
|
|
|
return false;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
},
|
|
|
|
|
|
// 自动清除重复箱
|
|
|
|
|
|
clearRepeatPackage() {
|
|
|
|
|
|
let oldArray = this.newMaterialList;
|
|
|
|
|
|
let newArray = [];
|
|
|
|
|
|
let seen = new Map();
|
|
|
|
|
|
let repeatPackage = [];
|
|
|
|
|
|
oldArray.forEach((item) => {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
// 统一重复检查逻辑,使用originalCode作为唯一标识
|
|
|
|
|
|
if (!seen.has(item.originalCode)) {
|
|
|
|
|
|
seen.set(item.originalCode, true);
|
2024-08-16 16:06:55 +08:00
|
|
|
|
newArray.push(item);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
repeatPackage.push(item.patchCode);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
this.newMaterialList = newArray;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
// 增强用户交互提示信息
|
2025-10-09 23:21:33 +08:00
|
|
|
|
showOperationConfirm(
|
|
|
|
|
|
'重复箱清除',
|
|
|
|
|
|
`检测到${repeatPackage.length}个重复箱,已自动清除。原箱数:${oldArray.length} 现箱数:${newArray.length} 重复箱:${repeatPackage.join(', ')}`,
|
|
|
|
|
|
false
|
|
|
|
|
|
);
|
2024-03-12 17:41:00 +08:00
|
|
|
|
}
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
};
|
2024-03-12 17:41:00 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2025-08-22 18:28:25 +08:00
|
|
|
|
.content {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
|
padding: 10px 0;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.title-box {
|
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.warehoseInfo-box {
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
width: 94%;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
margin: 5px auto;
|
|
|
|
|
|
padding: 5px;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
background-color: aliceblue;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
gap: 5px;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.warehoseInfo-box .row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.warehoseInfo-box .row .col {
|
|
|
|
|
|
width: 50%;
|
|
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.aciton-box {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.color1 {
|
|
|
|
|
|
color: brown;
|
|
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.color2 {
|
|
|
|
|
|
color: orange;
|
|
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.pda-search-box {
|
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.list-box {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.scroll-view-title {
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
color: #151515;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
margin-bottom: 10px;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.scroll-view-box {
|
|
|
|
|
|
width: 94%;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
margin: 20px auto;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
padding: 10px;
|
|
|
|
|
|
background-color: rgba(179, 179, 179, 0.7);
|
|
|
|
|
|
border-radius: 5px;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-height: 300px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scroll-view-content {
|
|
|
|
|
|
/* 确保内容高度超过容器时可以滚动 */
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.last-batch-info {
|
|
|
|
|
|
width: 94%;
|
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
|
padding: 5px;
|
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.scroll-view-last {
|
|
|
|
|
|
width: 100%;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
font-size: 18px;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
color: rgba(0, 9, 0, 0.7);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: center;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
padding: 8px;
|
|
|
|
|
|
border-radius: 5px;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
background-color: white;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
min-height: 30px;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
2024-04-30 13:23:49 +08:00
|
|
|
|
|
2024-08-16 16:06:55 +08:00
|
|
|
|
.button-box {
|
2025-08-22 18:28:25 +08:00
|
|
|
|
width: 90%;
|
|
|
|
|
|
margin: 20px auto;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2025-08-22 18:28:25 +08:00
|
|
|
|
gap: 20px;
|
2024-08-16 16:06:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|