|
@@ -13,20 +13,22 @@
|
|
|
<template v-for="(item, index) in dataList">
|
|
|
<div :key="index" class="my-line">
|
|
|
<el-row class="my-row">
|
|
|
+ <el-col :span="8" style="padding-left: 20px">
|
|
|
+ <el-form-item label="类别" prop="cateId">
|
|
|
+<!-- <el-input v-model="item.categoryName" :disabled="true" placeholder="类别"></el-input>-->
|
|
|
+ <material-type-component v-model="item.materialTypeId" :type-id.sync="item.materialTypeId"></material-type-component>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="名称" prop="materialName">
|
|
|
<el-input v-if="id" v-model="item.materialName" :disabled="true" style="width: 200px; margin-right: 10px"/>
|
|
|
<material-component v-else
|
|
|
v-model="dataList[index]"
|
|
|
- :material-id.sync="item.materialId">
|
|
|
+ :material-id.sync="item.materialId"
|
|
|
+ :material-type.sync="item.materialTypeId">
|
|
|
</material-component>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" style="padding-left: 20px">
|
|
|
- <el-form-item label="类别" prop="cateId">
|
|
|
- <el-input v-model="item.categoryName" :disabled="true" placeholder="类别"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
<el-col :span="8" style="text-align: right;">
|
|
|
<el-button @click="removeOne(index)" type="danger" icon="el-icon-delete" circle style="padding: 6px"></el-button>
|
|
|
</el-col>
|
|
@@ -74,9 +76,10 @@
|
|
|
import {getBoundDetails, outboundBatch, updateBatch} from '@/api/warehouse'
|
|
|
import {getUUID} from '../../../utils'
|
|
|
import MaterialComponent from '../common/material-component'
|
|
|
+ import MaterialTypeComponent from "@/views/modules/common/material-type-component.vue";
|
|
|
export default {
|
|
|
name: 'stock-order-inbound',
|
|
|
- components: {MaterialComponent, DictSelect, UserComponent},
|
|
|
+ components: {MaterialTypeComponent, MaterialComponent, DictSelect, UserComponent},
|
|
|
data () {
|
|
|
return {
|
|
|
visible: false,
|