wangfukang 3 years ago
parent
commit
a830fac105
  1. 12
      pages/billing/changeGoods1.vue
  2. 53
      pages/index/addHangOrder.vue
  3. 7
      pages/index/downStearmList.vue
  4. 2
      pages/index/index.vue
  5. 2
      pages/index/order.vue
  6. 14
      pages/index/orderDetail.vue
  7. 9
      pages/index/peopleList.vue
  8. 79
      pages/index/shareStyle.vue
  9. 15
      pages/inventory/addinventory.vue
  10. 11
      pages/inventory/changeGoods1.vue
  11. 35
      pages/inventory/goodsList1.vue

12
pages/billing/changeGoods1.vue

@ -274,13 +274,13 @@
this.temporaryList.push(this.attributeList); this.temporaryList.push(this.attributeList);
} else { } else {
for (var i = 0; i < this.temporaryList.length; i++) { for (var i = 0; i < this.temporaryList.length; i++) {
if (this.temporaryList[i].name.indexOf(this.attributeList.name) != -1) { if (this.temporaryList[i].name.indexOf(this.attributeList.name) == -1 || this.temporaryList[i].name.indexOf(this.attributeList.name) == 1) {
return if (this.temporaryList.length == (i + 1)) {
} else { this.temporaryList.push(this.attributeList);
if (this.temporaryList.length == (i + 1)) { return
this.temporaryList.push(this.attributeList);
return
} }
} else {
return
} }
} }

53
pages/index/addHangOrder.vue

@ -370,14 +370,15 @@
this.temporaryList.push(this.attributeList); this.temporaryList.push(this.attributeList);
} else { } else {
for (var i = 0; i < this.temporaryList.length; i++) { for (var i = 0; i < this.temporaryList.length; i++) {
if (this.temporaryList[i].name.indexOf(this.attributeList.name) != -1) { if (this.temporaryList[i].name.indexOf(this.attributeList.name) == -1 || this.temporaryList[i].name.indexOf(this.attributeList.name) == 1) {
this.temporaryList[i] = this.attributeList if (this.temporaryList.length == (i + 1)) {
return this.temporaryList.push(this.attributeList);
} else { return
if (this.temporaryList.length == (i + 1)) {
this.temporaryList.push(this.attributeList);
return
} }
} else {
this.temporaryList[i] = this.attributeList
return
} }
} }
@ -630,31 +631,43 @@
}, },
//带参数跳转到开单页 //带参数跳转到开单页
goSaleGoods(item) { goSaleGoods(item) {
if(item){
console.log(item)
let dataList = [] let dataList = []
for (let i = 0; i < item.saleDetailDTOList.length; i++) { if(item.saleDetailDTOList){
for (let i = 0; i < item.saleDetailDTOList.length; i++) {
let obj = {}
obj.saleDetailQueryDTO = item.saleDetailDTOList[i].stockLogList1
obj.num = 0
obj.id = item.saleDetailDTOList[i].productId
obj.price = 0
obj.lsprice = item.saleDetailDTOList[i].price
obj.zPrice = item.saleDetailDTOList[i].discountAmount
obj.unitPrice = item.saleDetailDTOList[i].discountAmount
obj.productName = item.saleDetailDTOList[i].productName
obj.productPicture = item.saleDetailDTOList[i].productPicture+'?time='+new Date().getTime()
obj.productSn = item.saleDetailDTOList[i].productSn
obj.wholesalePrice = item.saleDetailDTOList[i].wholesalePrice
obj.saleId = item.saleDetailDTOList[i].saleId
obj.remark = item.remark
obj.xsyId = item.createBy
obj.createByName = item.createByName
dataList.push(obj)
}
}else{
let obj = {} let obj = {}
obj.saleDetailQueryDTO = item.saleDetailDTOList[i].stockLogList1
obj.num = 0 obj.num = 0
obj.id = item.saleDetailDTOList[i].productId
obj.price = 0 obj.price = 0
obj.lsprice = item.saleDetailDTOList[i].price
obj.zPrice = item.saleDetailDTOList[i].discountAmount
obj.unitPrice = item.saleDetailDTOList[i].realPrice / item.saleDetailDTOList[i].num
obj.productName = item.saleDetailDTOList[i].productName
obj.productPicture = item.saleDetailDTOList[i].productPicture+'?time='+new Date().getTime()
obj.productSn = item.saleDetailDTOList[i].productSn
obj.wholesalePrice = item.saleDetailDTOList[i].wholesalePrice
obj.saleId = item.saleDetailDTOList[i].saleId
obj.remark = item.remark obj.remark = item.remark
obj.xsyId = item.createBy obj.xsyId = item.createBy
obj.createByName = item.createByName obj.createByName = item.createByName
dataList.push(obj) dataList.push(obj)
} }
console.log(dataList); console.log(dataList);
uni.setStorageSync('carList1', JSON.stringify(dataList)) uni.setStorageSync('carList1', JSON.stringify(dataList))
uni.setStorageSync('khName', '') uni.setStorageSync('khName', '')
}
uni.switchTab({ uni.switchTab({
url: '/pages/inventory/goodsList1' url: '/pages/inventory/goodsList1'
}) })

7
pages/index/downStearmList.vue

@ -297,13 +297,14 @@
this.temporaryList.push(this.attributeList); this.temporaryList.push(this.attributeList);
} else { } else {
for (var i = 0; i < this.temporaryList.length; i++) { for (var i = 0; i < this.temporaryList.length; i++) {
if (this.temporaryList[i].name.indexOf(this.attributeList.name) != -1) { if (this.temporaryList[i].name.indexOf(this.attributeList.name) == -1 || this.temporaryList[i].name.indexOf(this.attributeList.name) == 1) {
return
}else{
if (this.temporaryList.length == (i + 1)) { if (this.temporaryList.length == (i + 1)) {
this.temporaryList.push(this.attributeList); this.temporaryList.push(this.attributeList);
return return
} }
}else{
return
} }
} }
} }

2
pages/index/index.vue

@ -75,7 +75,7 @@
{{ item.createTime }} {{ item.createTime }}
</view> </view>
<view class="uni-body"> <text class="cardText"> <view class="uni-body"> <text class="cardText">
订单状态:</text>{{item.status == 0 ?'待抢单' :item.status == 1 ?'待取货' :item.status == 3 ?'待送达' :item.status == 4 ?'已完成' :item.status == 5 ?'下游客户待退货' :item.status == 00 ?'退货待抢单' :item.status == 01 ?'退货待取货' :item.status == 03 ?'退货待送达' :item.status == 04 ?'待确认退货' :item.status == 6 ?'待配货' :'挂单'}} 订单状态:</text>{{item.status == 0 ?'待抢单' :item.status == 2 ?'作废' :item.status == 1 ?'待取货' :item.status == 3 ?'待送达' :item.status == 4 ?'已完成' :item.status == 5 ?'下游客户待退货' :item.status == 00 ?'退货待抢单' :item.status == 01 ?'退货待取货' :item.status == 03 ?'退货待送达' :item.status == 04 ?'待确认退货' :item.status == 6 ?'待配货' :'挂单'}}
</view> </view>
</uni-card> </uni-card>
</li> </li>

2
pages/index/order.vue

@ -16,7 +16,7 @@
{{'&nbsp;&nbsp;&nbsp;&nbsp; 欠款: '}} </text> <text class="priceText">{{item.noEarn == null ?'暂无':item.noEarn}} {{'&nbsp;&nbsp;&nbsp;&nbsp; 欠款: '}} </text> <text class="priceText">{{item.noEarn == null ?'暂无':item.noEarn}}
</text></view> </text></view>
<view class="uni-body"> <text class="cardText"> <view class="uni-body"> <text class="cardText">
订单状态:</text>{{item.status == 0 ?'待抢单' :item.status == 1 ?'待取货' :item.status == 3 ?'待送达' :item.status == 4 ?'已完成' :item.status == 5 ?'下游客户待退货' :item.status == 00 ?'退货待抢单' :item.status == 01 ?'退货待取货' :item.status == 03 ?'退货待送达' :item.status == 04 ?'待确认退货' :item.status == 6 ?'待配货' :'挂单'}} 订单状态:</text>{{item.status == 0 ?'待抢单' :item.status == 1 ?'待取货':item.status == 2 ?'作废' :item.status == 3 ?'待送达' :item.status == 4 ?'已完成' :item.status == 5 ?'下游客户待退货' :item.status == 00 ?'退货待抢单' :item.status == 01 ?'退货待取货' :item.status == 03 ?'退货待送达' :item.status == 04 ?'待确认退货' :item.status == 6 ?'待配货' :'挂单'}}
</view> </view>
<view class="floatRight" v-if="item.status == 6" @tap.stop="goSaleGoods(item)">去开单</view> <view class="floatRight" v-if="item.status == 6" @tap.stop="goSaleGoods(item)">去开单</view>
<!-- <view class="floatRight" v-if="type =='order'">物流信息 </view> --> <!-- <view class="floatRight" v-if="type =='order'">物流信息 </view> -->

14
pages/index/orderDetail.vue

@ -196,7 +196,7 @@
<view class="tui-order-flex"> <view class="tui-order-flex">
<view class="tui-item-title">配送状态:</view> <view class="tui-item-title">配送状态:</view>
<view class="tui-item-content"> <view class="tui-item-content">
{{ sales.status == 0 ?'待抢单' :sales.status == 1 ?'待取货' :sales.status == 3 ?'待送达' :sales.status == 4 ?'已完成' :sales.status == 5 ?'下游客户待退货' :sales.status == 00 ?'退货待抢单' :sales.status == 01 ?'退货待取货' :sales.status == 03 ?'退货待送达' :sales.status == 04 ?'待确认退货' :sales.status == 6 ?'待配货' :'挂单'}} {{ sales.status == 0 ?'待抢单' :sales.status == 1 ?'待取货' :sales.status == 2 ?'作废':sales.status == 3 ?'待送达' :sales.status == 4 ?'已完成' :sales.status == 5 ?'下游客户待退货' :sales.status == 00 ?'退货待抢单' :sales.status == 01 ?'退货待取货' :sales.status == 03 ?'退货待送达' :sales.status == 04 ?'待确认退货' :sales.status == 6 ?'待配货' :'挂单'}}
</view> </view>
</view> </view>
</view> </view>
@ -522,10 +522,16 @@
cancelOrder() { cancelOrder() {
// 撤销订单 // 撤销订单
this.tui.modal("提示", "您确定要取消该订单吗?", true, (res) => { this.tui.modal("提示", "您确定要取消该订单吗?", true, (res) => {
if (res) { if (res) {
this.tui.request("/app/sales/status", "POST", { var status;
if(this.sales.status == 0 || this.sales.status == 1){
status = 2
}else if(this.sales.status == '00' || this.sales.status == '01'){
status = '02'
}
this.tui.request("/app/sale/status", "POST", {
orderId: this.sales.id, orderId: this.sales.id,
status: 3 status: status
}, true, true).then((res1) => { }, true, true).then((res1) => {
if (res1.code == 200) { if (res1.code == 200) {
this.tui.toast("取消订单成功") this.tui.toast("取消订单成功")

9
pages/index/peopleList.vue

@ -7,7 +7,7 @@
<button size="default" type="default" @tap="goAddPeople" hover-class="is-hover">新增人员</button> <button size="default" type="default" @tap="goAddPeople" hover-class="is-hover">新增人员</button>
</view> </view>
<view class="list-1" v-for="item in popleList" :key="item" @tap="clickList(item)" <view class="list-1" v-for="item in popleList" :key="item" @tap="clickList(item)"
style="display: flex;flex-direction: column;height: 150rpx;"> style="display: flex;flex-direction: column;height: auto;padding-bottom: 20rpx;">
<view class="name-tel" style="width: 100%;" v-if="popleType=='gysName'"> <view class="name-tel" style="width: 100%;" v-if="popleType=='gysName'">
<text style="line-height: 75rpx;">{{item.consigneeName}}</text> <text style="line-height: 75rpx;">{{item.consigneeName}}</text>
<text>{{item.consigneeMobile}}</text> <text>{{item.consigneeMobile}}</text>
@ -16,8 +16,9 @@
<text style="line-height: 75rpx;">{{item.name}}</text> <text style="line-height: 75rpx;">{{item.name}}</text>
<text>{{item.phone}}</text> <text>{{item.phone}}</text>
</view> </view>
<view class="name-tel" style="width: 100%;"> <view class="name-tel" style="width: 100%;display: flex;flex-direction: column;height:auto;font-size: 30rpx;">
<text>{{item.province + item.city + item.area + item.address}}</text> <text>{{item.province + item.city + item.area}}</text>
<text style="font-size: 26rpx;color:#747474;height: 30rpx;line-height: 30rpx;">{{item.address}}</text>
</view> </view>
<view class="name-edit" @tap.stop="goAddPeople('edit',item)"> <view class="name-edit" @tap.stop="goAddPeople('edit',item)">
<u-icon name="edit-pen-fill" size="28"></u-icon> <u-icon name="edit-pen-fill" size="28"></u-icon>
@ -40,7 +41,7 @@
<view class="phone-btn" @tap.stop="clickPhone(item.mobile)" v-if="popleType != 'kdName'">拨打电话</view> <view class="phone-btn" @tap.stop="clickPhone(item.mobile)" v-if="popleType != 'kdName'">拨打电话</view>
</view> </view>
<view style="position: absolute;bottom: 0;left: 40rpx;" v-if="popleType == 'fcName' || popleType == 'lbgName' || popleType == 'wlName'"> <view style="position: absolute;bottom: 0;left: 40rpx;" v-if="popleType == 'fcName' || popleType == 'lbgName' || popleType == 'wlName'">
<text style="line-height: 45rpx;color:red;font-size: 24rpx;">本单返佣{{item.rebateAmount}}元</text> <text style="line-height: 45rpx;color:red;font-size: 24rpx;" v-if="item.rebateAmount">本单返佣{{item.rebateAmount}}元</text>
</view> </view>
</view> </view>
</view> </view>

79
pages/index/shareStyle.vue

@ -21,7 +21,7 @@
<view class="box-right"> <view class="box-right">
<view class="box-right-name">{{item.productName}}</view> <view class="box-right-name">{{item.productName}}</view>
<view class="box-right-num">{{item.productSn}}</view> <view class="box-right-num">{{item.productSn}}</view>
<view class="box-right-price"> <view class="box-right-price" v-if="item.wholesalePrice">
<view class="price-box" v-if="type==0"> <view class="price-box" v-if="type==0">
<text>{{item.purchasePrice}}</text> <text>{{item.purchasePrice}}</text>
<text>采购价</text> <text>采购价</text>
@ -40,7 +40,7 @@
</view> </view>
</view> </view>
</view> </view>
<checkbox-group @tap="checkboxChange(item)"> <checkbox-group @tap="checkboxChange(item)" v-if="item.wholesalePrice">
<label> <label>
<checkbox :checked="item.checked" class="checkbox" /> <checkbox :checked="item.checked" class="checkbox" />
</label> </label>
@ -63,7 +63,7 @@
</view> </view>
</view> </view>
<!-- 分享弹出层 --> <!-- 分享弹出层 -->
<uni-popup ref="share" type="share" @select='select' safeArea backgroundColor="#fff"> <uni-popup ref="share" type="share" safeArea backgroundColor="#fff">
<uni-popup-share></uni-popup-share> <uni-popup-share></uni-popup-share>
</uni-popup> </uni-popup>
<!-- 弹出输入框 --> <!-- 弹出输入框 -->
@ -138,6 +138,20 @@
}, },
created() { created() {
uni.hideHomeButton() //左上角HOME按钮 uni.hideHomeButton() //左上角HOME按钮
},
onShareTimeline() {
return {
title: '查看我的推荐',
imageUrl:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/abdc5c897c4f4fe198b74091a708030b.jpg',
query: 'khid=' + this.khid
}
},
onShareAppMessage() {
return {
title: '查看我的推荐',
imageUrl:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/abdc5c897c4f4fe198b74091a708030b.jpg',
path: '/pages/index/shareStyle?khid=' + this.khid
}
}, },
onLoad(options) { onLoad(options) {
@ -152,9 +166,7 @@
methods: { methods: {
//初始化获取分类列表 //初始化获取分类列表
getGategoryList() { getGategoryList() {
this.tui.request("/app/productCategory/list", "get", { this.tui.request("/app/productCategory/list", "get", {}, false, true).then((res) => {
// shopId: 1,
}, false, true).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.indexList = res.result; this.indexList = res.result;
for (var i = 0; i < this.indexList.length; i++) { for (var i = 0; i < this.indexList.length; i++) {
@ -163,10 +175,14 @@
} else { } else {
this.indexList[i].parentId = false this.indexList[i].parentId = false
} }
this.categoryId = this.indexList[i].id let data = {
this.getShareList(this.indexList[i].id); categoryId: this.indexList[i].id
}
this.shopList.push(data)
this.categoryId = this.indexList[i].id
this.getShareList(this.indexList[i].id)
} }
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message)
} }
@ -175,14 +191,23 @@
//点击分类获取商品列表 //点击分类获取商品列表
getShareList(id) { getShareList(id) {
this.tui.request("/app/product/getShareList", "POST", { this.tui.request("/app/product/getShareList", "POST", {
categoryId: this.categoryId, categoryId: id,
searchStr: this.searchName, searchStr: this.searchName,
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: '100' pageSize: '100'
}, false, false).then((res) => { }, false, false).then((res) => {
if (res.code == 200) { if (res.code == 200) {
for (var i = 0; i < this.shopList.length; i++) {
this.shopList.push(res.result.records) if(res.result.records != []){
if(this.shopList[i].categoryId == res.result.records[0].categoryId){
this.shopList[i] = res.result.records
}
}else{
this.shopList[i] = []
}
}
console.log(this.shopList)
this.goodsList = this.shopList[0] this.goodsList = this.shopList[0]
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message)
@ -269,26 +294,14 @@
} }
}).catch((res) => {}) }).catch((res) => {})
}, },
//点击的是转发朋友圈还是微信好友 // //点击的是转发朋友圈还是微信好友
select(index) { // select(index) {
if (index == 0) { // if (index == 0) {
this.onShareAppMessage() // this.onShareAppMessage()
} else { // } else {
this.onShareTimeline() // this.onShareTimeline()
} // }
}, // },
onShareTimeline() {
return {
title: '查看我的推荐',
query: 'khid=' + this.khid
}
},
onShareAppMessage() {
return {
title: '查看我的推荐',
path: '/pages/index/shareStyle?khid=' + this.khid
}
},
//弹出购物车或者商品规格选择弹窗 //弹出购物车或者商品规格选择弹窗
toggle(type, item) { toggle(type, item) {
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性 // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性

15
pages/inventory/addinventory.vue

@ -348,14 +348,15 @@
this.temporaryList.push(this.attributeList); this.temporaryList.push(this.attributeList);
} else { } else {
for (var i = 0; i < this.temporaryList.length; i++) { for (var i = 0; i < this.temporaryList.length; i++) {
if (this.temporaryList[i].name.indexOf(this.attributeList.name) != -1) { if (this.temporaryList[i].name.indexOf(this.attributeList.name) == -1 || this.temporaryList[i].name.indexOf(this.attributeList.name) == 1) {
this.temporaryList[i] = this.attributeList if (this.temporaryList.length == (i + 1)) {
return this.temporaryList.push(this.attributeList);
} else { return
if (this.temporaryList.length == (i + 1)) {
this.temporaryList.push(this.attributeList);
return
} }
} else {
this.temporaryList[i] = this.attributeList
return
} }
} }

11
pages/inventory/changeGoods1.vue

@ -277,14 +277,15 @@
this.temporaryList.push(this.attributeList); this.temporaryList.push(this.attributeList);
} else { } else {
for (var i = 0; i < this.temporaryList.length; i++) { for (var i = 0; i < this.temporaryList.length; i++) {
if (this.temporaryList[i].name.indexOf(this.attributeList.name) != -1) { if (this.temporaryList[i].name.indexOf(this.attributeList.name) == -1 || this.temporaryList[i].name.indexOf(this.attributeList.name) == 1) {
return if (this.temporaryList.length == (i+1)) {
} else {
if (this.temporaryList.length == (i+1)) {
this.temporaryList.push(this.attributeList); this.temporaryList.push(this.attributeList);
return return
} }
} else {
return
} }
} }

35
pages/inventory/goodsList1.vue

@ -470,7 +470,6 @@
this.khName = [] this.khName = []
this.saleId = '' this.saleId = ''
} }
for (let i = 0; i < this.carList1.length; i++) { for (let i = 0; i < this.carList1.length; i++) {
if (this.carList.size == 0) { //当前页没有数据 if (this.carList.size == 0) { //当前页没有数据
@ -478,8 +477,8 @@
purchasePrice: this.carList1[i].price, //采购价 purchasePrice: this.carList1[i].price, //采购价
price: 0, //总价 price: 0, //总价
discount: 10, //折扣 discount: 10, //折扣
unitPrice: 0, //单价 unitPrice: this.carList1[i].unitPrice || 0, //单价
discountAmount: 0, //折后价 discountAmount: this.carList1[i].unitPrice || 0, //折后价
wholesalePrice: this.carList1[i].wholesalePrice, //批发价 wholesalePrice: this.carList1[i].wholesalePrice, //批发价
lsprice: this.carList1[i].lsprice, //零售价 lsprice: this.carList1[i].lsprice, //零售价
productCount: 0, //总数量 productCount: 0, //总数量
@ -497,9 +496,7 @@
obj.productCount += this.carList1[i].saleDetailQueryDTO[m].productCount obj.productCount += this.carList1[i].saleDetailQueryDTO[m].productCount
} }
this.carList.set(this.carList1[i].id, obj) this.carList.set(this.carList1[i].id, obj)
} else { //当前页有数据 } else { //当前页有数据
if (this.carList.has(this.carList1[i].id) == true) { //商品相同 if (this.carList.has(this.carList1[i].id) == true) { //商品相同
for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) { for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) {
if (this.carList.get(this.carList1[i].id).stockLogList.has(this.carList1[i].saleDetailQueryDTO[ if (this.carList.get(this.carList1[i].id).stockLogList.has(this.carList1[i].saleDetailQueryDTO[
@ -522,8 +519,8 @@
purchasePrice: this.carList1[i].price, //采购价 purchasePrice: this.carList1[i].price, //采购价
price: 0, price: 0,
discount: 10, discount: 10,
discountAmount: 0, discountAmount: this.carList1[i].unitPrice || 0,
unitPrice: 0, //单价 unitPrice: this.carList1[i].unitPrice || 0, //单价
wholesalePrice: this.carList1[i].wholesalePrice, //批发价 wholesalePrice: this.carList1[i].wholesalePrice, //批发价
lsprice: this.carList1[i].lsprice, //零售价 lsprice: this.carList1[i].lsprice, //零售价
productCount: 0, productCount: 0,
@ -549,7 +546,9 @@
uni.removeStorageSync('saoma') uni.removeStorageSync('saoma')
this.carList1 = [] this.carList1 = []
this.carList.forEach(function(value, key) { this.carList.forEach(function(value, key) {
if (that.priceType == 0) { //零售 if(that.priceType == ''){
// value.unitPrice = value.unitPrice
}else if (that.priceType == 0) { //零售
value.unitPrice = value.lsprice value.unitPrice = value.lsprice
} else if (that.priceType == 1) { //批发 } else if (that.priceType == 1) { //批发
value.unitPrice = value.wholesalePrice value.unitPrice = value.wholesalePrice
@ -641,14 +640,15 @@
this.temporaryList.push(this.attributeList); this.temporaryList.push(this.attributeList);
} else { } else {
for (var i = 0; i < this.temporaryList.length; i++) { for (var i = 0; i < this.temporaryList.length; i++) {
if (this.temporaryList[i].name.indexOf(this.attributeList.name) != -1) { if (this.temporaryList[i].name.indexOf(this.attributeList.name) == -1 || this.temporaryList[i].name.indexOf(this.attributeList.name) == 1) {
this.temporaryList[i] = this.attributeList if (this.temporaryList.length == (i + 1)) {
return this.temporaryList.push(this.attributeList);
} else { return
if (this.temporaryList.length == (i + 1)) {
this.temporaryList.push(this.attributeList);
return
} }
} else {
this.temporaryList[i] = this.attributeList
return
} }
} }
@ -732,7 +732,10 @@
let that = this; let that = this;
let price = 0 let price = 0
this.carList.forEach(function(value, key) { this.carList.forEach(function(value, key) {
if(that.priceType == 0){ //零售 console.log(value.unitPrice)
if(that.priceType == ''){
price = value.unitPrice
}else if(that.priceType == 0){ //零售
price = value.lsprice price = value.lsprice
}else if(that.priceType == 1){ //批发 }else if(that.priceType == 1){ //批发
price = value.wholesalePrice price = value.wholesalePrice

Loading…
Cancel
Save