fix:出入库详情表单领料时,仓库不可选,添加辅料详情列表

This commit is contained in:
shijing 2025-06-24 14:25:07 +08:00
parent 0d532cccb9
commit 6e92abc098
2 changed files with 6 additions and 5 deletions

View File

@ -108,7 +108,7 @@
v-model="form.warehouse"
clearable
style="width: 100%"
:disabled="warehouseDisable"
:disabled="form.type == 'do_out'||form.type=='sale_out'"
>
<el-option
v-for="item in warehouseOptions"
@ -261,7 +261,7 @@ export default {
batchOptions: [],
setFiltersVisible: false,
warehouseOptions: [],
warehouseDisable: false,
// warehouseDisable: false,
selectBatchDisable: false,
assembShow: false,
selectMaterial: null,
@ -421,6 +421,7 @@ export default {
var that = this;
var type = this.form.type;
that.form.material = that.selectObj.id;
that.form.unit_price = that.selectObj.unit_price;
that.form.batch = that.cate=='helpso'?that.selectObj.bin_number_main:that.selectObj.batch;
that.mTracking = that.selectObj.tracking;
if (type == "do_in") {
@ -448,7 +449,7 @@ export default {
this.form.mb = item.id;
this.form.count = Number(item.count);
this.form.warehouse = item.warehouse;
this.warehouseDisable = true;
// this.warehouseDisable = true;
this.inputBatchDisable = true;
},
selectBatchClear() {
@ -457,7 +458,7 @@ export default {
this.form.batch = "";
this.form.count = "";
this.form.warehouse = "";
this.warehouseDisable = false;
// this.warehouseDisable = false;
this.inputBatchDisable = false;
},
//

View File

@ -108,7 +108,7 @@ export default {
data() {
return {
apiObj: null,
params: {with_mio:'yes',material__type:30,mio__state:20},
params: {with_mio:'yes',material__type:40,mio__state:20},
selection: [],
tableData:[],
query: {