- 在 manifest.json 中添加 Android 包名配置 - 在 package.json 中添加 pnpm 依赖覆盖配置 - 在 pages.json 中注册坯布出库相关页面路由 - 重命名 storefabricBusinessOutAdd.vue 为 storeFabricBusinessOutAdd.vue - 重构坯布出库新增页面,优化界面布局和交互逻辑 - 添加坯布出库列表、编辑、查看等功能页面 - 集成订单状态栏、面料信息弹窗、细码弹窗等组件 - 实现坯布出库详情列表和扫码功能模块 - 优化表单验证和数据提交流程
67 lines
1.8 KiB
Vue
67 lines
1.8 KiB
Vue
<template>
|
||
<view class="myCard">
|
||
<view class="cardTopName">
|
||
<text>{{ item.order_no }}</text>
|
||
<text class="statusTag" :class="'status-' + item.audit_status">{{ item.audit_status_name }}</text>
|
||
</view>
|
||
<view class="cardRow">
|
||
<view>出仓日期:</view>
|
||
<view>{{ formatTime(item.out_date) }}</view>
|
||
</view>
|
||
<view class="cardRow">
|
||
<view>出仓类型:</view>
|
||
<view>{{ item.bill_type_name }}</view>
|
||
</view>
|
||
<view class="cardRow">
|
||
<view>接收单位:</view>
|
||
<view>{{ item.business_unit_name || '-' }}</view>
|
||
</view>
|
||
<view class="cardRow">
|
||
<view>创 建 人:</view>
|
||
<view>{{ item.create_user_name }} {{ formatTime(item.create_time, 'YYYY-MM-DD') }}</view>
|
||
</view>
|
||
<view v-if="item.auditor_name" class="cardRow">
|
||
<view>审 核 人:</view>
|
||
<view>{{ item.auditor_name }} {{ formatTime(item.audit_date, 'YYYY-MM-DD') }}</view>
|
||
</view>
|
||
<view v-if="!isDetail && !isSelect" class="lookDetail">
|
||
<text>查看详情</text>
|
||
<u-icon name="arrow-right" size="36" />
|
||
</view>
|
||
</view>
|
||
</template>
|
||
<script>
|
||
import { formatDisplayTime } from '@/common/storeFabricBusinessOut';
|
||
|
||
export default {
|
||
props: {
|
||
item: { type: Object, default: () => ({}) },
|
||
index: { type: Number, default: 0 },
|
||
isSelect: { type: Boolean, default: false },
|
||
isDetail: { type: Boolean, default: false },
|
||
},
|
||
methods: {
|
||
formatTime: formatDisplayTime,
|
||
},
|
||
};
|
||
</script>
|
||
|
||
<style scoped>
|
||
.cardTopName {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.statusTag {
|
||
font-size: 24rpx;
|
||
padding: 4rpx 12rpx;
|
||
border-radius: 6rpx;
|
||
font-weight: normal;
|
||
}
|
||
.status-0 { background: #f0f0f0; color: #666; }
|
||
.status-1 { background: #fff7e6; color: #fa8c16; }
|
||
.status-2 { background: #f6ffed; color: #52c41a; }
|
||
.status-3 { background: #fff1f0; color: #f5222d; }
|
||
.status-4 { background: #f5f5f5; color: #999; }
|
||
</style>
|