| | |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | </view> |
| | | <view> |
| | | <uni-list> |
| | | <uni-list-item direction="column" v-if="inboundBarcode"> |
| | | <template v-slot:body> |
| | | <view class="uni-list-box"> |
| | | <view class="uni-content"> |
| | | <view class="uni-title-sub uni-ellipsis-2">ç»çæ»æ°éï¼{{Summmary}}</view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | </uni-list-item> |
| | | <uni-list-item direction="column" v-for="(item,index) in stockInfoDetail" :key="index"> |
| | | <template v-slot:body> |
| | | <view class="uni-list-box"> |
| | | <view class="uni-content"> |
| | | <view class="uni-title-sub uni-ellipsis-2">ç©æç¼å·ï¼{{item.materielCode}}</view> |
| | | <view class="uni-note">ç©æåç§°ï¼{{item.materielName}}</view> |
| | | <view class="uni-note">ç©ææ¹æ¬¡ï¼{{item.batchNo}}</view> |
| | | <view class="uni-note">ç»çæ°éï¼{{item.stockQuantity}}</view> |
| | | <view class="uni-note">çäº§æ¥æï¼{{item.productionDate}}</view> |
| | | <view class="uni-note">æ æ æï¼{{item.effectiveDate}}</view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | </uni-list-item> |
| | | </uni-list> |
| | | </view> |
| | | </view> |
| | | <view v-if="current === 2" class="headerstyle"> |
| | | <view class="itemstyle"> |
| | |
| | | Testlabel: "", |
| | | Testplaceholder: "", |
| | | Testcheck: false, |
| | | Summmary:0, |
| | | stockInfoDetail:[] |
| | | } |
| | | }, |
| | | onShow() {}, |
| | |
| | | this.addressFocus = true; |
| | | } |
| | | }) |
| | | this.$nextTick(function(x) { |
| | | if (this.inboundBarcode != '') { |
| | | var postData = { |
| | | MainData: { |
| | | "barcode": this.inboundBarcode, |
| | | "warehouseId": this.warehouseId, |
| | | } |
| | | }; |
| | | this.$u.post('/api/StockInfo/StockQueryData', postData).then(res => { |
| | | // this.stockInfo = []; |
| | | this.stockInfoDetail = []; |
| | | if (res.status) { |
| | | // this.stockInfo = res.data, |
| | | this.stockInfoDetail = res.data.details |
| | | //è·åæ»æ°é |
| | | this.stockInfoDetail.forEach(item => { |
| | | this.Summmary+= item.stockQuantity; |
| | | }); |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | // title: "æªæ¾å°æçä¿¡æ¯", |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | deleteList(res) { |
| | | this.matInfos.splice(res, 1); |