diff --git a/src/api/repair/repair.js b/src/api/repair/repair.js index 293c06ee..0407887a 100644 --- a/src/api/repair/repair.js +++ b/src/api/repair/repair.js @@ -22,12 +22,13 @@ export function getAppRepairMaTypeList(query) { //获取配件类型树 export function partTypeTreeList(query) { return request({ - url: '/material/ma_part_type/list', - method: 'get', - params: query, + url: '/material/ma_part_type/list', + method: 'get', + params: query, }) } + // //维修驳回至退料 // export function rejectRepair(data) { // return request({ @@ -44,3 +45,12 @@ export function rejectRepair(taskIds) { }) } +// 维修保存 +export function saveCodeList(data) { + return request({ + url: '/material/repair/batchRepairApply', + method: 'post', + data: data, + }) +} + diff --git a/src/views/material/repair/repairManage/component/edit.vue b/src/views/material/repair/repairManage/component/edit.vue index 15cddcb2..c750be97 100644 --- a/src/views/material/repair/repairManage/component/edit.vue +++ b/src/views/material/repair/repairManage/component/edit.vue @@ -1,896 +1,1798 @@ @@ -109,6 +110,230 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> + + + +
+ +
+ 机具设备维修任务单 +
+
+
+ 日期: +
+
+ 单号: +
+
+ 承修单位: +
+ +
+ 操作人: +
+ +
+ 项目名称: +
+ +
+ 委托单位: +
+ +
+ 验收人: +
+
+ + + + + + + + + + + + +
+
总计
+
报修数量
+
修复数量
+
报废数量
+
维修费小计
+
+
+
+
+ 维修内容 +
+
+
+ + + + + + + +
+
合计
+
合计金额
+
+ +
+
报废图片
+
试验记录
+
+ +
+
+
+ 负责人: +
+
+ +
+
+ 完成日期: +
+
+ +
+ +
+
+
+ 维修人员: +
+
+ +
+
+ 试验人员: +
+
+ +
+
+ 检验人员: +
+
+
+
+
+ + +
@@ -120,6 +345,8 @@ import { } from '@/api/repair/repair.js' import { getInfo, h } from '@/api/login' + + import vueEasyPrint from "vue-easy-print"; export default { name: '', dicts: ['back_task_status'], @@ -163,6 +390,8 @@ export default { companyId: '', unitList: [], proList: [], + //维修单显示 + openPrint:false, } }, created() { @@ -170,6 +399,7 @@ export default { // this.initSelectData() // this.InitIGetInfo() }, + components: { vueEasyPrint }, methods: { //人员信息 InitIGetInfo() { @@ -249,6 +479,12 @@ export default { `维修任务单_${new Date().getTime()}.xlsx`, ) }, + //查看维修任务单 + handlePrint(row) { + this.openPrint = true; + this.title = "机具设备维修任务单"; + }, + }, } @@ -300,4 +536,29 @@ export default { justify-content: flex-end; align-items: center; } +.tabelAll { + display: flex; + border: 1px solid #dfe6ec; + margin-bottom: 1px; + width:1000px; + border-bottom: 1px solid #dfe6ec; + border-top: none; +} +.columnAll { + flex: 1; + padding: 5px; + border-left: 1px solid #dfe6ec; + text-align: center; + width:20%; +} +.columnAllNum { + padding: 5px; + text-align: center; + width:50%; + border-left: none; +} +/* 最后一列无右边框 */ +.tabelAll .column:last-child { + border-right: none; +}