|  |  |  | 
|---|
|  |  |  | <checkbox checked="check">æ¯å¦æ»¡ç</checkbox> | 
|---|
|  |  |  | </uni-forms-item> --> | 
|---|
|  |  |  | <uni-forms-item> | 
|---|
|  |  |  | <button @click="submit" type="primary" size="default" style="margin-top: 2%;">ç»ç</button> | 
|---|
|  |  |  | <view style="display: flex;justify-content: space-around;margin-top: 2%;"> | 
|---|
|  |  |  | <button @click="reset" type="default" size="default" style="width: 160rpx;border: 1rpx solid #007aff;color: #007aff;">éç½®</button> | 
|---|
|  |  |  | <button @click="submit" type="primary" size="default" style="width: 160rpx;">ç»ç</button> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | </uni-forms> | 
|---|
|  |  |  | <uni-list> | 
|---|
|  |  |  | 
|---|
|  |  |  | placeholder="è¯·æ«ææçæ¡ç " ref='midInput' @input="inputChangebarcode" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item label="å°åæ¡ç "> | 
|---|
|  |  |  | <uni-easyinput type="text" v-model="address" :disabled="addressdisabled" placeholder="è¯·æ«æå°åæ¡ç " ref='midInput' | 
|---|
|  |  |  | :focus="addressFocus" /> | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <view style="font-size: 18px;">åæ®å·ï¼{{orderNo}}</view> | 
|---|
|  |  |  | <view style="font-size: 18px;">ç©æç¼ç ï¼{{item.materielCode}}</view> | 
|---|
|  |  |  | <!-- <view style="font-size: 18px;">ç©æåç§°ï¼{{item.matName}}</view> --> | 
|---|
|  |  |  | <view style="font-size: 18px;">æ°éï¼{{item.orderQuantity}}</view> | 
|---|
|  |  |  | <view style="font-size: 18px;">åä½ï¼{{item.unit}}</view> | 
|---|
|  |  |  | <view style="font-size: 18px;">æ°éï¼{{item.orderQuantity+item.unit}}</view> | 
|---|
|  |  |  | <view style="font-size: 18px;">ç»çæ°éï¼{{item.receiptQuantity}}</view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | <uni-easyinput type="text" placeholder="è¯·æ«æå
ç®±æ ç¾" ref='midInput' :focus="pkfocus" | 
|---|
|  |  |  | v-model="pkmaterSn" @input="pksnInput" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <uni-forms-item> | 
|---|
|  |  |  | <button @click="pksubmit" type="primary" size="default" style="margin-top: 2%;">å
¥å¹³åº</button> | 
|---|
|  |  |  | <view style="display: flex;justify-content: space-around;margin-top: 2%;"> | 
|---|
|  |  |  | <button @click="resetInPk" type="default" size="default" style="width: 160rpx;border: 1rpx solid #007aff;color: #007aff;">éç½®</button> | 
|---|
|  |  |  | <button @click="pksubmit" type="primary" size="default" style="margin-top: 2%;">å
¥å¹³åº</button> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </uni-forms> | 
|---|
|  |  |  | <uni-list> | 
|---|
|  |  |  | <uni-list-item direction="column" v-for="(item,index) in pkmatInfos" :key="index"> | 
|---|
|  |  |  | 
|---|
|  |  |  | this.pkmatInfos.splice(res, 1); | 
|---|
|  |  |  | this.pksns.splice(res, 1); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | reset(){ | 
|---|
|  |  |  | this.barcode=""; | 
|---|
|  |  |  | this.matInfos=[]; | 
|---|
|  |  |  | this.sns=[]; | 
|---|
|  |  |  | this.materSn=""; | 
|---|
|  |  |  | if(this.warehouseId=!6){ | 
|---|
|  |  |  | this.Initiallife=0; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | resetInPk(){ | 
|---|
|  |  |  | this.pkmaterSn=""; | 
|---|
|  |  |  | this.pkmatInfos=[]; | 
|---|
|  |  |  | this.pksns=[]; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | pksubmit() { | 
|---|
|  |  |  | if (this.pkmatInfos.length == 0) { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | 
|---|
|  |  |  | if (this.Test) { | 
|---|
|  |  |  | if (!this.Testcheck) { | 
|---|
|  |  |  | this.Testcheck = true; | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: "请确认åå§å¯¿å½", | 
|---|
|  |  |  | type: 'error' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | if (this.warehouseId == 2) { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: "请确认æ°é", | 
|---|
|  |  |  | type: 'error' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } else if (this.warehouseId == 6) { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: "请确认åå§å¯¿å½", | 
|---|
|  |  |  | type: 'error' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.warehouseId == 2) { //油墨ä»åºåºID | 
|---|
|  |  |  | this.sn = this.sns[0]; | 
|---|
|  |  |  | for (var i = 0; i < this.Initiallife - 1; i++) { | 
|---|
|  |  |  | this.sns.push(this.sn); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.$u.post('/api/InboundOrder/MaterielGroup', { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.matInfos = []; | 
|---|
|  |  |  | this.sns = []; | 
|---|
|  |  |  | this.matTotal = []; | 
|---|
|  |  |  | if (this.warehouseId != 6) { //æµè¯æ¶ä»åºåºID | 
|---|
|  |  |  | this.Initiallife=""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: res.message, | 
|---|