Browse Source

下游

master
tianyi@bogon 3 years ago
parent
commit
40ad953fb7
  1. 25
      pages/index/downStearmList.vue

25
pages/index/downStearmList.vue

@ -145,7 +145,7 @@
</view> </view>
</view> </view>
<view class="popup-container" v-for="items in item.saleDetailQueryDTO"> <view class="popup-container" v-for="items in item.stockLogList1">
<view class="checkList"> <view class="checkList">
<view style="margin-right:5%;" @tap="delShopSpec(items.name)"> <view style="margin-right:5%;" @tap="delShopSpec(items.name)">
<uni-icons color="red" type="minus" size="26"></uni-icons> <uni-icons color="red" type="minus" size="26"></uni-icons>
@ -393,14 +393,14 @@
//弹窗选择规格后,点击弹窗中选好了按钮 //弹窗选择规格后,点击弹窗中选好了按钮
temporaryCheck() { temporaryCheck() {
let data = { let data = {
id: this.goodsDetail.id, productId: this.goodsDetail.id,
price: this.zPrice, price: this.zPrice,
num: this.zNum, num: this.zNum,
productName: this.goodsDetail.productName, productName: this.goodsDetail.productName,
productSn: this.goodsDetail.productSn, productSn: this.goodsDetail.productSn,
productPicture: this.goodsDetail.productPicture, productPicture: this.goodsDetail.productPicture,
supplierName: this.goodsDetail.supplierName, supplierName: this.goodsDetail.supplierName,
saleDetailQueryDTO:this.temporaryList, stockLogList1:this.temporaryList,
wholesalePrice:this.goodsDetail.wholesalePrice, wholesalePrice:this.goodsDetail.wholesalePrice,
lsprice:this.goodsDetail.price lsprice:this.goodsDetail.price
} }
@ -439,14 +439,14 @@
var that = this; var that = this;
console.log(this.carList) console.log(this.carList)
for (let i=0;i<this.carList.length;i++) { for (let i=0;i<this.carList.length;i++) {
for (let m=0;m<this.carList[i].saleDetailQueryDTO.length;m++) { for (let m=0;m<this.carList[i].stockLogList1.length;m++) {
if(this.carList[i].saleDetailQueryDTO[m].name == name){ if(this.carList[i].stockLogList1[m].name == name){
uni.showModal({ uni.showModal({
title: "提示", title: "提示",
content: "确定删除此条商品吗?", content: "确定删除此条商品吗?",
success: function(res) { success: function(res) {
that.carList[i].saleDetailQueryDTO.splice(m,1) that.carList[i].stockLogList1.splice(m,1)
if(that.carList[i].saleDetailQueryDTO.length == 0){ if(that.carList[i].stockLogList1.length == 0){
that.carList.splice(i,1) that.carList.splice(i,1)
} }
} }
@ -460,14 +460,15 @@
let that = this; let that = this;
this.$refs.form.validate().then(res => { this.$refs.form.validate().then(res => {
let obj = { let obj = {
mobile:that.formData.consigneeMobile,
username:that.formData.consigneeName,
sale: { sale: {
area: this.addressObj.area, area: this.addressObj.area,
city: this.addressObj.city, city: this.addressObj.city,
province: this.addressObj.province, province: this.addressObj.province,
receiveAddress: that.formData.address, receiveAddress: that.formData.address,
totalAmount: that.zPrice, //应付金额 totalAmount: that.zPrice ,//应付金额
username:that.formData.consigneeName, shopId:this.shopId
mobile:that.formData.consigneeMobile
}, },
saleDetailList: this.carList saleDetailList: this.carList
} }
@ -517,8 +518,8 @@
pageSize: '10' pageSize: '10'
}, false, true).then((res) => { }, false, true).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.shopList = res.result.records
this.shopList = res.result.records this.shopId = res.result.records[0].shopId
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message)
} }

Loading…
Cancel
Save