| | |
| | | </div> |
| | | |
| | | <div class="toolbar"> |
| | | <el-input v-model="keyword" placeholder="派工单编号 / X号 / 承修单位" clearable style="width:280px" @keyup.enter.native="load"></el-input> |
| | | <el-input v-model="keyword" placeholder="派工单编号 / rk_X号 / 承修单位" clearable style="width:280px" @keyup.enter.native="load"></el-input> |
| | | <el-button type="primary" icon="el-icon-search" @click="load">查询</el-button> |
| | | <div class="spacer"></div> |
| | | <el-tag type="info" size="small">仅完工状态的派工单可进入验收流程</el-tag> |
| | | </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> |
| | | </el-table-column> |
| | | <el-table-column prop="xNo" label="X号" width="64"></el-table-column> |
| | | <el-table-column prop="xNo" label="rk_X号" width="64"></el-table-column> |
| | | <el-table-column prop="contractorName" label="承修单位" min-width="170"></el-table-column> |
| | | <el-table-column prop="stage" label="当前环节" width="150"> |
| | | <template slot-scope="{ row }">{{ stageText(row.stage) }}</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: { |