diff --git a/src/api/device/repairOrder.js b/src/api/device/repairOrder.js
index de607b47..71f2c809 100644
--- a/src/api/device/repairOrder.js
+++ b/src/api/device/repairOrder.js
@@ -79,4 +79,12 @@ export function queryEquFaultTypeTree(query) {
});
}
+// 维修工单检验
+export function subInspect(data) {
+ return request({
+ url: '/device/repairOrder/subInspect',
+ method: 'post',
+ data: data
+ });
+ }
diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue
index ab19ecf9..80ccf891 100644
--- a/src/views/device/repairOrder/index.vue
+++ b/src/views/device/repairOrder/index.vue
@@ -224,6 +224,17 @@
>委外申请
+
+ 结果检验
+
+
+
+
+ {{ scope.row.resultInspect == '1' ? "通过" :scope.row.resultInspect == '0' ? "不通过" :"待检验" }}
+
+
+
+
+ 待检验
+ 未通过
+ 通过
+
+
+
item.workId);
+ this.orderCodes = selection.map((item) => item.workCode);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -2327,6 +2367,37 @@ export default {
}
});
},
+ // 点击结果检验按钮
+ clickInspect() {
+ if (this.ids.length == 0 || this.ids == null) {
+ this.$message({
+ message: "请勾选工单!",
+ type: "warning",
+ });
+ return;
+ }
+ //需要加一个结果检验
+ this.inspectDialog = true;
+ this.inspect = "1";
+ },
+
+ // 提交检验信息
+ subInspect() {
+ const data = {
+ ids: this.ids,
+ inspect: this.inspect,
+ orderCodes: this.orderCodes,
+ };
+
+ subInspect(data).then((response) => {
+ this.getList();
+ this.inspectDialog = false;
+ this.$message({
+ message: "提交成功!",
+ type: "success",
+ });
+ });
+ },
//设备选择
handleSelectEquipment() {
this.$refs.itemSelect.showFlag = true;