diff --git a/hb_client/src/api/inm.js b/hb_client/src/api/inm.js
index 61fa722..a4ff215 100644
--- a/hb_client/src/api/inm.js
+++ b/hb_client/src/api/inm.js
@@ -36,6 +36,16 @@ export function getInventoryList(query) {
params: query
})
}
+//其他入库
+
+export function createInother(data) {
+ return request({
+ url: '/inm/fifo/in_other/',
+ method: 'post',
+ data
+ })
+}
+//采购入库
export function createInventory(data) {
return request({
url: '/inm/fifo/in_pur/',
@@ -43,6 +53,15 @@ export function createInventory(data) {
data
})
}
+//采购订单项入库
+export function createfifoitem(data) {
+ return request({
+ url: '/inm/fifoitem/',
+ method: 'post',
+ data
+ })
+}
+
//仓库对应的物料
export function getfifodetailList(query) {
return request({
diff --git a/hb_client/src/api/pum.js b/hb_client/src/api/pum.js
index 2a807b4..c0a3c18 100644
--- a/hb_client/src/api/pum.js
+++ b/hb_client/src/api/pum.js
@@ -58,4 +58,13 @@ export function deletePuorderItem(id, data) {
method: 'delete',
data
})
-}
\ No newline at end of file
+}
+
+//采购订单项目详情
+
+export function getpuorder(id) {
+ return request({
+ url: `/pum/pu_order_item/${id}/`,
+ method: 'get'
+ })
+}
diff --git a/hb_client/src/views/inm/fifo.vue b/hb_client/src/views/inm/fifo.vue
index 9483733..b2aeab7 100644
--- a/hb_client/src/views/inm/fifo.vue
+++ b/hb_client/src/views/inm/fifo.vue
@@ -2,8 +2,11 @@
+
新增采购入库
新增出入库记录新增其他入库
+
-
+
+
{{
- scope.row.id
+ scope.row.number
}}
-
{{
scope.row.create_by_.name
@@ -65,7 +69,9 @@
已审核
-
+
+ {{ scope.row.create_time }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
-
+
+
+
+
+
-
+
@@ -232,17 +287,24 @@
import {
getfifoList,
createInventory,
+ createInother,
getWarehouseList,
deleteFifoitem,
deleteFifo,
audit,
} from "@/api/inm";
+import {
+ getPuorderList,
+
+} from "@/api/pum";
import checkPermission from "@/utils/permission";
+import { getpVendorList } from "@/api/vendor";
import { getMaterialList } from "@/api/mtm";
import { getUserList } from "@/api/user";
import { genTree } from "@/utils";
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
const defaulteinventory = {
+ vendor:null,
details: [
{
warehouse:"",//仓库
@@ -265,17 +327,21 @@ export default {
2: "销售提货",
3: "采购入库",
4: "生产入库",
+ 5: "其他入库",
},
+ inpur:{pu_order:null},
listQuery: {
page: 1,
page_size: 20,
},
+ puorderoptions:[],
warehouseData: [],
materialoptions: [],
-
+ vendoroptions:[],
listLoading: true,
dialogVisible: false,
dialogType: "new",
+ dialogVisibles: false,
rule1: {
name: [{ required: true, message: "请输入", trigger: "blur" }],
},
@@ -286,8 +352,9 @@ export default {
created() {
this.getlists();
this.getList();
-
+ this.getListgys();
this.getmaterialList();
+ this.getpuorderList();
},
methods: {
checkPermission,
@@ -304,9 +371,40 @@ export default {
},
//出入库详情
handleDetail(scope) {
- this.$router.push({ name: "fifodetail", params: { id: scope.row.id } });
+ this.$router.push({ name: "fifodetail", params: { id: scope.row.id,pu_order:scope.row.pu_order, } });
},
-
+
+ //供应商列表
+ getListgys() {
+
+ getpVendorList({page:0}).then((response) => {
+ if (response.data) {
+ this.vendoroptions = response.data;
+ }
+
+ });
+ },
+ //采购订单
+ getpuorderList() {
+
+ getPuorderList({page:0}).then((response) => {
+ if (response.data) {
+ this.puorderoptions = response.data;
+ }
+
+ });
+ },
+ //采购入库提交
+ confirminpur(){
+ createInventory(this.inpur).then((res) => {
+ if (res.code >= 200) {
+ this.getList();
+ this.dialogVisibles = false;
+ this.$message.success("成功");
+ }
+ });
+ },
+//仓库
getlists() {
getWarehouseList({ page: 0 }).then((response) => {
if (response.data) {
@@ -315,7 +413,9 @@ export default {
this.listLoading = false;
});
},
-
+ handlecgCreate(){
+ this.dialogVisibles=true;
+ },
addConditions() {
if (this.inventory.details.length <= 10) {
this.inventory.details.push({
@@ -388,7 +488,7 @@ export default {
async confirm(form) {
console.log(this.inventory);
- createInventory(this.inventory).then((res) => {
+ createInother(this.inventory).then((res) => {
if (res.code >= 200) {
this.getList();
this.dialogVisible = false;
diff --git a/hb_client/src/views/inm/fifodetail.vue b/hb_client/src/views/inm/fifodetail.vue
index 4b1203b..ddb79e8 100644
--- a/hb_client/src/views/inm/fifodetail.vue
+++ b/hb_client/src/views/inm/fifodetail.vue
@@ -1,6 +1,9 @@
+ 新增采购项入库
@@ -50,7 +54,6 @@
-
{{
item.name
@@ -60,12 +63,14 @@
- 复验
-
- 上传
-
+
+ 上传
@@ -77,54 +82,137 @@
@pagination="getList"
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
-
- 上传文件
+
+ 上传文件
可上传多个pdf,word,ppt,excel,图片文件,单文件大小不超过50M
-
-
-
-
- {{
- item.name
- }}
-
+
+
+
+
+ {{
+ item.name
+ }}
+
取消
@@ -270,8 +358,14 @@