This commit is contained in:
2022-12-17 11:55:33 +08:00
parent 383c6437c9
commit dad20a4a99

View File

@@ -53,13 +53,13 @@
:header-cell-style="{background:'#f5f7fa',color:'#606266'}" :header-cell-style="{background:'#f5f7fa',color:'#606266'}"
> >
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column prop="instorage_time" label="入库日期" show-overflow-tooltip width="145px" /> <el-table-column prop="instorage_time" label="入库日期" :min-width="flexWidth('instorage_time',crud.data,'入库日期')" />
<el-table-column prop="material_code" label="物料编码" show-overflow-tooltip width="140px" /> <el-table-column prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" />
<el-table-column prop="material_name" label="物料名称" show-overflow-tooltip width="150px" /> <el-table-column prop="material_name" label="物料名称" :min-width="flexWidth('material_name',crud.data,'物料名称')" />
<el-table-column prop="struct_name" label="仓位" show-overflow-tooltip width="150px" /> <el-table-column prop="struct_name" label="仓位" :min-width="flexWidth('struct_name',crud.data,'仓位')" />
<el-table-column prop="box_no" label="箱号" show-overflow-tooltip width="250px" /> <el-table-column prop="box_no" label="箱号" :min-width="flexWidth('box_no',crud.data,'箱号')" />
<el-table-column prop="pcsn" label="子卷号" show-overflow-tooltip width="150px" /> <el-table-column prop="pcsn" label="子卷号" :min-width="flexWidth('pcsn',crud.data,'子卷号')" />
<el-table-column prop="sap_pcsn" label="sap批次" show-overflow-tooltip width="120px" /> <el-table-column prop="sap_pcsn" label="sap批次" :min-width="flexWidth('sap_pcsn',crud.data,'sap批次')" />
<el-table-column show-overflow-tooltip prop="plan_qty" :formatter="crud.formatNum3" label="重量" /> <el-table-column show-overflow-tooltip prop="plan_qty" :formatter="crud.formatNum3" label="重量" />
<el-table-column show-overflow-tooltip prop="qty_unit_name" label="重量单位" /> <el-table-column show-overflow-tooltip prop="qty_unit_name" label="重量单位" />
</el-table> </el-table>
@@ -103,6 +103,9 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
openParam: {
type: String
},
storId: { storId: {
type: String type: String
} }
@@ -121,6 +124,11 @@ export default {
this.dialogVisible = newValue this.dialogVisible = newValue
} }
}, },
openParam: {
handler(newValue, oldValue) {
this.opendtlParam = newValue
}
}
}, },
methods: { methods: {
[CRUD.HOOK.beforeRefresh]() { [CRUD.HOOK.beforeRefresh]() {
@@ -144,7 +152,6 @@ export default {
this.crud.query.mater_type = this.opendtlParam this.crud.query.mater_type = this.opendtlParam
}, },
submit() { submit() {
debugger
this.rows = this.$refs.multipleTable.selection this.rows = this.$refs.multipleTable.selection
if (this.rows.length <= 0) { if (this.rows.length <= 0) {
this.$message('请先勾选物料') this.$message('请先勾选物料')