feat: 重构扫码与巡检模块,优化页面路由
1. 新增钢卷详情、扫码页面与设备巡检组件 2. 调整首页跳转逻辑至扫码页面,更新tabBar配置 3. 隐藏旧的分条、其他操作模块,替换钢卷详情弹窗为页面跳转 4. 复用巡检组件到扫码页面与设备巡检页
This commit is contained in:
@@ -131,79 +131,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 钢卷详情弹窗 -->
|
||||
<uni-popup ref="shipPopup" type="bottom">
|
||||
<view style="background-color: white; padding: 20rpx;">
|
||||
<!-- 弹窗标题+关闭按钮 -->
|
||||
<view class="popup-header flex justify-between align-center mb-20">
|
||||
<text class="font-32 font-bold">钢卷详情</text>
|
||||
<text class="icon-close font-40" @click="closePopup"></text>
|
||||
</view>
|
||||
|
||||
<view class="info-card" v-if="coilDetail.coilId">
|
||||
<view class="info-grid">
|
||||
<view class="info-item">
|
||||
<text class="item-label">入场钢卷号</text>
|
||||
<text class="item-value">{{ coilDetail.enterCoilNo || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">当前钢卷号</text>
|
||||
<text class="item-value">{{ coilDetail.currentCoilNo || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">厂家卷号</text>
|
||||
<text class="item-value">{{ coilDetail.supplierCoilNo || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">状态</text>
|
||||
<text class="item-value">{{ getStatusText(coilDetail.status) }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">毛重 (吨)</text>
|
||||
<text class="item-value">{{ coilDetail.grossWeight || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">净重 (吨)</text>
|
||||
<text class="item-value">{{ coilDetail.netWeight || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">逻辑库区</text>
|
||||
<text class="item-value">{{ coilDetail.warehouseName || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">真实库区</text>
|
||||
<text class="item-value">{{ coilDetail.actualWarehouseName || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">班组</text>
|
||||
<text class="item-value">{{ coilDetail.team || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">物料类型</text>
|
||||
<text class="item-value">{{ coilDetail.materialType || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">品名</text>
|
||||
<text class="item-value">{{ coilDetail.itemName || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">规格</text>
|
||||
<text class="item-value">{{ coilDetail.specification || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">材质</text>
|
||||
<text class="item-value">{{ coilDetail.material || '-' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="item-label">厂家</text>
|
||||
<text class="item-value">{{ coilDetail.manufacturer || '-' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
|
||||
<!-- ✅ 新增:查询悬浮按钮 - search视图显示 -->
|
||||
<!-- 查询悬浮按钮 - search视图显示 -->
|
||||
<view class="float-btn search-btn" v-show="currentView === 'search'" @click="searchCoilList">
|
||||
<text class="btn-text">查询</text>
|
||||
</view>
|
||||
@@ -216,8 +144,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getMaterialCoil, listMaterialCoil } from '@/api/wms/coil';
|
||||
import { addPendingAction } from '@/api/wms/pendingAction';
|
||||
import { listMaterialCoil } from '@/api/wms/coil';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -359,15 +286,11 @@
|
||||
this.scrollToPageTop()
|
||||
},
|
||||
|
||||
// 点击列表项-展示钢卷详情弹窗
|
||||
// 点击列表项-跳转钢卷详情页
|
||||
showCoilDetail(item) {
|
||||
this.coilDetail = { ...item }; // 深拷贝防止原数据被修改
|
||||
this.$refs.shipPopup.open(); // 打开底部弹窗
|
||||
},
|
||||
|
||||
// 关闭弹窗
|
||||
closePopup() {
|
||||
this.$refs.shipPopup.close();
|
||||
uni.navigateTo({
|
||||
url: '/pages/coil-detail/index?coilId=' + item.coilId
|
||||
});
|
||||
},
|
||||
|
||||
// 格式化状态文本:0=在库 1=已出库
|
||||
|
||||
Reference in New Issue
Block a user