|
@@ -9,6 +9,18 @@
|
|
<a-input v-model.trim="queryParam.keyword" placeholder="请输入闲置名称"/>
|
|
<a-input v-model.trim="queryParam.keyword" placeholder="请输入闲置名称"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
|
+ <a-form-item label="闲置状态">
|
|
|
|
+ <a-select v-model="queryParam.status" placeholder="请选择">
|
|
|
|
+ <a-select-option
|
|
|
|
+ v-for="(label,value) in statusMap"
|
|
|
|
+ :key="value"
|
|
|
|
+ :label="label"
|
|
|
|
+ :value="value">{{ label }}
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
<a-col :md="8 || 24" :sm="24">
|
|
<a-col :md="8 || 24" :sm="24">
|
|
<span class="table-page-search-submitButtons">
|
|
<span class="table-page-search-submitButtons">
|
|
<a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
<a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
@@ -54,6 +66,10 @@
|
|
v-if="record.status===1||record.status===2"
|
|
v-if="record.status===1||record.status===2"
|
|
@click="handleAudit(record)"
|
|
@click="handleAudit(record)"
|
|
>审核</operation-button>
|
|
>审核</operation-button>
|
|
|
|
+ <operation-button
|
|
|
|
+ v-if="record.status===3"
|
|
|
|
+ @click="handlePrint(record)"
|
|
|
|
+ >打印</operation-button>
|
|
</span>
|
|
</span>
|
|
<template #status="text">
|
|
<template #status="text">
|
|
<badge :text="BaseTool.Object.getField(statusMap,text)" :status="DictCache.COLOR.SB_UNUSED_STATUS[text]"/>
|
|
<badge :text="BaseTool.Object.getField(statusMap,text)" :status="DictCache.COLOR.SB_UNUSED_STATUS[text]"/>
|
|
@@ -63,6 +79,8 @@
|
|
<BaseForm ref="baseForm" @ok="handleOk"/>
|
|
<BaseForm ref="baseForm" @ok="handleOk"/>
|
|
<AuditForm ref="auditForm" @ok="handleOk"/>
|
|
<AuditForm ref="auditForm" @ok="handleOk"/>
|
|
<Detail ref="detail" @ok="handleOk" />
|
|
<Detail ref="detail" @ok="handleOk" />
|
|
|
|
+ <TicketForm ref="ticketForm" @ok="handleOk" />
|
|
|
|
+
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -72,12 +90,15 @@ import { getSbUnusedPage, getUnusedInfo } from '@/api/idle-assets/idle-assets'
|
|
import BaseForm from './modules/BaseForm.vue'
|
|
import BaseForm from './modules/BaseForm.vue'
|
|
import AuditForm from './modules/AuditForm.vue'
|
|
import AuditForm from './modules/AuditForm.vue'
|
|
import Detail from './modules/Detail.vue'
|
|
import Detail from './modules/Detail.vue'
|
|
|
|
+import TicketForm from './modules/TicketForm'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'IdleAssets',
|
|
name: 'IdleAssets',
|
|
components: {
|
|
components: {
|
|
STable,
|
|
STable,
|
|
Ellipsis,
|
|
Ellipsis,
|
|
BaseForm,
|
|
BaseForm,
|
|
|
|
+ TicketForm,
|
|
AuditForm,
|
|
AuditForm,
|
|
Detail
|
|
Detail
|
|
},
|
|
},
|
|
@@ -212,8 +233,12 @@ export default {
|
|
handleAudit (record) {
|
|
handleAudit (record) {
|
|
this.$refs.auditForm.base(record)
|
|
this.$refs.auditForm.base(record)
|
|
},
|
|
},
|
|
- handleEdit (record) {
|
|
|
|
-
|
|
|
|
|
|
+ handlePrint (record) {
|
|
|
|
+ this.visible = false
|
|
|
|
+ getUnusedInfo({ id: record.id }).then(res => {
|
|
|
|
+ const modal = this.$refs.ticketForm
|
|
|
|
+ modal.base(res.data)
|
|
|
|
+ })
|
|
},
|
|
},
|
|
handleView (record) {
|
|
handleView (record) {
|
|
getUnusedInfo({ id: record.id }).then(res => {
|
|
getUnusedInfo({ id: record.id }).then(res => {
|