| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="content2"> |
| | | <view class="order-message"> |
| | | <view class="content_list_item_top"> |
| | | <view class="content_list_item_top_left"> |
| | | <!-- <text>转åºåå·ï¼</text>--> |
| | | <text>{{ data.code }}</text> |
| | | </view> |
| | | <view class="content_list_item_top_right"> |
| | | <text class="created" v-if="data.status === 0">å¾
åºåº</text> |
| | | <text class="warning" v-else-if="data.status === 1">å·²åºåº</text> |
| | | <text class="green" v-else-if="data.status == 2">å·²å
¥åº</text> |
| | | <text class="info" v-else-if="data.status === 3">已忶</text> |
| | | </view> |
| | | </view> |
| | | <!-- item主é¢ä¿¡æ¯é¨å --> |
| | | <view class="content_list_item_content"> |
| | | <view style="margin-top: 0 " class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">åæ®ç±»åï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ tyepToStr(data.type) }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转åºç»ç»ï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.outDepartName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转å
¥ç»ç»ï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.inDepartName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转åºä»åºï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.outWarehouseName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转åºä»ç®¡åï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.outUserName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转å
¥ä»åºï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.inWarehouseName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转å
¥ä»ç®¡åï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.inUserName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">计åè½¬åºæ¥æï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.outPlandate }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">计å转å
¥æ¥æï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.inPlandate }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- 转åºç©æ --> |
| | | <view class="material-title"> |
| | | <view class="title"> |
| | | <text class="title-prefix"></text> |
| | | <text>转åºç©æ</text> |
| | | </view> |
| | | </view> |
| | | <view class="material-content"> |
| | | <view class="item-style" v-for="(item, index) in data.wtransferDetailList" :key="index"> |
| | | <view class="item-title-style"> |
| | | <text style="font-weight: 500;">{{ item.materialName + ' | ' + item.materialCode}}</text> |
| | | </view> |
| | | <view class="item-content-style"> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">æ¹æ¬¡å·ï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.batch ? item.batch : '-' }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">å·¥åºï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.procedureName || '-' }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">è´¨éï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | <text v-if="item.qualityType==0" class="green">åæ ¼</text> |
| | | <text v-else-if="item.qualityType==1" class="yellow">ä¸è¯</text> |
| | | <text v-else-if="item.qualityType==2" class="red">æ¥åº</text> |
| | | <text v-else>-</text> |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">计åè½¬åºæ°éï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.outPlannum + item.unitName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">å®é
è½¬åºæ°éï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.outActnum + item.unitName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">å®é
转å
¥æ°éï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.inActnum + item.unitName }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view v-if="(data.status === 0 || data.status === 1) && show" style="background:#F7F7F7; height:94rpx"></view> |
| | | <view v-if="(data.status === 0 || data.status === 1) && show" class="bottom-button"> |
| | | <button class="button" @click="submit">{{ data.status === 0 ? 'å»åºåº' : 'å»å
¥åº' }}</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | wTransferExtDetail |
| | | } from '@/util/api/materialStorage' |
| | | export default { |
| | | data() { |
| | | return { |
| | | id: null, |
| | | types: [{ |
| | | name: 'å
¨é¨', |
| | | id: '', |
| | | isActive: true |
| | | }, |
| | | { |
| | | name: 'éè´è®¢å', |
| | | id: '0', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'ç产工å', |
| | | id: '1', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'éå®è®¢å', |
| | | id: '2', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '转åºå', |
| | | id: '3', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'çç¹å', |
| | | id: '4', |
| | | isActive: false |
| | | }, |
| | | ], |
| | | data: { |
| | | code: "", |
| | | status: 0, |
| | | outDepartName: "", |
| | | inDepartName: "", |
| | | outWarehouseName: "", |
| | | inWarehouseName: "", |
| | | outPlandate: "", |
| | | inPlandate: "", |
| | | wtransferDetailList: [] |
| | | }, |
| | | orderType: [{ |
| | | name: '车é´é¢æ', |
| | | id: 1 |
| | | }, |
| | | { |
| | | name: '计å颿', |
| | | id: 2 |
| | | }, |
| | | { |
| | | name: 'æºå°å¤æ', |
| | | id: 3 |
| | | }, |
| | | { |
| | | name: 'å®å·¥å
¥åº', |
| | | id: 4 |
| | | }, |
| | | { |
| | | name: '车é´è½¬åº', |
| | | id: 5 |
| | | }, |
| | | { |
| | | name: 'å¤åé¢æè½¬åº', |
| | | id: 6 |
| | | }, |
| | | { |
| | | name: 'å¤åå®å·¥è½¬åº', |
| | | id: 7 |
| | | }, |
| | | { |
| | | name: 'æåå
¥åº', |
| | | id: 8 |
| | | }, |
| | | { |
| | | name: 'æå转åº', |
| | | id: 9 |
| | | }, |
| | | { |
| | | name: 'è®©æ¥æ¾è¡å
¥åº', |
| | | id: 10 |
| | | }, |
| | | { |
| | | name: 'è®©æ¥æ¾è¡è½¬åº', |
| | | id: 11 |
| | | }, |
| | | { |
| | | name: '客è¿è¿ä¿®é¢æ', |
| | | id: 12 |
| | | }, |
| | | { |
| | | name: '客è¿è¿ä¿®å
¥åº', |
| | | id: 13 |
| | | }, |
| | | { |
| | | name: 'è·¨ç»ç»è½¬åº', |
| | | id: 14 |
| | | }, |
| | | { |
| | | name: 'å·¥åºæ¥åº', |
| | | id: 15 |
| | | }, |
| | | { |
| | | name: '客éè¿ä¿®é¢æ', |
| | | id: 16 |
| | | }, |
| | | { |
| | | name: '客éè¿ä¿®å
¥åº', |
| | | id: 17 |
| | | } |
| | | ], |
| | | show: false |
| | | }; |
| | | }, |
| | | onLoad(option) { |
| | | this.id = option.id |
| | | wTransferExtDetail(option.id) |
| | | .then(res => { |
| | | this.data = res.data |
| | | if (res.data.inUserId == this.$store.state.userInfo.id) { |
| | | this.show = true |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 跳转åºåºå
¥åº |
| | | submit() { |
| | | if (this.data.status === 0) { // åºåº |
| | | console.log('åºåº') |
| | | // router.push({ name: 'issueOperation', query: { id: route.query.id, type: 7 } }) |
| | | uni.navigateTo({ |
| | | url: `/pages/OutOperation/OutOperation?id=${this.id}&type=7` |
| | | }); |
| | | } else if (this.data.status === 1) { // å
¥åº |
| | | if (this.data.type === 3) { // å¤æç¡®è®¤ |
| | | console.log('å¤æç¡®è®¤') |
| | | // router.push({ name: 'orderStock', query: { id: route.query.id, status: data.value.status, next: 1 } }) |
| | | return |
| | | } |
| | | console.log('å
¥åº') |
| | | uni.navigateTo({ |
| | | url: `/pages/InOperation/InOperation?id=${this.id}&type=7` |
| | | }); |
| | | // router.push({ name: 'warehousing', query: { id: route.query.id, type: 7 } }) |
| | | } |
| | | }, |
| | | tyepToStr(type) { |
| | | for (const item of this.orderType) { |
| | | if (item.id == type) { |
| | | return item.name |
| | | } |
| | | } |
| | | return '-' |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content2 { |
| | | background: white; |
| | | |
| | | .order-message { |
| | | padding-top: 30rpx; |
| | | // padding: 30rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | // border-bottom: 1rpx solid #ececec; |
| | | .content_list_item_top { |
| | | padding: 0 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | |
| | | .content_list_item_top_left { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | span { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #333333; |
| | | } |
| | | } |
| | | |
| | | .content_list_item_top_right { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | |
| | | .created { |
| | | color: $nav-stateColor1 !important; |
| | | } |
| | | |
| | | .warning { |
| | | color: $nav-stateColor5 !important; |
| | | } |
| | | |
| | | .green { |
| | | color: $nav-stateColor6 !important; |
| | | } |
| | | |
| | | .info { |
| | | color: $nav-stateColor3 !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .material-title { |
| | | // background-color: #f7f7f7; |
| | | margin-top: 10rpx; |
| | | } |
| | | |
| | | .content_list_item_content { |
| | | margin: 0 30rpx; |
| | | padding: 24rpx 30rpx; |
| | | background: #f7f7f7; |
| | | border-radius: 16rpx; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | margin-top: 32rpx; |
| | | |
| | | .content_list_item_content_item { |
| | | width: 100%; |
| | | display: flex; |
| | | margin-top: 24rpx; |
| | | |
| | | // &:nth-child(1) { |
| | | // margin-top: 0 !important; |
| | | // } |
| | | // &:nth-child(2) { |
| | | // margin-top: 0 !important; |
| | | // } |
| | | .content_list_item_content_item_label { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .content_list_item_content_item_nr { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | margin-right: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .title { |
| | | height: 32rpx; |
| | | margin-left: 30rpx; |
| | | padding-top: 40rpx; |
| | | padding-bottom: 24rpx; |
| | | font-size: 30rpx; |
| | | |
| | | .title-prefix { |
| | | display: inline-block; |
| | | background-color: #4275FC; |
| | | height: 30rpx; |
| | | width: 8rpx; |
| | | border-radius: 1rpx; |
| | | margin-right: 12rpx; |
| | | } |
| | | } |
| | | |
| | | .material-content { |
| | | .item-style { |
| | | width: initial; |
| | | border-bottom: 1rpx solid #ECECEC; |
| | | padding-bottom: 30rpx; |
| | | |
| | | &:last-child { |
| | | border: none; |
| | | } |
| | | |
| | | .item-title-style { |
| | | padding: 0 30rpx; |
| | | margin-top: 30rpx; |
| | | margin-bottom: 12rpx; |
| | | font-size: 30rpx; |
| | | } |
| | | |
| | | .item-content-style { |
| | | margin: 0 30rpx; |
| | | background-color: #f7f7f7; |
| | | border-radius: 16rpx; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | padding: 1rpx 1rpx 30rpx 1rpx; |
| | | |
| | | .content_list_item_content_item { |
| | | width: 100%; |
| | | display: flex; |
| | | margin-top: 24rpx; |
| | | margin-left: 24rpx; |
| | | |
| | | .content_list_item_content_item_label { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .content_list_item_content_item_nr { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | margin-right: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .bottom-button { |
| | | padding: 1rpx; |
| | | background-color: #f7f7f7; |
| | | position: fixed; |
| | | width: 100%; |
| | | bottom: 0; |
| | | height: 188rpx; |
| | | |
| | | .button { |
| | | margin: 32rpx 32rpx 68rpx 32rpx; |
| | | height: 88rpx; |
| | | font-size: 30rpx; |
| | | width: calc(100% - 64rpx); |
| | | border: none; |
| | | border-radius: 8rpx; |
| | | background-color: $nav-color; |
| | | color: #fff; |
| | | } |
| | | } |
| | | } |
| | | </style> |