| | |
| | | <template> |
| | | <el-dialog v-model="visible" title="选择产品" width="900px" destroy-on-close :close-on-click-modal="false"> |
| | | <el-form :inline="true" :model="query" class="mb-2"> |
| | | <el-form-item label="产品大类"> |
| | | <el-select v-model="query.topProductParentId" placeholder="选择产品大类" clearable @change="onSearch" style="width: 150px"> |
| | | <el-form-item label="物料编码"> |
| | | <el-select v-model="query.topProductParentId" placeholder="选择物料编码" clearable @change="onSearch" style="width: 150px"> |
| | | <el-option v-for="item in categoryList" :key="item.id" :label="item.label || item.productName" :value="item.id" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="产品名称"> |
| | | <el-input v-model="query.productName" placeholder="输入产品名称" clearable @keyup.enter="onSearch" style="width: 150px" /> |
| | | <el-form-item label="物料编码"> |
| | | <el-input v-model="query.productName" placeholder="输入物料编码" clearable @keyup.enter="onSearch" style="width: 150px" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="产品型号"> |
| | |
| | | @selection-change="handleSelectionChange" @select="handleSelect"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column type="index" label="序号" width="60" /> |
| | | <el-table-column prop="topProductName" label="产品大类" min-width="120" /> |
| | | <el-table-column prop="productName" label="产品名称" min-width="140" /> |
| | | <el-table-column prop="topProductName" label="物料编码" min-width="120" /> |
| | | <el-table-column prop="productName" label="物料编码" min-width="140" /> |
| | | <el-table-column prop="model" label="产品型号" min-width="180" /> |
| | | <el-table-column prop="unit" label="单位" min-width="100" /> |
| | | </el-table> |