fix:光芯领料数量问题

This commit is contained in:
shijing 2025-08-18 16:02:58 +08:00
parent 6b9962a8ee
commit 07ea5f9a23
1 changed files with 45 additions and 32 deletions

View File

@ -152,7 +152,7 @@
<el-input-number <el-input-number
v-model="form.count" v-model="form.count"
:min="1" :min="1"
:disabled="form.type == 'do_out'" :disabled="form.type == 'do_out'&&project_code=='bxerp'"
style="width: 100%" style="width: 100%"
/> />
</el-form-item> </el-form-item>
@ -529,6 +529,7 @@ export default {
that.wprList = []; that.wprList = [];
that.mioitems = []; that.mioitems = [];
if(items){ if(items){
if(that.form.type == 'do_out'&&that.project_code=='bxerp'){
let count = 0; let count = 0;
if(that.tableDatas.length>0){ if(that.tableDatas.length>0){
that.tableDatas.forEach((item0) => { that.tableDatas.forEach((item0) => {
@ -566,6 +567,18 @@ export default {
that.form.warehouse = items.warehouse; that.form.warehouse = items.warehouse;
that.inputBatchDisable = true; that.inputBatchDisable = true;
}) })
}else{
that.$API.wpm.wpr.list.req({ page: 0, mb: items.id }).then((res) => {
that.wprList = res;
})
// that.getnumberOutLast();
that.form.batch = items.batch;
that.form.mb = items.id;
that.batchcount = Number(items.count);
that.form.count = Number(items.count);
that.form.warehouse = items.warehouse;
that.inputBatchDisable = true;
}
} }
}, },
selectBatchClear() { selectBatchClear() {