|
|
|
@ -23,6 +23,7 @@ |
|
|
|
search-key="deviceName" |
|
|
|
search-key="deviceName" |
|
|
|
:debounce-time="100" |
|
|
|
:debounce-time="100" |
|
|
|
@change="changeEquipment" |
|
|
|
@change="changeEquipment" |
|
|
|
|
|
|
|
:title="'修改'" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu-left> |
|
|
|
<template #menu-left> |
|
|
|
@ -90,7 +91,6 @@ export default { |
|
|
|
index: false, |
|
|
|
index: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
showOverflowTooltip: true, |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelPosition: "left", |
|
|
|
|
|
|
|
searchLabelWidth: "auto", |
|
|
|
searchLabelWidth: "auto", |
|
|
|
searchGutter: 24, |
|
|
|
searchGutter: 24, |
|
|
|
searchSpan: 6, |
|
|
|
searchSpan: 6, |
|
|
|
@ -189,6 +189,8 @@ export default { |
|
|
|
searchRange: true, |
|
|
|
searchRange: true, |
|
|
|
format: "YYYY-MM-DD", |
|
|
|
format: "YYYY-MM-DD", |
|
|
|
valueFormat: "YYYY-MM-DD", |
|
|
|
valueFormat: "YYYY-MM-DD", |
|
|
|
|
|
|
|
startPlaceholder: "开始日期", |
|
|
|
|
|
|
|
endPlaceholder: "结束日期", |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
@ -230,7 +232,9 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
form: {}, |
|
|
|
form: { |
|
|
|
|
|
|
|
equipmentId:'' |
|
|
|
|
|
|
|
}, |
|
|
|
page: { |
|
|
|
page: { |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
currentPage: 1, |
|
|
|
currentPage: 1, |
|
|
|
@ -306,6 +310,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
beforeOpen(done, type){ |
|
|
|
beforeOpen(done, type){ |
|
|
|
if(type == 'edit'){ |
|
|
|
if(type == 'edit'){ |
|
|
|
|
|
|
|
console.log('edit-------------',this.form) |
|
|
|
this.form.workCenterId = this.form.workCenterId + '' |
|
|
|
this.form.workCenterId = this.form.workCenterId + '' |
|
|
|
this.form.equipmentId = this.form.equipmentId + '' |
|
|
|
this.form.equipmentId = this.form.equipmentId + '' |
|
|
|
this.form.date = this.form.date && this.form.date.indexOf('/') != -1 ? this.formatDate(this.form.date) : this.form.date |
|
|
|
this.form.date = this.form.date && this.form.date.indexOf('/') != -1 ? this.formatDate(this.form.date) : this.form.date |
|
|
|
|