出入库记录mioitem新增时选项限制
This commit is contained in:
parent
95d2b1ca42
commit
12b25518c3
|
@ -91,7 +91,7 @@ export default {
|
|||
},
|
||||
query: {
|
||||
type__in: 'sale_out,do_in',
|
||||
item_mio__material__type: 10
|
||||
// item_mio__material__type: 10
|
||||
},
|
||||
form: {
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ export default {
|
|||
},
|
||||
query: {
|
||||
type__in: 'do_in,do_out',
|
||||
item_mio__material__type: 20
|
||||
// item_mio__material__type: 20
|
||||
},
|
||||
form: {
|
||||
|
||||
|
|
|
@ -85,8 +85,8 @@ export default {
|
|||
save: false,
|
||||
},
|
||||
query: {
|
||||
type__in: 'pur_in,do_out',
|
||||
item_mio__material__type: 40
|
||||
type__in: 'pur_in',
|
||||
// item_mio__material__type: 40
|
||||
},
|
||||
form: {
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ export default {
|
|||
},
|
||||
query: {
|
||||
type__in: 'pur_in,do_out',
|
||||
item_mio__material__type: 30
|
||||
// item_mio__material__type: 30
|
||||
},
|
||||
form: {
|
||||
|
||||
|
|
|
@ -210,50 +210,45 @@ export default {
|
|||
getMaterialOptions() {
|
||||
var type = this.form.type;
|
||||
var cate = this.cate;
|
||||
var query
|
||||
// if(cate=='good'){
|
||||
// query={ page: 0, is_hidden: false,count__gte:1,material__type:10}
|
||||
// }else if(cate=='halfgood'){
|
||||
// if(type == 'do_in'){
|
||||
// query={ page: 0, is_hidden: false,count__gte:1}
|
||||
// }else if(type == 'do_out'){
|
||||
// query={ page: 0, is_hidden: false,count__gte:1,material__type:20}
|
||||
// }
|
||||
// }else if(cate=='mainso'){//原料
|
||||
// query={ page: 0, is_hidden: false,count__gte:1,material__type__in:30}
|
||||
// }else if(cate=='helpso'){
|
||||
// query={ page: 0, is_hidden: false,count__gte:1,material__type__in:40}
|
||||
// }else{
|
||||
|
||||
// }
|
||||
// if(type == 'do_in'){
|
||||
// this.$API.inm.warehouse.batch.req(query).then(res => {
|
||||
// this.materialOptions = res
|
||||
// })
|
||||
// }else{
|
||||
// this.$API.wpm.wmaterial.list.req(query).then(res => {
|
||||
// this.materialOptions = res
|
||||
// })
|
||||
// }
|
||||
if (type == 'do_out') {
|
||||
query = { page: 0, type__in: '10, 20, 30', is_hidden: false, is_assemb: false }
|
||||
this.inputBatchDisable = true
|
||||
var query = {};
|
||||
// 'do_out': '生产领料',
|
||||
// 'sale_out': '销售发货',
|
||||
// 'pur_in': '采购入库',
|
||||
// 'do_in': '生产入库',
|
||||
// 'other_in': '其他入库',
|
||||
// 'other_out': '其他出库',
|
||||
//(10, '成品'), (20, '半成品'), (30, '主要原料'),
|
||||
// (40, '辅助材料'), (50, '加工工具'), (60, '辅助工装'), (70, '办公用品')
|
||||
let type__in='';
|
||||
if(cate=='good'){
|
||||
type__in = '10'
|
||||
}else if(cate=='halfgood'){
|
||||
type__in = '20'
|
||||
}else if(cate=='mainso'){
|
||||
type__in = '30'
|
||||
}else if(cate=='helpso'){
|
||||
type__in = '40'
|
||||
}
|
||||
if (type == 'do_out') {//生产领料'10, 20, 30'
|
||||
query = { page: 0, type__in: type__in, is_hidden: false, is_assemb: false };
|
||||
this.inputBatchDisable = true
|
||||
}
|
||||
else if (type == 'do_in') {
|
||||
query = { page: 0, type__in: '10, 20', is_hidden: false }
|
||||
this.inputBatchDisable = false
|
||||
else if (type == 'do_in') {//生产入库
|
||||
query = { page: 0, type__in: type__in, is_hidden: false }
|
||||
this.inputBatchDisable = false;
|
||||
}
|
||||
else if (type == 'pur_in') {
|
||||
query = { page: 0, type__in: 30, is_hidden: false, pu_orderitem_material__pu_order: this.mioObj.pu_order }
|
||||
this.inputBatchDisable = false
|
||||
else if (type == 'pur_in') {//采购入库
|
||||
query = { page: 0, type__in: type__in, is_hidden: false, pu_orderitem_material__pu_order: this.mioObj.pu_order }
|
||||
this.inputBatchDisable = false
|
||||
}
|
||||
else if (type == 'sale_out') {
|
||||
query = { page: 0, type__in: 10, is_hidden: false, orderitem_material__order: this.mioObj.order }
|
||||
this.inputBatchDisable = true
|
||||
else if (type == 'sale_out') {//销售发货
|
||||
query = { page: 0, type__in: 10, is_hidden: false, orderitem_material__order: this.mioObj.order }
|
||||
this.inputBatchDisable = true;
|
||||
}
|
||||
else {
|
||||
query = { page: 0 }
|
||||
}
|
||||
|
||||
this.$API.mtm.material.list.req(query).then(res => {
|
||||
this.materialOptions = res
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue