diff --git a/src/views/material/stquery/deviceStatusRecord.vue b/src/views/material/stquery/deviceStatusRecord.vue index 530adf9b..954ebfee 100644 --- a/src/views/material/stquery/deviceStatusRecord.vue +++ b/src/views/material/stquery/deviceStatusRecord.vue @@ -1,6 +1,6 @@ - - - + + + - + - - + + + /> - + 查询 - - + - + 查询 - - - + + @@ -252,7 +252,7 @@ - + 查询 - - - + + @@ -295,7 +295,7 @@ {{ scope.row.repairCode }} - + @@ -309,7 +309,7 @@ - + 查询 - - - - + + + @@ -352,7 +352,7 @@ {{ scope.row.code }} - + @@ -363,10 +363,10 @@ :limit.sync="dialogPurchaseQuery.pageSize" @pagination="getPurchaseRecords" /> - + - + 查询 - - - - + + + @@ -409,7 +409,7 @@ {{ scope.row.inputCode }} - + @@ -420,8 +420,8 @@ :limit.sync="dialogTestedQuery.pageSize" @pagination="getTestedRecords" /> - - + + @@ -458,13 +458,13 @@ export default { // 总条数 total: 0, // 主表格数据 - tableList: [], + tableList: [], // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 10, keyWord: null, - typeName: null, //物资名称 + typeName: null, //物资名称 typeModelName: null //规格型号 }, @@ -474,7 +474,7 @@ export default { dialogQuery: { pageNum: 1, pageSize: 10, - keyWord: undefined, + keyWord: undefined, }, dialogTotal: 0, //在用弹窗 @@ -482,8 +482,8 @@ export default { dialogUseQuery: { pageNum: 1, pageSize: 10, - keyWord: undefined, - }, + keyWord: undefined, + }, useRecordList: [], //在用设备列表 dialogUserTotal: 0, //在修弹窗 @@ -491,8 +491,8 @@ export default { dialogRepairQuery: { pageNum: 1, pageSize: 10, - keyWord: undefined, - }, + keyWord: undefined, + }, repairRecordList: [], //在修设备列表 dialogRepairTotal: 0, @@ -501,8 +501,8 @@ export default { dialogPurchaseQuery: { pageNum: 1, pageSize: 10, - keyWord: undefined, - }, + keyWord: undefined, + }, purchaseRecordList: [], //新购待入库设备列表 dialogPurchaseTotal: 0, @@ -511,11 +511,11 @@ export default { dialogTestedQuery: { pageNum: 1, pageSize: 10, - keyWord: undefined, - }, + keyWord: undefined, + }, testedRecordList: [], //修试待入库设备列表 dialogTestedTotal: 0, - + } }, created() { @@ -523,18 +523,18 @@ export default { }, methods: { // 获取列表 - async getList() { + async getList() { this.loading = true - const params = { + const params = { keyWord: this.queryParams.keyWord, typeName: this.queryParams.typeName, - typeModelName: this.queryParams.typeModelName, + typeModelName: this.queryParams.typeModelName, pageSize: this.queryParams.pageSize, pageNum: this.queryParams.pageNum } const res = await getRetainedEquipmentListApi(params) if(res.data.rows.length>0){ - this.tableList = res.data.rows; + this.tableList = res.data.rows; }else{ this.tableList=[] } @@ -543,7 +543,7 @@ export default { let param = { keyWord: this.queryParams.keyWord, typeName: this.queryParams.typeName, - typeModelName: this.queryParams.typeModelName, + typeModelName: this.queryParams.typeModelName, } const response = await getRetainedEquipmentListNoPageApi(param) let obj = { @@ -556,7 +556,7 @@ export default { allNum: response.data.allNum||0, totalPrice: response.data.totalPrice||0, fiveReplacementRate: response.data.fiveReplacementRate||0, - tenReplacementRate: response.data.tenReplacementRate||0, + tenReplacementRate: response.data.tenReplacementRate||0, tenPlusReplacementRate: response.data.tenPlusReplacementRate||0, manageType:response.data.manageType||"", } @@ -571,10 +571,10 @@ export default { return "合计" }else{ return number - } + } }, - // 合并单元格 rowIndex=行数 columnIndex=列数 - // 这里是合并table的除表头外的第一行的第二列 + 除表头外的第二行的第二列 + // 合并单元格 rowIndex=行数 columnIndex=列数 + // 这里是合并table的除表头外的第一行的第二列 + 除表头外的第二行的第二列 // 注意列数和行数从 0 开始 objectSpanMethod ({ row, column, rowIndex, columnIndex }) { if (rowIndex === 0 && columnIndex == 0) { @@ -587,8 +587,8 @@ export default { // 否则如果是 第二行 的 第二列 那么隐藏原有第二行 的 第二列的数据使他隐藏 else if (rowIndex === 0 && columnIndex < 7) { return { - rowspan: 0, - colspan: 0 + rowspan: 0, + colspan: 0 } } }, @@ -596,12 +596,12 @@ export default { handleQuery() { this.queryParams.pageNum = 1 this.getList() - }, + }, /** 重置按钮操作 */ - resetQuery() { + resetQuery() { this.resetForm('queryForm') this.handleQuery() - }, + }, /** 导出按钮操作 */ handleExport() { this.download( @@ -613,7 +613,7 @@ export default { ) }, //跳转领料 - jumpLease(code){ + jumpLease(code){ this.$router.push({ path: "/lease/outBound", query: {'code':code} }); }, //跳转维修 @@ -626,7 +626,7 @@ export default { }, // 跳转修试后入库 jumpRepairInput(code){ - this.$router.push({ path: "/repair/testedInBound", query: {'code':code} }); + this.$router.push({ path: "/repair/testedInBound", query: {'code':code} }); }, // ------------------ //查看在库编码数据 @@ -635,7 +635,7 @@ export default { this.dialogQuery.keyWord = "" this.dialogQuery.typeId = row.typeId; this.getStoreCodeList() - }, + }, /** 查询在库编码列表 */ getStoreCodeList() { getStorageInfoListApi(this.dialogQuery).then((response) => { @@ -674,7 +674,7 @@ export default { handleDialogUseQuery() { this.dialogUseQuery.pageNum = 1 this.getUserRecords() - }, + }, handleDialogUserExport() { this.download( 'material/complex_query/exportUserRecordList',