2024-05-30 设备-维修-结果检验后发送微信提醒

yangwl
A0010407 6 months ago
parent 2831cf3e47
commit ffe242fe2d

@ -79,4 +79,12 @@ export function queryEquFaultTypeTree(query) {
}); });
} }
// 维修工单检验
export function subInspect(data) {
return request({
url: '/device/repairOrder/subInspect',
method: 'post',
data: data
});
}

@ -224,6 +224,17 @@
>委外申请</el-button >委外申请</el-button
> >
</el-col> </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-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
@ -277,6 +288,16 @@
/> />
</template> </template>
</el-table-column> </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 <el-table-column
label="报修单号" label="报修单号"
align="center" align="center"
@ -1225,6 +1246,17 @@
</div> </div>
</el-dialog> </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 <el-dialog
:title="title" :title="title"
@ -1626,6 +1658,7 @@ import {
applyOutsource, applyOutsource,
writeRepairOrder, writeRepairOrder,
queryEquFaultTypeTree, queryEquFaultTypeTree,
subInspect,
} from "@/api/device/repairOrder"; } from "@/api/device/repairOrder";
import { listFaultReason } from "@/api/device/faultReason"; import { listFaultReason } from "@/api/device/faultReason";
import { listFaultMeasures } from "@/api/device/faultMeasures"; import { listFaultMeasures } from "@/api/device/faultMeasures";
@ -1723,6 +1756,12 @@ export default {
openWrite: false, openWrite: false,
// //
queryWrite: false, queryWrite: false,
//
inspectDialog: false,
//
inspect: null,
//
orderCodes: [],
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
@ -2089,6 +2128,7 @@ export default {
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.workId); this.ids = selection.map((item) => item.workId);
this.orderCodes = selection.map((item) => item.workCode);
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; 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() { handleSelectEquipment() {
this.$refs.itemSelect.showFlag = true; this.$refs.itemSelect.showFlag = true;

Loading…
Cancel
Save