| | |
| | | prop="productModelId"> |
| | | <el-button type="primary" |
| | | @click="showProductSelectDialog = true"> |
| | | {{ form.productName || '选择产品' }} |
| | | {{ form.productName || '选择产品' }}-{{ form.productModelName }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <el-form-item label="版本号" |
| | |
| | | dataType: "slot", |
| | | slot: "detail", |
| | | minWidth: 140, |
| | | }, |
| | | { |
| | | label: "产品编码", |
| | | prop: "productCode", |
| | | |
| | | minWidth: 160, |
| | | }, |
| | | { |
| | | label: "产品名称", |
| | |
| | | const handleProductSelect = products => { |
| | | if (products && products.length > 0) { |
| | | const product = products[0]; |
| | | form.value.productModelId = product.skuId; |
| | | form.value.productName = product.materialName; |
| | | form.value.productModelName = product.specification; |
| | | form.value.productModelId = product.id; |
| | | form.value.productName = product.productName; |
| | | form.value.productModelName = product.model; |
| | | } |
| | | showProductSelectDialog.value = false; |
| | | }; |