代码更新
This commit is contained in:
@@ -28,19 +28,20 @@
|
||||
:load-options="loadClass"
|
||||
style="width: 200px;"
|
||||
placeholder="请选择"
|
||||
:disabled="crud.status.view > 0"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="BOM编码" prop="device_bom_code">
|
||||
<el-input v-model="form.device_bom_code" style="width: 250px;" />
|
||||
<el-input v-model="form.device_bom_code" style="width: 250px;" :disabled="crud.status.view > 0" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="BOM名称" prop="material_name">
|
||||
<el-input v-model="form.material_name" style="width: 250px;" />
|
||||
<el-input v-model="form.material_name" style="width: 250px;" :disabled="crud.status.view > 0" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -65,6 +66,7 @@
|
||||
type="primary"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
:disabled="crud.status.view > 0"
|
||||
@click="putMaterial"
|
||||
>
|
||||
添加物料
|
||||
@@ -106,20 +108,20 @@
|
||||
:controls="false"
|
||||
:precision="0"
|
||||
:min="0"
|
||||
:disabled="scope.row.edit"
|
||||
:disabled="crud.status.view > 0"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column show-overflow-tooltip prop="base_unit_id_name" label="单位" align="center" />
|
||||
<el-table-column prop="dtl_remark" label="备注" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-show="!scope.row.edit" v-model="scope.row.dtl_remark" class="input-with-select"/>
|
||||
<el-input v-show="!scope.row.edit" v-model="scope.row.dtl_remark" class="input-with-select" :disabled="crud.status.view > 0" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="danger" class="filter-item" size="mini" icon="el-icon-delete" @click.native.prevent="delRow(scope.$index, form.tableData)" />
|
||||
<el-button type="danger" class="filter-item" size="mini" icon="el-icon-delete" @click.native.prevent="delRow(scope.$index, form.tableData)" :disabled="crud.status.view > 0" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -222,6 +224,15 @@ export default {
|
||||
this.form.tableData = res
|
||||
})
|
||||
},
|
||||
[CRUD.HOOK.afterToView]() {
|
||||
debugger
|
||||
const data = {
|
||||
'device_bom_id': this.form.device_bom_id
|
||||
}
|
||||
crudDevicebom.getDtl(data).then(res => {
|
||||
this.form.tableData = res
|
||||
})
|
||||
},
|
||||
handleClose(done) {
|
||||
this.$confirm('确认关闭?')
|
||||
.then(_ => {
|
||||
|
||||
Reference in New Issue
Block a user