|  |  |  | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="rework_list_item"> | 
|---|
|  |  |  | <text><b>*</b>入库仓库</text> | 
|---|
|  |  |  | <view class="rework_list_item_right"> | 
|---|
|  |  |  | <view class="rework_list_item_right" @click="warehouseShow = true"> | 
|---|
|  |  |  | <text :class="form.warehouseName ? 'black' : ''">{{form.warehouseName ? form.warehouseName : '请选择'}}</text> | 
|---|
|  |  |  | <van-icon name="arrow" size="20" color="#999999" /> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | <button class="rework_footer_submit">提交</button> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <u-toast ref="uToast"></u-toast> | 
|---|
|  |  |  | <!-- 仓库 --> | 
|---|
|  |  |  | <Warehouse :show="warehouseShow" @close="close" @value="getValue" /> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | import Warehouse from '../../components/Warehouse.vue' | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | components: { Warehouse }, | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | form: { | 
|---|
|  |  |  | 
|---|
|  |  |  | type: '', | 
|---|
|  |  |  | typeName: '' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | list: [] | 
|---|
|  |  |  | list: [], | 
|---|
|  |  |  | warehouseShow: false | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | getValue(val) { | 
|---|
|  |  |  | this.warehouseShow = false | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | close() { | 
|---|
|  |  |  | this.warehouseShow = false | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 添加明细 | 
|---|
|  |  |  | addItem() { | 
|---|
|  |  |  | if (!this.form.warehouseId) return this.$refs.uToast.show({ type: 'default', message: "请选择入库仓库" }) | 
|---|
|  |  |  | this.list.push({ | 
|---|