维修管理

This commit is contained in:
jjLv 2024-11-25 10:46:48 +08:00
parent 4dbfef45b7
commit d43507f7f0
6 changed files with 59 additions and 27 deletions

View File

@ -84,9 +84,9 @@ export function auditPass(data) {
}
//获取维修任务单信息
export function getRepairInfo(taskId) {
export function getRepairDocumentInfo(taskId) {
return request({
url: '/material/repair/getRepairTicketInfo/?taskId=' + taskId,
url: '/material/repair/getRepairDocumentInfo/?taskId=' + taskId,
method: 'get',
})
}

View File

@ -0,0 +1,31 @@
import request from '@/utils/request'
// 查询修试后入库的列表
export function getListTested(query) {
return request({
url: '/material/repair/getRepairedList',
method: 'get',
params: query
})
}
// // 查询修试审核详细列表
// export function getAuditInfo(query) {
// return request({
// url: '/material/repair_audit_details/getRepairAuditList',
// method: 'get',
// params: query
// })
// }
// //修试审核二级-通过,驳回
// export function auditPass(data) {
// return request({
// url: '/material/repair_audit_details',
// method: 'put',
// data: data,
// })
// }

View File

@ -224,18 +224,21 @@
<el-button
size="mini"
type="warning"
v-if="scope.row.status=='0'"
@click="openInnerDialog(scope.row)"
>内部维修</el-button
>
<el-button
size="mini"
type="warning"
v-if="scope.row.status=='0'"
@click="openBackDialog(scope.row)"
>返场维修</el-button
>
<el-button
size="mini"
type="danger"
v-if="scope.row.status=='0'"
@click="openScrapDialog(scope.row)"
>待报废</el-button
>
@ -1366,7 +1369,7 @@ export default {
this.partTableList = [];
this.typeTemp = row.type;
this.typeNameTemp = row.typeName;
this.disrepairNumTemp = row.repairNum - row.repairedNum;
this.disrepairNumTemp = row.typeRepairNum - row.typeRepairedNum;
this.repairRowData = row;
this.repairDeviceList = [];
const params = {};

View File

@ -428,7 +428,7 @@ import {
getRepaiDocumentInfo,
rejectRepair,
sendList,
getRepairInfo,
getRepairDocumentInfo,
} from '@/api/repair/repair.js'
import { getInfo, h } from '@/api/login'
@ -592,9 +592,9 @@ export default {
},
//
async handlePrint(row) {
const res = await getRepairInfo(row.taskId);
const res = await getRepairDocumentInfo(row.taskId);
this.repairTicketlLevelOne = res.data.repairTaskInfo;
this.repairTicketDevice = res.data.repairDeviceArray;
this.repairTicketDevice = res.data.repairDeviceSummaryList;
//
if(this.repairTicketDevice.length>0){
let num1 = 0; //

View File

@ -77,13 +77,13 @@
<el-table-column
label="退料数量"
align="center"
prop="repairNum"
prop="typeRepairNum"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="已修数量"
align="center"
prop="repairedNum"
prop="typeRepairedNum"
show-overflow-tooltip
></el-table-column>
<el-table-column
@ -91,7 +91,8 @@
align="center"
prop="disrepairNum"
show-overflow-tooltip
></el-table-column>
>
</el-table-column>
<el-table-column label="管理模式" align="center" prop="manageType">
<template slot-scope="scope">
<!-- 0编码1数量 -->
@ -173,7 +174,7 @@ export default {
const res = await getAppRepairMaTypeList(param);
this.equipmentList = res.data;
this.equipmentList.forEach((e) => {
e.disrepairNum = Number(e.repairNum) - Number(e.repairedNum);
e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum);
});
},
},

View File

@ -241,12 +241,9 @@
<script>
import {
getListHouse,
getHouseDetail,
editHouse,
addHouse,
delHouse,
} from "@/api/ma/whHouse";
getListTested,
} from "@/api/repair/testedInBound";
import { downloadFile } from "@/utils/download";
export default {
name: "testedInBound",
@ -314,17 +311,17 @@ export default {
/** 查询修试入库列表 */
getList() {
this.loading = true;
// getListTested(this.queryParams).then((response) => {
// this.testedList = response.rows;
// this.total = response.total;
// this.loading = false;
// });
this.testedList = [
{'repairNum':'X20241121001','taskStatus':0},
{'repairNum':'X20241121002','taskStatus':1}
]
this.total = 2;
this.loading = false;
getListTested(this.queryParams).then((response) => {
this.testedList = response.rows;
this.total = response.total;
this.loading = false;
});
// this.testedList = [
// {'repairNum':'X20241121001','taskStatus':0},
// {'repairNum':'X20241121002','taskStatus':1}
// ]
// this.total = 2;
// this.loading = false;
},
/** 搜索按钮操作 */