Compare commits

..

No commits in common. "94094ad137a47ba99129c2510731cf4233826d03" and "fb50530bb30b140ec1f3a159eaddea7dab3076b5" have entirely different histories.

6 changed files with 34 additions and 45 deletions

View File

@ -173,26 +173,27 @@
//
producrprice(e, i, item) {
this.bought[i].price = e.detail.value
// , ,
let obj = this.checkedArr.find((item)=>item.product_id==this.bought[i].product_id);
obj ? obj.price = e.detail.value:null;
// this.$set(item, 'check', false);
// for (let i in this.checkedArr) {
// if (this.checkedArr[i].product_id == item.product_id) {
// this.checkedArr.splice(i, 1)
// }
// }
this.$set(item, 'check', false);
for (let i in this.checkedArr) {
if (this.checkedArr[i].product_id == item.product_id) {
this.checkedArr.splice(i, 1)
}
}
},
incrementTotal(e, i, item) {
// this.$set(item, 'check', false);
// for (let i in this.checkedArr) {
// if (this.checkedArr[i].product_id == item.product_id) {
// this.checkedArr.splice(i, 1)
// }
// }
this.$set(item, 'check', false);
for (let i in this.checkedArr) {
if (this.checkedArr[i].product_id == item.product_id) {
this.checkedArr.splice(i, 1)
}
}
},
// picker
@ -215,10 +216,8 @@
},
numberChange(data, i) {
this.peicenumber = data.number;
this.bought[i].number = data.number;
// , ,
let obj = this.checkedArr.find((item)=>item.product_id==this.bought[i].product_id);
obj ? obj.number = data.number:null;
this.bought[i].number = data.number
},
tabs(index) {
@ -301,6 +300,7 @@
this.checkedArr.forEach((item, index) => {
this.checkedArr.push(item)
})
},
/*点击选中与否*/
@ -330,7 +330,7 @@
}
acc.push(cru)
} else {
// console.log(acc, hash[cru[name]])
console.log(acc, hash[cru[name]])
acc.splice(hash[cru[name]]['index'], 1, cru)
}
@ -344,7 +344,7 @@
},
/*确定提交*/
submit() {
console.log(this.checkedArr);
this.$emit('getProduct', this.checkedArr);
},

View File

@ -173,9 +173,6 @@
//
producrprice(e, i, item) {
this.bought[i].price = e.detail.value
// , ,
let obj = this.checkedArr.find((item)=>item.product_id==this.bought[i].product_id);
obj ? obj.price = e.detail.value:null;
// this.$set(item, 'check', false);
// for (let i in this.checkedArr) {
// if (this.checkedArr[i].product_id == item.product_id) {
@ -212,9 +209,7 @@
numberChange(data, i) {
this.peicenumber = data.number;
this.bought[i].number = data.number
// , ,
let obj = this.checkedArr.find((item)=>item.product_id==this.bought[i].product_id);
obj ? obj.number = data.number:null;
},
tabs(index) {

View File

@ -72,6 +72,7 @@
<script>
import associated from '@/components/realselist/realselist.vue';
import eselect from '@/components/e-select/e-select.vue';
import {
supplychain,
entrustchain,
@ -80,7 +81,8 @@
} from '@/api/sale.js'
export default {
components: {
associated
associated,
eselect
},
data() {
return {
@ -170,15 +172,11 @@
},
//
getProduct(data) {
console.log('选择商品', data);
this.productList = [];
this.formData.product_info = [];
this.formData.content = '';
if (data.length > 0) {
this.productList = data;
this.formData.product_info=[]
if (data.length > 0) {
for (let i in data) {
this.formData.content += data[i].store_name + ',';
console.log(data[i].number);
this.formData.content += data[i].store_name + ','
this.formData.product_info.push({
product_attr_unique: data[i].product_attr_unique,
number: Number(data[i].number),
@ -186,8 +184,6 @@
})
}
}
this.formData.content = this.formData.content.slice(0,-1);
console.log('选择商品', this.formData);
this.$refs.associated.close()
},
//
@ -526,7 +522,7 @@
.release_btn {
position: fixed;
position: absolute;
bottom: 150rpx;
left: 50%;
margin-left: -347rpx;

View File

@ -110,7 +110,7 @@
</view>
<view class="content_bootm">
<view class="content_bootm_txt">
查看TA提到的宝贝({{objinfo.product_list.length||0}})
查看TA提到的宝贝(2)
</view>

View File

@ -52,9 +52,9 @@
编辑
</view>
<span></span>
<!-- <view class="contentgn_a" style="margin-left: 10rpx;" @click="deleteOrder(item)">
<view class="contentgn_a" style="margin-left: 10rpx;" @click="deleteOrder(item)">
删除
</view> -->
</view>
<span></span>
<view class="contentgn_b" @click="detail(item)">
详情

View File

@ -62,7 +62,7 @@
<text class="text">规格模板</text>
</navigator>
<navigator class="item"
:url="`/pages/users/online_warehousing/index?mer_id=${mer_id}&product_id=${data.product_id}&unique=${data.unique}&type=${mer_info.type_code}`"
:url="`/pages/users/online_warehousing/index?mer_id=${mer_id}&product_id=${data.product_id}&unique=${data.unique}`"
hover-class='none'>
<image mode='widthFix' class="image" src="@/static/images/daoru.png"></image>
<text class="text">商品导入</text>
@ -231,7 +231,6 @@
loaded: false,
loading: false,
mer_id: '',
mer_info: {},
productList: [],
swiperCur: 0,
circular: true,
@ -286,7 +285,6 @@
this.mer_id = res.data.service.mer_id;
this.mer_info = res.data.mer_info;
this.getList(res.data.service.mer_id, true);