|
|
@@ -18,7 +18,7 @@
|
|
|
<!-- #endif -->
|
|
|
<view class="item-info">
|
|
|
<view class="info-line">
|
|
|
- <text class="item-name">{{ item.itemName }}</text>
|
|
|
+ <text class="item-name">{{ item.name || '' }}</text>
|
|
|
<text class="item-price">
|
|
|
<text class="unit"></text>
|
|
|
<text class="price"></text>
|
|
|
@@ -80,34 +80,22 @@
|
|
|
<view v-if="isScanEnv" @click="changeGet" style="width:125upx;height:125upx;display:flex;justify-content:center;align-items:center;font-size:60upx;
|
|
|
background:#3385ff;color:white;z-index:9999;position:fixed;bottom:230upx;right:40upx;border-radius:60upx;">{{calc=='add'?'+':'-'}}</view>
|
|
|
|
|
|
- <modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx" >
|
|
|
+ <modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.name" 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="num_bx">
|
|
|
- <input style="width: 430upx" v-model="customData.userPrice" @focus="customData.userPrice = null" type="number" placeholder="单价" />
|
|
|
- <text style="font-size:35upx;font-weight:bold;color:#666666;">元</text>
|
|
|
- </view>
|
|
|
+ <view class="kc"><text class="unit_price">库存 {{ parseFloat(customData.stock) }}</text><text class="unit_price"></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>
|
|
|
<!-- #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>
|
|
|
<!-- #endif -->
|
|
|
|
|
|
- <image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`"
|
|
|
- style="width:86upx;height:86upx;position:relative;top:-60upx;right:0upx;" mode="widthFix"></image>
|
|
|
-
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -137,7 +125,7 @@ export default {
|
|
|
return {
|
|
|
selectJobType: "allotEx",
|
|
|
selectJobId:0,
|
|
|
- autoLoad:true,
|
|
|
+ autoLoad:false,
|
|
|
form: {
|
|
|
date: "",
|
|
|
remark: "",
|
|
|
@@ -273,8 +261,9 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
.item-name {
|
|
|
- color: #666;
|
|
|
- font-size: 28upx;
|
|
|
+ color: #333333;
|
|
|
+ font-size:32upx;
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
|
.item-price {
|
|
|
color: #333;
|