| | |
| | | // 生产工单 |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="search_form"> |
| | |
| | | import { getCurrentInstance, reactive, toRefs } from "vue"; |
| | | import FilesDia from "./components/filesDia.vue"; |
| | | const { proxy } = getCurrentInstance(); |
| | | const { priority_type } = proxy.useDict("priority_type"); |
| | | |
| | | const tableColumn = ref([ |
| | | { |
| | | label: "工单类型", |
| | | prop: "workOrderType", |
| | | width: "80", |
| | | label: "优先级", |
| | | prop: "priority", |
| | | width: '100px', |
| | | dataType: "tag", |
| | | formatData: val => proxy.selectDictLabel(priority_type.value, val), |
| | | formatType: val => { |
| | | const v = Number(val); |
| | | if (v === 0) return "danger"; // 红色 |
| | | if (v === 1) return "warning"; // 黄色 |
| | | if (v === 2) return "success"; // 绿色 |
| | | return ""; |
| | | }, |
| | | }, |
| | | // { |
| | | // label: "工单类型", |
| | | // prop: "workOrderType", |
| | | // width: "80", |
| | | // }, |
| | | { |
| | | label: "工单编号", |
| | | prop: "workOrderNo", |