- 在 manifest.json 中添加 Android 包名配置 - 在 package.json 中添加 pnpm 依赖覆盖配置 - 在 pages.json 中注册坯布出库相关页面路由 - 重命名 storefabricBusinessOutAdd.vue 为 storeFabricBusinessOutAdd.vue - 重构坯布出库新增页面,优化界面布局和交互逻辑 - 添加坯布出库列表、编辑、查看等功能页面 - 集成订单状态栏、面料信息弹窗、细码弹窗等组件 - 实现坯布出库详情列表和扫码功能模块 - 优化表单验证和数据提交流程
74 lines
1.4 KiB
Vue
74 lines
1.4 KiB
Vue
<template>
|
|
<u-popup v-model="visible" mode="center" width="680rpx" border-radius="14" :closeable="true">
|
|
<view class="popupWrap">
|
|
<view class="popupTitle">坯布资料</view>
|
|
<scroll-view scroll-y class="scrollBody">
|
|
<view class="infoRow" v-for="field in fields" :key="field.key">
|
|
<text class="label">{{ field.label }}</text>
|
|
<text class="value">{{ data[field.key] || '-' }}</text>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
</u-popup>
|
|
</template>
|
|
|
|
<script>
|
|
import { FABRIC_INFO_FIELDS } from '@/common/storeFabricBusinessOut';
|
|
|
|
export default {
|
|
props: {
|
|
show: { type: Boolean, default: false },
|
|
data: { type: Object, default: () => ({}) },
|
|
},
|
|
computed: {
|
|
visible: {
|
|
get() { return this.show; },
|
|
set(val) { this.$emit('update:show', val); },
|
|
},
|
|
fields() {
|
|
return FABRIC_INFO_FIELDS;
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style scoped>
|
|
.popupWrap {
|
|
padding: 30rpx 30rpx 24rpx;
|
|
max-height: 80vh;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.popupTitle {
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
margin-bottom: 20rpx;
|
|
color: #333;
|
|
flex-shrink: 0;
|
|
}
|
|
.scrollBody {
|
|
flex: 1;
|
|
height: 62vh;
|
|
max-height: 62vh;
|
|
}
|
|
.infoRow {
|
|
display: flex;
|
|
padding: 16rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
font-size: 28rpx;
|
|
}
|
|
.label {
|
|
width: 180rpx;
|
|
color: #888;
|
|
flex-shrink: 0;
|
|
}
|
|
.value {
|
|
flex: 1;
|
|
color: #333;
|
|
word-break: break-all;
|
|
}
|
|
</style>
|