feat:玻纤半成品入库时添加编号前缀
This commit is contained in:
parent
e77e6c716d
commit
2164aac5bd
|
|
@ -195,6 +195,11 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-col v-if="form.type == 'pur_in'&&project_code=='bxerp'&& cate == 'halfgood'">
|
||||
<el-form-item label="编号前缀">
|
||||
<el-input v-model="halfgoodprefix" @input="halfgoodprefixChange" placeholder="编号前缀"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-row v-if="mTracking==20&&form.count>0&&(form.type == 'pur_in'||form.type == 'other_in'||(form.type == 'sale_out'&&project_code=='bxerp'))">
|
||||
<el-col :md="12" :sm="24" v-for="i in form.count" :key="i">
|
||||
<el-form-item :label="'编号'+i" required>
|
||||
|
|
@ -320,6 +325,7 @@ export default {
|
|||
mioitemw:[],
|
||||
wprList:[],
|
||||
prefix:'',
|
||||
halfgoodprefix:'',
|
||||
count_send_yp:0,
|
||||
project_code:'',
|
||||
digitNum:null,
|
||||
|
|
@ -777,6 +783,13 @@ export default {
|
|||
|
||||
})
|
||||
},
|
||||
halfgoodprefixChange(){
|
||||
let that = this;
|
||||
that.mioitems = [];
|
||||
for(let i=0;i<that.form.count;i++){
|
||||
that.mioitems[i] = that.halfgoodprefix;
|
||||
}
|
||||
},
|
||||
validateInput(i){
|
||||
this.mioitems[i] = this.mioitems[i].replace(/\D/g, '');
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue