This commit is contained in:
zds
2022-11-21 19:43:10 +08:00
parent 0a8ca1c4c9
commit a85629d1c2

View File

@@ -71,10 +71,11 @@
style="width: 100%;" style="width: 100%;"
@selection-change="crud.selectionChangeHandler" @selection-change="crud.selectionChangeHandler"
> >
<el-table-column type="selection" min-width="35" />
<el-table-column prop="stor_code" label="仓库编码" /> <el-table-column prop="stor_code" label="仓库编码" />
<el-table-column prop="stor_name" label="仓库名称" /> <el-table-column prop="stor_name" label="仓库名称" />
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip /> <el-table-column prop="material_code" label="物料编码" min-width="150" />
<el-table-column prop="material_name" label="物料名称" min-width="200" show-overflow-tooltip /> <el-table-column prop="material_name" label="物料名称" min-width="200" />
<el-table-column prop="safe_ivt_down" label="安全库存下限" width="150"> <el-table-column prop="safe_ivt_down" label="安全库存下限" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input-number <el-input-number
@@ -102,7 +103,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="qty_unit_name" label="单位" /> <el-table-column prop="qty_unit_name" label="单位" />
<el-table-column prop="set_time" label="设置时间" min-width="110" show-overflow-tooltip /> <el-table-column prop="set_time" label="设置时间" min-width="150" />
<el-table-column prop="set_name" label="设置人" /> <el-table-column prop="set_name" label="设置人" />
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
@@ -152,6 +153,7 @@ export default {
return { return {
stors: [], stors: [],
classes: [], classes: [],
checkrows: [],
class_idStr: null, class_idStr: null,
materOpt_code: '23', materOpt_code: '23',
stor_id: '', stor_id: '',
@@ -208,13 +210,14 @@ export default {
} }
}, },
save() { save() {
// if (this.stor_id === '') { this.checkrows = this.$refs.table.selection
// this.crud.notify('请选择仓库', CRUD.NOTIFICATION_TYPE.INFO) if (this.checkrows.length === 0) {
// return this.crud.notify('请勾选需要保存的记录!')
// } return false
}
const data = {} const data = {}
data.stor_id = '1473162033548627968' data.stor_id = '1473162033548627968'
data.rows = this.crud.data data.rows = this.checkrows
crudMaterialsafeivt.insertSafeBj(data).then(() => { crudMaterialsafeivt.insertSafeBj(data).then(() => {
this.crud.dleChangePage(1) this.crud.dleChangePage(1)
this.crud.editSuccessNotify() this.crud.editSuccessNotify()