|
|
|
|
@ -70,58 +70,58 @@
|
|
|
|
|
<el-table-column label="在库数量" align="center" prop="storeNum" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<!-- 当 manageType 为 '编码' 时,使用可点击的 span -->
|
|
|
|
|
<span v-if="scope.row.manageType === '编码'" class="clickText" @click="openRecords(scope.row)">
|
|
|
|
|
|
|
|
|
|
<span class="clickText" @click="openRecords(scope.row)">
|
|
|
|
|
{{ scope.row.storeNum }}
|
|
|
|
|
</span>
|
|
|
|
|
<!-- 否则,直接显示数字 -->
|
|
|
|
|
<span v-else>
|
|
|
|
|
<!-- <span v-else>
|
|
|
|
|
{{ scope.row.storeNum }}
|
|
|
|
|
</span>
|
|
|
|
|
</span> -->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="在用数量" align="center" prop="usNum" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.manageType === '编码'" class="clickText" @click="openUserRecords(scope.row)">
|
|
|
|
|
<span class="clickText" @click="openUserRecords(scope.row)">
|
|
|
|
|
{{ scope.row.usNum }}
|
|
|
|
|
</span>
|
|
|
|
|
<!-- 否则,直接显示数字 -->
|
|
|
|
|
<span v-else>
|
|
|
|
|
<!-- <span v-else>
|
|
|
|
|
{{ scope.row.usNum }}
|
|
|
|
|
</span>
|
|
|
|
|
</span> -->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="在修数量" align="center" prop="repairNum" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.manageType === '编码'" class="clickText" @click="openRepairRecords(scope.row)">
|
|
|
|
|
<span class="clickText" @click="openRepairRecords(scope.row)">
|
|
|
|
|
{{ scope.row.repairNum }}
|
|
|
|
|
</span>
|
|
|
|
|
<!-- 否则,直接显示数字 -->
|
|
|
|
|
<span v-else>
|
|
|
|
|
<!-- <span v-else>
|
|
|
|
|
{{ scope.row.repairNum }}
|
|
|
|
|
</span>
|
|
|
|
|
</span> -->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="新购待入库" align="center" prop="inputNum" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.manageType === '编码'" class="clickText" @click="openPurchaseRecords(scope.row)">
|
|
|
|
|
<span class="clickText" @click="openPurchaseRecords(scope.row)">
|
|
|
|
|
{{ scope.row.inputNum }}
|
|
|
|
|
</span>
|
|
|
|
|
<!-- 否则,直接显示数字 -->
|
|
|
|
|
<span v-else>
|
|
|
|
|
<!-- <span v-else>
|
|
|
|
|
{{ scope.row.inputNum }}
|
|
|
|
|
</span>
|
|
|
|
|
</span> -->
|
|
|
|
|
<!-- <span class="clickText" @click="openPurchaseRecords(scope.row)">{{ scope.row.inputNum }}</span> -->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="修试后待入库" align="center" prop="repairInputNum" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.manageType === '编码'" class="clickText" @click="openTestedRecords(scope.row)">
|
|
|
|
|
<span class="clickText" @click="openTestedRecords(scope.row)">
|
|
|
|
|
{{ scope.row.repairInputNum }}
|
|
|
|
|
</span>
|
|
|
|
|
<!-- 否则,直接显示数字 -->
|
|
|
|
|
<span v-else>
|
|
|
|
|
<!-- <span v-else>
|
|
|
|
|
{{ scope.row.repairInputNum }}
|
|
|
|
|
</span>
|
|
|
|
|
</span> -->
|
|
|
|
|
<!-- <span class="clickText" @click="openTestedRecords(scope.row)">{{ scope.row.repairInputNum }}</span> -->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@ -163,19 +163,27 @@
|
|
|
|
|
@click="handleDialogQuery"
|
|
|
|
|
>查询</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleDialogStoreExport"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="dialogList">
|
|
|
|
|
<el-table-column label="序号" align="center" width="80" type="index" :index="indexContinuation(dialogQuery.pageNum, dialogQuery.pageSize)">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="机具名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="入库数量" align="center" prop="storeNum" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="buyPrice" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="设备编码" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="库管员" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="操作人" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="入库时间" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="入库方式" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="库管员" align="center" prop="maKeeper" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="操作人" align="center" prop="inputUser" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="入库时间" align="center" prop="inputTime" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="入库方式" align="center" prop="inputType" :show-overflow-tooltip="true"/>
|
|
|
|
|
</el-table>
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="dialogTotal > 0"
|
|
|
|
|
@ -204,6 +212,13 @@
|
|
|
|
|
@click="handleDialogUseQuery"
|
|
|
|
|
>查询</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleDialogUserExport"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="useRecordList">
|
|
|
|
|
@ -211,13 +226,20 @@
|
|
|
|
|
:index="indexContinuation(dialogUseQuery.pageNum, dialogUseQuery.pageSize)">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="机具名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="在用数量" align="center" prop="usNum" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="buyPrice" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="设备编码" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="库管员" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="操作人" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="出库时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="领料单号" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="库管员" align="center" prop="maKeeper" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="操作人" align="center" prop="creator" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="出库时间" align="center" prop="outTime" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="领料单号" align="center" prop="code" width="180" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span class="clickText" @click="jumpLease(scope.row.code)">
|
|
|
|
|
{{ scope.row.code }}
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
@ -247,6 +269,13 @@
|
|
|
|
|
@click="handleDialogRepairQuery"
|
|
|
|
|
>查询</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleDialogRepairExport"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="repairRecordList">
|
|
|
|
|
@ -254,13 +283,20 @@
|
|
|
|
|
:index="indexContinuation(dialogRepairQuery.pageNum, dialogRepairQuery.pageSize)">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="机具名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="在修数量" align="center" prop="repairNum" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="buyPrice" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="设备编码" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="维修员" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="操作人" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="退料时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="维修单号" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="维修员" align="center" prop="repairer" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="操作人" align="center" prop="creator" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="退料时间" align="center" prop="leaseTime" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="维修单号" align="center" prop="repairCode" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span class="clickText" @click="jumpRepair(scope.row.repairCode)">
|
|
|
|
|
{{ scope.row.repairCode }}
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
@ -271,7 +307,6 @@
|
|
|
|
|
@pagination="getRepairRecords"
|
|
|
|
|
/>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 新购待入库设备弹窗-->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="openPurchaseRecord" width="1200px" append-to-body>
|
|
|
|
|
<el-form :model="dialogPurchaseQuery" ref="dialogPurchaseQuery" size="small" :inline="true" label-width="80px">
|
|
|
|
|
@ -291,6 +326,13 @@
|
|
|
|
|
@click="handleDialogPurchaseQuery"
|
|
|
|
|
>查询</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleDialogPurchaseExport"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="purchaseRecordList">
|
|
|
|
|
@ -298,13 +340,20 @@
|
|
|
|
|
:index="indexContinuation(dialogPurchaseQuery.pageNum, dialogPurchaseQuery.pageSize)">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="机具名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="新购待入库" align="center" prop="inputNum" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="buyPrice" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="设备编码" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="库管员" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="库管员" align="center" prop="maKeeper" :show-overflow-tooltip="true"/>
|
|
|
|
|
<!-- <el-table-column label="操作人" align="center" prop="" :show-overflow-tooltip="true"/> -->
|
|
|
|
|
<el-table-column label="验收完成时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="新购待入库单号" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="验收完成时间" align="center" prop="checkTime" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="新购待入库单号" align="center" prop="code" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span class="clickText" @click="jumpInput(scope.row.code)">
|
|
|
|
|
{{ scope.row.code }}
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
@ -315,7 +364,7 @@
|
|
|
|
|
@pagination="getPurchaseRecords"
|
|
|
|
|
/>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 新购待入库设备弹窗-->
|
|
|
|
|
<!-- 修试后待入库设备弹窗-->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="openTestedRecord" width="1200px" append-to-body>
|
|
|
|
|
<el-form :model="dialogTestedQuery" ref="dialogTestedQuery" size="small" :inline="true" label-width="80px">
|
|
|
|
|
<el-form-item label="关键字" prop="keyWord">
|
|
|
|
|
@ -334,6 +383,13 @@
|
|
|
|
|
@click="handleDialogTestedQuery"
|
|
|
|
|
>查询</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleDialogTestedExport"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="testedRecordList">
|
|
|
|
|
@ -341,13 +397,20 @@
|
|
|
|
|
:index="indexContinuation(dialogTestedQuery.pageNum, dialogTestedQuery.pageSize)">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="机具名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="modelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="修试待入库" align="center" prop="repairInputNum" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="原值(元)" align="center" prop="buyPrice" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="设备编码" align="center" prop="maCode" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="库管员" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="维修员" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="修试提交时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="修试待入库单号" align="center" prop="" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="库管员" align="center" prop="maKeeper" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="维修员" align="center" prop="repairer" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="修试提交时间" align="center" prop="repairInputTime" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="修试待入库单号" align="center" prop="inputCode" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span class="clickText" @click="jumpRepairInput(scope.row.inputCode)">
|
|
|
|
|
{{ scope.row.inputCode }}
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
@ -372,7 +435,8 @@
|
|
|
|
|
// } from '@/api/stquery/deviceStatusRecord'
|
|
|
|
|
// import {getRecords} from "@/api/claimAndRefund/secondStore";
|
|
|
|
|
import {
|
|
|
|
|
getRetainedEquipmentListApi, getRetainedEquipmentListNoPageApi
|
|
|
|
|
getRetainedEquipmentListApi, getRetainedEquipmentListNoPageApi,getStorageInfoListApi,getUserRecordListApi,getRepairRecordListApi,
|
|
|
|
|
getPurchaseRecordListApi,getRepairInputListApi
|
|
|
|
|
} from '@/api/stquery/stquery';
|
|
|
|
|
export default {
|
|
|
|
|
name: '',
|
|
|
|
|
@ -548,16 +612,33 @@ export default {
|
|
|
|
|
`综合查询_保有设备总量_${new Date().getTime()}.xlsx`,
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
//跳转领料
|
|
|
|
|
jumpLease(code){
|
|
|
|
|
this.$router.push({ path: "/lease/outBound", query: {'code':code} });
|
|
|
|
|
},
|
|
|
|
|
//跳转维修
|
|
|
|
|
jumpRepair(code){
|
|
|
|
|
this.$router.push({ path: "/repair/repairManage", query: {'code':code} });
|
|
|
|
|
},
|
|
|
|
|
// 跳转新购待入库
|
|
|
|
|
jumpInput(code){
|
|
|
|
|
this.$router.push({ path: "/purchase/goodsEntry", query: {'code':code} });
|
|
|
|
|
},
|
|
|
|
|
// 跳转修试后入库
|
|
|
|
|
jumpRepairInput(code){
|
|
|
|
|
this.$router.push({ path: "/repair/testedInBound", query: {'code':code} });
|
|
|
|
|
},
|
|
|
|
|
// ------------------
|
|
|
|
|
//查看在库编码数据
|
|
|
|
|
openRecords(row) {
|
|
|
|
|
this.openRecord = true
|
|
|
|
|
this.dialogQuery.keyWord = ""
|
|
|
|
|
this.dialogQuery.typeId = row.typeId;
|
|
|
|
|
this.getStoreCodeList()
|
|
|
|
|
},
|
|
|
|
|
/** 查询在库编码列表 */
|
|
|
|
|
getStoreCodeList() {
|
|
|
|
|
getUseMaCode(this.dialogQuery).then((response) => {
|
|
|
|
|
getStorageInfoListApi(this.dialogQuery).then((response) => {
|
|
|
|
|
this.dialogList = response.data.rows
|
|
|
|
|
this.dialogTotal = response.data.total
|
|
|
|
|
})
|
|
|
|
|
@ -567,17 +648,24 @@ export default {
|
|
|
|
|
this.queryParams.pageNum = 1
|
|
|
|
|
this.getStoreCodeList()
|
|
|
|
|
},
|
|
|
|
|
handleDialogStoreExport() {
|
|
|
|
|
this.download(
|
|
|
|
|
'material/complex_query/exportStorageInfoList',
|
|
|
|
|
{ ...this.dialogTestedQuery},
|
|
|
|
|
`综合查询_在库设备_${new Date().getTime()}.xlsx`,
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
// ------------------
|
|
|
|
|
//查看在用设备
|
|
|
|
|
openUserRecords(row) {
|
|
|
|
|
this.openUseRecord = true
|
|
|
|
|
// this.dialogUseQuery.typeId= row.typeId
|
|
|
|
|
this.dialogUseQuery.typeId= row.typeId
|
|
|
|
|
this.dialogUseQuery.keyWord = "";
|
|
|
|
|
this.getUserRecords()
|
|
|
|
|
},
|
|
|
|
|
/** 查询在用设备列表 */
|
|
|
|
|
getUserRecords() {
|
|
|
|
|
getUserRecords(this.dialogUseQuery).then((response) => {
|
|
|
|
|
getUserRecordListApi(this.dialogUseQuery).then((response) => {
|
|
|
|
|
this.useRecordList = response.data.rows
|
|
|
|
|
this.dialogUserTotal = response.data.total
|
|
|
|
|
})
|
|
|
|
|
@ -587,18 +675,25 @@ export default {
|
|
|
|
|
this.dialogUseQuery.pageNum = 1
|
|
|
|
|
this.getUserRecords()
|
|
|
|
|
},
|
|
|
|
|
handleDialogUserExport() {
|
|
|
|
|
this.download(
|
|
|
|
|
'material/complex_query/exportUserRecordList',
|
|
|
|
|
{ ...this.dialogTestedQuery},
|
|
|
|
|
`综合查询_在用设备_${new Date().getTime()}.xlsx`,
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
// ------------------
|
|
|
|
|
//查看在修设备
|
|
|
|
|
openRepairRecords(row) {
|
|
|
|
|
this.openRepairRecord = true
|
|
|
|
|
// this.dialogUseQuery.typeId= row.typeId
|
|
|
|
|
this.dialogRepairQuery.typeId= row.typeId
|
|
|
|
|
this.dialogRepairQuery.pageNum = 1;
|
|
|
|
|
this.dialogRepairQuery.keyWord = "";
|
|
|
|
|
this.getRepairRecords()
|
|
|
|
|
},
|
|
|
|
|
/** 查询在修设备列表 */
|
|
|
|
|
getRepairRecords() {
|
|
|
|
|
getRepairRecordApi(this.dialogRepairQuery).then((response) => {
|
|
|
|
|
getRepairRecordListApi(this.dialogRepairQuery).then((response) => {
|
|
|
|
|
this.repairRecordList = response.data.rows
|
|
|
|
|
this.dialogRepairTotal = response.data.total
|
|
|
|
|
})
|
|
|
|
|
@ -608,18 +703,25 @@ export default {
|
|
|
|
|
this.dialogRepairQuery.pageNum = 1
|
|
|
|
|
this.getRepairRecords()
|
|
|
|
|
},
|
|
|
|
|
handleDialogRepairExport() {
|
|
|
|
|
this.download(
|
|
|
|
|
'material/complex_query/exportRepairRecordList',
|
|
|
|
|
{ ...this.dialogTestedQuery},
|
|
|
|
|
`综合查询_在修设备_${new Date().getTime()}.xlsx`,
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
// ------------------
|
|
|
|
|
//查看新购入库设备
|
|
|
|
|
openPurchaseRecords(row) {
|
|
|
|
|
this.openPurchaseRecord = true
|
|
|
|
|
// this.dialogUseQuery.typeId= row.typeId
|
|
|
|
|
this.dialogPurchaseQuery.typeId= row.typeId
|
|
|
|
|
this.dialogPurchaseQuery.pageNum = 1;
|
|
|
|
|
this.dialogPurchaseQuery.keyWord = "";
|
|
|
|
|
this.getPurchaseRecords()
|
|
|
|
|
},
|
|
|
|
|
/** 查询新购入库设备列表 */
|
|
|
|
|
getPurchaseRecords() {
|
|
|
|
|
getPurchaseRecordApi(this.dialogPurchaseQuery).then((response) => {
|
|
|
|
|
getPurchaseRecordListApi(this.dialogPurchaseQuery).then((response) => {
|
|
|
|
|
this.purchaseRecordList = response.data.rows
|
|
|
|
|
this.dialogPurchaseTotal = response.data.total
|
|
|
|
|
})
|
|
|
|
|
@ -629,18 +731,25 @@ export default {
|
|
|
|
|
this.dialogPurchaseQuery.pageNum = 1
|
|
|
|
|
this.getPurchaseRecords()
|
|
|
|
|
},
|
|
|
|
|
handleDialogPurchaseExport() {
|
|
|
|
|
this.download(
|
|
|
|
|
'material/complex_query/exportPurchaseRecordList',
|
|
|
|
|
{ ...this.dialogTestedQuery},
|
|
|
|
|
`综合查询_新购入库设备_${new Date().getTime()}.xlsx`,
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
// ------------------
|
|
|
|
|
//查看修试入库设备
|
|
|
|
|
openTestedRecords(row) {
|
|
|
|
|
this.openTestedRecord = true
|
|
|
|
|
// this.dialogUseQuery.typeId= row.typeId
|
|
|
|
|
this.dialogTestedQuery.typeId= row.typeId
|
|
|
|
|
this.dialogTestedQuery.pageNum = 1;
|
|
|
|
|
this.dialogTestedQuery.keyWord = "";
|
|
|
|
|
this.getTestedRecords()
|
|
|
|
|
},
|
|
|
|
|
/** 查询修试入库设备列表 */
|
|
|
|
|
getTestedRecords() {
|
|
|
|
|
getTestedRecordApi(this.dialogTestedQuery).then((response) => {
|
|
|
|
|
getRepairInputListApi(this.dialogTestedQuery).then((response) => {
|
|
|
|
|
this.testedRecordList = response.data.rows
|
|
|
|
|
this.dialogTestedTotal = response.data.total
|
|
|
|
|
})
|
|
|
|
|
@ -650,7 +759,13 @@ export default {
|
|
|
|
|
this.dialogTestedQuery.pageNum = 1
|
|
|
|
|
this.getTestedRecords()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleDialogTestedExport() {
|
|
|
|
|
this.download(
|
|
|
|
|
'material/complex_query/exportRepairInputList',
|
|
|
|
|
{ ...this.dialogTestedQuery},
|
|
|
|
|
`综合查询_修试后入库设备_${new Date().getTime()}.xlsx`,
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|