Commit e778e5a4 authored by 沈翠玲's avatar 沈翠玲

接口对接

parent 99cc9a96
...@@ -115,7 +115,7 @@ import BottomBtn from "@/components/BottomBtn/index.vue"; ...@@ -115,7 +115,7 @@ import BottomBtn from "@/components/BottomBtn/index.vue";
"purchaseSerial": arr[3], "purchaseSerial": arr[3],
"purchaseType": arr[1] "purchaseType": arr[1]
}) })
if (!data.success) return // if (!data.success) return
const index = this.goodsList.findIndex(v => v.joinlabel === arr.slice(0, 5).join('-')) const index = this.goodsList.findIndex(v => v.joinlabel === arr.slice(0, 5).join('-'))
if (index > -1) { if (index > -1) {
this.goodsList[index]['arrivalQuantity'] = Number(this.goodsList[index]['arrivalQuantity']) + Number(arr[5]) this.goodsList[index]['arrivalQuantity'] = Number(this.goodsList[index]['arrivalQuantity']) + Number(arr[5])
...@@ -150,7 +150,7 @@ import BottomBtn from "@/components/BottomBtn/index.vue"; ...@@ -150,7 +150,7 @@ import BottomBtn from "@/components/BottomBtn/index.vue";
if (!this.goodsList.length) return; if (!this.goodsList.length) return;
if(!this.daohuoForm.warehouse) return this.$u.toast(i18n.t('请选择到货仓')); if(!this.daohuoForm.warehouse) return this.$u.toast(i18n.t('请选择到货仓'));
this.loading = true; this.loading = true;
this.$u.api.confirmStock({ this.$u.api.confirmArrival({
warehouse: this.daohuoForm.warehouse, warehouse: this.daohuoForm.warehouse,
details: this.goodsList.map(v => ({arrivalQuantity: v.arrivalQuantity, materialNo: v.materialNo, purchaseNo: v.purchaseNo, purchaseSerial: v.purchaseSerial, purchaseType: v.purchaseType, supplierNo: v.supplierNo})) details: this.goodsList.map(v => ({arrivalQuantity: v.arrivalQuantity, materialNo: v.materialNo, purchaseNo: v.purchaseNo, purchaseSerial: v.purchaseSerial, purchaseType: v.purchaseType, supplierNo: v.supplierNo}))
}) })
......
<template> <template>
<view> <view class="page">
<view class="listItemTitle"> <view class="listItemTitle">
<view @click="handleDetail(null)"> <view @click="handleDetail(null)">
<view class="item">{{$t('交货单:{0}', [ applyNo ])}}</view> <view class="item">{{$t('交货单:{0}', [ applyNo ])}}</view>
...@@ -35,10 +35,6 @@ ...@@ -35,10 +35,6 @@
</view> </view>
</view> </view>
<u-modal :show="show" title="">
<uni-easyinput v-model="wxparams" :placeholder="$t('请扫描盘点条码')">
</uni-easyinput>
</u-modal>
<BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn> <BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn>
</view> </view>
</template> </template>
...@@ -199,8 +195,8 @@ export default { ...@@ -199,8 +195,8 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .page {
background: #f8f8f8; background: #fff;
} }
.headerTitle { .headerTitle {
padding: 20rpx; padding: 20rpx;
...@@ -263,6 +259,8 @@ page { ...@@ -263,6 +259,8 @@ page {
} }
.listBottom { .listBottom {
background: #f3f3f5; background: #f3f3f5;
height: calc(100vh - 290rpx);
overflow: auto;
.bottomTitle { .bottomTitle {
height: 80rpx; height: 80rpx;
position: relative; position: relative;
...@@ -283,6 +281,8 @@ page { ...@@ -283,6 +281,8 @@ page {
} }
.bottomBox { .bottomBox {
padding: 20rpx; padding: 20rpx;
min-height: calc(100% - 520rpx);
overflow: auto;
.bottomItem { .bottomItem {
background: #fff; background: #fff;
border: 1px solid #d4d7dc; border: 1px solid #d4d7dc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment