shish 4 місяців тому
батько
коміт
4205f442e8
2 змінених файлів з 10 додано та 10 видалено
  1. 8 8
      ghsApp/src/admin/billing/index2.vue
  2. 2 2
      ghsApp/src/pagesPurchase/add.vue

+ 8 - 8
ghsApp/src/admin/billing/index2.vue

@@ -68,17 +68,12 @@
 						<!-- 花样年花门店和出车,要求不显示成本,其他批发商需要 -->
 						<text style="margin-left:14upx;" v-if="customData.mainId!=1553 && customData.mainId!=1563">成本 {{customData.avCost?parseFloat(customData.avCost):0}}</text>
 					</view>
-					<view class="num_bx">
-						<input style="width:280upx" v-model="customData.userPrice" @focus="customData.userPrice = null" :class="[Number(customData.avCost) > Number(customData.userPrice) ? 'warning-price' : '']"
-						:disabled="false" 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: 280upx" v-model="customData.bigCount" v-if="globalUnitType == 0" type="number" />
+						<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" type="number" />
+						<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 -->
 
@@ -95,7 +90,12 @@
 						<button class="admin-button-com mini-btn" @click="customData.userPrice=0.01;customData.bigCount=1" style="position:absolute;top:200upx;right:33upx;">赠送</button>
 					</view>
 					<view class="num_bx">
-						<input style="width: 280upx;height:40upx;font-size:25upx;" v-model="customData.remark" type="text" placeholder="备注" />
+						<input style="width:280upx" v-model="customData.userPrice" @focus="customData.userPrice = null" :class="[Number(customData.avCost) > Number(customData.userPrice) ? 'warning-price' : '']"
+						:disabled="false" type="digit" placeholder="单价" />
+						<text style="font-size:35upx;font-weight:bold;color:#666666;">元</text>
+					</view>
+					<view class="num_bx">
+						<input style="width: 280upx;height:60upx;font-size:27upx;" v-model="customData.remark" type="text" placeholder="备注" />
 					</view>
 				</view>
 			</template>

+ 2 - 2
ghsApp/src/pagesPurchase/add.vue

@@ -55,8 +55,8 @@
 				<view class="select-view">
 					<view class="select-cmd_bx">
 						<view class="num_bx">
-							<input v-model="customData.bigCount" type="number" v-if="cgUnitType == 0" @focus="customData.bigCount = null" placeholder="扎数" @input="bigCountChange" />
-							<input v-model="customData.smallCount" type="number" v-else @focus="customData.smallCount = null" placeholder="支数" @input="smallCountChange" />
+							<input v-model="customData.bigCount" type="number" v-if="cgUnitType == 0" @focus="customData.bigCount = null" placeholder="扎数" @input="bigCountChange" :focus="isAddInputFocus" />
+							<input v-model="customData.smallCount" type="number" v-else @focus="customData.smallCount = null" placeholder="支数" @input="smallCountChange" :focus="isAddInputFocus" />
 							<input v-model="customData.userPrice" @focus="customData.userPrice = null" type="digit" placeholder="单价" @input="userPriceChange" />
 							<input v-model="customData.totalPrice" @focus="customData.totalPrice = null" type="digit" placeholder="总价" @input="totalPriceChange" />
 						</view>