|
@@ -39,9 +39,9 @@
|
|
<!-- 生成销售单 -->
|
|
<!-- 生成销售单 -->
|
|
<common-modal v-if="confirmModal" :showTitle="false" :openModal="confirmModal" @confirm="modalConfirm" @close="confirmModal=false">
|
|
<common-modal v-if="confirmModal" :showTitle="false" :openModal="confirmModal" @confirm="modalConfirm" @close="confirmModal=false">
|
|
<view style="font-size: 28upx;">
|
|
<view style="font-size: 28upx;">
|
|
- <view style="padding: 10upx;" class="flex align_center justify_between">
|
|
|
|
- <view>产品总款数:<text style="color: red;">5</text></view>
|
|
|
|
- <view>产品总件数:<text style="color: red;">15</text></view>
|
|
|
|
|
|
+ <view style="padding: 10upx;margin: 20upx 0;" class="flex align_center justify_between">
|
|
|
|
+ <view>产品总款数:<text style="color: red;">{{partList.length}}</text></view>
|
|
|
|
+ <view>产品总件数:<text style="color: red;">{{totalNums}}</text></view>
|
|
</view>
|
|
</view>
|
|
<view v-if="salesOrderList.length">
|
|
<view v-if="salesOrderList.length">
|
|
<view style="padding: 0 10upx 10upx;">此补货单已经存在对应的销售单?</view>
|
|
<view style="padding: 0 10upx 10upx;">此补货单已经存在对应的销售单?</view>
|
|
@@ -51,8 +51,10 @@
|
|
v-for="item in salesOrderList"
|
|
v-for="item in salesOrderList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
style="color: #00aaff;border-bottom: 1px solid #eee;padding: 10upx 0;"
|
|
style="color: #00aaff;border-bottom: 1px solid #eee;padding: 10upx 0;"
|
|
- class="flex align_center justify_between">
|
|
|
|
- <text>{{item.orderNo}}</text>
|
|
|
|
|
|
+ class="flex align_center justify_between"
|
|
|
|
+ @click="viewSales(item)"
|
|
|
|
+ >
|
|
|
|
+ <text>{{item.salesBillNo}}</text>
|
|
<view>
|
|
<view>
|
|
<u-icon name="arrow-right"></u-icon>
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
@@ -117,6 +119,15 @@
|
|
this.getPartList()
|
|
this.getPartList()
|
|
this.getSalesOrder()
|
|
this.getSalesOrder()
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ totalNums() {
|
|
|
|
+ let ret = 0
|
|
|
|
+ this.partList.map(item => {
|
|
|
|
+ ret = ret + item.putQty
|
|
|
|
+ })
|
|
|
|
+ return ret
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
// 查询详情
|
|
// 查询详情
|
|
getDetail(){
|
|
getDetail(){
|
|
@@ -160,9 +171,14 @@
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.getSalesOrder()
|
|
this.getSalesOrder()
|
|
}
|
|
}
|
|
|
|
+ this.confirmModal = false
|
|
this.toashMsg(res.message)
|
|
this.toashMsg(res.message)
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ // 查看销售单
|
|
|
|
+ viewSales(data){
|
|
|
|
+ uni.navigateTo({ url: '/pages/sales/edit?pageType=detail&data='+JSON.stringify(data) })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|