代码更新
This commit is contained in:
@@ -141,13 +141,15 @@
|
||||
</el-card>
|
||||
|
||||
<DeviceDialog :dialog-show.sync="deviceDialog" :is-single="true" @tableChanged2="tableChanged2"/>
|
||||
<ItemDialog :dialog-show.sync="itemDialog" :is-single="false" @tableChanged1="tableChanged1"/>
|
||||
<ItemDialog :dialog-show.sync="itemDialog" :is-single="false" :open-param="openParam" @tableChanged1="tableChanged1"/>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
const defaultForm = {
|
||||
device_code: null,
|
||||
material_type_id: null,
|
||||
repair_code: null,
|
||||
devicerecord_id: null,
|
||||
maintenancecycle: '02',
|
||||
@@ -244,6 +246,7 @@ export default {
|
||||
this.deviceDialog = true
|
||||
},
|
||||
putItem() {
|
||||
this.openParam = this.form
|
||||
this.itemDialog = true
|
||||
},
|
||||
tableChanged1(row) {
|
||||
@@ -267,7 +270,8 @@ export default {
|
||||
},
|
||||
tableChanged2(row) {
|
||||
this.form.devicerecord_id = row.devicerecord_id
|
||||
this.form.device_code = row.device_code
|
||||
this.form.material_type_id = row.material_type_id
|
||||
this.form.device_code = row.device_name + '-' + row.device_code
|
||||
},
|
||||
delRow(index, rows) {
|
||||
rows.splice(index, 1)
|
||||
|
||||
Reference in New Issue
Block a user