rev:基础数据用额面维护

This commit is contained in:
zhangzhiqiang
2023-06-28 09:17:26 +08:00
parent 3fb718b739
commit 2d2d3d3c74
71 changed files with 2064 additions and 1712 deletions

View File

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