|
|
@@ -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;
|