设备维修的工单页面修改

master
马雪伟 2 months ago
parent 6e029826e4
commit 883e059e3e

@ -83,6 +83,11 @@
<dict-tag :options="dict.type.bills_status" :value="scope.row.billsStatus"/>
</template>
</el-table-column>
<el-table-column label="审批状态" align="center" prop="approveStatus">
<template slot-scope="scope">
<dict-tag :options="dict.type.approve_status" :value="scope.row.approveStatus"/>
</template>
</el-table-column>
<el-table-column label="申请人" align="center" prop="applyUser" />
<el-table-column label="申请时间" align="center" prop="applyTime" width="180">
<template slot-scope="scope">
@ -110,7 +115,7 @@
<dict-tag :options="dict.type.dms_instance_type" :value="scope.row.instanceType"/>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
<!-- <el-table-column label="备注" align="center" prop="remark" />-->
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
@ -120,6 +125,11 @@
@click="getJump(scope.row)"
v-hasPermi="['dms:dmsBillsFaultInstance:edit']"
>详情</el-button>
<el-button
size="mini"
type="text"
@click="handleFaultExport(scope.row.repairInstanceId)"
>导出</el-button>
<!--el-button
size="mini"
type="text"
@ -136,6 +146,20 @@
>删除</el-button-->
</template>
</el-table-column>
<el-table-column label="审批" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="handleUpadateApprove(scope.row.repairInstanceId,'2')"
>审批通过</el-button>
<el-button
size="mini"
type="text"
@click="handleUpadateApprove(scope.row.repairInstanceId,'3')"
>审批失败</el-button>
</template>
</el-table-column>
</el-table>
<pagination
@ -359,18 +383,26 @@
</template>
<script>
import { listDmsBillsFaultInstance, getDmsBillsFaultInstance, delDmsBillsFaultInstance, addDmsBillsFaultInstance, updateDmsBillsFaultInstance } from "@/api/dms/dmsBillsFaultInstance";
import {
listDmsBillsFaultInstance,
getDmsBillsFaultInstance,
delDmsBillsFaultInstance,
addDmsBillsFaultInstance,
updateDmsBillsFaultInstance,
handleFaultExport
} from "@/api/dms/dmsBillsFaultInstance";
import { listDmsRepair } from '@/api/dms/dmsRepair'
import { listDmsRepairInstance } from '@/api/dms/dmsRepairInstance'
import { listPoint,listSelectInspection } from '@/api/dms/dmsBillsInstance'
import { listLedger } from '@/api/dms/ledger'
import { listDmsInfo } from '@/api/dms/dmsInfo'
import { getToken } from '@/utils/auth'
import app from "@/store/modules/app";
export default {
name: "DmsBillsFaultInstance",
dicts:['bills_status','dms_instance_type','dms_fault_source_type','dms_fault_type','dms_repair_type','dms_fault_repair_type'],
dicts:['bills_status','approve_status','dms_instance_type','dms_fault_source_type','dms_fault_type','dms_repair_type','dms_fault_repair_type'],
data() {
return {
//
@ -449,6 +481,7 @@ export default {
},
//
form: {},
approve: {},
//
rules: {
wfProcessId: [
@ -722,11 +755,28 @@ export default {
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 删除按钮操作 */
handleUpadateApprove(repairInstanceId,approveStatus) {
console.log(approveStatus);
this.approve.repairInstanceId = repairInstanceId;
this.approve.approveStatus = approveStatus;
console.log(this.approve);
updateDmsBillsFaultInstance(this.approve).then(() => {
this.getList();
this.$modal.msgSuccess("审批成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('dms/dmsBillsFaultInstance/export', {
...this.queryParams
}, `dmsBillsFaultInstance_${new Date().getTime()}.xlsx`)
},
/** 导出报修按钮操作 */
handleFaultExport(repairInstanceId) {
this.download('dms/dmsBillsFaultInstance/faultRecordExport', {
repairInstanceId
}, `dmsBillsFaultInstance_${new Date().getTime()}.xlsx`)
}
}
};

Loading…
Cancel
Save