Răsfoiți Sursa

排版优化

shish 4 ani în urmă
părinte
comite
090e6c7388

+ 15 - 10
ghsApp/src/admin/billing/index.vue

@@ -59,24 +59,28 @@
 		<modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx" >
 			<template slot="customContent">
 				<view class="select-cmd_bx" v-if="customData">
-					<view class="kc"><text class="unit_price">库存 {{ parseFloat(customData.stock) }}</text><text class="unit_price"> 单价 {{ parseFloat(customData.price) }}</text>1扎={{customData.ratio}}支</view>
+					<view class="kc">
+						<text class="unit_price">库存 {{ parseFloat(customData.stock) }}</text>
+						<text class="unit_price"> 单价 {{ parseFloat(customData.price) }}</text>
+						<text>{{customData.ratio}}{{customData.smallUnit}}/{{customData.bigUnit}}</text>
+					</view>
 					<view class="num_bx">
-						<input style="width: 430upx" v-model="customData.userPrice" @focus="customData.userPrice = null" type="digit" placeholder="单价" />
+						<input style="width: 280upx" v-model="customData.userPrice" @focus="customData.userPrice = null" type="digit" placeholder="单价" />
 						<text style="font-size:35upx;font-weight:bold;color:#666666;">元</text>
 					</view>
 					<view class="num_bx">
 						<!-- #ifdef APP-PLUS -->
-						<input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0"></text>
-						<input style="width: 430upx" v-model="customData.smallCount" v-if="globalUnitType == 1" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1"></text>
+						<input style="width: 280upx" v-model="customData.bigCount" v-if="globalUnitType == 0" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">{{customData.bigUnit}}</text>
+						<input style="width: 280upx" v-model="customData.smallCount" v-if="globalUnitType == 1" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">{{customData.smallUnit}}</text>
 						<!-- #endif -->
 
 						<!-- #ifdef MP-WEIXIN -->
-						<input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" :focus="isAddInputFocus" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0"></text>
-						<input style="width: 430upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1"></text>
+						<input style="width: 280upx" v-model="customData.bigCount" v-if="globalUnitType == 0" :focus="isAddInputFocus" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">{{customData.bigUnit}}</text>
+						<input style="width: 280upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">{{customData.smallUnit}}</text>
 						<!-- #endif -->
 
 						<image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`" 
@@ -252,6 +256,7 @@ export default {
 			display: flex;
 			align-items: center;
 			margin-bottom: 40upx;
+			padding-left:110upx;
 			& > input {
 				width: 212upx;
 				height: 80upx;

+ 12 - 11
ghsApp/src/admin/breakage/index.vue

@@ -49,23 +49,22 @@
 		<modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx" >
 			<template slot="customContent">
 				<view class="select-cmd_bx" v-if="customData">
-					<view class="kc"><text class="unit_price">库存 {{ customData.stock }}</text></view>
+					<view class="kc"><text class="unit_price">库存 {{ customData.stock||0 }}</text></view>
 					<view class="num_bx">
 
 						<!-- #ifdef APP-PLUS -->
-						<input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0"></text>
-						<input style="width: 430upx" v-model="customData.smallCount" v-if="globalUnitType == 1" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1"></text>
+						<input style="width: 200upx" v-model="customData.bigCount" v-if="globalUnitType == 0" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">{{customData.bigUnit}}</text>
+						<input style="width: 200upx" v-model="customData.smallCount" v-if="globalUnitType == 1" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">{{customData.smallUnit}}</text>
 						<!-- #endif -->
 						<!-- #ifdef MP-WEIXIN -->
-						<input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" :focus="isAddInputFocus" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0"></text>
-						<input style="width: 430upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1"></text>
+						<input style="width: 200upx" v-model="customData.bigCount" v-if="globalUnitType == 0" :focus="isAddInputFocus" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">{{customData.bigUnit}}</text>
+						<input style="width: 200upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">{{customData.smallUnit}}</text>
 						<!-- #endif -->
-						<image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`" 
-						style="width:86upx;height:86upx;" mode="widthFix"></image>
+						<image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`" style="width:86upx;height:86upx;" mode="widthFix"></image>
 
 					</view>
 				</view>
@@ -244,6 +243,8 @@ export default {
 			display: flex;
 			align-items: center;
 			margin-bottom: 40upx;
+			justify-content:center;
+			padding-left:130upx;
 			& > input {
 				width: 212upx;
 				height: 80upx;

+ 12 - 11
hdApp/src/admin/breakage/index.vue

@@ -60,23 +60,22 @@
 		<modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx" >
 			<template slot="customContent">
 				<view class="select-cmd_bx" v-if="customData">
-					<view class="kc"><text class="unit_price">库存 {{ customData.stock }}</text></view>
+					<view class="kc"><text class="unit_price">库存 {{ customData.stock||0 }}</text></view>
 					<view class="num_bx"> 
 
 						<!-- #ifdef APP-PLUS -->
-						<input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0"></text>
-						<input style="width: 430upx" v-model="customData.smallCount" v-if="globalUnitType == 1" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1"></text>
+						<input style="width: 200upx" v-model="customData.bigCount" v-if="globalUnitType == 0" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">{{customData.bigUnit}}</text>
+						<input style="width: 200upx" v-model="customData.smallCount" v-if="globalUnitType == 1" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">{{customData.smallUnit}}</text>
 						<!-- #endif -->
 						<!-- #ifdef MP-WEIXIN -->
-						<input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" :focus="isAddInputFocus" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0"></text>
-						<input style="width: 430upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
-						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1"></text>
+						<input style="width: 200upx" v-model="customData.bigCount" v-if="globalUnitType == 0" :focus="isAddInputFocus" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">{{customData.bigUnit}}</text>
+						<input style="width: 200upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">{{customData.smallUnit}}</text>
 						<!-- #endif -->
-						<image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`" 
-						style="width:86upx;height:86upx;" mode="widthFix"></image>
+						<image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`" style="width:86upx;height:86upx;" mode="widthFix"></image>
 
 					</view>
 				</view>
@@ -245,6 +244,8 @@ export default {
 			display: flex;
 			align-items: center;
 			margin-bottom: 40upx;
+			justify-content:center;
+			padding-left:130upx;
 			& > input {
 				width: 212upx;
 				height: 80upx;