diff --git a/src/views/inventory/DeviceRepairOrderAudit.vue b/src/views/inventory/DeviceRepairOrderAudit.vue index 7fd04136..81b2e2c5 100644 --- a/src/views/inventory/DeviceRepairOrderAudit.vue +++ b/src/views/inventory/DeviceRepairOrderAudit.vue @@ -82,7 +82,7 @@ + border @current-change="handleDetail"> @@ -108,16 +108,16 @@ - - + + - - - {{ scope.row.uploadImage }} - + + + + - - + + {{ statusMap[scope.row.status] }} @@ -151,6 +151,26 @@ > + + + + + + + + 详情 + + + + + + + - + + + + @@ -179,6 +212,10 @@ import {getRepairList, updateStatus, deleteRepairOrder} from "@/api/inventory/de import DeviceRepairOrderAduitModify from "@/views/inventory/DeviceRepairOrderAuditModify"; import {previewImage} from "@/api/purchase/supCompany"; import ElImageViewer from "element-ui/packages/image/src/image-viewer"; +import {selectDeviceInspectPlanDelect} from "@/api/inventory/deviceInspectPlanDelect"; +import {filterByorderIdFk} from "@/api/inventory/deviceRepairOrderDetail"; +import DeviceInspectPlanProjectSet from "@/views/inventory/DeviceInspectProjectSelect"; + export default { name: "DeviceRepairOrderAudit", @@ -198,6 +235,9 @@ export default { list: [], total: 0, deptList: [], + delectList:[], + detailQuery:{}, + deviceProjectSelectVisible:false, invList: [], loading: false, formVisible: false, @@ -242,6 +282,37 @@ export default { this.filterQuery.page = 1; this.getList(); }, + handleDetail(row){ + this.selectDeviceInspectPlanDelect({orderIdFk:row.orderId}) + }, + selectDeviceInspectPlanDelect(obj) { + filterByorderIdFk(obj).then((res) => { + this.loading = false; + if (res.code === 20000) { + this.delectList = res.data || []; + } else { + this.$message.error(res.message); + this.delectList = []; + } + }).catch((error) => { + this.loading = false; + this.$message.error(error.message); + this.delectList = []; + }) + }, + + datailSelect(row){ + this.detailQuery = row + this.deviceProjectSelectVisible = true + }, + + + detailCloseDialogc() { + this.formVisible = false; + this.deviceProjectSelectVisible = false + this.selectDeviceInspectPlanDelect({orderIdFk:this.orderIds}) + this.getList() + }, getList() { this.loading = true; getRepairList(this.filterQuery).then((res) => { @@ -389,7 +460,7 @@ export default { }, }, - components: {DeviceRepairOrderAduitModify,ElImageViewer}, + components: {DeviceRepairOrderAduitModify,ElImageViewer,DeviceInspectPlanProjectSet}, mounted() { document.body.ondrop = function (event) { event.preventDefault(); diff --git a/src/views/inventory/DeviceRepairOrderAuditModify.vue b/src/views/inventory/DeviceRepairOrderAuditModify.vue index d2cfe852..4cf866d0 100644 --- a/src/views/inventory/DeviceRepairOrderAuditModify.vue +++ b/src/views/inventory/DeviceRepairOrderAuditModify.vue @@ -102,48 +102,48 @@ + + + + + + + + + + + + + + - - - - - - - - + - - - - --> + + + + + + - > - - {{ item.employeeName }} - - - - + + + + + + + + + + + - + @@ -179,6 +179,14 @@ + + + + + + + + @@ -247,6 +255,7 @@ import {saveDeviceRepairOrder, updateStatus} from "@/api/inventory/deviceRepairO import {getDeptDeviceList} from "@/api/inventory/deptDevice"; import store from "@/store"; import {warehouseUserList} from "@/api/system/invWarehouse" +import {filterByorderIdFk} from "@/api/inventory/deviceRepairOrderDetail"; export default { @@ -275,6 +284,7 @@ export default { limit: 10 }, deviceList: [], + detailList:[], deviceTotal: 0, deptName: null, invName: null, @@ -285,9 +295,9 @@ export default { headers: {}, fileList: [], userList:[], - formRules:{ - repariName:[{required: true, message:"请选择维修人", trigger: 'blur'}] - } + // formRules:{ + // repariName:[{required: true, message:"请选择维修人", trigger: 'blur'}] + // } }; }, methods: { @@ -402,10 +412,10 @@ export default { }, approved(){ - if(isBlank(this.repairOrder.repariName)){ - this.$message.warning("请选择维修人!") - return; - } + // if(isBlank(this.repairOrder.repariName)){ + // this.$message.warning("请选择维修人!") + // return; + // } this.$confirm('是否通过审核?', '提示', { confirmButtonText: '确定', @@ -465,7 +475,21 @@ export default { }); }); }, - + selectDevicerepairOrderDelect(obj) { + filterByorderIdFk(obj).then((res) => { + this.loading = false; + if (res.code === 20000) { + this.detailList = res.data || []; + } else { + this.$message.error(res.message); + this.detailList = []; + } + }).catch((error) => { + this.loading = false; + this.$message.error(error.message); + this.detailList = []; + }) + }, // uploadHandlePreview(file) {}, // uploadHandleRemove(file, fileList) { @@ -530,6 +554,9 @@ export default { }, created() { + if(this.repairOrder.id !=null){ + this.selectDevicerepairOrderDelect({orderIdFk: this.repairOrder.orderId}) + } this.uploadUrl = this.BASE_URL + "/udiwms/upload/register/file"; this.headers = { ADMIN_ID: store.getters.adminId, diff --git a/src/views/inventory/DeviceRepairOrderCompleted.vue b/src/views/inventory/DeviceRepairOrderCompleted.vue index 58f473c2..d672164b 100644 --- a/src/views/inventory/DeviceRepairOrderCompleted.vue +++ b/src/views/inventory/DeviceRepairOrderCompleted.vue @@ -99,7 +99,7 @@ + border @current-change="handleDetail"> @@ -111,15 +111,29 @@ - - - - - + - {{ scope.row.repariImage }} + + {{ repairType[scope.row.repairType] }} + + + + + {{ urgencyType[scope.row.urgencyType] }} + + + + + + + + + + + + @@ -147,6 +161,8 @@ + + + + + + + + + + 详情 + + + + + + + + + + @@ -184,6 +233,9 @@ import {warehouseUserList} from "@/api/system/invWarehouse"; import {previewImage} from "@/api/purchase/supCompany"; import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import DeviceRepairOrderDetails from "@/views/inventory/DeviceRepairOrderDetails"; +import {filterByorderIdFk} from "@/api/inventory/deviceRepairOrderDetail"; +import DeviceInspectPlanProjectSet from "@/views/inventory/DeviceInspectProjectSelect"; + export default { @@ -204,6 +256,9 @@ export default { list: [], total: 0, deptList: [], + delectList:[], + deviceProjectSelectVisible:false, + detailQuery:{}, invList: [], loading: false, formVisible: false, @@ -216,6 +271,15 @@ export default { 4: "维修中", 5: "已处理" }, + repairType:{ + 1:"自行维修", + 2:"外部维修" + }, + urgencyType:{ + 1:"正常", + 2:"较急", + 3:"特急" + }, formName: null, showSearch: true, userList: [], @@ -243,6 +307,37 @@ export default { this.filterQuery.page = 1; this.getList(); }, + + datailSelect(row){ + this.detailQuery = row + this.deviceProjectSelectVisible = true + }, + + detailCloseDialogc() { + this.formVisible = false; + this.deviceProjectSelectVisible = false + this.selectDeviceInspectPlanDelect({orderIdFk:this.orderIds}) + this.getList() + }, + handleDetail(row){ + this.selectDeviceInspectPlanDelect({orderIdFk:row.orderId}) + }, + selectDeviceInspectPlanDelect(obj) { + filterByorderIdFk(obj).then((res) => { + this.loading = false; + if (res.code === 20000) { + this.delectList = res.data || []; + } else { + this.$message.error(res.message); + this.delectList = []; + } + }).catch((error) => { + this.loading = false; + this.$message.error(error.message); + this.delectList = []; + }) + }, + getList() { this.loading = true; getRepairList(this.filterQuery).then((res) => { @@ -357,7 +452,7 @@ export default { }, - components: {DeviceRepairOrderDetails, ElImageViewer}, + components: {DeviceRepairOrderDetails, ElImageViewer,DeviceInspectPlanProjectSet}, mounted() { document.body.ondrop = function (event) { event.preventDefault(); diff --git a/src/views/inventory/DeviceRepairOrderDetails.vue b/src/views/inventory/DeviceRepairOrderDetails.vue index fe5f283c..598170c1 100644 --- a/src/views/inventory/DeviceRepairOrderDetails.vue +++ b/src/views/inventory/DeviceRepairOrderDetails.vue @@ -96,91 +96,92 @@ - - - - - - - - - - - - - - - {{ item.employeeName }} - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + @@ -190,6 +191,29 @@ + + + + + + + + + + + + + @@ -202,6 +226,7 @@ import {updateStatusAndTime, updateStatusAndImg} from "@/api/inventory/deviceRep import {getDeptDeviceList} from "@/api/inventory/deptDevice"; import store from "@/store"; import {warehouseUserList} from "@/api/system/invWarehouse" +import {filterByorderIdFk} from "@/api/inventory/deviceRepairOrderDetail"; export default { @@ -232,6 +257,9 @@ export default { limit: 10 }, deviceList: [], + detailList:[], + detailQuery:{}, + deviceProjectSelectVisible:false, deviceTotal: 0, deptName: null, invName: null, @@ -378,11 +406,28 @@ export default { }); }, + selectDevicerepairOrderDelect(obj) { + filterByorderIdFk(obj).then((res) => { + this.loading = false; + if (res.code === 20000) { + this.detailList = res.data || []; + } else { + this.$message.error(res.message); + this.detailList = []; + } + }).catch((error) => { + this.loading = false; + this.$message.error(error.message); + this.detailList = []; + }) + }, }, created() { - + if(this.repairOrder.id !=null){ + this.selectDevicerepairOrderDelect({orderIdFk: this.repairOrder.orderId}) + } this.getDeptList(); this.getuserList(); },