Browse Source

开单

master
tianyi@bogon 3 years ago
parent
commit
4835968df9
  1. 46
      pages/inventory/goodsList1.vue

46
pages/inventory/goodsList1.vue

@ -69,7 +69,7 @@
<view class="shop-collapse-item" v-if="discountType == '0'">
<view class="collapse-1">
<text>单价</text>
<input class="input" type="text" :value='value[1].purchasePrice'>
<input class="input" type="text" :value='value[1].purchasePrice' disabled>
</view>
<view class="collapse-1">
<text>折扣(100%)</text>
@ -77,7 +77,7 @@
</view>
<view class="collapse-1">
<text>折后价</text>
<input class="input" type="text" :value='value[1].discountAmount'>
<input class="input" type="text" :value='value[1].discountAmount' disabled>
</view>
<view class="collapse-1">
<text>数量</text>
@ -101,7 +101,7 @@
<view class="content-list">
<view class="list-name">总金额</view>
<view class="list-val">
<input type="text" :value="price">
<input type="text" :value="price" disabled>
</view>
</view>
<view class="content-list">
@ -119,7 +119,7 @@
<view class="content-list">
<view class="list-name">欠款</view>
<view class="list-val">
<input type="text" :value="priceNo">
<input type="text" :value="priceNo" disabled>
</view>
</view>
<view class="content-list">
@ -461,7 +461,8 @@
// console.log(this.lbgName)
// console.log(this.wlName)
let obj = {
orderByWorker: this.lbgName.workerId,
orderByWorker: this.lbgName.workerId,
transCompany: this.wlName.id,
sale: {
alreadyEarn: 100,
realAmount: 100,
@ -478,21 +479,26 @@
createBy: this.xsyId,
createByName:this.createByName,
userId: "1704126992443641856",
remark: '123'
},
saleDetailList: [{
discount: 10,
discountAmount: 1111,
productCount: 1,
productId: "1695314088038633472",
realPrice: 1111,
saleDetailQueryDTO: [{
attributeList: '{"颜色":"s","尺码":"m"}',
productCount: 2
}]
}],
transCompany: this.wlName.id,
}
remark: '123',
discountNum:10
},
saleDetailList: []
}
let purchaseDetails = [];
this.carList.forEach(function(value, key) {
console.log(value.stockLogList)
value.stockLogList.forEach(function(values, keys) {
let obj = {
productCount: values,
attributeList: keys
}
value.stockLogList1.push(obj)
})
console.log(value)
purchaseDetails.push(value)
})
obj.saleDetailList = purchaseDetails;
this.tui.request("/app/sale/buyNew", "post", obj, false, false).then((res) => {
if (res.code == 200) {
uni.showToast({

Loading…
Cancel
Save