更新委托销售功能

This commit is contained in:
weipengfei 2023-10-27 20:31:36 +08:00
parent d0a0275d2e
commit 94094ad137
6 changed files with 24 additions and 12 deletions

View File

@ -173,6 +173,9 @@
// //
producrprice(e, i, item) { producrprice(e, i, item) {
this.bought[i].price = e.detail.value 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); // this.$set(item, 'check', false);
// for (let i in this.checkedArr) { // for (let i in this.checkedArr) {
// if (this.checkedArr[i].product_id == item.product_id) { // if (this.checkedArr[i].product_id == item.product_id) {

View File

@ -173,6 +173,9 @@
// //
producrprice(e, i, item) { producrprice(e, i, item) {
this.bought[i].price = e.detail.value 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); // this.$set(item, 'check', false);
// for (let i in this.checkedArr) { // for (let i in this.checkedArr) {
// if (this.checkedArr[i].product_id == item.product_id) { // if (this.checkedArr[i].product_id == item.product_id) {

View File

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

View File

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

View File

@ -52,9 +52,9 @@
编辑 编辑
</view> </view>
<span></span> <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> <span></span>
<view class="contentgn_b" @click="detail(item)"> <view class="contentgn_b" @click="detail(item)">
详情 详情

View File

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