rev:基础数据用额面维护
This commit is contained in:
@@ -70,6 +70,32 @@
|
||||
<div class="crud-opts2" style="margin-top: 30px;margin-bottom: 12px">
|
||||
<span class="role-span">产品工艺路线明细</span>
|
||||
</div>
|
||||
<span v-if="crud.status.cu > 0 || crud.status.view > 0" class="crud-opts-right2">
|
||||
<!--左侧插槽-->
|
||||
<slot name="left" />
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
:disabled="crud.status.view > 0"
|
||||
@click="insertLine"
|
||||
>
|
||||
新增一行
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
type="danger"
|
||||
icon="el-icon-close"
|
||||
size="mini"
|
||||
:disabled="crud.status.view > 0"
|
||||
@click="delLine"
|
||||
>
|
||||
删除一行
|
||||
</el-button>
|
||||
</span>
|
||||
|
||||
<el-table
|
||||
ref="table"
|
||||
@@ -183,7 +209,13 @@ export default {
|
||||
console.log(row)
|
||||
this.form.material_code = row.material_code
|
||||
this.form.material_id = row.material_id
|
||||
}
|
||||
},
|
||||
insertLine() {
|
||||
this.form.tableData.push({ workprocedure_no: '', is_check: '1' })
|
||||
},
|
||||
delLine() {
|
||||
this.form.tableData.splice(-1)
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user