diff --git a/public/config.js b/public/config.js index a100d15..740ba04 100644 --- a/public/config.js +++ b/public/config.js @@ -2,19 +2,19 @@ window.global_config = { // "BASE_URL":"http://127.0.0.1:9996", // "BASE_URL":"http://139.159.187.130/SPMS_SERVER/", - "BASE_URL": "http://139.159.187.130:8980", + // "BASE_URL": "http://139.159.187.130:8980", - /** - "BASE_URL":"http://192.168.192.201/SPMS_SERVER", - "SERVER_IP": "http://192.168.192.201/SPMS_SERVER" + // + // "BASE_URL":"http://192.168.192.201/SPMS_SERVER", + // "SERVER_IP": "http://192.168.192.201/SPMS_SERVER" - "BASE_URL":"http://192.168.0.109:9996", - "SERVER_IP": "http://192.168.0.109:9996" + "BASE_URL":"http://127.0.0.1:9906", + "SERVER_IP": "http://127.0.0.1:9906" + - */ }; diff --git a/src/views/basic/CorpMaintain.vue b/src/views/basic/CorpMaintain.vue index cae4982..38a2775 100644 --- a/src/views/basic/CorpMaintain.vue +++ b/src/views/basic/CorpMaintain.vue @@ -417,6 +417,9 @@ export default { this.getList(); }, getList() { + if(this.query.key!=null){ + this.query.page=1 + } this.loading = true; this.erpIdColumn = false; this.thirdIdColumn = false; diff --git a/src/views/basic/UdiInfoManage.vue b/src/views/basic/UdiInfoManage.vue index 371fc68..3709e4c 100644 --- a/src/views/basic/UdiInfoManage.vue +++ b/src/views/basic/UdiInfoManage.vue @@ -1207,6 +1207,10 @@ export default { this.loading = false; this.detailList = response.data || []; this.detailList.forEach((item, index, array) => { + this.detailList[index].isAdavence=item.adavence + this.detailList[index].isDisable=item.disable + this.detailList[index].useMuti=item.useMuti + if (item.zxxsbzbhsydysl > 1) { this.isUseDyCheck = true; } diff --git a/src/views/inventory/InvStatistics.vue b/src/views/inventory/InvStatistics.vue index 4e48650..84a4a3b 100644 --- a/src/views/inventory/InvStatistics.vue +++ b/src/views/inventory/InvStatistics.vue @@ -62,7 +62,7 @@ - { + if (item.code === invWarehouseCode) { + this.filterQuery.invStorageCode = item.parentId; + } + }); + }, //供应商名称候选查询 findMethod(query) { diff --git a/src/views/purchase/supCertificationAdd.vue b/src/views/purchase/supCertificationAdd.vue index c872e3b..6dce3bc 100644 --- a/src/views/purchase/supCertificationAdd.vue +++ b/src/views/purchase/supCertificationAdd.vue @@ -470,8 +470,8 @@ export default { onReset2() { this.registrationQuery = { - customerId: null, - manufacturerIdFk: null, + customerId: this.registrationQuery.customerId, + manufacturerIdFk: this.registrationQuery.manufacturerIdFk, recordProductName: "", recordCode: "", recordPeopleName: "", diff --git a/src/views/purchase/supManufacturerEditDialog.vue b/src/views/purchase/supManufacturerEditDialog.vue index 5a4045e..bdfceb9 100644 --- a/src/views/purchase/supManufacturerEditDialog.vue +++ b/src/views/purchase/supManufacturerEditDialog.vue @@ -511,21 +511,7 @@ export default { }, methods: { onModifySubmit(type) { - - //判断本企业产品是否是通过审核的 - let query = { - customerId: this.$store.getters.customerId - } - getCompany(query) - .then((response) => { - if(response.data.auditStatus!=1){ - this.$message.error("本企业信息还未通过审核!"); - return; - }else{ - this.addOrModifyCompany(type); - }}).catch(() => { - - }); + this.addOrModifyCompany(type); }, addOrModifyCompany (type){ @@ -559,7 +545,7 @@ export default { this.certLoading = true; filterCompanyCert(this.certQuery) .then((response) => { - + this.certLoading = false; this.certList = response.data.list || []; this.certTotal=response.data.total diff --git a/src/views/thrsys/thrOrderNew.vue b/src/views/thrsys/thrOrderNew.vue index 144d194..2670f5e 100644 --- a/src/views/thrsys/thrOrderNew.vue +++ b/src/views/thrsys/thrOrderNew.vue @@ -806,8 +806,10 @@ export default { this.formData.corpName = row.name; }, - subStorageChange(code) { - this.formData.locStorageCode= this.subInvList.find(item => item.code == code).parentId + subStorageChange(item) { + this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId + this.formData.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code + this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName this.getBusType(); this.findSubStorageMethod(); }, diff --git a/src/views/warehouse/DialogcChangeNewOrder.vue b/src/views/warehouse/DialogcChangeNewOrder.vue index 230ef2e..10f0bf7 100644 --- a/src/views/warehouse/DialogcChangeNewOrder.vue +++ b/src/views/warehouse/DialogcChangeNewOrder.vue @@ -297,8 +297,12 @@ export default { this.loading = false; }); }, - getFormStorageCode(){ - // this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId + getFormStorageCode(subInvId){ + this.fromSubStorageOptions.forEach(item => { + if (subInvId === item.code) { + this.formData.fromCorp = item.warehouseName; + } + }); }, locCHange() { @@ -351,6 +355,7 @@ export default { }) .catch(() => { }); + this.getBusType() }, findMethod(query) { this.fromOptions = []; @@ -420,6 +425,7 @@ export default { getBusType() { let query = { enabled: true, + code:this.formData.invWarehouseCode }; getLocalJoinByUser(query) .then((response) => { diff --git a/src/views/warehouse/IONewOrder.vue b/src/views/warehouse/IONewOrder.vue index 68b9ba0..1ac7b39 100644 --- a/src/views/warehouse/IONewOrder.vue +++ b/src/views/warehouse/IONewOrder.vue @@ -431,6 +431,7 @@ export default { } }, getBusType() { + this.filterQuery.locStorageCode= this.subInvList.find(item => item.code == this.filterQuery.invWarehouseCode).parentId let query = { code: this.filterQuery.invWarehouseCode, enabled: true, diff --git a/src/views/warehouse/stockHospOrderNew.vue b/src/views/warehouse/stockHospOrderNew.vue index 10fd8ee..b2f6f66 100644 --- a/src/views/warehouse/stockHospOrderNew.vue +++ b/src/views/warehouse/stockHospOrderNew.vue @@ -61,7 +61,6 @@ -//
@@ -535,7 +534,6 @@ export default { }, methods: { saveOrder(status) { - this.code = ""; this.$refs.multipleTable.setCurrentRow(); this.currentRow = {}; diff --git a/src/views/warehouse/stockOrderDelSearch.vue b/src/views/warehouse/stockOrderDelSearch.vue index 38d514d..b701c9f 100644 --- a/src/views/warehouse/stockOrderDelSearch.vue +++ b/src/views/warehouse/stockOrderDelSearch.vue @@ -603,6 +603,9 @@ export default { this.total = response.data.total || 0; } else { this.$message.error(response.message); + this.list = []; + this.total = 0; + this.detailList = []; } }) @@ -793,6 +796,9 @@ export default { } }, getBusType() { + if(this.subInvList.length>0){ + this.query.locStorageCode= this.subInvList.find(item => item.code == this.query.invWarehouseCode).parentId + } let query = { code: this.query.invWarehouseCode, enabled: true, diff --git a/src/views/warehouse/stockOrderEditDistribution.vue b/src/views/warehouse/stockOrderEditDistribution.vue index 14b008e..57a20fd 100644 --- a/src/views/warehouse/stockOrderEditDistribution.vue +++ b/src/views/warehouse/stockOrderEditDistribution.vue @@ -62,7 +62,6 @@ - @@ -89,7 +88,7 @@ - +
当前分库: @@ -576,6 +575,8 @@ export default { }; this.selectInvProductVisible = true; } else { + this.invQueryData.corpId = this.formData.corpId; + this.thisData.noInvOut = this.formData.noInvOut; this.selectProductVisible = true; } diff --git a/src/views/warehouse/stockOrderEditor.vue b/src/views/warehouse/stockOrderEditor.vue index c1a88aa..59e71e6 100644 --- a/src/views/warehouse/stockOrderEditor.vue +++ b/src/views/warehouse/stockOrderEditor.vue @@ -634,6 +634,9 @@ export default { this.query.page = 1; this.getList(); + //清空详情数据 + this.detailQuery.page=1 + this.detailTotal=0 if (this.query.status === "202") { this.haveDistributionVisible = true; } else { @@ -765,6 +768,7 @@ export default { if (this.$isNotBlank(row)) { this.detailQuery.orderIdFk = row.id; this.formData = row; + this.detailQuery.page=1; } this.detailLoading = true; stockOrderDetail(this.detailQuery) diff --git a/src/views/warehouse/stockOrderNew.vue b/src/views/warehouse/stockOrderNew.vue index 638a5d5..f1d7137 100644 --- a/src/views/warehouse/stockOrderNew.vue +++ b/src/views/warehouse/stockOrderNew.vue @@ -657,6 +657,8 @@ export default { this.detailList = []; } else { this.$message.error(response.message); + this.list = []; + this.total = 0; } }) @@ -724,6 +726,7 @@ export default { if (this.$isNotBlank(row)) { this.detailQuery.orderIdFk = row.id; this.formData = row; + this.detailQuery.page=1; } this.detailLoading = true; stockOrderDetail(this.detailQuery) diff --git a/src/views/warehouse/stockOrderNewDistribution.vue b/src/views/warehouse/stockOrderNewDistribution.vue index 02a3917..ad5d21e 100644 --- a/src/views/warehouse/stockOrderNewDistribution.vue +++ b/src/views/warehouse/stockOrderNewDistribution.vue @@ -569,6 +569,7 @@ export default { if (this.orderEditor) { this.thisData.orderId = this.formData.id } + this.invQueryData.corpId = this.formData.corpId; this.selectProductVisible = true; return; } diff --git a/src/views/warehouse/stockOrderWaitCheck.vue b/src/views/warehouse/stockOrderWaitCheck.vue index 3bed2e7..c8ae7ea 100644 --- a/src/views/warehouse/stockOrderWaitCheck.vue +++ b/src/views/warehouse/stockOrderWaitCheck.vue @@ -609,6 +609,7 @@ export default { getStockOrderDetailList(row) { if (this.$isNotBlank(row)) { this.detailQuery.orderIdFk = row.id; + this.detailQuery.page=1; } this.detailLoading = true; stockOrderDetail(this.detailQuery)