fix:其他入库时展示编号
This commit is contained in:
parent
b810a01c31
commit
49ecffe420
|
|
@ -121,7 +121,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="12" :sm="24" v-if="cate == 'mainso'">
|
<el-col :md="12" :sm="24" v-if="mTracking==20&&(form.type == 'do_in' ||form.type == 'pur_in'||form.type == 'other_in')">
|
||||||
<el-form-item label="数量">
|
<el-form-item label="数量">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="form.count"
|
v-model="form.count"
|
||||||
|
|
@ -143,7 +143,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row v-if="project_code=='bxerp'&&form.type == 'pur_in'&&form.count>1">
|
<el-row v-if="mTracking==20&&form.count>1&&(form.type == 'do_in'||form.type == 'pur_in'||form.type == 'other_in')">
|
||||||
<el-col :md="12" :sm="24" v-for="i in form.count" :key="i">
|
<el-col :md="12" :sm="24" v-for="i in form.count" :key="i">
|
||||||
<el-form-item :label="'编号'+i">
|
<el-form-item :label="'编号'+i">
|
||||||
<!-- <el-input-number v-if="i==1" v-model="mioitems[0]" @change="firstNumberChange" placeholder="请输入编号" controls-position="right" style="width:100%"/> -->
|
<!-- <el-input-number v-if="i==1" v-model="mioitems[0]" @change="firstNumberChange" placeholder="请输入编号" controls-position="right" style="width:100%"/> -->
|
||||||
|
|
@ -271,6 +271,7 @@ export default {
|
||||||
mioitems:[''],
|
mioitems:[''],
|
||||||
mioitemw:[],
|
mioitemw:[],
|
||||||
project_code:'',
|
project_code:'',
|
||||||
|
mTracking:10,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -370,9 +371,8 @@ export default {
|
||||||
};
|
};
|
||||||
this.inputBatchDisable = true;
|
this.inputBatchDisable = true;
|
||||||
} else {
|
} else {
|
||||||
query = { page: 0 };
|
query = { page: 0 ,is_hidden:false};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$API.mtm.material.list.req(query).then((res) => {
|
this.$API.mtm.material.list.req(query).then((res) => {
|
||||||
this.materialOptions = res;
|
this.materialOptions = res;
|
||||||
});
|
});
|
||||||
|
|
@ -428,7 +428,7 @@ export default {
|
||||||
var type = this.form.type;
|
var type = this.form.type;
|
||||||
var material = item.id;
|
var material = item.id;
|
||||||
that.form.material = material;
|
that.form.material = material;
|
||||||
|
that.mTracking = item.tracking;
|
||||||
if (type == "do_in") {
|
if (type == "do_in") {
|
||||||
if (item.is_assemb) {
|
if (item.is_assemb) {
|
||||||
this.initAssemb(item);
|
this.initAssemb(item);
|
||||||
|
|
@ -478,23 +478,22 @@ export default {
|
||||||
},
|
},
|
||||||
countChange(){
|
countChange(){
|
||||||
let that = this;
|
let that = this;
|
||||||
if(that.project_code=='bxerp'){
|
if(that.mTracking == 20&&that.form.count>1&&( that.form.type == 'pur_in'|| that.form.type == 'other_in')){
|
||||||
if(that.form.type == "pur_in"){
|
that.mioitems = [];that.mioitemw = [];
|
||||||
that.mioitems = [];that.mioitemw = [];
|
for(let i=0;i<that.form.count;i++){
|
||||||
for(let i=0;i<that.form.count;i++){
|
let indexs = i+1;
|
||||||
let indexs = i+1;
|
indexs = indexs<10?'0'+indexs:indexs;
|
||||||
indexs = indexs<10?'0'+indexs:indexs;
|
that.mioitems[i] = that.form.batch+'-'+indexs;
|
||||||
that.mioitems[i] = that.form.batch+'-'+indexs;
|
let obj = {};
|
||||||
let obj = {};
|
obj.number = that.mioitems[i];
|
||||||
obj.number = that.mioitems[i];
|
that.mioitemw.push(obj);
|
||||||
that.mioitemw.push(obj);
|
}
|
||||||
}
|
}else{
|
||||||
}else if(that.form.type == "do_out"){
|
//生产入库
|
||||||
for(let i=0;i<that.form.count;i++){
|
for(let i=0;i<that.form.count;i++){
|
||||||
let obj = {};
|
let obj = {};
|
||||||
obj.number = that.form.batch+'-'+(i+1);
|
obj.number = that.form.batch+'-'+(i+1);
|
||||||
that.mioitemw.push(obj);
|
that.mioitemw.push(obj);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue