|
|
|
@ -224,6 +224,17 @@
|
|
|
|
|
>委外申请</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="clickInspect"
|
|
|
|
|
v-hasPermi="['device:repairOrder:inspect']"
|
|
|
|
|
>结果检验
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
@ -277,6 +288,16 @@
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="检验结果"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="resultInspect"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.resultInspect == '1' ? "通过" :scope.row.resultInspect == '0' ? "不通过" :"待检验" }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="报修单号"
|
|
|
|
|
align="center"
|
|
|
|
@ -1225,6 +1246,17 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 结果检验 -->
|
|
|
|
|
<el-dialog title="维修结果检验" :visible.sync="inspectDialog" width="30%">
|
|
|
|
|
<el-radio v-model="inspect" label="2">待检验</el-radio>
|
|
|
|
|
<el-radio v-model="inspect" label="0">未通过</el-radio>
|
|
|
|
|
<el-radio v-model="inspect" label="1">通过</el-radio>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="inspectDialog = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="subInspect">确 定</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 查看维修记录对话框 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="title"
|
|
|
|
@ -1626,6 +1658,7 @@ import {
|
|
|
|
|
applyOutsource,
|
|
|
|
|
writeRepairOrder,
|
|
|
|
|
queryEquFaultTypeTree,
|
|
|
|
|
subInspect,
|
|
|
|
|
} from "@/api/device/repairOrder";
|
|
|
|
|
import { listFaultReason } from "@/api/device/faultReason";
|
|
|
|
|
import { listFaultMeasures } from "@/api/device/faultMeasures";
|
|
|
|
@ -1723,6 +1756,12 @@ export default {
|
|
|
|
|
openWrite: false,
|
|
|
|
|
// 是否显示查看维修记录弹出层
|
|
|
|
|
queryWrite: false,
|
|
|
|
|
// 结果检验弹窗
|
|
|
|
|
inspectDialog: false,
|
|
|
|
|
// 检验结果
|
|
|
|
|
inspect: null,
|
|
|
|
|
// 多个维修单号
|
|
|
|
|
orderCodes: [],
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
@ -2089,6 +2128,7 @@ export default {
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map((item) => 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;
|
|
|
|
|