shish 4 лет назад
Родитель
Сommit
45edef151e
2 измененных файлов с 12 добавлено и 10 удалено
  1. 1 1
      ghsApp/src/admin/home/workbench.vue
  2. 11 9
      ghsApp/src/pagesPurchase/add.vue

+ 1 - 1
ghsApp/src/admin/home/workbench.vue

@@ -115,8 +115,8 @@ export default {
 				{ name: "商城", img: 'ghs/home/shop.png', url: "/admin/home/mall" },
 				{ name: "改价", img: 'ghs/home/gj.png', url: "/admin/changePrice/list" },
 				{ name: "花材", img: 'ghs/home/hcgl.png', url: "/admin/item/list" },
-				{ name: "采购单", img: 'ghs/home/icon_caigou.png', url: "/pagesPurchase/order" },
 				{name: "供应商", img: 'ghs/home/icon_ghs.png', url: '/pagesPurchase/supplier'},
+				{ name: "采购单", img: 'ghs/home/icon_caigou.png', url: "/pagesPurchase/order" },
 				{ name: "报损单", img: 'ghs/home/kcyjs.png', url: "/admin/breakage/list" },
 				{ name: "预订单", img: 'ghs/home/kcyjs.png', url: "/admin/order/statBook" },
 				{ name: "调拨出库", img: 'ghs/home/dbck.png', url: "/pagesStorehouse/allot/allotEx" },

+ 11 - 9
ghsApp/src/pagesPurchase/add.vue

@@ -48,19 +48,17 @@
 				<view class="select-view">
 					<view class="select-cmd_bx">
 						<view class="num_bx">
-							<view class="kc">单价</view>
+							
 							<!-- #ifdef APP-PLUS -->
-							<input v-model="customData.userPrice" @focus="customData.userPrice = null" type="digit" placeholder="填写单价" />
+							<input v-model="customData.bigCount" type="number" @focus="customData.bigCount = null" placeholder="扎数" />
 							<!-- #endif -->
 							<!-- #ifdef MP-WEIXIN -->							
-							<input v-model="customData.userPrice" @focus="customData.userPrice = null" :focus="isAddInputFocus" type="digit" placeholder="填写单价" />
+							<input v-model="customData.bigCount" type="number" @focus="customData.bigCount = null" :focus="isAddInputFocus" placeholder="扎数" />
 							<!-- #endif -->
-						</view>
-					</view>
-					<view class="select-cmd_bx">
-						<view class="num_bx">
-							<view class="kc">数量</view>
-							<input v-model="customData.bigCount" type="number" placeholder="填写扎数" />
+
+							<input v-model="customData.userPrice" @focus="customData.userPrice = null" type="digit" placeholder="单价" />
+
+							<text>¥{{parseFloat((customData.userPrice*customData.bigCount).toFixed(2))}}</text>
 						</view>
 					</view>
 				</view>
@@ -248,6 +246,10 @@ export default {
 				width: 80upx;
 				font-size:32upx;
 			}
+			& > text{
+				width:100upx;
+				font-size:30upx;
+			}
 			& > input {
 				flex: 1;
 				height: 80upx;