|
|
@@ -31,6 +31,10 @@
|
|
|
<image @tap="changeUnitType" class="change-unit" :src="`${constant.imgUrl}/icon/switch/switch128.png`"></image>
|
|
|
</view>
|
|
|
|
|
|
+ <view style="text-align:center;" v-if="customData.property==0">
|
|
|
+ <button class="admin-button-com mini-btn blue" @click="clear()">结算</button>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
<view class="keyboard-body_box">
|
|
|
<VKeyboard ref="keyboard" :pointIsShow="true" :digital="true" :disorderly="false" @typing="typing" @enter="enter" @cancel="cancel"> </VKeyboard>
|
|
|
@@ -84,6 +88,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ clear(){
|
|
|
+ if(Number(this.currentNum) <= 0) {
|
|
|
+ this.$msg('请填写数量')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(Number(this.unitPrice) <= 0) {
|
|
|
+ this.$msg('请填写价格')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.enter()
|
|
|
+ this.$emit('addToClear')
|
|
|
+ },
|
|
|
checkCurrent(n){
|
|
|
this.checkType = n
|
|
|
this.fillType = n
|