维修工接单/维修班组长重新指派,维修工填写配件申请单 1/2
This commit is contained in:
parent
27f2b505ff
commit
7b16f2cff4
@ -12,7 +12,7 @@
|
|||||||
type="daterange"
|
type="daterange"
|
||||||
range-separator="至"
|
range-separator="至"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期" />
|
end-placeholder="结束日期"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||||
@ -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,26 +54,27 @@
|
|||||||
<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",
|
||||||
props:{
|
components: {TicketsShow},
|
||||||
// 是否展示了页面,是才请求
|
props: {
|
||||||
isShow:{
|
isFinish: {
|
||||||
type: Boolean,
|
|
||||||
},
|
|
||||||
isFinish:{
|
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
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() {
|
||||||
const res = await getPageType(this.queryParams)
|
try {
|
||||||
if (res.data){
|
this.loading = true
|
||||||
this.list = res.data.records
|
const res = await getPageType(this.queryParams)
|
||||||
this.total = res.data.total
|
if (res.data) {
|
||||||
|
this.list = res.data.records
|
||||||
|
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