| | |
| | | </uni-forms-item> |
| | | </uni-forms> --> |
| | | <uni-list :border="true"> |
| | | <uni-list-item direction="column" v-for="(item,index) in orderInfo" :key="item.id"> |
| | | <uni-list-item direction="column" v-for="item in orderinfoDetails" :key="item.id"> |
| | | <template v-slot:body> |
| | | <view class="uni-content"> |
| | | <view>æ¶è´§åå·ï¼{{orderNo}}</view> |
| | |
| | | current: 0, |
| | | orderNo: "", |
| | | orderInfo: [], |
| | | orderinfoDetails:[], |
| | | label: "", |
| | | innerCode: "", |
| | | PurchaseOrderNo: "éè´åå·ï¼", |
| | |
| | | endTypeRange: [], |
| | | sns: "", |
| | | receiveOrderId: 0, |
| | | warehouseId:"" |
| | | } |
| | | }, |
| | | |
| | |
| | | this.orderNo = res.orderNo; |
| | | this.receiveOrderId = res.receiveOrderId; |
| | | this.label = "æ¶è´§åå·ï¼" + this.orderNo; |
| | | this.warehouseId=res.warehouseId; |
| | | this.getData(); |
| | | }, |
| | | mounted() { |
| | |
| | | }) |
| | | return; |
| | | } |
| | | if(this.warehouseId==2){ |
| | | //æ¿æ¢æå®ä¸¤ä¸ªå符é´çå符 |
| | | this.sns = this.sns.replace(/(Q:)([^,PO]+)(,PO)/, (match, p1, p2, p3) => { |
| | | return p1 + this.Quantity + p3; |
| | | }); |
| | | } |
| | | this.$u.post('/api/ReceiveOrderDetail/AddReceiveOrderDetail?serNum=' + this.sns + '&orderNo=' + this |
| | | .orderNo, {}).then(res => { |
| | | if (res.status) { |
| | |
| | | } |
| | | this.$u.post('/api/ReceiveOrderDetail/GetReceiveOrderInfos', postData).then((res) => { |
| | | if (res.status) { |
| | | this.orderInfo = res.data; |
| | | if (this.orderInfo.length > 3) { |
| | | this.orderinfoDetails = res.data; |
| | | if (this.orderinfoDetails.length > 3) { |
| | | this.loadVisible = true; |
| | | } |
| | | } |