| | |
| | | <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"> |
| | |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">单据类型:</view> |
| | | <view class="content_list_item_content_item_nr" v-if="data.billType"> |
| | | {{ orderTyepToStr(data.billType) }} |
| | | {{ seeText(data.billType) }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <text class="content_list_item_content_item_label">入库货位:</text> |
| | | <text class="content_list_item_content_item_nr">{{ item.locationName ? item.locationName : '-' }}</text> |
| | | <text |
| | | class="content_list_item_content_item_nr">{{ item.locationName ? item.locationName : '-' }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | import { |
| | | orderTyepToStr |
| | | } from '@/util/constData.js' |
| | | import { |
| | | getBoundDetail, |
| | | cancelBound |
| | | } from '@/util/api/materialStorage' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | id: null, |
| | | types: [{ |
| | | name: '全部', |
| | | id: '', |
| | |
| | | isActive: false |
| | | }, |
| | | ], |
| | | data: {}, |
| | | data: { |
| | | code: "", |
| | | createName: "", |
| | | planDate: "", |
| | | dealDate: "", |
| | | status: 0, |
| | | originType: 0, |
| | | originCode: "", |
| | | updateName: "", |
| | | updateMobile: "", |
| | | updateTime: "", |
| | | warehouseName: "", |
| | | warehouseCode: "", |
| | | outPlandate: "", |
| | | inPlandate: "", |
| | | woutboundDetailsWait: [], |
| | | woutboundDetailsOut: [] |
| | | }, |
| | | materailArray: [] |
| | | }; |
| | | }, |
| | | onLoad(option) { |
| | | this.id = option.id |
| | | getBoundDetail({ |
| | | id: option.id |
| | | }) |
| | | .then(res => { |
| | | this.data = res.data |
| | | if (this.data.status === 1) { |
| | | this.materailArray.push(...this.data.woutboundDetailsOut) |
| | | } else { |
| | | this.materailArray.push(...this.data.woutboundDetailsWait) |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | seeText(id) { |
| | | return orderTyepToStr(id) |
| | | }, |
| | | tyepToStr(type) { |
| | | // <!-- 1、车间领料;2、车间备料;3、其他;4、完工入库 --> |
| | | for (const item of this.types) { |
| | | if (parseInt(item.id) === this.type) { |
| | | return item.name |
| | |
| | | }, |
| | | submit() { |
| | | |
| | | }, |
| | | cancel() { |
| | | cancelBound({ |
| | | id: this.id |
| | | }) |
| | | .then(res => { |
| | | uni.showToast({ |
| | | title: '取消成功', |
| | | icon: 'success', |
| | | duration: 2000 |
| | | }); |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }) |
| | | .catch(err => { |
| | | uni.showToast({ |
| | | title: err.message, |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | }) |
| | | } |
| | | } |
| | | } |