|
|
@@ -60,6 +60,8 @@
|
|
|
import { listByIdsReport } from '@/api/produce/job';
|
|
|
import { listPcToWarehouseTG } from '@/api/produce/workOrder';
|
|
|
|
|
|
+ import { jobSave } from '@/api/produce/workOrder';
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
workOrderBom,
|
|
|
@@ -168,7 +170,27 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- save() {}
|
|
|
+ save() {
|
|
|
+ let _arr = [];
|
|
|
+ _arr = this.List.filter((item) => {
|
|
|
+ return item.toWarehouseList.length > 0;
|
|
|
+ });
|
|
|
+
|
|
|
+ let bol = true;
|
|
|
+ bol = _arr.every((e, i) => {
|
|
|
+ return e.warehouseId;
|
|
|
+ });
|
|
|
+
|
|
|
+ if (!bol) {
|
|
|
+ this.$message.warning(`仓库不能为空`);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ jobSave(_arr).then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ this.$message.success('入库成功');
|
|
|
+ this.getList(this.idsList);
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|