|
@@ -34,8 +34,8 @@
|
|
|
<view>总款数:{{ item.totalPutCategory }}</view>
|
|
|
<view>发货数量: {{ item.totalPutQty }}</view>
|
|
|
<view>发货金额: {{ item.totalPutAmount?toThousands(item.totalPutAmount,2):'0.00' }}</view>
|
|
|
- <view>入库数量: {{ item && (item.totalRealPutQty || item.totalRealPutQty==0) ? item.totalRealPutQty : '--' }}</view>
|
|
|
- <view>入库金额: {{ item && (item.totalRealPutAmount || item.totalRealPutAmount==0) ? toThousands(item.totalRealPutAmount, 2) : '--' }}</view>
|
|
|
+ <view>入库数量: {{ item && (item.pdaTotalRealPutQty || item.pdaTotalRealPutQty==0) ? item.pdaTotalRealPutQty : '--' }}</view>
|
|
|
+ <view>入库金额: {{ item && (item.pdaTotalRealPutAmount || item.pdaTotalRealPutAmount==0) ? toThousands(item.pdaTotalRealPutAmount, 2) : '--' }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="p-body">
|
|
@@ -62,7 +62,7 @@
|
|
|
<view>{{item.warehouseLocationEntity&&item.warehouseLocationEntity.name||defWarehouseName[1]}}</view>
|
|
|
</view>
|
|
|
</uni-td>
|
|
|
- <uni-td width="40%" align="center"><text style="color: red;">{{item.realPutQty}}</text>/{{item.putQty}}</uni-td>
|
|
|
+ <uni-td width="40%" align="center"><text style="color: red;">{{item.pdaRealPutQty||0}}</text>/{{item.putQty}}</uni-td>
|
|
|
</uni-tr>
|
|
|
</uni-table>
|
|
|
</view>
|
|
@@ -181,7 +181,7 @@
|
|
|
},
|
|
|
okPop(){
|
|
|
if(this.curProduct.packQty){
|
|
|
- this.changePutQty(this.curProduct,Number(this.curProduct.realPutQty) + Number(this.curProduct.packQty))
|
|
|
+ this.changePutQty(this.curProduct,Number(this.curProduct.pdaRealPutQty||0) + Number(this.curProduct.packQty))
|
|
|
this.closePop()
|
|
|
}else{
|
|
|
uni.$u.toast("请输入数量!")
|
|
@@ -231,7 +231,7 @@
|
|
|
changePutQty(record, realPutQty){
|
|
|
if(realPutQty){
|
|
|
this.loading = true
|
|
|
- updateRealPutQty({id:record.id,realPutQty:realPutQty}).then(res => {
|
|
|
+ updateRealPutQty({id:record.id,pdaRealPutQty:realPutQty}).then(res => {
|
|
|
if(res.status == 200){
|
|
|
uni.$u.toast(res.message)
|
|
|
this.getDetail()
|
|
@@ -253,12 +253,7 @@
|
|
|
}
|
|
|
const row = this.getCurRow()
|
|
|
if(row){
|
|
|
- if(row.warehouseLocationSn){
|
|
|
- this.changePutQty(row,row.realPutQty + (flag?1:-1))
|
|
|
- }else{
|
|
|
- uni.$u.toast("此商品没有仓库仓位")
|
|
|
- playAudio('warn')
|
|
|
- }
|
|
|
+ this.changePutQty(row,(row.pdaRealPutQty||0) + (flag?1:-1))
|
|
|
}else{
|
|
|
uni.$u.toast("此商品不存在")
|
|
|
playAudio('error')
|