|
|
@ -41,7 +41,6 @@ |
|
|
|
:table-loading="loading" |
|
|
|
:table-loading="loading" |
|
|
|
:option="optionWorkOrder" |
|
|
|
:option="optionWorkOrder" |
|
|
|
:permission="permissionList" |
|
|
|
:permission="permissionList" |
|
|
|
:before-open="beforeOpen" |
|
|
|
|
|
|
|
:header-cell-class-name="headerClass" |
|
|
|
:header-cell-class-name="headerClass" |
|
|
|
v-model="workorder_form" |
|
|
|
v-model="workorder_form" |
|
|
|
ref="workorder_crud"> |
|
|
|
ref="workorder_crud"> |
|
|
@ -74,25 +73,10 @@ |
|
|
|
</basic-container> |
|
|
|
</basic-container> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {getList, getDetail, add, update, remove} from "@/api/leger/equipmentledger"; |
|
|
|
import {getWorkOrderbyKksEncoding, getworkticketbyKksEncoding, getoperationbyKksEncoding} from "@/api/leger/dynamicledger"; |
|
|
|
import { |
|
|
|
|
|
|
|
parameters_add, |
|
|
|
|
|
|
|
parameters_update, |
|
|
|
|
|
|
|
parameters_remove, |
|
|
|
|
|
|
|
parameters_getListBylegerId, |
|
|
|
|
|
|
|
parameters_Del |
|
|
|
|
|
|
|
} from "@/api/leger/techparameters"; |
|
|
|
|
|
|
|
import { |
|
|
|
|
|
|
|
document_add, |
|
|
|
|
|
|
|
document_update, |
|
|
|
|
|
|
|
document_remove, |
|
|
|
|
|
|
|
document_getListBylegerId, |
|
|
|
|
|
|
|
document_Del |
|
|
|
|
|
|
|
} from "@/api/leger/inventorydocument"; |
|
|
|
|
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
import website from "@/config/website"; |
|
|
|
import {Alert} from "element-ui"; |
|
|
|
import {readonly} from "vue"; |
|
|
|
|
|
|
|
import {getToken} from "@/util/auth"; |
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "dynamicledgerDetail", |
|
|
|
name: "dynamicledgerDetail", |
|
|
|
data () { |
|
|
|
data () { |
|
|
@ -115,6 +99,7 @@ export default { |
|
|
|
kksDesValue:this.$route.query.kksDescription, |
|
|
|
kksDesValue:this.$route.query.kksDescription, |
|
|
|
frame_class: '', |
|
|
|
frame_class: '', |
|
|
|
type: {}, |
|
|
|
type: {}, |
|
|
|
|
|
|
|
workorder_form:{}, |
|
|
|
shouldShowButton:{}, |
|
|
|
shouldShowButton:{}, |
|
|
|
addUpdateShowButton:{}, |
|
|
|
addUpdateShowButton:{}, |
|
|
|
readonlyForm:{}, |
|
|
|
readonlyForm:{}, |
|
|
@ -131,7 +116,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
workorder_form: {}, |
|
|
|
loading: true, |
|
|
|
|
|
|
|
workorder_data: {}, |
|
|
|
optionWorkOrder: { |
|
|
|
optionWorkOrder: { |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
menuAlign: 'center', |
|
|
|
menuAlign: 'center', |
|
|
@ -147,35 +133,65 @@ export default { |
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "工单编号", |
|
|
|
label: "工单编号", |
|
|
|
prop: "orderNo", |
|
|
|
prop: "workOrderNo", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "工单类型", |
|
|
|
label: "工单类型", |
|
|
|
prop: "orderType", |
|
|
|
prop: "workOrderType", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=workorder_type", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "内容描述", |
|
|
|
label: "内容描述", |
|
|
|
prop: "orderDescription", |
|
|
|
prop: "description", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "维护作业类型", |
|
|
|
label: "维护作业类型", |
|
|
|
prop: "maintenenceType", |
|
|
|
prop: "maintenanceTaskType", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=maintenance_job_type", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "用户状态", |
|
|
|
label: "用户状态", |
|
|
|
prop: "userStatus", |
|
|
|
prop: "userStatus", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=user_status", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "发生时间", |
|
|
|
label: "发生时间", |
|
|
|
prop: "happenDate", |
|
|
|
prop: "occurrenceTime", |
|
|
|
|
|
|
|
type: "datetime", |
|
|
|
|
|
|
|
format: 'yyyy/MM/dd HH:mm:ss', |
|
|
|
|
|
|
|
valueFormat: "yyyyMMdd HH:mm:ss", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "处理时间", |
|
|
|
label: "处理时间", |
|
|
|
prop: "processDate", |
|
|
|
prop: "processingTime", |
|
|
|
|
|
|
|
type: "datetime", |
|
|
|
|
|
|
|
format: 'yyyy/MM/dd HH:mm:ss', |
|
|
|
|
|
|
|
valueFormat: "yyyyMMdd HH:mm:ss", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "处理结果", |
|
|
|
label: "处理结果", |
|
|
|
prop: "processResult", |
|
|
|
prop: "handlingResult", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=workorder_process_res", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
@ -199,11 +215,11 @@ export default { |
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "工作票编号", |
|
|
|
label: "工作票编号", |
|
|
|
prop: "ticketNo", |
|
|
|
prop: "workTicketNo", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "工作票类型", |
|
|
|
label: "工作票类型", |
|
|
|
prop: "ticketType", |
|
|
|
prop: "workTicketType", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "工作负责人", |
|
|
|
label: "工作负责人", |
|
|
@ -211,19 +227,28 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "许可人", |
|
|
|
label: "许可人", |
|
|
|
prop: "licensor", |
|
|
|
prop: "licensors", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "签发人", |
|
|
|
label: "签发人", |
|
|
|
prop: "signer", |
|
|
|
prop: "issuer", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "许可时间", |
|
|
|
label: "许可时间", |
|
|
|
prop: "permissionDate", |
|
|
|
prop: "permissionDate", |
|
|
|
|
|
|
|
type: "datetime", |
|
|
|
|
|
|
|
format: 'yyyy/MM/dd HH:mm:ss', |
|
|
|
|
|
|
|
valueFormat: "yyyyMMdd HH:mm:ss", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "状态", |
|
|
|
label: "状态", |
|
|
|
prop: "workStatus", |
|
|
|
prop: "workStatus", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=work_status", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
@ -247,27 +272,39 @@ export default { |
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "操作票编号", |
|
|
|
label: "操作票编号", |
|
|
|
prop: "operationNo", |
|
|
|
prop: "operationTicketNo", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "状态", |
|
|
|
label: "状态", |
|
|
|
prop: "operationStatus", |
|
|
|
prop: "sts", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=operation_sts", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "操作票类型", |
|
|
|
label: "操作票类型", |
|
|
|
prop: "operationType", |
|
|
|
prop: "operationTicketType", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "操作开始时间", |
|
|
|
label: "操作开始时间", |
|
|
|
prop: "operationStateData", |
|
|
|
prop: "plannedStartTime", |
|
|
|
|
|
|
|
type: "datetime", |
|
|
|
|
|
|
|
format: 'yyyy/MM/dd HH:mm:ss', |
|
|
|
|
|
|
|
valueFormat: "yyyyMMdd HH:mm:ss", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "操作结束时间", |
|
|
|
label: "操作结束时间", |
|
|
|
prop: "operationEndData", |
|
|
|
prop: "plannedEndTime", |
|
|
|
|
|
|
|
type: "datetime", |
|
|
|
|
|
|
|
format: 'yyyy/MM/dd HH:mm:ss', |
|
|
|
|
|
|
|
valueFormat: "yyyyMMdd HH:mm:ss", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "操作人", |
|
|
|
label: "操作人", |
|
|
|
prop: "operator", |
|
|
|
prop: "workLeader", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '监护人', |
|
|
|
label: '监护人', |
|
|
@ -275,19 +312,25 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "发令人", |
|
|
|
label: "发令人", |
|
|
|
prop: "enforcer", |
|
|
|
prop: "givingOrdersUser", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "操作人所属班组", |
|
|
|
label: "操作人所属班组", |
|
|
|
prop: "operationTeam", |
|
|
|
prop: "workTeam", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '风险等级', |
|
|
|
label: '风险等级', |
|
|
|
prop: 'risk', |
|
|
|
prop: 'jobRiskLevel', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '是否合格', |
|
|
|
label: '是否合格', |
|
|
|
prop: 'isQualified', |
|
|
|
prop: 'isQuakified', |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=is_qualified", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
@ -304,45 +347,48 @@ export default { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
created () { |
|
|
|
created () { |
|
|
|
this.type = this.option.column[0]; |
|
|
|
this.type = this.option.column[0]; |
|
|
|
|
|
|
|
this.workOrder_onLoad() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
handleChange (column) { |
|
|
|
handleChange (column) { |
|
|
|
this.type = column |
|
|
|
this.type = column |
|
|
|
// if (column.prop == 'workodrder') { |
|
|
|
if (column.prop === 'workodrder') { |
|
|
|
// this.workodrder_onLoad(); |
|
|
|
this.workOrder_onLoad(); |
|
|
|
// }if (column.prop == 'workticket') { |
|
|
|
}if (column.prop === 'workticket') { |
|
|
|
// this.workticket_onLoad(); |
|
|
|
this.workticket_onLoad(); |
|
|
|
// }if (column.prop == 'operation') { |
|
|
|
}if (column.prop === 'operation') { |
|
|
|
// this.operation_onLoad(); |
|
|
|
this.operation_onLoad(); |
|
|
|
// } |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
headerClass(){ |
|
|
|
headerClass(){ |
|
|
|
return 'head-style' |
|
|
|
return 'head-style' |
|
|
|
}, |
|
|
|
}, |
|
|
|
// workodrder_onLoad(row, params = {}) { |
|
|
|
workOrder_onLoad() { |
|
|
|
// this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
// workodrder_getListBylegerId(this.$route.query.id).then(res => { |
|
|
|
console.log(123,this.$route.query.kksEncoding); |
|
|
|
// this.parameters_data = res.data.data; |
|
|
|
getWorkOrderbyKksEncoding(this.$route.query.kksEncoding).then(res => { |
|
|
|
// this.loading = false; |
|
|
|
this.workorder_data = res.data.data; |
|
|
|
// }); |
|
|
|
this.loading = false; |
|
|
|
// }, |
|
|
|
}); |
|
|
|
// workticket_onLoad(row, params = {}) { |
|
|
|
}, |
|
|
|
// this.loading = true; |
|
|
|
workticket_onLoad(r) { |
|
|
|
// workticket_getListBylegerId(this.$route.query.id).then(res => { |
|
|
|
this.loading = true; |
|
|
|
// this.document_data = res.data.data; |
|
|
|
getworkticketbyKksEncoding(this.$route.query.kksEncoding).then(res => { |
|
|
|
// this.loading = false; |
|
|
|
this.workticket_data = res.data.data; |
|
|
|
// }); |
|
|
|
this.loading = false; |
|
|
|
// }, |
|
|
|
}); |
|
|
|
// operation_onLoad(row, params = {}) { |
|
|
|
}, |
|
|
|
// this.loading = true; |
|
|
|
operation_onLoad() { |
|
|
|
// operation_getListBylegerId(this.$route.query.id).then(res => { |
|
|
|
this.loading = true; |
|
|
|
// this.document_data = res.data.data; |
|
|
|
getoperationbyKksEncoding(this.$route.query.kksEncoding).then(res => { |
|
|
|
// this.loading = false; |
|
|
|
this.operation_data = res.data.data; |
|
|
|
// }); |
|
|
|
this.loading = false; |
|
|
|
// } |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|