| | |
| | | title="产品导入" |
| | | width="600px" |
| | | @cancel="importDia = false" |
| | | @confirm="submitImport" |
| | | > |
| | | <el-upload |
| | | ref="importUploadRef" |
| | |
| | | </div> |
| | | </template> |
| | | </el-upload> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button type="primary" @click="submitImport">确认导入</el-button> |
| | | </div> |
| | | </template> |
| | | </FormDialog> |
| | | </div> |
| | | </template> |
| | |
| | | label: "产品属性", |
| | | prop: "productType", |
| | | width: 100, |
| | | dataType: "tag", |
| | | formatData: (v) => ({ "1": "自制", "2": "外购", "3": "委外" }[String(v)] ?? v), |
| | | formatType: (v) => { |
| | | const typeMap = { "1": "success", "2": "warning", "3": "info" }; |
| | | return typeMap[String(v)] || "info"; |
| | | }, |
| | | }, |
| | | { |
| | | dataType: "action", |