|
|
@@ -95,8 +95,14 @@
|
|
|
|
|
|
<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 kind-num_bx" v-if="Number(customData.kind) == 3">
|
|
|
+ <input style="width: 160upx;height:50upx;font-size:28upx;" v-model="kindHoleCount" type="number" placeholder="穴数" @input="calcKindCount" />
|
|
|
+ <text class="kind-unit">穴</text>
|
|
|
+ <input style="width: 160upx;height:50upx;font-size:28upx;" v-model="kindPlateCount" type="number" placeholder="盘数" @input="calcKindCount" />
|
|
|
+ <text class="kind-unit">盘</text>
|
|
|
+ </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;height:50upx;font-size:28upx;" v-model="customData.remark" type="text" placeholder="备注" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -145,6 +151,8 @@ export default {
|
|
|
isSmallCount:false,
|
|
|
globalCheckStock:true,
|
|
|
autoLoad: false,
|
|
|
+ kindHoleCount: null,
|
|
|
+ kindPlateCount: null,
|
|
|
xjData:{},
|
|
|
xjDataInfo:{},
|
|
|
treeData:{},
|
|
|
@@ -154,6 +162,17 @@ export default {
|
|
|
computed: {
|
|
|
...mapGetters(["getLoginInfo"]),
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ globalUnitType() {
|
|
|
+ this.calcKindCount()
|
|
|
+ },
|
|
|
+ isAddModel(val) {
|
|
|
+ if (!val) {
|
|
|
+ this.kindHoleCount = null
|
|
|
+ this.kindPlateCount = null
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
onShow() {
|
|
|
//小菊等多颜色
|
|
|
if(this.xjData.hasUpdate == 1){
|
|
|
@@ -222,6 +241,23 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ calcKindCount() {
|
|
|
+ if (!this.customData || Number(this.customData.kind) !== 3) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const holeCount = Number(this.kindHoleCount)
|
|
|
+ const plateCount = Number(this.kindPlateCount)
|
|
|
+ if (holeCount > 0 && plateCount > 0) {
|
|
|
+ const totalCount = holeCount * plateCount
|
|
|
+ if (this.globalUnitType == 0) {
|
|
|
+ this.customData.bigCount = totalCount
|
|
|
+ this.customData.smallCount = null
|
|
|
+ } else {
|
|
|
+ this.customData.smallCount = totalCount
|
|
|
+ this.customData.bigCount = null
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
delProduct(info){
|
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认删除?'},() => {
|
|
|
@@ -387,6 +423,15 @@ export default {
|
|
|
font-size: 40upx;
|
|
|
}
|
|
|
}
|
|
|
+ .kind-num_bx {
|
|
|
+ padding-left: 35upx;
|
|
|
+ .kind-unit {
|
|
|
+ font-size: 30upx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #666666;
|
|
|
+ margin-right: 24upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.class-popup-style{
|