|
|
@@ -1,131 +1,107 @@
|
|
|
<template>
|
|
|
<view class="card_box" @click="handleDetail">
|
|
|
- <view class="item_box rx-sc">
|
|
|
+ <!-- 头部编号 + 单号 -->
|
|
|
+ <view class="header rx-sc">
|
|
|
<view class="round">{{ index + 1 }}</view>
|
|
|
- <view class="orderId">{{ item.code }} </view>
|
|
|
+ <view class="orderId">{{ item.code }}</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one rx-sc">
|
|
|
- <view class="lable">委外名称:</view>
|
|
|
- <view>{{ item.name }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one rx-sc">
|
|
|
- <view>委外单编码:</view>
|
|
|
- <view>{{ item.code }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one rx-sc">
|
|
|
- <view>工单编码:</view>
|
|
|
- <view>{{ item.workOrderCode }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one rx-sc">
|
|
|
- <view>委外工序:</view>
|
|
|
- <view class="gylx">{{ item.taskNames }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view class="lable">委外数量:</view>
|
|
|
- <view class="gylx">{{ item.totalCount }}{{ item.measuringUnit }}</view>
|
|
|
- </view>
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view>委外重量:</view>
|
|
|
-
|
|
|
- <view v-if="item.totalWeight" class="gylx">
|
|
|
- {{ item.totalWeight }}{{ item.weightUnit }}
|
|
|
- </view>
|
|
|
- <view v-else>无</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view class="lable">委外类型:</view>
|
|
|
- <view v-if="item.type == 4" class="gylx">带料委外</view>
|
|
|
- <view v-if="item.type == 5" class="gylx">不带料委外</view>
|
|
|
- </view>
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view class="lable">批次号:</view>
|
|
|
- <view class="gylx">{{ item.batchNo }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-sc">
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view>委外场景:</view>
|
|
|
- <view v-if="item.outsourceScene == 2" class="gylx">单工序</view>
|
|
|
- <view v-if="item.outsourceScene == 3" class="gylx">多工序</view>
|
|
|
- </view>
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view class="lable">委外单位:</view>
|
|
|
- <view class="gylx">{{ item.supplierName }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view class="lable">仓库:</view>
|
|
|
- <view class="gylx">{{ item.warehouseName }}</view>
|
|
|
- </view>
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view>申请人:</view>
|
|
|
- <view class="gylx">{{ item.createUserName }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view>状态:</view>
|
|
|
- <view class="gylx">{{
|
|
|
- item.status == 0 ? "未提交" : item.status == 1 ? "已提交" : "已发布"
|
|
|
- }}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view>委外状态:</view>
|
|
|
- <view v-if="item.purchaseStatus == 0" class="gylx">未入库</view>
|
|
|
- <view v-if="item.purchaseStatus == 1" class="gylx">原料入库</view>
|
|
|
- <view v-if="item.purchaseStatus == 3" class="gylx">委外完成</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view>委外发起工序:</view>
|
|
|
- <view class="gylx">{{ item.taskName }}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_one perce50 rx-sc">
|
|
|
- <view class="lable">审核状态:</view>
|
|
|
- <view v-if="item.approvalStatus == 0" class="gylx">未提交</view>
|
|
|
- <view v-if="item.approvalStatus == 1" class="gylx">审核中</view>
|
|
|
- <view v-if="item.approvalStatus == 2" class="gylx">审核通过</view>
|
|
|
- <view v-if="item.approvalStatus == 3" class="gylx">审核不通过</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one rx-sc">
|
|
|
- <view class="lable">创建时间:</view>
|
|
|
- <view>{{ item.createTime }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item_box rx-bc">
|
|
|
- <view class="item_one rx-sc">
|
|
|
- <view class="lable">预计到货日期:</view>
|
|
|
- <view>{{ item.requireDeliveryTime }}</view>
|
|
|
- </view>
|
|
|
+ <!-- 主要信息区 -->
|
|
|
+ <view class="info_box">
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">委外名称:</text
|
|
|
+ ><text class="value">{{ item.name }}</text></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">委外单编码:</text
|
|
|
+ ><text class="value">{{ item.code }}</text></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">工单编码:</text
|
|
|
+ ><text class="value">{{ item.workOrderCode }}</text></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">型号 :</text
|
|
|
+ ><text class="value">{{ item.modelType }} </text></view
|
|
|
+ >
|
|
|
+
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label"> 规格:</text
|
|
|
+ ><text class="value"> {{ item.specification }}</text></view
|
|
|
+ >
|
|
|
+
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">委外工序:</text
|
|
|
+ ><text class="value highlight">{{ item.taskNames }}</text></view
|
|
|
+ >
|
|
|
+
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">数量:</text
|
|
|
+ ><text class="value"
|
|
|
+ >{{ item.totalCount }}{{ item.measuringUnit }}</text
|
|
|
+ ></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">重量:</text
|
|
|
+ ><text class="value">{{
|
|
|
+ item.totalWeight ? item.totalWeight + item.weightUnit : "无"
|
|
|
+ }}</text></view
|
|
|
+ >
|
|
|
+
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">类型:</text
|
|
|
+ ><text class="value">{{
|
|
|
+ item.type == 4 ? "带料委外" : "不带料委外"
|
|
|
+ }}</text></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">批次号:</text
|
|
|
+ ><text class="value">{{ item.batchNo }}</text></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">委外单位:</text
|
|
|
+ ><text class="value">{{ item.supplierName }}</text></view
|
|
|
+ >
|
|
|
+
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">状态:</text
|
|
|
+ ><text class="value highlight">
|
|
|
+ {{
|
|
|
+ item.status == 0 ? "未提交" : item.status == 1 ? "已提交" : "已发布"
|
|
|
+ }}
|
|
|
+ </text></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">委外状态:</text>
|
|
|
+ <text class="value">{{
|
|
|
+ item.purchaseStatus == 0 || !item.purchaseStatus
|
|
|
+ ? "未入库"
|
|
|
+ : item.purchaseStatus == 1
|
|
|
+ ? "原料入库"
|
|
|
+ : item.purchaseStatus == 3
|
|
|
+ ? "委外完成"
|
|
|
+ : ""
|
|
|
+ }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">审核状态:</text>
|
|
|
+ <text class="value">{{
|
|
|
+ ["未提交", "审核中", "审核通过", "审核不通过"][item.approvalStatus]
|
|
|
+ }}</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">申请人:</text
|
|
|
+ ><text class="value">{{ item.createUserName }}</text></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">创建时间:</text
|
|
|
+ ><text class="value">{{ item.createTime }}</text></view
|
|
|
+ >
|
|
|
+ <view class="row"
|
|
|
+ ><text class="label">预计到货:</text
|
|
|
+ ><text class="value">{{ item.requireDeliveryTime }}</text></view
|
|
|
+ >
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -163,7 +139,7 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
+<!-- <style lang="scss" scoped>
|
|
|
.card_box {
|
|
|
width: 750rpx;
|
|
|
padding: 16rpx 32rpx;
|
|
|
@@ -215,4 +191,64 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+</style> -->
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.card_box {
|
|
|
+ width: 710rpx;
|
|
|
+ margin: 20rpx auto;
|
|
|
+ padding: 22rpx 24rpx;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.06);
|
|
|
+ transition: all 0.2s ease-in-out;
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.98);
|
|
|
+ }
|
|
|
+
|
|
|
+ .header {
|
|
|
+ margin-bottom: 18rpx;
|
|
|
+ .round {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ line-height: 40rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: $theme-color;
|
|
|
+ color: #fff;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 22rpx;
|
|
|
+ }
|
|
|
+ .orderId {
|
|
|
+ margin-left: 14rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .info_box {
|
|
|
+ .row {
|
|
|
+ display: flex;
|
|
|
+ font-size: 24rpx;
|
|
|
+ padding: 8rpx 0;
|
|
|
+ line-height: 32rpx;
|
|
|
+
|
|
|
+ .label {
|
|
|
+ width: 180rpx;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
+ .value {
|
|
|
+ flex: 1;
|
|
|
+ text-align: right;
|
|
|
+ color: #333;
|
|
|
+ word-break: break-all;
|
|
|
+ }
|
|
|
+ .highlight {
|
|
|
+ color: $theme-color;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|