|
@@ -13,14 +13,14 @@
|
|
<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'||pageType=='replenishmentOut'||pageType=='replenishmentDetail'||pageType=='replenishmentDetailc'">{{item.product&&item.product.name?item.product.name:'--'}}</view>
|
|
|
|
|
|
+ <view class="pname" v-if="pageType=='replenishmentSign'||pageType=='replenishmentOut'||pageType=='manualPrint'||pageType=='replenishmentDetail'||pageType=='replenishmentDetailc'||pageType=='scanCodePrint'">{{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'||pageType=='replenishmentOut'||pageType=='replenishmentDetail'||pageType=='replenishmentDetailc'">{{item.product&&item.product.code?item.product.code:'--'}}</text>
|
|
|
|
|
|
+ <text class="pcode" v-if="pageType=='replenishmentSign'||pageType=='replenishmentOut'||pageType=='manualPrint'||pageType=='replenishmentDetail'||pageType=='replenishmentDetailc'||pageType=='scanCodePrint'">{{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'||pageType=='manualPrint'||pageType=='scanCodePrint'">
|
|
实发数量:<text class="pnums">{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}{{item.product&&item.product.unit?item.product.unit:'--'}}</text>
|
|
实发数量:<text class="pnums">{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}{{item.product&&item.product.unit?item.product.unit:'--'}}</text>
|
|
</view>
|
|
</view>
|
|
<view v-if="pageType=='replenishmentOut'">
|
|
<view v-if="pageType=='replenishmentOut'">
|
|
@@ -57,6 +57,12 @@
|
|
<u-number-box color="#000" bg-color="#fff" v-model="item.quitQty" :min="1" :max="item.qty"></u-number-box>
|
|
<u-number-box color="#000" bg-color="#fff" v-model="item.quitQty" :min="1" :max="item.qty"></u-number-box>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="pcurnums flex align_center" v-if="pageType=='manualPrint'">
|
|
|
|
+ <text>打印数量</text>
|
|
|
|
+ <view class="u-ninput">
|
|
|
|
+ <u-number-box color="#000" bg-color="#fff" v-model="item.printQty" :min="1" :max="item.confirmQty"></u-number-box>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<!-- 无复选框 -->
|
|
<!-- 无复选框 -->
|
|
<view v-if="model == 'view'" class="ptools flex align_center justify_between">
|
|
<view v-if="model == 'view'" class="ptools flex align_center justify_between">
|
|
@@ -98,7 +104,7 @@
|
|
type: String,
|
|
type: String,
|
|
default: 'checkbox'
|
|
default: 'checkbox'
|
|
},
|
|
},
|
|
- // 那个功能页面调用,展示不同的字段,recall: 调回单,replenishmentSign:补货签收,replenishmentOut:补货出库,replenishmentDetail:补货详情-已完成,replenishmentDetailc:补货详情-已取消
|
|
|
|
|
|
+ // 那个功能页面调用,展示不同的字段,recall: 调回单,replenishmentSign:补货签收,replenishmentOut:补货出库,manualPrint:手动打印,replenishmentDetail:补货详情-已完成,replenishmentDetailc:补货详情-已取消,scanCodePrint:扫码打印
|
|
fromPage: {
|
|
fromPage: {
|
|
type: String,
|
|
type: String,
|
|
default: ''
|
|
default: ''
|
|
@@ -110,9 +116,13 @@
|
|
this.totalNums = 0
|
|
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.confirmQty
|
|
}else if(_this.pageType=='replenishmentOut'){ // 补货出库
|
|
}else if(_this.pageType=='replenishmentOut'){ // 补货出库
|
|
this.totalNums = this.totalNums + item.confirmQty
|
|
this.totalNums = this.totalNums + item.confirmQty
|
|
|
|
+ }else if(_this.pageType=='manualPrint'){ // 补货-手动打印
|
|
|
|
+ this.totalNums = this.totalNums + item.confirmQty
|
|
|
|
+ }else if(_this.pageType=='scanCodePrint'){ // 补货-扫码打印
|
|
|
|
+ this.totalNums = this.totalNums + item.confirmQty
|
|
}else if(_this.pageType=='replenishmentDetail'){ // 补货详情-已完成
|
|
}else if(_this.pageType=='replenishmentDetail'){ // 补货详情-已完成
|
|
this.totalNums = this.totalNums + item.putQty
|
|
this.totalNums = this.totalNums + item.putQty
|
|
}else if(_this.pageType=='replenishmentDetailc'){ // 补货详情-已取消
|
|
}else if(_this.pageType=='replenishmentDetailc'){ // 补货详情-已取消
|