diff --git a/src/views/inm/helpso_mio.vue b/src/views/inm/helpso_mio.vue
index e0cb812e..63665de8 100644
--- a/src/views/inm/helpso_mio.vue
+++ b/src/views/inm/helpso_mio.vue
@@ -6,20 +6,27 @@
type="primary"
@click="add('do_out')"
v-auth="'mio.do'"
- >生产领料
+ >生产领料
采购入库
+ >采购入库
退货
+ >领用出库
+ 退还入库
+ 退货
-
+
{
- this.wbatchOptions = res;
- });
+ params.mgroup= this.mgroup;
+ if(that.type=='do_in'){
+ params.state = 10;
+ }
+ }else if (this.mioObj.belong_dept != null){
+ params.belong_dept = this.mioObj.belong_dept;
}
+ this.$API.wpm.wmaterial.list.req(params).then((res) => {
+ this.wbatchOptions = res;
+ });
},
getMaterialOptions() {
var type = this.form.type;
@@ -376,9 +383,20 @@ export default {
this.inputBatchDisable = true;
} else if (type == "other_out") {
this.inputBatchDisable = true;
- } else {
+ } else if (type == "pur_out"||type == "borrow_out"||type == "return_in") {
+ query = {
+ page: 0,
+ type__in: 40,
+ is_hidden: false,
+ orderitem_material__order: this.mioObj.order?this.mioObj.order:null,
+ };
+ this.inputBatchDisable = true;
+ }else {
query = { page: 0 ,is_hidden:false};
}
+ if(type == "return_in"){
+ this.inputBatchDisable = false;
+ }
this.query = query;
this.apiObj=this.$API.mtm.material.list;
// this.$API.mtm.material.list.req(query).then((res) => {
@@ -436,7 +454,7 @@ export default {
that.form.material = that.selectObj.id;
that.form.unit = that.selectObj.unit;
that.form.unit_price = that.selectObj.unit_price;
- that.form.batch = that.cate=='helpso'?that.selectObj.bin_number_main:that.selectObj.batch;
+ that.form.batch = that.cate=='helpso'?that.selectObj.bin_number_main:'';
that.mTracking = that.selectObj.tracking;
if (type == "do_in") {
if (that.selectObj.is_assemb) {