|
|
@ -83,6 +83,11 @@
|
|
|
|
<dict-tag :options="dict.type.bills_status" :value="scope.row.billsStatus"/>
|
|
|
|
<dict-tag :options="dict.type.bills_status" :value="scope.row.billsStatus"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</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="applyUser" />
|
|
|
|
<el-table-column label="申请时间" align="center" prop="applyTime" width="180">
|
|
|
|
<el-table-column label="申请时间" align="center" prop="applyTime" width="180">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -110,7 +115,7 @@
|
|
|
|
<dict-tag :options="dict.type.dms_instance_type" :value="scope.row.instanceType"/>
|
|
|
|
<dict-tag :options="dict.type.dms_instance_type" :value="scope.row.instanceType"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</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">
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -120,6 +125,11 @@
|
|
|
|
@click="getJump(scope.row)"
|
|
|
|
@click="getJump(scope.row)"
|
|
|
|
v-hasPermi="['dms:dmsBillsFaultInstance:edit']"
|
|
|
|
v-hasPermi="['dms:dmsBillsFaultInstance:edit']"
|
|
|
|
>详情</el-button>
|
|
|
|
>详情</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
@click="handleFaultExport(scope.row.repairInstanceId)"
|
|
|
|
|
|
|
|
>导出</el-button>
|
|
|
|
<!--el-button
|
|
|
|
<!--el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -136,6 +146,20 @@
|
|
|
|
>删除</el-button-->
|
|
|
|
>删除</el-button-->
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</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>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
<pagination
|
|
|
@ -359,18 +383,26 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<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 { listDmsRepair } from '@/api/dms/dmsRepair'
|
|
|
|
import { listDmsRepairInstance } from '@/api/dms/dmsRepairInstance'
|
|
|
|
import { listDmsRepairInstance } from '@/api/dms/dmsRepairInstance'
|
|
|
|
import { listPoint,listSelectInspection } from '@/api/dms/dmsBillsInstance'
|
|
|
|
import { listPoint,listSelectInspection } from '@/api/dms/dmsBillsInstance'
|
|
|
|
import { listLedger } from '@/api/dms/ledger'
|
|
|
|
import { listLedger } from '@/api/dms/ledger'
|
|
|
|
import { listDmsInfo } from '@/api/dms/dmsInfo'
|
|
|
|
import { listDmsInfo } from '@/api/dms/dmsInfo'
|
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
|
|
|
|
|
import app from "@/store/modules/app";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "DmsBillsFaultInstance",
|
|
|
|
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() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
//图片上传判断是否有相同图片
|
|
|
|
//图片上传判断是否有相同图片
|
|
|
@ -449,6 +481,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
|
|
|
|
approve: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
wfProcessId: [
|
|
|
|
wfProcessId: [
|
|
|
@ -722,11 +755,28 @@ export default {
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
}).catch(() => {});
|
|
|
|
}).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() {
|
|
|
|
handleExport() {
|
|
|
|
this.download('dms/dmsBillsFaultInstance/export', {
|
|
|
|
this.download('dms/dmsBillsFaultInstance/export', {
|
|
|
|
...this.queryParams
|
|
|
|
...this.queryParams
|
|
|
|
}, `dmsBillsFaultInstance_${new Date().getTime()}.xlsx`)
|
|
|
|
}, `dmsBillsFaultInstance_${new Date().getTime()}.xlsx`)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 导出报修按钮操作 */
|
|
|
|
|
|
|
|
handleFaultExport(repairInstanceId) {
|
|
|
|
|
|
|
|
this.download('dms/dmsBillsFaultInstance/faultRecordExport', {
|
|
|
|
|
|
|
|
repairInstanceId
|
|
|
|
|
|
|
|
}, `dmsBillsFaultInstance_${new Date().getTime()}.xlsx`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|