| | |
| | | <u-toast ref="uToast"></u-toast> |
| | | <!-- 仓库 --> |
| | | <Warehouse :show="warehouseShow" @close="close" @value="getValue" /> |
| | | <<<<<<< HEAD |
| | | <!-- 物料 --> |
| | | <Material :show="materialsShow" @close="close1" @value="getValue1" /> |
| | | <!-- 货位 --> |
| | |
| | | <u-picker :show="typeShow" keyName="name" :columns="typeList" @confirm="confirm" @cancel="typeClose"></u-picker> |
| | | <!-- 质量属性 --> |
| | | <u-picker :show="qualityShow" :columns="columns" @cancel="qualityShow = false" keyName="name" @confirm="onConfirm1"></u-picker> |
| | | ======= |
| | | >>>>>>> 89d77a7cd7285feda993bffec2513892f8bd355f |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import Warehouse from '../../components/Warehouse.vue' |
| | | <<<<<<< HEAD |
| | | import location from '../../components/location.vue' |
| | | import Material from '../../components/Material.vue' |
| | | import ProductionProcess from '../../components/ProductionProcess.vue' |
| | |
| | | import { getListByMaterialId } from '@/util/api/ExWarehouse' |
| | | export default { |
| | | components: { Warehouse, location, Material, ProductionProcess }, |
| | | ======= |
| | | export default { |
| | | components: { Warehouse }, |
| | | >>>>>>> 89d77a7cd7285feda993bffec2513892f8bd355f |
| | | data() { |
| | | return { |
| | | i: 0, |
| | |
| | | type: '', |
| | | typeName: '' |
| | | }, |
| | | <<<<<<< HEAD |
| | | locationList: [], |
| | | productionList: [], |
| | | columns: [ |
| | |
| | | if (!this.list[i].locationId) return uni.showToast({ title: `第${i+1}项入库货位不能为空`, icon: 'none', duration: 2000 }); |
| | | if (!this.list[i].materialId) return uni.showToast({ title: `第${i+1}项入库物料不能为空`, icon: 'none', duration: 2000 }); |
| | | if (!this.list[i].qualityType) return uni.showToast({ title: `第${i+1}项质量属性不能为空`, icon: 'none', duration: 2000 }); |
| | | if (!this.list[i].batch) return uni.showToast({ title: `第${i+1}项批次号不能为空`, icon: 'none', duration: 2000 }); |
| | | if (this.list[i].num <= 0) { |
| | | return uni.showToast({ title: `第${i + 1}项入库数量必须大于0`, icon: 'none', duration: 2000 }); |
| | | } |
| | |
| | | typeClose() { |
| | | this.typeShow = false |
| | | }, |
| | | ======= |
| | | list: [], |
| | | warehouseShow: false |
| | | }; |
| | | }, |
| | | methods: { |
| | | getValue(val) { |
| | | this.warehouseShow = false |
| | | }, |
| | | >>>>>>> 89d77a7cd7285feda993bffec2513892f8bd355f |
| | | close() { |
| | | this.warehouseShow = false |
| | | }, |