From 957deddb1c6eac516961c9eaccc121cd89d28f94 Mon Sep 17 00:00:00 2001 From: zuowenwen Date: Thu, 28 Oct 2021 11:55:48 +0800 Subject: [PATCH] =?UTF-8?q?zww=20-=E7=94=B3=E8=AF=B7=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=EF=BC=8C=E4=BB=93=E5=BA=93=EF=BC=8C?= =?UTF-8?q?=E5=BA=93=E4=BD=8D=E6=96=B0=E5=A2=9E=20=EF=BC=8C=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=90=8D=E7=A7=B0=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/warehouse/location.js | 17 + src/api/warehouse/warehouse.js | 17 + .../purchaseorder/procurementReview.vue | 1 + .../purchaseorder/purchaseRequisition.vue | 72 +- src/views/modules/warehouse/location.vue | 971 +++++++++++++++++ src/views/modules/warehouse/warehouse.vue | 994 ++++++++++++++++++ 6 files changed, 2057 insertions(+), 15 deletions(-) create mode 100644 src/api/warehouse/location.js create mode 100644 src/api/warehouse/warehouse.js create mode 100644 src/views/modules/warehouse/location.vue create mode 100644 src/views/modules/warehouse/warehouse.vue diff --git a/src/api/warehouse/location.js b/src/api/warehouse/location.js new file mode 100644 index 0000000..265447a --- /dev/null +++ b/src/api/warehouse/location.js @@ -0,0 +1,17 @@ +import { createAPI } from "@/utils/httpRequest.js"; + +// 获取库房信息 +export const getLocationList = data => createAPI(`warehouse/getLocationList`,'POST',data) + +// 保存库房信息 +export const saveLocation = data => createAPI(`warehouse/saveLocation`,'POST',data) + +// 删除库房信息 +export const delLocation = data => createAPI(`warehouse/delLocation`,'POST',data) + +// 获取库房信息 +export const getWarehouseList = data => createAPI(`warehouse/getWarehouseList`,'POST',data) + + + + diff --git a/src/api/warehouse/warehouse.js b/src/api/warehouse/warehouse.js new file mode 100644 index 0000000..121180a --- /dev/null +++ b/src/api/warehouse/warehouse.js @@ -0,0 +1,17 @@ +import { createAPI } from "@/utils/httpRequest.js"; + +// 获取库房信息 +export const getWarehouseList = data => createAPI(`warehouse/getWarehouseList`,'POST',data) + +// 保存库房信息 +export const saveWarehouse = data => createAPI(`warehouse/saveWarehouse`,'POST',data) + +// 删除库房信息 +export const delWarehouse = data => createAPI(`warehouse/delWarehouse`,'POST',data) + + +// 删除库房类型信息 +export const getWareHouseTypeList = data => createAPI(`factory/tblbasedata/getTblBaseList`,'POST',data) + + + diff --git a/src/views/modules/purchaseorder/procurementReview.vue b/src/views/modules/purchaseorder/procurementReview.vue index 89e9d2b..a8ce21d 100644 --- a/src/views/modules/purchaseorder/procurementReview.vue +++ b/src/views/modules/purchaseorder/procurementReview.vue @@ -691,6 +691,7 @@ this.saveData.id = row.id this.saveData.approveResultComments = row.approveResultComments this.saveData.partNo = this.currentReviewStepData.partno + this.saveData.partdesc = this.currentReviewStepData.partdesc this.saveData.itemNo = this.currentReviewStepData.itemno this.saveData.qty = this.currentReviewStepData.qty this.saveData.authTypeDb = row.authTypeDb diff --git a/src/views/modules/purchaseorder/purchaseRequisition.vue b/src/views/modules/purchaseorder/purchaseRequisition.vue index ba20bcb..2c58c48 100644 --- a/src/views/modules/purchaseorder/purchaseRequisition.vue +++ b/src/views/modules/purchaseorder/purchaseRequisition.vue @@ -35,6 +35,14 @@ + + + + + + + + {{buttons.search}} {{buttons.addLabelName}} @@ -95,9 +103,9 @@ width="120" :label="buttons.operating"> @@ -164,7 +172,7 @@ - @@ -190,7 +198,10 @@ - + + + + - + 取消 @@ -329,6 +340,8 @@ inputSearch8: '预估单价', inputSearch9: '预估总价', inputSearch10: '供应商名称', + inputSearch11: '刀模名称', + inputSearch12: '审批结果', currentPRDetailData: { username: this.$store.state.user.name, requisitionno: '', @@ -338,6 +351,7 @@ suppliername: '', orderType: '', partno: '', + partdesc : '', qty: 0, price: 0, totalPrice: 0, @@ -355,6 +369,7 @@ orderType: '', partno: '', authorizeFlag: 'N', + approveresult : '', site: this.$store.state.user.site, userId: this.$store.state.user.name, limit: '', @@ -449,6 +464,23 @@ status: true, fixed: false }, + { + userId: this.$store.state.user.name, + functionId: 2001, + serialNumber: 'PRHeader2001Partdesc', + tableId: "PRHeaderTable", + tableName: "PRHeader", + columnProp: "partdesc", + headerAlign: "center", + align: "center", + columnLabel: "刀模名称", + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: false + }, { userId: this.$store.state.user.name, functionId: 2001, @@ -540,7 +572,7 @@ serialNumber: 'PRHeader2001AuthorizeFlag', tableId: "PRHeaderTable", tableName: "PRHeader", - columnProp: "authorizeFlag", + columnProp: "strAuthorizeFlag", headerAlign: "center", align: "center", columnLabel: "是否审批", @@ -557,7 +589,7 @@ serialNumber: 'review2101AuthorizeFlag', tableId: "review2101", tableName: "PRHeader", - columnProp: "strApproveResult", + columnProp: "approveresult", headerAlign: "center", align: "left", columnLabel: "审批结果", @@ -950,7 +982,7 @@ }, mounted() { this.$nextTick(() => { - this.height = window.innerHeight - 200; + this.height = window.innerHeight - 230; }) }, activated() { @@ -1014,7 +1046,7 @@ savePRDetail() { this.bannersBut = true if (this.currentPRDetailData.orderType == null || this.currentPRDetailData.orderType.trim() === "") { - this.$alert('请选择处理类型!', '处理类型', { + this.$alert('请选择处理类型!', '操作提示', { confirmButtonText: '确定', callback: action => { this.bannersBut = false @@ -1022,7 +1054,7 @@ }); return } else if (this.currentPRDetailData.supplierid == null || this.currentPRDetailData.supplierid.trim() === "") { - this.$alert('请选择供应商名称!', '供应商名称', { + this.$alert('请选择供应商名称!', '操作提示', { confirmButtonText: '确定', callback: action => { this.bannersBut = false @@ -1030,7 +1062,7 @@ }); return } else if (this.currentPRDetailData.partno == null || this.currentPRDetailData.partno.trim() === "") { - this.$alert('请输入刀模编码!', '刀模编码', { + this.$alert('请输入刀模编码!', '操作提示', { confirmButtonText: '确定', callback: action => { this.bannersBut = false @@ -1038,7 +1070,7 @@ }); return } else if (this.currentPRDetailData.qty === 0 || this.currentPRDetailData.qty <= 0) { - this.$alert('请输入申请数量!', '申请数量', { + this.$alert('请输入申请数量!', '操作提示', { confirmButtonText: '确定', callback: action => { this.bannersBut = false @@ -1046,7 +1078,15 @@ }); return } else if (this.currentPRDetailData.price === 0 || this.currentPRDetailData.price <= 0) { - this.$alert('请输入预估单价!', '预估单价', { + this.$alert('请输入预估单价!', '操作提示', { + confirmButtonText: '确定', + callback: action => { + this.bannersBut = false + } + }); + return + }else if (this.currentPRDetailData.partDesc === 0 || this.currentPRDetailData.partDesc <= 0) { + this.$alert('请输入刀模名称!', '操作提示', { confirmButtonText: '确定', callback: action => { this.bannersBut = false @@ -1112,6 +1152,7 @@ this.currentPRDetailData.price = 0 this.currentPRDetailData.status = '已下达' this.currentPRDetailData.taxCode = '' + this.currentPRDetailData.partdesc = '' } else { this.currentPRDetailData.requisitionno = row.requisitionno this.currentPRDetailData.itemno = row.itemno @@ -1123,6 +1164,7 @@ this.currentPRDetailData.price = row.price this.currentPRDetailData.status = '' this.currentPRDetailData.taxCode = row.taxCode + this.currentPRDetailData.partDesc = row.partdesc } if(val != 'Y'){ this.currentPRDetailData.orderref1 = null diff --git a/src/views/modules/warehouse/location.vue b/src/views/modules/warehouse/location.vue new file mode 100644 index 0000000..c5efc0a --- /dev/null +++ b/src/views/modules/warehouse/location.vue @@ -0,0 +1,971 @@ + + + + diff --git a/src/views/modules/warehouse/warehouse.vue b/src/views/modules/warehouse/warehouse.vue new file mode 100644 index 0000000..d06b9b9 --- /dev/null +++ b/src/views/modules/warehouse/warehouse.vue @@ -0,0 +1,994 @@ + + + +