| | |
| | | :value="option.dictCode" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="状态:"> |
| | | <el-select v-model="searchForm.status" |
| | | style="width: 200px;" |
| | | placeholder="请选择状态" |
| | | clearable |
| | | @change="handleQuery"> |
| | | <el-option label="已批准" |
| | | :value="true" /> |
| | | <el-option label="草稿" |
| | | :value="false" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" |
| | | @click="handleQuery">搜索</el-button> |
| | |
| | | const data = reactive({ |
| | | searchForm: { |
| | | dictCode: "", |
| | | status: "", |
| | | }, |
| | | }); |
| | | const { searchForm } = toRefs(data); |
| | |
| | | { |
| | | label: "工艺路线编号", |
| | | prop: "processRouteCode", |
| | | width: "200px", |
| | | className: "status-cell", |
| | | }, |
| | | { |
| | | label: "状态", |
| | | prop: "status", |
| | | dataType: "tag", |
| | | |
| | | formatData: params => { |
| | | if (params) { |
| | | return "已批准"; |
| | | } else { |
| | | return "草稿"; |
| | | } |
| | | }, |
| | | formatType: params => { |
| | | if (params) { |
| | | return "success"; |
| | | } else { |
| | | return "info"; |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | label: "产品类型", |
| | | prop: "dictLabel", |
| | | dataType: "tag", |
| | | }, |
| | | { |
| | | label: "BOM编号", |
| | |
| | | model: row.model || "", |
| | | bomNo: row.bomNo || "", |
| | | dictLabel: row.dictLabel || "", |
| | | orderId: row.id || "", |
| | | bomId: row.bomId || null, |
| | | description: row.description || "", |
| | | type: "route", |
| | |
| | | </script> |
| | | |
| | | <style scoped></style> |
| | | <style lang="scss"> |
| | | .status-cell { |
| | | font-weight: 600; |
| | | color: #409eff; |
| | | font-family: "Courier New", monospace; |
| | | text-shadow: 0 1px 2px rgba(64, 158, 255, 0.2); |
| | | } |
| | | </style> |