维修工接单/维修班组长重新指派,维修工填写配件申请单 1/2
This commit is contained in:
parent
27f2b505ff
commit
7b16f2cff4
@ -21,7 +21,6 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<!-- todo 待补充 -->
|
|
||||||
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
||||||
@ -45,6 +44,9 @@
|
|||||||
<el-button size="mini" type="text" icon="el-icon-view" @click="handleShow(scope.row)"
|
<el-button size="mini" type="text" icon="el-icon-view" @click="handleShow(scope.row)"
|
||||||
>查看
|
>查看
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button size="mini" type="text" icon="el-icon-document-add" @click="handleGet(scope.row)">
|
||||||
|
申请领料
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -52,19 +54,18 @@
|
|||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
|
||||||
@pagination="listTickets"
|
@pagination="listTickets"
|
||||||
/>
|
/>
|
||||||
|
<TicketsShow ref="ticketsShow"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getPageType} from "@/api/repair/tickets/Tickets";
|
import {getPageType} from "@/api/repair/tickets/Tickets";
|
||||||
|
import TicketsShow from "@/views/repair/tickets/Components/TicketsShow.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TicketManagerItem",
|
name: "TicketManagerItem",
|
||||||
|
components: {TicketsShow},
|
||||||
props: {
|
props: {
|
||||||
// 是否展示了页面,是才请求
|
|
||||||
isShow:{
|
|
||||||
type: Boolean,
|
|
||||||
},
|
|
||||||
isFinish: {
|
isFinish: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
}
|
}
|
||||||
@ -72,6 +73,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
ticketNo: null,
|
ticketNo: null,
|
||||||
searchTimeArray: [],
|
searchTimeArray: [],
|
||||||
isFinish: this.isFinish ? "1" : "0"
|
isFinish: this.isFinish ? "1" : "0"
|
||||||
@ -83,25 +86,33 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if(this.isShow){
|
|
||||||
this.listTickets()
|
this.listTickets()
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async listTickets() {
|
async listTickets() {
|
||||||
|
try {
|
||||||
|
this.loading = true
|
||||||
const res = await getPageType(this.queryParams)
|
const res = await getPageType(this.queryParams)
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.list = res.data.records
|
this.list = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
|
}finally {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
|
this.queryParams.pageNo = 1
|
||||||
|
this.listTickets()
|
||||||
},
|
},
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
|
this.resetForm('queryForm')
|
||||||
|
this.handleQuery()
|
||||||
},
|
},
|
||||||
handleShow(row) {
|
handleShow(row) {
|
||||||
|
this.$refs.ticketsShow.open(row)
|
||||||
|
},
|
||||||
|
handleGet(row){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-tabs v-model="activeTab">
|
<el-tabs v-model="activeTab">
|
||||||
<el-tab-pane label="待完成工单" name="unFinish">
|
<el-tab-pane label="待完成工单" name="unFinish">
|
||||||
<TicketManagerItem :is-show="activeTab === 'unFinish'" :is-finish="false"/>
|
<TicketManagerItem :is-finish="false"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="已完成工单" name="finish">
|
<el-tab-pane label="已完成工单" name="finish">
|
||||||
<TicketManagerItem :is-show="activeTab === 'finish'" :is-finish="true"/>
|
<TicketManagerItem :is-finish="true"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="领料申请单" name="getApply">
|
<el-tab-pane label="领料申请单" name="getApply">
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
Loading…
Reference in New Issue
Block a user