diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue
index c38b120a..5f938f52 100644
--- a/src/views/inm/mioitem_form.vue
+++ b/src/views/inm/mioitem_form.vue
@@ -143,9 +143,9 @@
-
+
-
+
@@ -421,7 +421,7 @@ export default {
var that = this;
var type = this.form.type;
that.form.material = that.selectObj.id;
- that.form.batch = that.selectObj.bin_number_main;
+ that.form.batch = that.cate=='helpso'?that.selectObj.bin_number_main:that.selectObj.batch;
that.mTracking = that.selectObj.tracking;
if (type == "do_in") {
if (that.selectObj.is_assemb) {
@@ -446,7 +446,7 @@ export default {
selectBatchChange(item) {
this.form.batch = item.batch;
this.form.mb = item.id;
- this.form.count = 0;
+ this.form.count = Number(item.count);
this.form.warehouse = item.warehouse;
this.warehouseDisable = true;
this.inputBatchDisable = true;
@@ -477,7 +477,7 @@ export default {
for(let i=0;i1&&(that.form.type == 'pur_in'||that.form.type == 'other_in')){
+ let mioitemw = [];
+ that.mioitems.forEach((item,index) => {
+ mioitemw[index]={ number: item };
+ })
+ if(mioitemw.length==that.mioitems.length){
+ that.form.mioitemw = mioitemw;
+ }else{
+ that.$message.error("请输入正确数量的编号")
+ return;
+ }
+ }
try {
let res;
if (that.mode == "add") {
diff --git a/src/views/inm/mioitemlist.vue b/src/views/inm/mioitemlist.vue
index f0d3587c..aeec6df4 100644
--- a/src/views/inm/mioitemlist.vue
+++ b/src/views/inm/mioitemlist.vue
@@ -108,7 +108,7 @@ export default {
data() {
return {
apiObj: null,
- params: {with_mio:'yes'},
+ params: {with_mio:'yes',material__type:30,mio__state:20},
selection: [],
tableData:[],
query: {