代码更新

This commit is contained in:
2022-07-18 14:47:46 +08:00
parent 0a41cda142
commit f70b92eea0
14 changed files with 214 additions and 154 deletions

View File

@@ -107,7 +107,7 @@
</el-table>
</el-card>
<BomDialog :dialog-show.sync="bomShow" :is-single="true" @tableChanged2="tableChanged2"/>
<BomDialog :dialog-show.sync="bomShow" :is-single="true" :open-param="openBom" @tableChanged2="tableChanged2"/>
</el-dialog>
</template>
@@ -137,6 +137,7 @@ export default {
fileBom: [],
fileBomJson: null,
fileBomindex: null,
openBom: null,
bomShow: false,
dialogVisible: false
}
@@ -192,6 +193,7 @@ export default {
this.bomShow = true
this.nowindex = index
this.nowrow = row
this.openBom = row
},
tableChanged2(row) {
debugger

View File

@@ -6,6 +6,7 @@
destroy-on-close
width="1000px"
@close="close"
@open="open"
>
<el-form
:inline="true"
@@ -76,7 +77,8 @@ export default {
return CRUD({
title: '备件Bom',
url: 'api/devicerepairmst/queryBom',
crudMethod: { ...crudDevicerepairmst }, optShow: {}})
crudMethod: { ...crudDevicerepairmst }, optShow: {},
})
},
mixins: [presenter(), header()],
props: {
@@ -87,6 +89,9 @@ export default {
isSingle: {
type: Boolean,
default: true
},
openParam: {
type: Object
}
},
data() {
@@ -94,6 +99,7 @@ export default {
dialogVisible: false,
tableRadio: null,
checkrow: null,
material_id: null,
rows: [],
XLList: []
}
@@ -106,6 +112,12 @@ export default {
}
},
methods: {
open() {
debugger
this.material_id = this.openParam.material_id
this.query.material_id = this.material_id
this.crud.toQuery()
},
clickChange(item) {
this.tableRadio = item
},

View File

@@ -179,6 +179,7 @@ export default {
this.form1 = this.openParam.form
this.form1.tableData = this.openParam.tabData
this.form1.devicerecord_id = null
this.form1.device_code = null
this.form1.repair_plan_code = null
this.form1.repair_plan_name = null
},

View File

@@ -145,6 +145,7 @@ const defaultForm = {
devicerecord_id: null,
maintenancecycle: null,
plan_start_date: null,
device_code: null,
remark: null,
tableData: []
}

View File

@@ -180,6 +180,7 @@ export default {
this.form1 = this.openParam.form
this.form1.tableData = this.openParam.tabData
this.form1.devicerecord_id = null
this.form1.device_code = null
this.form1.maint_plan_code = null
this.form1.maint_plan_name = null
},
@@ -223,7 +224,7 @@ export default {
},
tableChanged2(row) {
this.form1.devicerecord_id = row.devicerecord_id
this.form.device_code = row.device_code
this.form1.device_code = row.device_code
},
delRow(index, rows) {
rows.splice(index, 1)

View File

@@ -14,7 +14,7 @@
label-width="80px"
label-suffix=":"
>
<el-form-item label="设备">
<el-form-item label="保养项目">
<el-input
v-model="query.maint_item_code"
clearable