代客下单计算器

This commit is contained in:
duan
2024-12-03 11:17:43 +08:00
parent 1ec393fcf5
commit c5f4688432
4 changed files with 85 additions and 74 deletions

View File

@@ -2356,12 +2356,20 @@ export default {
this.$refs.refQuanHexiao.open()
},
//称重商品弹窗
refWeightGoodsShow() {
this.$refs.refWeightGoods.open();
refWeightGoodsShow(item) {
this.$refs.refWeightGoods.open(item);
},
//称重商品确认
refWeightGoodsConfirm(){
async refWeightGoodsConfirm(item,number){
let {masterId} =await this.getMasterId()
let obj = {
num:number *1,
masterId,
productId: this.selGoods.data.id,
}
// console.log(obj,'拿到的obj')
// console.log(this.selGoods,'拿到的')
this.chooseSkuConfirm()
},
//挂账人支付确认
guazhangPayConfirm(guazhangren, price) {
@@ -3707,6 +3715,9 @@ export default {
name = name.substring(0, name.length - 1);
// const item = this.selGoods.data.specList.find((v) => v.specSnap === name);
const item = this.selGoods.skuMap[name];
console.log(this.selGoods,'调试1')
console.log(name,'调试2')
console.log(item,'调试1')
if (!item.isGrounding) {
//该商品已经下架
return this.$notify({
@@ -4063,7 +4074,7 @@ export default {
// return this.$message.error("暂不支持无桌台下单,请先选择桌台");
// }
if(item.type=='weigh'){
return this.refWeightGoodsShow()
return this.refWeightGoodsShow(item)
}
if (item.typeEnum === "sku") {
this.selGoods.data = item;