111
This commit is contained in:
@@ -342,7 +342,7 @@
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
jian(item) {
|
||||
const that = this
|
||||
console.log("item》》》》", item)
|
||||
@@ -392,7 +392,7 @@
|
||||
}
|
||||
|
||||
this.page.price = num
|
||||
|
||||
|
||||
},
|
||||
|
||||
getweight() {
|
||||
@@ -441,39 +441,8 @@
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
let list = []
|
||||
|
||||
for (var i = 0; i < this.goods.length; i++) {
|
||||
var item = this.goods[i]
|
||||
if (item.goodsNumber > 0)
|
||||
list.push({
|
||||
goodsSid: item.goodsSid,
|
||||
goodsName: item.name,
|
||||
partNumber: item.goodsNumber,
|
||||
numofPart: item.weight,
|
||||
priceUnit: item.jprice, // 斤单价
|
||||
pricePart: item.mefenPrice, // 份单价
|
||||
})
|
||||
}
|
||||
// console.log("ddd", list);
|
||||
|
||||
if (list.length == 0) {
|
||||
this.shortToast('请添加商品')
|
||||
return
|
||||
}
|
||||
|
||||
this.showPop()
|
||||
|
||||
// console.log("params", params);
|
||||
|
||||
// let _this = this
|
||||
// _this.$api.createOrder(params).then((resp) => {
|
||||
|
||||
// // console.log("resp", resp);
|
||||
// this.$pay(resp)
|
||||
// }).catch(e => {})
|
||||
|
||||
},
|
||||
showPop() {
|
||||
|
||||
@@ -507,27 +476,9 @@
|
||||
|
||||
saveGoods() {
|
||||
|
||||
let list = []
|
||||
|
||||
for (var i = 0; i < this.goods.length; i++) {
|
||||
var item = this.goods[i]
|
||||
if (item.goodsNumber > 0)
|
||||
list.push({
|
||||
goodsSid: item.goodsSid,
|
||||
goodsNumber: item.goodsNumber,
|
||||
})
|
||||
}
|
||||
// console.log("ddd", list);
|
||||
|
||||
if (list.length == 0) {
|
||||
this.shortToast('请添加商品')
|
||||
return
|
||||
}
|
||||
|
||||
var params = {
|
||||
customerSid: getApp().globalData.sid,
|
||||
brandId: this.data.brandVos[this.selectIndex2].id,
|
||||
vos: list
|
||||
brandId: this.data.brandVos[this.selectIndex2].id
|
||||
}
|
||||
// console.log("params", params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user