+
领料
@@ -9,6 +9,7 @@
>入库
+
@@ -154,7 +142,14 @@ export default {
},
mounted() {
let that = this;
- that.$API.mtm.mgroup.list
+ if(that.mgroupName=="size"){
+ that.params.material__process__name = "一次超洗";
+ that.apiObj = that.$API.wpm.wmaterial.list;
+ }else if(that.mgroupName=="facade"){
+ that.params.material__process__name = "二次超洗";
+ that.apiObj = that.$API.wpm.wmaterial.list;
+ }else{
+ that.$API.mtm.mgroup.list
.req({ page: 0, search: that.mgroupName })
.then((res) => {
if (res.length != 1) {
@@ -165,6 +160,7 @@ export default {
that.params.mgroupx = res[0].id;
that.apiObj = that.$API.wpm.wmaterial.list;
});
+ }
},
methods: {
materialsChoses(str) {