|
|
@@ -1,48 +1,82 @@
|
|
|
<template>
|
|
|
<view class="work-info">
|
|
|
<view class="work-detail">
|
|
|
+ <view class="order-title">工单信息</view>
|
|
|
+ <view class="order-img">
|
|
|
+ <image src="https://img.hzghd.com/item/mg/jsha.png"></image>
|
|
|
+ </view>
|
|
|
+ <view class="order-item">
|
|
|
+ <view><text class="left">分类</text><text class="right">花束</text></view>
|
|
|
+ <view><text class="left">名称</text><text class="right">花束</text></view>
|
|
|
+ <view><text class="left">数量</text><text class="right">花束</text></view>
|
|
|
+ <view><text class="left">商品编号</text><text class="right">花束</text></view>
|
|
|
+ <view><text class="left">售价</text><text class="right">花束</text></view>
|
|
|
+ <view><text class="left">工单号</text><text class="right">花束</text></view>
|
|
|
+ <view><text class="left">订单号</text><text class="right">花束</text></view>
|
|
|
+ <view><text class="left">状态</text><text class="right">花束</text></view>
|
|
|
+ <view><text class="left">备注</text><text class="right">花束</text></view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="operate-area">
|
|
|
<view>花材</view>
|
|
|
<view>成品</view>
|
|
|
</view>
|
|
|
<view class="work-item-detail">
|
|
|
- <view class="flex-space right-detail-title">
|
|
|
- 商品信息
|
|
|
- </view>
|
|
|
+
|
|
|
+ <view class="flex-space right-detail-title"> 单位用材 </view>
|
|
|
<view class="module-com content-box">
|
|
|
<view class="commodity-view">
|
|
|
<view class="commodity-list">
|
|
|
+ <view v-for="(s, idx) in detailInfo.product" :key="idx" class="commodity-item" >
|
|
|
+ <image class="item-icon" :src="s.cover" @click="pageTo({url:'/admin/item/detail',query:{id: s.id}})"></image>
|
|
|
+ <view class="item-info">
|
|
|
+ <view class="info-line">
|
|
|
+ <text class="item-name">{{ s.name }}</text>
|
|
|
+ <text class="item-price">
|
|
|
+ <text class="unit">5扎</text>
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view class="info-line">
|
|
|
+ <text class="item-type">20支/扎</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="summary-bar">
|
|
|
+ <view class="operate-view" ></view>
|
|
|
+ <view class="describe-view"><text>2扎</text> <text>3支</text></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="height:2vh;background-color:#EEEEEE;"></view>
|
|
|
|
|
|
+ <view class="flex-space right-detail-title"> 总共用材 </view>
|
|
|
+ <view class="module-com content-box">
|
|
|
+ <view class="commodity-view">
|
|
|
+ <view class="commodity-list">
|
|
|
<view v-for="(s, idx) in detailInfo.product" :key="idx" class="commodity-item" >
|
|
|
<image class="item-icon" :src="s.cover" @click="pageTo({url:'/admin/item/detail',query:{id: s.id}})" />
|
|
|
<view class="item-info">
|
|
|
-
|
|
|
<view class="info-line">
|
|
|
<text class="item-name">{{ s.name }}</text>
|
|
|
<text class="item-price">
|
|
|
- <text class="unit"></text>
|
|
|
- <text class="price">
|
|
|
- <text>11233</text>
|
|
|
- <text></text>
|
|
|
- </text>
|
|
|
+ <text class="unit">5扎</text>
|
|
|
</text>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="info-line">
|
|
|
- <text class="item-type"></text>
|
|
|
- <text class="item-count">12</text>
|
|
|
+ <text class="item-type">20支/扎</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
<view class="summary-bar">
|
|
|
<view class="operate-view" ></view>
|
|
|
- <view class="describe-view"> 共5种,共 <text>2扎</text> <text>3支</text> ,合计 ¥<text class="price">30</text> </view>
|
|
|
+ <view class="describe-view"><text>2扎</text> <text>3支</text></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -50,7 +84,8 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- detailInfo:{product:[{id:0,cover:'https://www.baidu.com/img/flexible/logo/pc/result.png',name:'aa',xhUnitName:'扎',xhUnitPrice:20,xhNum:2},{id:0,cover:'https://www.baidu.com/img/flexible/logo/pc/result.png',name:'aa',xhUnitName:'扎',xhUnitPrice:20,xhNum:2}],book:0,stockChange:1}
|
|
|
+ detailInfo:{product:[{id:0,cover:'https://img.hzghd.com/item/mg/jsha.png',name:'红色桔梗',xhUnitName:'扎',xhUnitPrice:20,xhNum:2},
|
|
|
+ {id:0,cover:'https://img.hzghd.com/item/mg/jsha.png',name:'绿色康乃馨',xhUnitName:'扎',xhUnitPrice:20,xhNum:2}],book:0,stockChange:1}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -61,7 +96,43 @@ export default {
|
|
|
height: 100%;
|
|
|
& .work-detail{
|
|
|
flex: 40;
|
|
|
- background-color:green;
|
|
|
+ border-right:1upx solid #EEEEEE;
|
|
|
+ .order-title{
|
|
|
+ font-size:11upx;
|
|
|
+ font-weight:bold;
|
|
|
+ margin-left:5upx;
|
|
|
+ }
|
|
|
+ .order-img{
|
|
|
+ display:flex;
|
|
|
+ margin:5upx;
|
|
|
+ justify-content:center;
|
|
|
+ image{
|
|
|
+ width:180upx;
|
|
|
+ height:180upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-item{
|
|
|
+ display:flex;
|
|
|
+ font-size:11upx;
|
|
|
+ margin-top:10upx;
|
|
|
+ justify-content: center;
|
|
|
+ flex-wrap:wrap;
|
|
|
+ view{
|
|
|
+ justify-content:space-between;
|
|
|
+ align-items:center;
|
|
|
+ display:flex;
|
|
|
+ border-bottom:1upx solid #EEEEEE;
|
|
|
+ width:180upx;
|
|
|
+ height:19upx;
|
|
|
+ padding:0 10upx 0 10upx;
|
|
|
+ .left{
|
|
|
+ color:#CCCCCC;
|
|
|
+ }
|
|
|
+ .right{
|
|
|
+ color:#666666;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
& .operate-area {
|
|
|
flex: 9;
|
|
|
@@ -70,7 +141,7 @@ export default {
|
|
|
flex-direction: column;
|
|
|
padding: 5upx;
|
|
|
& > view {
|
|
|
- border: 1upx solid #CCCCCC;
|
|
|
+ border: 1upx solid #EEEEEE;
|
|
|
border-radius: 5upx;
|
|
|
text-align: center;
|
|
|
padding: 10upx 0;
|
|
|
@@ -88,36 +159,39 @@ export default {
|
|
|
& .work-item-detail {
|
|
|
flex: 40;
|
|
|
height: 100%;
|
|
|
+ border-left:1upx solid #EEEEEE;
|
|
|
& .right-detail-title{
|
|
|
- font-size:12upx;
|
|
|
+ font-size:10upx;
|
|
|
+ font-weight:bold;
|
|
|
+ margin-left:5upx;
|
|
|
+ margin-top:5upx;
|
|
|
}
|
|
|
& .commodity-view {
|
|
|
flex: 40;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
.commodity-list {
|
|
|
- padding: 20upx;
|
|
|
+ padding: 5upx;
|
|
|
.commodity-item {
|
|
|
display: flex;
|
|
|
- margin-bottom: 20upx;
|
|
|
+ margin-top:5upx;
|
|
|
.item-icon {
|
|
|
flex-shrink: 0;
|
|
|
- width: 50upx;
|
|
|
- height: 50upx;
|
|
|
+ width: 35upx;
|
|
|
+ height: 35upx;
|
|
|
}
|
|
|
.item-info {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
flex: 1;
|
|
|
- margin-left: 20upx;
|
|
|
+ margin-left:6upx;
|
|
|
.info-line {
|
|
|
- margin-bottom: 10upx;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- align-items: flex-end;
|
|
|
+ align-items: flex-start;
|
|
|
.item-name {
|
|
|
- font-size:12upx;
|
|
|
+ font-size:11upx;
|
|
|
color: black;
|
|
|
overflow: hidden;
|
|
|
white-space: nowrap;
|
|
|
@@ -125,14 +199,11 @@ export default {
|
|
|
}
|
|
|
.item-price {
|
|
|
color: #333;
|
|
|
- font-size: 15upx;
|
|
|
- .price {
|
|
|
- font-size: 15upx;
|
|
|
- }
|
|
|
+ font-size: 10upx;
|
|
|
}
|
|
|
.item-type {
|
|
|
color: #999;
|
|
|
- font-size: 15upx;
|
|
|
+ font-size: 8upx;
|
|
|
}
|
|
|
.item-count {
|
|
|
color: #666;
|
|
|
@@ -163,11 +234,7 @@ export default {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
color: #333;
|
|
|
- font-size: 12upx;
|
|
|
- .price {
|
|
|
- font-weight: bold;
|
|
|
- font-size: 11upx;
|
|
|
- }
|
|
|
+ font-size: 9upx;
|
|
|
}
|
|
|
}
|
|
|
}
|