Browse Source

开单

master
tianyi@bogon 3 years ago
parent
commit
914a31928a
  1. BIN
      pages/.DS_Store
  2. BIN
      pages/index/.DS_Store
  3. 36
      pages/index/order.vue
  4. 12
      pages/inventory/goodsList1.vue

BIN
pages/.DS_Store

Binary file not shown.

BIN
pages/index/.DS_Store

Binary file not shown.

36
pages/index/order.vue

@ -17,7 +17,7 @@
<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 ?'待配货' :'挂单'}}
</view>
<view class="floatRight">去开单</view>
<view class="floatRight" @tap.stop="goSaleGoods(item)">去开单</view>
<!-- <view class="floatRight" v-if="type =='order'">物流信息 </view> -->
</uni-card>
</li>
@ -93,7 +93,39 @@
}
}).catch((res) => {})
},
//带参数跳转到开单页
goSaleGoods(item) {
let obj = {
id:'',
lsprice:0,
num:0,
price:0,
productName:'',
producticture:'',
productSn:'',
saleDetailQueryDTO:[],
supplierName:'',
wholesalePrice:0,
remark:item.remark
},
dataList = []
for (let i=0;i<item.saleDetailDTOList.length;i++) {
obj.saleDetailQueryDTO = item.saleDetailDTOList[i].stockLogList1
obj.id = item.saleDetailDTOList[i].productId
obj.lsprice = item.saleDetailDTOList[i].price
obj.num = item.saleDetailDTOList[i].productCount
obj.price = item.saleDetailDTOList[i].discountAmount
obj.productName = item.saleDetailDTOList[i].productName
obj.producticture = item.saleDetailDTOList[i].productPicture
obj.productSn = item.saleDetailDTOList[i].productSn
obj.wholesalePrice = item.saleDetailDTOList[i].wholesalePrice
dataList.push(obj)
}
uni.setStorageSync('carList1',dataList)
uni.switchTab({
url: '/pages/inventory/goodsList1'
})
}
}
}
</script>

12
pages/inventory/goodsList1.vue

@ -147,7 +147,7 @@
<view class="content-list">
<view class="list-name">备注</view>
<view class="">
<textarea :value="remark"/>
<textarea @input='changeRemark($event)' :value="remark"/>
</view>
</view>
</view>
@ -210,7 +210,7 @@
<view class="content-list" v-if="radioType == '3'">
<view class="list-name">拼包地址</view>
<view class="">
<textarea :value='pbAddress' />
<textarea @input='changePbAddress($event)' :value='pbAddress' />
</view>
</view>
</view>
@ -516,6 +516,12 @@
}
}
},
changeRemark(e){
this.remark = e.detail.value
},
changePbAddress(e){
this.pbAddress = e.detail.value
},
//整体折扣数字框改变
change(e){
console.log(e)
@ -587,7 +593,7 @@
createByName:this.createByName,
remark: this.remark,
otherExpense:this.otherExpense, //其他费用
pbAddress:this.pbAddress,
shareAddress:this.pbAddress,
transCompany: this.wlName.id,
companyName:this.wlName.companyName,
orderByWorker: this.lbgName.workerId,

Loading…
Cancel
Save