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

接口对接

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