|
@@ -13,15 +13,24 @@
|
|
<u-image :src="item.product&&item.product.productMsg?item.product.productMsg:`../../static/${theme}/def_img@2x.png`" width="128" height="128" border-radius="10"></u-image>
|
|
<u-image :src="item.product&&item.product.productMsg?item.product.productMsg:`../../static/${theme}/def_img@2x.png`" width="128" height="128" border-radius="10"></u-image>
|
|
</view>
|
|
</view>
|
|
<view class="pinfo">
|
|
<view class="pinfo">
|
|
- <view class="pname" v-if="pageType=='replenishmentSign'">{{item.product&&item.product.name?item.product.name:'--'}}</view>
|
|
|
|
|
|
+ <view class="pname" v-if="pageType=='replenishmentSign'||pageType=='replenishmentDetail'||pageType=='replenishmentDetailc'">{{item.product&&item.product.name?item.product.name:'--'}}</view>
|
|
<view class="pname" v-else>{{item.productName}}</view>
|
|
<view class="pname" v-else>{{item.productName}}</view>
|
|
<view class="ptxt flex align_center justify_between">
|
|
<view class="ptxt flex align_center justify_between">
|
|
<view>
|
|
<view>
|
|
- <text class="pcode" v-if="pageType=='replenishmentSign'">{{item.product&&item.product.code?item.product.code:'--'}}</text>
|
|
|
|
|
|
+ <text class="pcode" v-if="pageType=='replenishmentSign'||pageType=='replenishmentDetail'||pageType=='replenishmentDetailc'">{{item.product&&item.product.code?item.product.code:'--'}}</text>
|
|
<text class="pcode" v-else>{{item.productCode}}</text>
|
|
<text class="pcode" v-else>{{item.productCode}}</text>
|
|
</view>
|
|
</view>
|
|
<view v-if="pageType=='replenishmentSign'">
|
|
<view v-if="pageType=='replenishmentSign'">
|
|
- 实发数量:<text class="pnums">{{item.confirmQty}}个</text>
|
|
|
|
|
|
+ 实发数量:<text class="pnums">{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}{{item.product&&item.product.unit?item.product.unit:'--'}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="pageType=='replenishmentDetail'">
|
|
|
|
+ 应发<text class="pnums">{{item.qty||item.qty==0?item.qty:'--'}}</text>
|
|
|
|
+ 实发<text class="pnums">{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}</text>
|
|
|
|
+ 签收<text class="pnums">{{item.putQty||item.putQty==0?item.putQty:'--'}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="pageType=='replenishmentDetailc'">
|
|
|
|
+ <text class="pnums">{{item.qty||item.qty==0?item.qty:'--'}}</text>
|
|
|
|
+ {{item.product&&item.product.unit?item.product.unit:'--'}}
|
|
</view>
|
|
</view>
|
|
<view v-if="pageType=='recall'">
|
|
<view v-if="pageType=='recall'">
|
|
调回数量:<text class="pnums">{{item.qty}}个</text>
|
|
调回数量:<text class="pnums">{{item.qty}}个</text>
|
|
@@ -86,7 +95,7 @@
|
|
type: String,
|
|
type: String,
|
|
default: 'checkbox'
|
|
default: 'checkbox'
|
|
},
|
|
},
|
|
- // 那个功能页面调用,展示不同的字段,recall: 调回单,replenishmentSign:补货签收
|
|
|
|
|
|
+ // 那个功能页面调用,展示不同的字段,recall: 调回单,replenishmentSign:补货签收,replenishmentDetail:补货详情-已完成,replenishmentDetailc:补货详情-已取消
|
|
fromPage: {
|
|
fromPage: {
|
|
type: String,
|
|
type: String,
|
|
default: ''
|
|
default: ''
|
|
@@ -95,9 +104,14 @@
|
|
watch: {
|
|
watch: {
|
|
list(newValue, oldValue) {
|
|
list(newValue, oldValue) {
|
|
const _this = this
|
|
const _this = this
|
|
|
|
+ this.totalNums = 0
|
|
newValue.map(item => {
|
|
newValue.map(item => {
|
|
if(_this.pageType=='replenishmentSign'){ // 补货签收
|
|
if(_this.pageType=='replenishmentSign'){ // 补货签收
|
|
this.totalNums = this.totalNums + item.putQty
|
|
this.totalNums = this.totalNums + item.putQty
|
|
|
|
+ }else if(_this.pageType=='replenishmentDetail'){ // 补货详情-已完成
|
|
|
|
+ this.totalNums = this.totalNums + item.putQty
|
|
|
|
+ }else if(_this.pageType=='replenishmentDetailc'){ // 补货详情-已取消
|
|
|
|
+ this.totalNums = this.totalNums + item.qty
|
|
}else{
|
|
}else{
|
|
this.totalNums = this.totalNums + item.qty
|
|
this.totalNums = this.totalNums + item.qty
|
|
}
|
|
}
|
|
@@ -206,6 +220,7 @@
|
|
color: #999;
|
|
color: #999;
|
|
.pnums{
|
|
.pnums{
|
|
color: #222;
|
|
color: #222;
|
|
|
|
+ padding: 0 4upx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|