|
@@ -34,9 +34,9 @@
|
|
|
<view style="text-align:center;" v-if="customData.property==0">
|
|
<view style="text-align:center;" v-if="customData.property==0">
|
|
|
<button class="admin-button-com mini-btn blue" style="font-size:20upx;" @click="clear()">扫码付</button>
|
|
<button class="admin-button-com mini-btn blue" style="font-size:20upx;" @click="clear()">扫码付</button>
|
|
|
</view>
|
|
</view>
|
|
|
- <view>
|
|
|
|
|
- <button class="admin-button-com mini-btn" style="font-size:14upx;float:left;" @click="addHalf">加半扎</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="font-size:14upx;float:right;" @click="subHalf">减半扎</button>
|
|
|
|
|
|
|
+ <view style="margin-top:10upx;margin-bottom:10upx;">
|
|
|
|
|
+ <button class="admin-button-com mini-btn" style="font-size:10upx;float:left;" @click="addHalf">加半扎</button>
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="font-size:10upx;float:right;" @click="subHalf">减半扎</button>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -115,14 +115,16 @@ export default {
|
|
|
let that = this
|
|
let that = this
|
|
|
let remark = "收银机上,花材加半扎"
|
|
let remark = "收银机上,花材加半扎"
|
|
|
changeHalf({productId:that.customData.id,add:1,remark:remark}).then((res) => {
|
|
changeHalf({productId:that.customData.id,add:1,remark:remark}).then((res) => {
|
|
|
- that.$msg('增加成功')
|
|
|
|
|
|
|
+ let stock = res.data.stock ? res.data.stock : 0
|
|
|
|
|
+ that.$msg('增加成功,剩 '+stock)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
subHalf(){
|
|
subHalf(){
|
|
|
let that = this
|
|
let that = this
|
|
|
let remark = "收银机上,花材减半扎"
|
|
let remark = "收银机上,花材减半扎"
|
|
|
changeHalf({productId:that.customData.id,add:0,remark:remark}).then((res) => {
|
|
changeHalf({productId:that.customData.id,add:0,remark:remark}).then((res) => {
|
|
|
- that.$msg('减少成功')
|
|
|
|
|
|
|
+ let stock = res.data.stock ? res.data.stock : 0
|
|
|
|
|
+ that.$msg('减少成功,剩 '+stock)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
clear(){
|
|
clear(){
|
|
@@ -234,7 +236,7 @@ export default {
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.boardset-flowert {
|
|
.boardset-flowert {
|
|
|
width:34vw;
|
|
width:34vw;
|
|
|
- height: 84vh;
|
|
|
|
|
|
|
+ height: 86vh;
|
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
border-radius: 5upx;
|
|
border-radius: 5upx;
|