|
|
|
@ -158,11 +158,34 @@
|
|
|
|
|
<el-tag :type="statusFilterType(scope.row.level)">{{ levelMap[scope.row.level] }}</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="计划状态" prop="planStatus">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="statusFilterType(scope.row.planStatus)">{{ planStatusMap[scope.row.planStatus] }}</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="editInspectPlan(scope.row)"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="deleteDialog(scope.row.id)"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
@ -206,7 +229,21 @@
|
|
|
|
|
>
|
|
|
|
|
</DeviceInspectPlanProjectSet>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="formMap[formName]"
|
|
|
|
|
:visible.sync="formVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
width="65%"
|
|
|
|
|
v-if="formVisible"
|
|
|
|
|
>
|
|
|
|
|
<deviceInspectPlanModify
|
|
|
|
|
type = "detail"
|
|
|
|
|
:inspectPlan="deviceInspectPlan"
|
|
|
|
|
:closeDialog="closeDialog"
|
|
|
|
|
>
|
|
|
|
|
</deviceInspectPlanModify>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -216,7 +253,7 @@ import {findInvByUser} from "@/api/system/invSubWarehouse";
|
|
|
|
|
import {getDeviceInspectPlanList, deleteInspectPlan, updateStatus} from "@/api/inventory/deviceInspectPlan";
|
|
|
|
|
import {selectDeviceInspectPlanDelect} from "@/api/inventory/deviceInspectPlanDelect";
|
|
|
|
|
import DeviceInspectPlanProjectSet from "@/views/inventory/DeviceInspectProjectSelect";
|
|
|
|
|
|
|
|
|
|
import deviceInspectPlanModify from "@/views/inventory/DeviceInspectPlanModify.vue";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -251,7 +288,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
planStatusMap: {
|
|
|
|
|
1: "未启用",
|
|
|
|
|
2: "运行中",
|
|
|
|
|
2: "启动",
|
|
|
|
|
3: "已结束",
|
|
|
|
|
4: "已过期"
|
|
|
|
|
},
|
|
|
|
@ -495,9 +532,14 @@ export default {
|
|
|
|
|
this.detailQuery = row
|
|
|
|
|
this.deviceProjectSelectVisible = true
|
|
|
|
|
},
|
|
|
|
|
editInspectPlan(row) {
|
|
|
|
|
this.formVisible = true;
|
|
|
|
|
this.formName = 'edit';
|
|
|
|
|
this.deviceInspectPlan = row;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
components: {DeviceInspectPlanProjectSet},
|
|
|
|
|
components: {DeviceInspectPlanProjectSet,deviceInspectPlanModify},
|
|
|
|
|
mounted() {
|
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|