Compare commits

..

No commits in common. "cad994e7e2c1ca5d4882c3b7995585e16515e9b2" and "1e82e0eb7d5986fc12b61405197185f1ab6e7068" have entirely different histories.

1 changed files with 31 additions and 44 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'&&project_code=='bxerp'" :disabled="form.type == 'do_out'"
style="width: 100%" style="width: 100%"
/> />
</el-form-item> </el-form-item>
@ -529,56 +529,43 @@ 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) => { if(item0.batch == that.selectBatch.batch){
if(item0.batch == that.selectBatch.batch){ count += item0.count;
count += item0.count; }
})
}
let canDo = Number(items.count_canmio);
that.$API.wpm.wpr.list.req({ page: 0, mb: items.id,querys:"{id,number,number_out}" }).then((res) => {
if (canDo>50) {
res.forEach((item,index) => {
if(index>=count&&index<50+count){
that.wprList.push(item);
}
})
}else{
res.forEach((item,index) => {
if(index>=count){
that.wprList.push(item);
}
})
}
if(that.wprList.length>0){
that.wprList.forEach((item1,index) => {
if(item1.number_out!==null){
that.mioitems[index] = item1.number_out;
} }
}) })
} }
let canDo = Number(items.count_canmio);
that.$API.wpm.wpr.list.req({ page: 0, mb: items.id,querys:"{id,number,number_out}" }).then((res) => {
if (canDo>50) {
res.forEach((item,index) => {
if(index>=count&&index<50+count){
that.wprList.push(item);
}
})
}else{
res.forEach((item,index) => {
if(index>=count){
that.wprList.push(item);
}
})
}
if(that.wprList.length>0){
that.wprList.forEach((item1,index) => {
if(item1.number_out!==null){
that.mioitems[index] = item1.number_out;
}
})
}
that.form.batch = items.batch;
that.form.mb = items.id;
that.batchcount = canDo;
that.form.count =canDo>50?50: that.wprList.length;
that.form.warehouse = items.warehouse;
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.batch = items.batch;
that.form.mb = items.id; that.form.mb = items.id;
that.batchcount = Number(items.count); that.batchcount = canDo;
that.form.count = Number(items.count); that.form.count =canDo>50?50: that.wprList.length;
that.form.warehouse = items.warehouse; that.form.warehouse = items.warehouse;
that.inputBatchDisable = true; that.inputBatchDisable = true;
} })
} }
}, },
selectBatchClear() { selectBatchClear() {