| | |
| | | :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> --> |
| | |
| | | </text> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row> |
| | | <u-col span="12"> |
| | | <text class="color_80 padding_left25rpx"> |
| | | <text class="color_80"> 次序:{{ item.shelf }} </text> |
| | | </text> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row> |
| | | <u-col span="12"> |
| | | <text class="color_80 padding_left25rpx"> |
| | |
| | | <u-row> |
| | | <u-col span="12"> |
| | | <text class="color_80 padding_left25rpx"> |
| | | 位置:{{ item.areacode }} |
| | | 位置:{{ getAreaCodeEnumName(item.areaCode) }} |
| | | </text> |
| | | </u-col> |
| | | </u-row> |
| | |
| | | </text> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row> |
| | | <u-col span="12"> |
| | | <text class="color_80 padding_left25rpx"> |
| | | <text class="color_80"> 次序:{{ item.shelf }} </text> |
| | | </text> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row> |
| | | <u-col span="12"> |
| | | <text class="color_80 padding_left25rpx"> |
| | | 标记:{{ getUpiFlagEnumName(item.upiFlag) }} |
| | | </text> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row> |
| | | <u-col span="12"> |
| | | <text class="color_80 padding_left25rpx"> |
| | |
| | | import ButtonModal from "../../components/buttonModal.vue"; |
| | | import ModalCode from "../../components/ModalCode.vue"; |
| | | import { |
| | | getBhbMaterialList, |
| | | querySingleUpiByUpi, |
| | | getenumDataList, |
| | | } from "../../api/putIn/artificial.js"; |
| | | export default { |
| | |
| | | gridable: true, |
| | | kwbhAllowed: false, |
| | | enumList: [], |
| | | areaCodeEnum: [], |
| | | upiFlagEnum: [], |
| | | }; |
| | | }, |
| | | components: { |
| | |
| | | }).then((res) => { |
| | | this.enumList = res.result || []; |
| | | }); |
| | | getenumDataList({ |
| | | EnumName: "AreaCodeEnum", |
| | | }).then((res) => { |
| | | this.areaCodeEnum = res.result || []; |
| | | }); |
| | | getenumDataList({ |
| | | EnumName: "UpiFlagEnum", |
| | | }).then((res) => { |
| | | this.upiFlagEnum = res.result || []; |
| | | }); |
| | | }, |
| | | onLoad() { |
| | | this.operator = JSON.parse(uni.getStorageSync("userInfo")).name; |
| | |
| | | const name = this.enumList.find((item) => item.value === value); |
| | | return name ? name.name : ""; |
| | | }, |
| | | getAreaCodeEnumName(value) { |
| | | const name = this.areaCodeEnum.find((item) => item.value === value); |
| | | return name ? name.name : ""; |
| | | }, |
| | | getUpiFlagEnumName(value) { |
| | | const name = this.upiFlagEnum.find((item) => item.value === value); |
| | | return name ? name.name : ""; |
| | | }, |
| | | // 如果打开一个的时候,不需要关闭其他,则无需实现本方法 |
| | | open(index) { |
| | | // 先将正在被操作的swipeAction标记为打开状态,否则由于props的特性限制, |
| | |
| | | this.singlist = []; |
| | | }, |
| | | |
| | | //获取容器的信息 |
| | | //获取 |
| | | getContainerData(param) { |
| | | if (!this.warehouse.upi) { |
| | | uni.showToast({ |
| | |
| | | }); |
| | | return; |
| | | } |
| | | getBhbMaterialList({ |
| | | querySingleUpiByUpi({ |
| | | packageCode: this.warehouse.packageCode, |
| | | upi: this.warehouse.upi, |
| | | }).then((res) => { |
| | |
| | | uni.showToast({ |
| | | title: "数据不存在", |
| | | icon: "none", |
| | | duration: 2000, |
| | | duration: 5000, |
| | | }); |
| | | this.singlist = []; |
| | | return; |
| | | } |
| | | |
| | | this.singlist = res.result; |
| | | }); |
| | | }, |