|
@@ -18,7 +18,7 @@
|
|
|
<text>客户</text>
|
|
|
</view>
|
|
|
<view class="info-line-value">
|
|
|
- {{orderInfo.supplierName}}
|
|
|
+ {{orderInfo.supplierName || '-'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info-line">
|
|
@@ -26,7 +26,7 @@
|
|
|
<text>出库类型</text>
|
|
|
</view>
|
|
|
<view class="info-line-value">
|
|
|
- {{orderInfo.subType}}
|
|
|
+ {{orderInfo.subType || '-'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info-line">
|
|
@@ -34,17 +34,17 @@
|
|
|
<text>出库日期</text>
|
|
|
</view>
|
|
|
<view class="info-line-value">
|
|
|
- {{orderInfo.operTime}}
|
|
|
+ {{orderInfo.operTime || '-'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="info-line">
|
|
|
+ <!-- <view class="info-line">
|
|
|
<view class="info-line-label">
|
|
|
<text>配送地址</text>
|
|
|
</view>
|
|
|
<view class="info-line-value">
|
|
|
长沙市岳麓区-暂无
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="info-line">
|
|
|
<view class="info-line-label">
|
|
|
<text>上传凭证</text>
|
|
@@ -91,13 +91,13 @@
|
|
|
</view>
|
|
|
<block v-for="(item,i) in goodsList" :key="i">
|
|
|
<good-item :item="item" @toDetail="toDetail">
|
|
|
- <view class="num-box">
|
|
|
+ <view class="num-box" @click.stop="">
|
|
|
<view class="num-box-text">已确认拣货数量</view>
|
|
|
- <u-number-box v-model="value">
|
|
|
+ <u-number-box v-model="item.materialNumber">
|
|
|
<view slot="minus" class="minus">
|
|
|
<u-icon name="minus" color="#0256FF" size="12"></u-icon>
|
|
|
</view>
|
|
|
- <text slot="input" class="input">{{value}}</text>
|
|
|
+ <text slot="input" class="input">{{item.materialNumber}}</text>
|
|
|
<view slot="plus" class="plus">
|
|
|
<u-icon name="plus" color="#FFFFFF" size="12"></u-icon>
|
|
|
</view>
|
|
@@ -111,7 +111,7 @@
|
|
|
<view class="footer-box">
|
|
|
<view class="footer-box-l">
|
|
|
<view>货物种类:{{speciesNum}}种</view>
|
|
|
- <view>货物种数:{{goodsNum}}件</view>
|
|
|
+ <view>货物总数:{{orderGoodsNum}}件</view>
|
|
|
</view>
|
|
|
<button class="submitBtn" @tap="submitClick">
|
|
|
提交
|
|
@@ -270,7 +270,13 @@
|
|
|
})
|
|
|
},
|
|
|
submitClick() {
|
|
|
- if(this.orderGoodsNum != this.goodsNum) {
|
|
|
+ let num = 0
|
|
|
+ this.goodsList.forEach(item=>{
|
|
|
+ if(item.materialNumber * 1 != item.operNumber ) {
|
|
|
+ num ++
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(num>0) {
|
|
|
return this.errorShow = true
|
|
|
}
|
|
|
this.toOrderSubmit()
|