| | |
| | | </uni-segmented-control> |
| | | <view class="content"> |
| | | <view v-if="current === 0" class="headerstyle"> |
| | | <u-sticky> |
| | | <view style="background-color: #ffffff;"> |
| | | <!-- <uni-search-bar @confirm="search" v-model="searchValue"></uni-search-bar> --> |
| | | <div style="padding: 30px;"> |
| | | <view class="flex-row"> |
| | | <view class="label">åå·:</view> |
| | | <view class="value">{{orderDetail.orderNo}}</view> |
| | | </view> |
| | | </u-sticky> |
| | | <uni-list-item direction="column" v-for="(item) in orderDetail" :key="item.id"> |
| | | <template v-slot:body> |
| | | <view class="uni-list-box"> |
| | | <checkbox @click="click(item)" style="margin-right: 20px;"></checkbox> |
| | | <view class="uni-content"> |
| | | <view style="font-size: 18px;">åæ®ç¼å·ï¼{{orderNo}}</view> |
| | | <view style="font-size: 18px;">ç©æç¼ç ï¼{{item.materielCode}}</view> |
| | | <view style="font-size: 18px;">ç©æåç§°ï¼{{item.materielName}}</view> |
| | | <view style="font-size: 18px;">åæ®æ°éï¼{{item.orderQuantity}}</view> |
| | | <view style="font-size: 18px;">åºåºæ°éï¼{{item.overOutQuantity}}</view> |
| | | <view style="font-size: 18px;">é宿°éï¼{{item.lockQuantity}}</view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | </uni-list-item> |
| | | <button @click="OutBound" type="primary" size="default" style="margin-top: 2%;">åºåº</button> |
| | | <u-toast ref="uToast" /> |
| | | </view> |
| | | <view v-if="current === 1" class="headerstyle"> |
| | | <u-sticky> |
| | | <view style="background-color: #ffffff;"> |
| | | <!-- <uni-search-bar @confirm="search" v-model="searchValue"></uni-search-bar> --> |
| | | <view class="flex-row"> |
| | | <view class="label">䏿¸¸åå·:</view> |
| | | <view class="value">{{orderDetail.upperOrderNo}}</view> |
| | | </view> |
| | | </u-sticky> |
| | | <uni-list :border="true"> |
| | | <uni-list-item direction="column" clickable @click="groupClick(item.materielCode,item.id)" link |
| | | :to="page+materielCode+'&id='+item.id" v-for="item in orderDetail" :key="item.materielCode"> |
| | | <template v-slot:body> |
| | | <uni-group margin-top="20"> |
| | | <view style="font-size: 18px;">åæ®ç¼å·ï¼{{orderNo}}</view> |
| | | <view style="font-size: 18px;">ç©æç¼ç ï¼{{item.materielCode}}</view> |
| | | <view style="font-size: 18px;">ç©æåç§°ï¼{{item.materielName}}</view> |
| | | <view style="font-size: 18px;">åæ®æ°éï¼{{item.orderQuantity}}</view> |
| | | <view style="font-size: 18px;">åºåºæ°éï¼{{item.overOutQuantity}}</view> |
| | | <view style="font-size: 18px;">é宿°éï¼{{item.lockQuantity}}</view> |
| | | </uni-group> |
| | | </template> |
| | | </uni-list-item> |
| | | </uni-list> |
| | | <view class="flex-row"> |
| | | <view class="label">ç©æç¼ç :</view> |
| | | <view class="value">{{orderDetail.materielCode}}</view> |
| | | </view> |
| | | <view class="flex-row"> |
| | | <view class="label">åæ®æ°é:</view> |
| | | <view class="value">{{orderDetail.orderQuantity}}</view> |
| | | </view> |
| | | <view class="flex-row"> |
| | | <view class="label">å·²åºåºæ°é:</view> |
| | | <view class="value">{{orderDetail.overOutQuantity}}</view> |
| | | </view> |
| | | |
| | | </div> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="ç» ç¹ åº å"> |
| | | <uni-data-select :focus="!istrue" v-model="AreaId" :localdata="range" |
| | | placeholder="请è¾éæ©å
¥åºç»ç¹åºå"></uni-data-select> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="OutBound" type="primary" size="default" style="margin-top: 2%;">åºåº</button> |
| | | |
| | | </view> |
| | | <u-toast ref="uToast" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | config |
| | | } from '../../common/config'; |
| | | const innerAudioContext = uni.createInnerAudioContext(); |
| | | export default { |
| | | data() { |
| | | return { |
| | | page: "/pages/materielGroup/OutOrderDetail?materielCode=", |
| | | items: ['ç´æ¥åºåº', 'æå®åºåº'], |
| | | items: ['ç´æ¥åºåº'], |
| | | current: 0, |
| | | orderNo: "", |
| | | Id: 0, |
| | | AreaId:"", |
| | | orderIds:[], |
| | | label: "", |
| | | orderDetail: [], |
| | | range: [], |
| | | orderDetail: { |
| | | // id: "", |
| | | // orderNo: "", |
| | | // upperOrderNo: "", |
| | | // materielCode: "", |
| | | // materielName: "", |
| | | // orderQuantity: "", |
| | | // overOutQuantity: "", |
| | | }, |
| | | focus: false, |
| | | orderDetailId: [], |
| | | key:[], |
| | | materielCode:"", |
| | | key: [], |
| | | materielCode: "", |
| | | } |
| | | }, |
| | | onShow() {}, |
| | | onLoad(res) { |
| | | console.log(res); |
| | | this.focus = false; |
| | | this.addressFocus = false; |
| | | this.orderNo = res.orderNo; |
| | | this.label = "åæ®ç¼å·ï¼" + this.orderNo; |
| | | this.Id = res.Id; |
| | | this.range = config.AreaId; |
| | | this.getData(); |
| | | }, |
| | | methods: { |
| | | groupClick(materielCode,id){ |
| | | window.location="/pages/materielGroup/OutOrderDetail?materielCode="+materielCode+"&id="+id; |
| | | console.log(materielCode,id) |
| | | groupClick(materielCode, id) { |
| | | // window.location="/pages/materielGroup/OutOrderDetail?materielCode="+materielCode+"&id="+id; |
| | | // console.log(materielCode,id) |
| | | }, |
| | | getData() { |
| | | var postData = this.orderNo |
| | | this.$u.post('/api/OutboundOrder/GetOutboundOrderDetail', postData).then((res) => { |
| | | var postData = this.Id; |
| | | this.$u.post('/api/OutboundOrder/GetOutboundOrderDetail?id=' + postData, "").then((res) => { |
| | | if (res.status) { |
| | | this.orderDetail = res.data; |
| | | if (this.orderDetail.length > 3) { |
| | | this.loadVisible = true; |
| | | } |
| | | // if (this.orderDetail.length > 3) { |
| | | // this.loadVisible = true; |
| | | // } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | } |
| | | }, |
| | | OutBound() { |
| | | var postData = this.key; |
| | | this.$u.post('/api/Task/GenerateOutboundTasks', postData).then(res => { |
| | | this.orderIds.push(this.Id); |
| | | var postData = { |
| | | AreaId:this.AreaId, |
| | | orderIds:this.orderIds |
| | | }; |
| | | this.$u.post('/api/StockInfo/GenerateOutboundTask', postData).then(res => { |
| | | if (res.status) { |
| | | this.items = []; |
| | | uni.$showMsg(res.message); |
| | |
| | | <style lang="scss"> |
| | | @import '@/common/uni-ui.scss'; |
| | | |
| | | .content { |
| | | .flex-row { |
| | | display: flex; |
| | | height: 150px; |
| | | justify-content: space-between; |
| | | /* å·¦å³å¯¹é½ */ |
| | | align-items: center; |
| | | /* åç´å±
ä¸ */ |
| | | padding: 10rpx 0; |
| | | } |
| | | |
| | | .content-text { |
| | | font-size: 14px; |
| | | .label { |
| | | color: #666; |
| | | width: 200rpx; |
| | | /* åºå®æ ç¾å®½åº¦ */ |
| | | text-align: left; |
| | | } |
| | | |
| | | .itemstyle { |
| | | margin-top: 30px; |
| | | margin-left: 5%; |
| | | } |
| | | |
| | | .headerstyle { |
| | | width: 90%; |
| | | .value { |
| | | flex: 1; |
| | | text-align: right; |
| | | color: #333; |
| | | font-weight: bold; |
| | | } |
| | | </style> |