| | |
| | | </div> |
| | | |
| | | <div class="table-panel"> |
| | | <el-table :data="filteredRows" border stripe height="calc(100vh - 230px)"> |
| | | <el-table :data="filteredRows" border stripe height="calc(100vh - 270px)"> |
| | | <el-table-column prop="workOrderNo" label="派工单编号" width="155" fixed></el-table-column> |
| | | <el-table-column prop="status" label="验收状态" width="155" fixed> |
| | | <template slot-scope="{ row }"><el-tag size="mini" :type="acceptanceMeta(row.status).type">{{ acceptanceMeta(row.status).text }}</el-tag></template> |
| | |
| | | |
| | | export default { |
| | | name: 'AcceptanceList', |
| | | props: { |
| | | stage: { type: String, required: true } |
| | | }, |
| | | data() { |
| | | return { |
| | | rows: [], |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | stage() { return this.$route.meta.stage }, |
| | | pageTitle() { |
| | | return { APPLICATION: '验收申请', INSPECTOR: '质检员验收', LEADER: '质检负责人验收', PRINT: '完工验收打印输出', RATING: '修后质量评级' }[this.stage] |
| | | }, |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | '$route.path': 'onRouteChange' |
| | | stage: 'onRouteChange' |
| | | }, |
| | | created() { this.load() }, |
| | | methods: { |