|  |  |  | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | </uni-forms> | 
|---|
|  |  |  | <uni-list> | 
|---|
|  |  |  | <uni-list-item direction="column" v-for="item in matInfos" :key="item.sn"> | 
|---|
|  |  |  | <uni-list-item direction="column" v-for="item in matInfos" :key="item.palletCode"> | 
|---|
|  |  |  | <template v-slot:body> | 
|---|
|  |  |  | <view class="uni-list-box"> | 
|---|
|  |  |  | <!-- <uni-icons type="trash" size="22" style="position: absolute;right: 5%;" | 
|---|
|  |  |  | @click="deleteList(item.sn)"> | 
|---|
|  |  |  | </uni-icons> --> | 
|---|
|  |  |  | <view class="uni-content"> | 
|---|
|  |  |  | <view class="uni-title-sub uni-ellipsis-2">åæ®ç¼å·ï¼{{item.orderNo}}</view> | 
|---|
|  |  |  | <view class="uni-note">æçç¼å·ï¼{{item.palletCode}}</view> | 
|---|
|  |  |  | <view class="uni-note">ç©ææ¹æ¬¡ï¼{{item.batchNo}}</view> | 
|---|
|  |  |  | <view class="uni-note">ç©æç¼ç ï¼{{item.materielCode}}</view> | 
|---|
|  |  |  | <view class="uni-note">ç©æåç§°ï¼{{item.materielName}}</view> | 
|---|
|  |  |  | <view class="uni-note">åæ®æ°éï¼{{item.orderQuantity}}</view> | 
|---|
|  |  |  | <view class="uni-note">åå§åºåï¼{{item.originalQuantity}}</view> | 
|---|
|  |  |  | <view class="uni-note">åé
åºåï¼{{item.assignQuantity}}</view> | 
|---|
|  |  |  | <view class="uni-note">å©ä½åºåï¼{{item.originalQuantity-item.assignQuantity}}</view> | 
|---|
|  |  |  | <view>åæ®ç¼å·ï¼{{item.orderNo}}</view> | 
|---|
|  |  |  | <view>æçç¼å·ï¼{{item.palletCode}}</view> | 
|---|
|  |  |  | <view>ç©ææ¹æ¬¡ï¼{{item.batchNo}}</view> | 
|---|
|  |  |  | <view>ç©æç¼ç ï¼{{item.materielCode}}</view> | 
|---|
|  |  |  | <view>ç©æåç§°ï¼{{item.materielName}}</view> | 
|---|
|  |  |  | <view>åæ®æ°éï¼{{item.orderQuantity}}</view> | 
|---|
|  |  |  | <view>åå§åºåï¼{{item.originalQuantity}}</view> | 
|---|
|  |  |  | <view>åé
åºåï¼{{item.assignQuantity}}</view> | 
|---|
|  |  |  | <view>å©ä½åºåï¼{{item.originalQuantity-item.assignQuantity}}</view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </uni-list-item> | 
|---|
|  |  |  | </uni-list> | 
|---|
|  |  |  | 
|---|
|  |  |  | placeholder="è¯·æ«ææçæ¡ç " ref='midInput' @input="inputChangebarcode3" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item label="å°åæ¡ç "> | 
|---|
|  |  |  | <uni-easyinput type="text" v-model="address" placeholder="è¯·æ«æå°åæ¡ç " ref='midInput' | 
|---|
|  |  |  | <uni-easyinput type="text" v-model="address" :disabled = "addressdisabled" placeholder="è¯·æ«æå°åæ¡ç " ref='midInput' | 
|---|
|  |  |  | :focus="addressFocus" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item> | 
|---|
|  |  |  | <button @click="inbound" type="primary" size="default" style="margin-top: 2%;">å
¥åºç¡®è®¤</button> | 
|---|
|  |  |  | </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.outboundQuantity}}</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> | 
|---|
|  |  |  | 
|---|
|  |  |  | inboundBarcode: "", | 
|---|
|  |  |  | address: "", | 
|---|
|  |  |  | warehouseId: 0, | 
|---|
|  |  |  | Summmary: 0, | 
|---|
|  |  |  | stockInfoDetail: [], | 
|---|
|  |  |  | addressdisabled: false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onLoad(res) { | 
|---|
|  |  |  | this.barcodefocus = false; | 
|---|
|  |  |  | this.warehouseId = res.warehouseId; | 
|---|
|  |  |  | if (this.warehouseId == 5) { | 
|---|
|  |  |  | this.address = "8005" | 
|---|
|  |  |  | }else if (this.warehouseId == 3) { | 
|---|
|  |  |  | this.address = "1011"; | 
|---|
|  |  |  | this.addressdisabled = true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.istrue = false; | 
|---|
|  |  |  | this.addressFocus = false; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | onClickItem(e) { | 
|---|
|  |  |  | 
|---|
|  |  |  | if (res.status) { | 
|---|
|  |  |  | uni.$showMsg(res.message); | 
|---|
|  |  |  | this.inboundBarcode = ""; | 
|---|
|  |  |  | this.address = ""; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.addressFocus = false; | 
|---|
|  |  |  | }, 200); | 
|---|
|  |  |  | 
|---|
|  |  |  | 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" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | picking() { | 
|---|
|  |  |  | if (this.barcode == "") { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.$u.post('/api/OutStockLockInfo/MaterialPick?palletCode=' + this.barcode, {}).then(res => { | 
|---|
|  |  |  | if (res.status) { | 
|---|
|  |  |  | if(this.warehouseId==5){ | 
|---|
|  |  |  | this.Finish("8005"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // if(this.warehouseId==5){ | 
|---|
|  |  |  | //    this.Finish("8005"); | 
|---|
|  |  |  | // } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | uni.$showMsg('æ£éæå!') | 
|---|
|  |  |  | this.barcode = ""; | 
|---|
|  |  |  | this.matInfos = []; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | Finish(code){ | 
|---|
|  |  |  | Finish(code) { | 
|---|
|  |  |  | this.$u.post('http://127.0.0.1:9291/api/CTU_AGV/PutFinish?&code=' + code).then( | 
|---|
|  |  |  | res => { | 
|---|
|  |  |  | if (res.status) { | 
|---|