| | |
| | | > |
| | | <u-input |
| | | v-model.trim="warehouse.upi" |
| | | @focus="warehouse.upi = ''" |
| | | @focus="warehouse.upi = ''" |
| | | @confirm="getContainerData(1)" |
| | | placeholder="请录入或扫码" |
| | | class="width" |
| | |
| | | </u-col> |
| | | </u-row> --> |
| | | </u-form> |
| | | |
| | | <!-- 列表 --> |
| | | <view class="margin_top10rpx"> |
| | | <u-swipe-action |
| | |
| | | :class="item.checked ? 'bg_item' : ''" |
| | | class="fontSize32rpx width margin_auto background_fff padding10 relative box_sizing transition" |
| | | > |
| | | <!-- 部件名称 upi、材料、尺寸,位置、板件状态 --> |
| | | <u-row> |
| | | <u-col span="12" class="flex align-center"> |
| | | <!-- <u-checkbox v-model="item.checked" size="50rpx"></u-checkbox> --> |
| | |
| | | <u-row> |
| | | <u-col span="12"> |
| | | <text class="color_80 padding_left25rpx"> |
| | | 位置:{{ item.areacode }} |
| | | 位置:{{ getAreaCodeEnumName(item.areaCode) }} |
| | | </text> |
| | | </u-col> |
| | | </u-row> |
| | |
| | | gridFocus: false, |
| | | gridable: true, |
| | | kwbhAllowed: false, |
| | | enumList: [], |
| | | enumList: [], |
| | | areaCodeEnum: [], |
| | | }; |
| | | }, |
| | | components: { |
| | |
| | | ModalCode, |
| | | }, |
| | | created() { |
| | | getenumDataList({ |
| | | getenumDataList({ |
| | | EnumName: "UpiStatusEnum", |
| | | }).then((res) => { |
| | | this.enumList = res.result || []; |
| | | }); |
| | | |
| | | getenumDataList({ |
| | | EnumName: "AreaCodeEnum", |
| | | }).then((res) => { |
| | | this.areaCodeEnum = res.result || []; |
| | | }); |
| | | |
| | | }, |
| | | onLoad() { |
| | | this.operator = JSON.parse(uni.getStorageSync("userInfo")).name; |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | mounted() {}, |
| | | |
| | | methods: { |
| | | getEnumName(value) { |
| | | getEnumName(value) { |
| | | const name = this.enumList.find((item) => item.value === value); |
| | | return name? name.name : ""; |
| | | return name ? name.name : ""; |
| | | }, |
| | | getAreaCodeEnumName(value) { |
| | | const name = this.areaCodeEnum.find((item) => item.value === value); |
| | | return name ? name.name : ""; |
| | | }, |
| | | // 如果打开一个的时候,不需要关闭其他,则无需实现本方法 |
| | | open(index) { |
| | |
| | | this.materlist = this.singlist[index]; |
| | | this.detailshow = true; |
| | | }, |
| | | |
| | | |
| | | rest() { |
| | | this.warehouse.upi = ""; |
| | | this.warehouse.upi = ""; |
| | |
| | | return; |
| | | } |
| | | getBhbMaterialList({ |
| | | upi: this.warehouse.upi |
| | | upi: this.warehouse.upi, |
| | | }).then((res) => { |
| | | const result = res.result; |
| | | if (Array.isArray(result) && result.length == 0) { |
| | | uni.showToast({ |
| | | title: "没有查到数据", |
| | | icon: "none", |
| | | duration: 2000, |
| | | duration: 5000, |
| | | }); |
| | | this.singlist = []; |
| | | return; |
| | |
| | | this.warehouse.upi = ""; |
| | | }, |
| | | }, |
| | | |
| | | }; |
| | | </script> |
| | | <style lang="scss"> |