fix:其他入库时展示编号

This commit is contained in:
shijing 2025-03-26 09:23:56 +08:00
parent b810a01c31
commit 49ecffe420
1 changed files with 21 additions and 22 deletions

View File

@ -121,7 +121,7 @@
</el-select>
</el-form-item>
</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-input-number
v-model="form.count"
@ -143,7 +143,7 @@
</el-form-item>
</el-col>
</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-form-item :label="'编号'+i">
<!-- <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:[''],
mioitemw:[],
project_code:'',
mTracking:10,
};
},
mounted() {
@ -370,9 +371,8 @@ export default {
};
this.inputBatchDisable = true;
} else {
query = { page: 0 };
query = { page: 0 ,is_hidden:false};
}
this.$API.mtm.material.list.req(query).then((res) => {
this.materialOptions = res;
});
@ -428,7 +428,7 @@ export default {
var type = this.form.type;
var material = item.id;
that.form.material = material;
that.mTracking = item.tracking;
if (type == "do_in") {
if (item.is_assemb) {
this.initAssemb(item);
@ -478,23 +478,22 @@ export default {
},
countChange(){
let that = this;
if(that.project_code=='bxerp'){
if(that.form.type == "pur_in"){
that.mioitems = [];that.mioitemw = [];
for(let i=0;i<that.form.count;i++){
let indexs = i+1;
indexs = indexs<10?'0'+indexs:indexs;
that.mioitems[i] = that.form.batch+'-'+indexs;
let obj = {};
obj.number = that.mioitems[i];
that.mioitemw.push(obj);
}
}else if(that.form.type == "do_out"){
for(let i=0;i<that.form.count;i++){
let obj = {};
obj.number = that.form.batch+'-'+(i+1);
that.mioitemw.push(obj);
}
if(that.mTracking == 20&&that.form.count>1&&( that.form.type == 'pur_in'|| that.form.type == 'other_in')){
that.mioitems = [];that.mioitemw = [];
for(let i=0;i<that.form.count;i++){
let indexs = i+1;
indexs = indexs<10?'0'+indexs:indexs;
that.mioitems[i] = that.form.batch+'-'+indexs;
let obj = {};
obj.number = that.mioitems[i];
that.mioitemw.push(obj);
}
}else{
//
for(let i=0;i<that.form.count;i++){
let obj = {};
obj.number = that.form.batch+'-'+(i+1);
that.mioitemw.push(obj);
}
}
},