Browse Source

开单

master
tianyi@bogon 3 years ago
parent
commit
1a8376ff4b
  1. 4
      pages/index/index.vue
  2. 6
      pages/index/order.vue
  3. 27
      pages/inventory/goodsList1.vue

4
pages/index/index.vue

@ -107,6 +107,10 @@
<u-cell icon="integral-fill" url="/pages/index/downstream" title="下游客户欠款" clickable isLink <u-cell icon="integral-fill" url="/pages/index/downstream" title="下游客户欠款" clickable isLink
arrow-direction="left"></u-cell> arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/returnList" title="待退货" clickable isLink <u-cell icon="integral-fill" url="/pages/index/returnList" title="待退货" clickable isLink
arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/order?type=ruku" title="入库单详情" clickable isLink
arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/order?type=dingdan" title="订单详情" clickable isLink
arrow-direction="left"></u-cell> arrow-direction="left"></u-cell>
</u-cell-group> </u-cell-group>
</view> </view>

6
pages/index/order.vue

@ -33,7 +33,7 @@
data() { data() {
return { return {
keyword: '', keyword: '',
userId: '', type: '',
inventoryList: [], inventoryList: [],
status: 'loadmore', status: 'loadmore',
page: 1, page: 1,
@ -42,8 +42,8 @@
}; };
}, },
onLoad(options) { onLoad(options) {
console.log(options, 'options'); console.log('options', options);
this.userId = options.userId; this.type = options.type;
this.getOrderInfoList() this.getOrderInfoList()
}, },
onReachBottom() { onReachBottom() {

27
pages/inventory/goodsList1.vue

@ -135,7 +135,7 @@
<view class="content-list"> <view class="content-list">
<view class="list-name">欠款</view> <view class="list-name">欠款</view>
<view class="list-val"> <view class="list-val">
<input type="number" :value="priceNo" disabled> <input type="number" :value="noPay" disabled>
</view> </view>
</view> </view>
<view class="content-list"> <view class="content-list">
@ -247,12 +247,13 @@
return { return {
lsprice:0,//临时零售价 lsprice:0,//临时零售价
wholesalePrice:0, // 临时显示批发价 wholesalePrice:0, // 临时显示批发价
price: '0', //总金额 price: 0, //总金额
relPrice: '0', //已付金额 relPrice: 0, //实收金额
otherExpense: '0', // 其他费用 otherExpense: 0, // 其他费用
priceNo: '0', //未付金额 noPay: 0, //欠款
discountNum:10, //整体折扣 discountNum:10, //整体折扣
priceCurrent:'', priceCurrent:'',
priceOk:'', //已收金额
value: '', value: '',
priceItems:[{ priceItems:[{
value: '0', value: '0',
@ -315,7 +316,8 @@
}, },
onShow() { onShow() {
let that = this; let that = this;
this.khName = JSON.parse(JSON.stringify(this.khName)) || '' this.khName = JSON.parse(JSON.stringify(this.khName)) || ''
console.log(this.khName)
this.gysName = JSON.parse(JSON.stringify(this.gysName)) || '' this.gysName = JSON.parse(JSON.stringify(this.gysName)) || ''
this.wlName = JSON.parse(JSON.stringify(this.wlName)) || '' this.wlName = JSON.parse(JSON.stringify(this.wlName)) || ''
this.kdyName = JSON.parse(JSON.stringify(this.kdyName)) || '' this.kdyName = JSON.parse(JSON.stringify(this.kdyName)) || ''
@ -526,16 +528,17 @@
let obj = { let obj = {
orderByWorker: this.lbgName.workerId, orderByWorker: this.lbgName.workerId,
transCompany: this.wlName.id, transCompany: this.wlName.id,
sale: { sale: {
alreadyEarn: 100, //已付金额 relPrice:this.relPrice, //实收金额
realAmount: 100, //实际金额 alreadyEarn: this.priceOk, //已付金额
noEarn: 0, //欠款 realAmount: this.shouldPay, //总金额
noEarn: this.noPay, //欠款
totalAmount: this.totalAmount, //总数量 totalAmount: this.totalAmount, //总数量
area: this.khName.area, area: this.khName.area,
city: this.khName.city, city: this.khName.city,
province: this.khName.province, province: this.khName.province,
payStatus: 1, payStatus: 1,
receiveAddress: this.khName.receiveAddress, receiveAddress: this.khName.address,
transportType: this.radioType, //this.radioType transportType: this.radioType, //this.radioType
discount: this.discountNum, discount: this.discountNum,
createBy: this.xsyId, createBy: this.xsyId,

Loading…
Cancel
Save