Commit 4ea3a9bb by LJM

app

parent 200cffbe
Showing with 76 additions and 12 deletions
......@@ -365,7 +365,7 @@
<!-- 标准包装长宽高 -->
<view class="uni-swiper-input-multipl row verCenter bothSide">
<view class="label row">
<picker @change="bindPickerZYChange($event, 3)" :value="standardSizeIndex" :range="standardSize" style="width: 100%;height: 100%;">
<picker @change="bindPickerZYChange($event, 3, index)" :value="standardSizeIndex" :range="standardSize" style="width: 100%;height: 100%;">
<view class="row verCenter bothSide">
<view class="uni-input row verCenter" style="color: #919399;">{{ standardSizeIndex == -1 ? '请选择' : standardSize[standardSizeIndex] }}</view>
<view class="uni-arrow"></view>
......@@ -374,11 +374,21 @@
</view>
<view class="multipl-input row verCenter bothSide">
<view class="row verCenter">
<input type="text" class="uni-input" placeholder="长" style="width: 100rpx;" v-model="saveZyGoodsParams[index].standard_length" />
<text class="timesSymbol"></text>
<input type="text" class="uni-input" placeholder="宽" style="width: 100rpx;" v-model="saveZyGoodsParams[index].standard_width" />
<text class="timesSymbol"></text>
<input type="text" class="uni-input" placeholder="高" style="width: 100rpx;" v-model="saveZyGoodsParams[index].standard_high" />
<!-- 切换标准和单位 -->
<template v-if="standardSizeIndex == 0">
<input type="text" class="uni-input" placeholder="长" style="width: 100rpx;" v-model="saveZyGoodsParams[index].standard_length" />
<text class="timesSymbol"></text>
<input type="text" class="uni-input" placeholder="宽" style="width: 100rpx;" v-model="saveZyGoodsParams[index].standard_width" />
<text class="timesSymbol"></text>
<input type="text" class="uni-input" placeholder="高" style="width: 100rpx;" v-model="saveZyGoodsParams[index].standard_high" />
</template>
<template v-else>
<input type="text" class="uni-input" placeholder="长" style="width: 100rpx;" v-model="saveZyGoodsParams[index].unit_length" />
<text class="timesSymbol"></text>
<input type="text" class="uni-input" placeholder="宽" style="width: 100rpx;" v-model="saveZyGoodsParams[index].unit_width" />
<text class="timesSymbol"></text>
<input type="text" class="uni-input" placeholder="高" style="width: 100rpx;" v-model="saveZyGoodsParams[index].unit_high" />
</template>
</view>
<view class="multipl-input-select row"><text class="unit">cm</text></view>
</view>
......@@ -386,7 +396,7 @@
<!-- 标准包净重 -->
<view class="uni-swiper-input-multipl row verCenter bothSide">
<view class="label row">
<picker @change="bindPickerZYChange($event, 5)" :value="netWeightIndex" :range="netWeight" style="width: 100%;height: 100%;">
<picker @change="bindPickerZYChange($event, 5, index)" :value="netWeightIndex" :range="netWeight" style="width: 100%;height: 100%;">
<view class="row verCenter bothSide">
<view class="uni-input row verCenter" style="color: #919399;">{{ netWeight[netWeightIndex] }}</view>
<view class="uni-arrow"></view>
......@@ -394,9 +404,17 @@
</picker>
</view>
<view class="multipl-input row verCenter">
<view class="row verCenter" style="width: 86%;"><input type="text" class="uni-input" placeholder="净重" v-model="saveZyGoodsParams[index].standard_net_weight" /></view>
<view class="row verCenter" style="width: 86%;">
<!-- 切换标准和单位 -->
<template v-if="standardSizeIndex == 0">
<input type="text" class="uni-input" placeholder="净重" v-model="saveZyGoodsParams[index].standard_net_weight" />
</template>
<template v-else>
<input type="text" class="uni-input" placeholder="净重" v-model="saveZyGoodsParams[index].unit_net_weight" />
</template>
</view>
<view class="multipl-input-select row">
<picker @change="bindPickerZYChange($event, 6)" :value="netWeightSizeIndex" :range="netWeightSize" style="width: 100%;height: 100%;">
<picker @change="bindPickerZYChange($event, 6, index)" :value="netWeightSizeIndex" :range="netWeightSize" style="width: 100%;height: 100%;">
<view class="row verCenter bothSide">
<view class="uni-input row rowCenter verCenter" style="padding-left: 9rpx;padding-right: 9rpx;border-left: none;width: 80rpx;">{{ netWeightSize[netWeightSizeIndex] }}</view>
</view>
......@@ -407,7 +425,7 @@
<!-- 标准包毛重 -->
<view class="uni-swiper-input-multipl row verCenter bothSide">
<view class="label row">
<picker @change="bindPickerZYChange($event, 7)" :value="grossWeightIndex" :range="grossWeight" style="width: 100%;height: 100%;">
<picker @change="bindPickerZYChange($event, 7, index)" :value="grossWeightIndex" :range="grossWeight" style="width: 100%;height: 100%;">
<view class="row verCenter bothSide">
<view class="uni-input row verCenter" style="color: #919399;">{{ grossWeight[grossWeightIndex] }}</view>
<view class="uni-arrow"></view>
......@@ -415,9 +433,17 @@
</picker>
</view>
<view class="multipl-input row verCenter">
<view class="row verCenter" style="width:86%;"><input type="text" class="uni-input" placeholder="毛重" v-model="saveZyGoodsParams[index].standard_gross_weight" /></view>
<view class="row verCenter" style="width:86%;">
<!-- 切换标准和单位 -->
<template v-if="grossWeightIndex == 0">
<input type="text" class="uni-input" placeholder="毛重" v-model="saveZyGoodsParams[index].standard_gross_weight" />
</template>
<template v-else>
<input type="text" class="uni-input" placeholder="毛重" v-model="saveZyGoodsParams[index].unit_gross_weight" />
</template>
</view>
<view class="multipl-input-select row">
<picker @change="bindPickerZYChange($event, 8)" :value="grossWeightSizeIndex" :range="grossWeightSize" style="width: 100%;height: 100%;">
<picker @change="bindPickerZYChange($event, 8, index)" :value="grossWeightSizeIndex" :range="grossWeightSize" style="width: 100%;height: 100%;">
<view class="row verCenter bothSide">
<view class="uni-input row rowCenter verCenter" style="padding-left: 9rpx;padding-right: 9rpx;border-left: none;width: 80rpx;">{{ grossWeightSize[grossWeightSizeIndex] }}</view>
</view>
......@@ -572,22 +598,60 @@ export default {
//选择标准包装长宽高
case 3:
this.standardSizeIndex = e.detail.value;
if (this.standardSizeIndex == 1) {
//标准包装长宽高
this.saveZyGoodsParams[index].standard_length = '';
this.saveZyGoodsParams[index].standard_width = '';
this.saveZyGoodsParams[index].standard_high = '';
} else {
//单位包装长宽高
this.saveZyGoodsParams[index].unit_length = '';
this.saveZyGoodsParams[index].unit_width = '';
this.saveZyGoodsParams[index].unit_high = '';
}
this.$forceUpdate();
break;
//选择标标准包净重
case 5:
this.netWeightIndex = e.detail.value;
if (this.netWeightSizeIndex == 1) {
//标准包装净重
this.saveZyGoodsParams[index].standard_net_weight = '';
} else {
//单位净重
this.saveZyGoodsParams[index].unit_net_weight = '';
}
break;
//选择标标准包净重-单位
case 6:
this.netWeightSizeIndex = e.detail.value;
if (this.netWeightSizeIndex == 1) {
this.saveZyGoodsParams[index].net_weight_size = 2;
} else {
this.saveZyGoodsParams[index].net_weight_size = 1;
}
this.$forceUpdate();
break;
//选择标准包毛重
case 7:
this.grossWeightIndex = e.detail.value;
if (this.grossWeightIndex == 1) {
//标准包装净重
this.saveZyGoodsParams[index].standard_gross_weight = '';
} else {
//单位净重
this.saveZyGoodsParams[index].unit_gross_weight = '';
}
break;
//选择标准包毛重-单位
case 8:
this.grossWeightSizeIndex = e.detail.value;
if (this.grossWeightSizeIndex == 1) {
this.saveZyGoodsParams[index].gross_weight_size = 2;
} else {
this.saveZyGoodsParams[index].gross_weight_size = 1;
}
break;
//其他属性
case 9:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment