代码更新

This commit is contained in:
2022-09-29 10:48:52 +08:00
parent 2b53710d83
commit 91263261be
10 changed files with 103 additions and 15 deletions

View File

@@ -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)