111
This commit is contained in:
@@ -342,7 +342,7 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
jian(item) {
|
jian(item) {
|
||||||
const that = this
|
const that = this
|
||||||
console.log("item》》》》", item)
|
console.log("item》》》》", item)
|
||||||
@@ -392,7 +392,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.page.price = num
|
this.page.price = num
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getweight() {
|
getweight() {
|
||||||
@@ -441,39 +441,8 @@
|
|||||||
return
|
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()
|
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() {
|
showPop() {
|
||||||
|
|
||||||
@@ -507,27 +476,9 @@
|
|||||||
|
|
||||||
saveGoods() {
|
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 = {
|
var params = {
|
||||||
customerSid: getApp().globalData.sid,
|
customerSid: getApp().globalData.sid,
|
||||||
brandId: this.data.brandVos[this.selectIndex2].id,
|
brandId: this.data.brandVos[this.selectIndex2].id
|
||||||
vos: list
|
|
||||||
}
|
}
|
||||||
// console.log("params", params);
|
// console.log("params", params);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user