shish 4 лет назад
Родитель
Сommit
6b461d9ef4

+ 4 - 8
hdPad/src/admin/home/workbench.vue

@@ -20,15 +20,15 @@
 					<leftItem v-if="!$util.isEmpty(selectList)" :customId.sync="customId"></leftItem>
 					<leftItem v-if="!$util.isEmpty(selectList)" :customId.sync="customId"></leftItem>
 					<leftGroup v-else :customId.sync="customId"></leftGroup>
 					<leftGroup v-else :customId.sync="customId"></leftGroup>
 				</view>
 				</view>
-				<!-- 按钮操作 -->
-				<view class="open-box">
-					<middleButton @resetCustomer="resetCustomer" :customId.sync="customId" @changeProperty="changeProperty"></middleButton>
-				</view>
 				<!-- 分类和花材图片 -->
 				<!-- 分类和花材图片 -->
 				<view class="all-item-area">
 				<view class="all-item-area">
 					<rightGoodsArea v-if="currentProperty == 0" :customId.sync="customId"> </rightGoodsArea>
 					<rightGoodsArea v-if="currentProperty == 0" :customId.sync="customId"> </rightGoodsArea>
 					<rightItemArea v-else :customId.sync="customId"> </rightItemArea>
 					<rightItemArea v-else :customId.sync="customId"> </rightItemArea>
 				</view>
 				</view>
+				<!-- 按钮操作 -->
+				<view class="open-box">
+					<middleButton @resetCustomer="resetCustomer" :customId.sync="customId" @changeProperty="changeProperty"></middleButton>
+				</view>
 			</view>
 			</view>
 		</template>
 		</template>
 	</template>
 	</template>
@@ -115,20 +115,16 @@ export default {
 	height: 100vh;
 	height: 100vh;
 	& .all-item-area {
 	& .all-item-area {
 		flex: 63;
 		flex: 63;
-		height: 100%;
 	}
 	}
 	& .nav-left {
 	& .nav-left {
-		height: 100%;
 		flex: 5;
 		flex: 5;
 		background-color: rgba(72, 91, 107, 1);
 		background-color: rgba(72, 91, 107, 1);
 	}
 	}
 	& .itemList-box {
 	& .itemList-box {
 		flex: 25;
 		flex: 25;
-		height: 100%;
 	}
 	}
 	& .open-box {
 	& .open-box {
 		flex: 8;
 		flex: 8;
-		height: 100vh;
 	}
 	}
 }
 }
 </style>
 </style>

+ 103 - 36
hdPad/src/admin/work/components/order-info.vue

@@ -1,48 +1,82 @@
 <template>
 <template>
     <view class="work-info">
     <view class="work-info">
         <view class="work-detail">
         <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>
         <view class="operate-area">
         <view class="operate-area">
           <view>花材</view>
           <view>花材</view>
           <view>成品</view>
           <view>成品</view>
         </view>
         </view>
         <view class="work-item-detail">
         <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="module-com content-box">
             <view class="commodity-view">
             <view class="commodity-view">
               <view class="commodity-list">
               <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" >
                 <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 class="item-icon" :src="s.cover" @click="pageTo({url:'/admin/item/detail',query:{id: s.id}})" />
                   <view class="item-info">
                   <view class="item-info">
-
                     <view class="info-line">
                     <view class="info-line">
                       <text class="item-name">{{ s.name }}</text>
                       <text class="item-name">{{ s.name }}</text>
                       <text class="item-price">
                       <text class="item-price">
-                        <text class="unit"></text>
-                        <text class="price">
-                          <text>11233</text>
-                          <text></text>
-                        </text>
+                        <text class="unit">5扎</text>
                       </text>
                       </text>
                     </view>
                     </view>
-
                     <view class="info-line">
                     <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>
                 </view>
-
               </view>
               </view>
               <view class="summary-bar">
               <view class="summary-bar">
                 <view class="operate-view" ></view>
                 <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>
           </view>
+
         </view>
         </view>
     </view>
     </view>
 </template>
 </template>
@@ -50,7 +84,8 @@
 export default {
 export default {
   data() {
   data() {
     return {
     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%;
   height: 100%;
   & .work-detail{
   & .work-detail{
         flex: 40;
         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 {
 	& .operate-area {
 		flex: 9;
 		flex: 9;
@@ -70,7 +141,7 @@ export default {
     flex-direction: column;
     flex-direction: column;
     padding: 5upx;
     padding: 5upx;
     & > view {
     & > view {
-        border: 1upx solid #CCCCCC;
+        border: 1upx solid #EEEEEE;
         border-radius: 5upx;
         border-radius: 5upx;
         text-align: center;
         text-align: center;
         padding: 10upx 0;
         padding: 10upx 0;
@@ -88,36 +159,39 @@ export default {
 	& .work-item-detail {
 	& .work-item-detail {
 		flex: 40;
 		flex: 40;
 		height: 100%;
 		height: 100%;
+    border-left:1upx solid #EEEEEE;
     & .right-detail-title{
     & .right-detail-title{
-      font-size:12upx;
+      font-size:10upx;
+      font-weight:bold;
+      margin-left:5upx;
+      margin-top:5upx;
     }
     }
     & .commodity-view {
     & .commodity-view {
       flex: 40;
       flex: 40;
       display: flex;
       display: flex;
       flex-direction: column;
       flex-direction: column;
       .commodity-list {
       .commodity-list {
-        padding: 20upx;
+        padding: 5upx;
         .commodity-item {
         .commodity-item {
           display: flex;
           display: flex;
-          margin-bottom: 20upx;
+          margin-top:5upx;
           .item-icon {
           .item-icon {
             flex-shrink: 0;
             flex-shrink: 0;
-            width: 50upx;
-            height: 50upx;
+            width: 35upx;
+            height: 35upx;
           }
           }
           .item-info {
           .item-info {
             display: flex;
             display: flex;
             flex-direction: column;
             flex-direction: column;
             justify-content: center;
             justify-content: center;
             flex: 1;
             flex: 1;
-            margin-left: 20upx;
+            margin-left:6upx;
             .info-line {
             .info-line {
-              margin-bottom: 10upx;
               display: flex;
               display: flex;
               justify-content: space-between;
               justify-content: space-between;
-              align-items: flex-end;
+              align-items: flex-start;
               .item-name {
               .item-name {
-                font-size:12upx;
+                font-size:11upx;
                 color: black;
                 color: black;
                 overflow: hidden;
                 overflow: hidden;
                 white-space: nowrap;
                 white-space: nowrap;
@@ -125,14 +199,11 @@ export default {
               }
               }
               .item-price {
               .item-price {
                 color: #333;
                 color: #333;
-                font-size: 15upx;
-                .price {
-                  font-size: 15upx;
-                }
+                font-size: 10upx;
               }
               }
               .item-type {
               .item-type {
                 color: #999;
                 color: #999;
-                font-size: 15upx;
+                font-size: 8upx;
               }
               }
               .item-count {
               .item-count {
                 color: #666;
                 color: #666;
@@ -163,11 +234,7 @@ export default {
           display: flex;
           display: flex;
           align-items: center;
           align-items: center;
           color: #333;
           color: #333;
-          font-size: 12upx;
-          .price {
-            font-weight: bold;
-            font-size: 11upx;
-          }
+          font-size: 9upx;
         }
         }
       }
       }
     }
     }

+ 1 - 1
hdPad/src/admin/work/components/order-list.vue

@@ -133,7 +133,7 @@ export default {
     }
     }
     & .itemList-footer_box {
     & .itemList-footer_box {
         height: 20upx;
         height: 20upx;
-        border: 1px solid #eee;
+        border: 1upx solid #eee;
         font-size: 10upx;
         font-size: 10upx;
         display: flex;
         display: flex;
         align-items: center;
         align-items: center;

+ 0 - 3
hdPad/src/admin/work/index.vue

@@ -44,17 +44,14 @@ export default {
 	display: flex;
 	display: flex;
 	height: 100vh;
 	height: 100vh;
 	& .nav-left {
 	& .nav-left {
-		height: 100%;
 		flex: 5;
 		flex: 5;
 		background-color: rgba(72, 91, 107, 1);
 		background-color: rgba(72, 91, 107, 1);
 	}
 	}
 	& .work-order-list {
 	& .work-order-list {
 		flex: 32;
 		flex: 32;
-		height: 100%;
 	}
 	}
     & .work-order-info{
     & .work-order-info{
         flex: 89;
         flex: 89;
-		height: 100%;
     }
     }
 }
 }
 </style>
 </style>

+ 1 - 2
hdPad/src/components/casher-nav.vue

@@ -12,6 +12,7 @@ export default {
   },
   },
   methods:{
   methods:{
       goTo(item){
       goTo(item){
+        this.$util.hitRemind()
         this.$util.pageTo({ url: item.page, type:2 })
         this.$util.pageTo({ url: item.page, type:2 })
       }
       }
   }
   }
@@ -19,9 +20,7 @@ export default {
 </script>
 </script>
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 .nav-left {
 .nav-left {
-    height: 100%;
     flex: 5;
     flex: 5;
-    background-color: rgba(72, 91, 107, 1);
     view:first-child{
     view:first-child{
         margin-top: 23upx;
         margin-top: 23upx;
     }
     }

+ 1 - 2
hdPad/src/utils/util.js

@@ -232,10 +232,9 @@ export const $formatDate = (num, fmt = "YYYY-MM-DD HH:mm", all) => {
  * @parmas item.funtion 为可执行函数
  * @parmas item.funtion 为可执行函数
  * @parmas item.url 为跳转的路径
  * @parmas item.url 为跳转的路径
  * @parmas item.query 为跳转携带的参数
  * @parmas item.query 为跳转携带的参数
- * @parmas item.type 为跳转调用的函数 1为navigateTo, 2为redirectTo 关闭当前页面,跳转到应用内的某个页面 3为reLaunch 关闭所有页面,打开到应用内的某个页面  4为switchTab
+ * @parmas item.type 为跳转调用的函数 1 navigateTo, 2 redirectTo 关闭当前页面,跳转到应用内的某个页面 3 reLaunch 关闭所有页面,打开到应用内的某个页面 4 switchTab
  */
  */
 export const pageTo = item => {
 export const pageTo = item => {
-	console.log(item,'itemitem')
 	if (isNumber(item)) {
 	if (isNumber(item)) {
 		uni.navigateBack({
 		uni.navigateBack({
 			delta: item
 			delta: item