| | |
| | | <text class="item-one">库位</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text |
| | | class="item-one item-two">{{ registerInfo.storageLocation == '' ? "请扫描库位" : registerInfo.storageLocation }}</text> |
| | | <text class="item-one item-two">{{ |
| | | registerInfo.proposedLocation == "" |
| | | ? "请扫描库位" |
| | | : registerInfo.proposedLocation |
| | | }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <view class="wrap"> |
| | | <scroll-view class="packing-registration-scroll-list" scroll-y="true"> |
| | | <u-cell-group class="packing-registration-scroll-list-group" :border="false"> |
| | | <!-- <div class="tip" style="text-align: center;" v-if="hasScanSnList.length==0">-请扫码-</div> --> |
| | | <view class="content" v-for="(item, index) in hasScanSnList" :key="index" :index="index"> |
| | | <view class="content-header"> |
| | | <view class="content-header-title">{{ index + 1 }}</view> |
| | |
| | | <view class="_label-name">零件号:</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value0 }} |
| | | {{ item.partNo }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | |
| | | <view class="_label-name">批次号:</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value1 }} |
| | | {{ item.moNo }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | |
| | | <view class="_label-name">库位号:</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value0 }} |
| | | {{ item.proposedLocation }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | |
| | | <text class="item-one">批号</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | <text class="item-one item-two">{{ detailedList.moNo }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <text class="item-one">零件描述</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | <text class="item-one item-two">{{ |
| | | detailedList.partName |
| | | }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <text class="item-one">WDR</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | <text class="item-one item-two">{{ detailedList.WDR }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <text class="item-one">当前库位</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | <text class="item-one item-two">{{ |
| | | detailedList.proposedLocation |
| | | }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | storageLocation: "", |
| | | num: 0, |
| | | }, |
| | | showModal: true, // 控制弹窗显示隐藏的变量 |
| | | hasScanSnList: [{ |
| | | value0: "11111111111111111111111", |
| | | value1: "111", |
| | | value2: "111", |
| | | value3: "111", |
| | | }, |
| | | { |
| | | value0: "111", |
| | | value1: "111", |
| | | value2: "111", |
| | | value3: "111", |
| | | }, |
| | | { |
| | | value0: "111", |
| | | value1: "111", |
| | | value2: "111", |
| | | value3: "111", |
| | | }, |
| | | { |
| | | value0: "111", |
| | | value1: "111", |
| | | value2: "111", |
| | | value3: "111", |
| | | }, |
| | | { |
| | | value0: "111", |
| | | value1: "111", |
| | | value2: "111", |
| | | value3: "111", |
| | | }, |
| | | ], |
| | | showModal: false, // 控制弹窗显示隐藏的变量 |
| | | hasScanSnList: [], |
| | | detailedList: { |
| | | moNo: "", |
| | | partNo: "", |
| | | proposedLocation: "", |
| | | WDR: "", |
| | | }, |
| | | codeInfoId: '', |
| | | }; |
| | | }, |
| | | onLoad() {}, |
| | |
| | | if (data.code) { |
| | | let codeInfo = JSON.parse(data.code); |
| | | // 扫描报工单二维码 |
| | | that.saveForm(codeInfo); |
| | | // 判断扫描的是库位码还是流转码 |
| | | if (codeInfo.LN) { |
| | | that.saveForm(codeInfo) |
| | | } else { |
| | | that.codeInfoId = codeInfo.id |
| | | that.saveModalForm(codeInfo) |
| | | that.getHandelList(); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | methods: { |
| | | getHandelList() { |
| | | this.$u.api.workReporting |
| | | .getProductMainV1({ |
| | | current: 1, |
| | | size: -1, |
| | | id: this.codeInfoId, |
| | | }) |
| | | .then((res) => { |
| | | this.hasScanSnList = res.data.productOutputList; |
| | | }); |
| | | }, |
| | | confirm() { |
| | | // 处理确认逻辑 |
| | | this.show = false; |
| | | }, |
| | | cancel() { |
| | | this.show = false; // 关闭弹窗 |
| | | // 点击确认移库 |
| | | if (_) { |
| | | if (true) { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | title: "你无法将零件移到相同位置", |
| | |
| | | }); |
| | | return |
| | | } |
| | | this.$u.api.workReporting._({}).then((res) => { |
| | | console.log("res", res); |
| | | this.hasScanSnList = res.data.records; |
| | | }); |
| | | this.getHandelList() |
| | | this.show = false; |
| | | }, |
| | | // 回显扫码的信息-报工单 |
| | | cancel() { |
| | | this.show = false; // 关闭弹窗 |
| | | }, |
| | | // 回显扫码的信息 |
| | | saveForm(val) { |
| | | // 判断扫描的是库位码还是流转码 |
| | | if (_) { |
| | | this.registerInfo.storageLocation = val.storageLocation |
| | | } |
| | | if (_) { |
| | | this.registerInfo.proposedLocation = val.LN |
| | | } |
| | | saveModalForm(val) { |
| | | this.detailedList: { |
| | | moNo: val.moNo, |
| | | partNo: val.partNo, |
| | | proposedLocation: val.proposedLocation, |
| | | WDR: val.WDR, |
| | | }, |
| | | this.show = true; |
| | | } |
| | | } |
| | | }, |
| | | }; |