From ec9ebeae6b520fe068f971f1c169eb53a2f51df3 Mon Sep 17 00:00:00 2001 From: yxt_djz Date: Wed, 14 Sep 2022 09:02:52 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=87=91=E8=9D=B6?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../anrui/scm/biz/scmapplyinbound/ScmApplyInboundService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinbound/ScmApplyInboundService.java b/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinbound/ScmApplyInboundService.java index 6b4d8fb584..122a9b28fe 100644 --- a/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinbound/ScmApplyInboundService.java +++ b/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinbound/ScmApplyInboundService.java @@ -543,8 +543,8 @@ public class ScmApplyInboundService extends MybatisBaseService bdMaterials= createBdMaterialList(scmApplyInbound,scmApplyInboundVehicleDtos); ResultBean r = finKingDeeFeign.draftBdMaterialList(bdMaterials);*/ - /*StkInStock stkInStock=createStkInStock(scmApplyInbound,scmApplyInboundVehicleDtos); - ResultBean r1 = finKingDeeFeign.draftStkInStock(stkInStock);*/ + StkInStock stkInStock=createStkInStock(scmApplyInbound,scmApplyInboundVehicleDtos); + ResultBean r1 = finKingDeeFeign.draftStkInStock(stkInStock); } catch (Exception e) { //return rb.setMsg("入账推送金蝶系统的应付单接口报错,主数据sid:" + scmApplyInbound.getSid()); } From 748969f72eefa3d03adf494163b819dd6334d356 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 14 Sep 2022 16:47:37 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=9A=84=E5=88=86=E6=89=B9=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruzhang/ruzhangguanli/ruzhangAdd.vue | 78 ++++++++++++------ .../ruzhangguanli/ruzhangEdit.vue | 79 ++++++++++++------- 2 files changed, 104 insertions(+), 53 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue b/anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue index 5fff7e3aa4..72defbe25d 100644 --- a/anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue @@ -784,33 +784,59 @@ export default { } else { this.formobj.deductionPolicyFourThree = 1 } - // if (this.formobj.vehicleList.length > 0) { - // for (var i = 0; i < this.formobj.vehicleList.length; i++) { - // if (this.formobj.vehicleList[i].vinNo !== '') { - // if (this.formobj.vehicleList[i].vinNo.length < 17) { - // const message = '车架号:' + this.formobj.vehicleList[i].vinNo + ' 不足17位' - // this.$message({ showClose: true, type: 'error', message: message }) - // return - // } - // } - // } - // } - req.submitVehicleApply(this.formobj).then(res => { - if (res.success) { - this.$message({ - showClose: true, - type: 'success', - message: '提交成功' - }) - this.handleReturn('true') - } else { - this.$message({ - showClose: true, - type: 'error', - message: '提交失败' - }) + var hint = 0 + if (this.formobj.vehicleList.length > 0) { + for (var i = 0; i < this.formobj.vehicleList.length; i++) { + if (this.formobj.vehicleList[i].vinNo === '') { + hint = 1 + break + } } - }) + } + if (hint !== 0) { + const tip = '有些车架号没有填写,是否分批入库' + this.$confirm(tip, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + req.submitVehicleApply(this.formobj).then(res => { + if (res.success) { + this.$message({ + showClose: true, + type: 'success', + message: '提交成功' + }) + this.handleReturn('true') + } else { + this.$message({ + showClose: true, + type: 'error', + message: '提交失败' + }) + } + }) + }).catch(() => { + hint = 0 + }) + } else { + req.submitVehicleApply(this.formobj).then(res => { + if (res.success) { + this.$message({ + showClose: true, + type: 'success', + message: '提交成功' + }) + this.handleReturn('true') + } else { + this.$message({ + showClose: true, + type: 'error', + message: '提交失败' + }) + } + }) + } }, // 返回(===既判断又赋值) handleReturn(isreload) { diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue index d3469ba396..d7ac98ea6c 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue @@ -805,34 +805,59 @@ export default { } else { this.formobj.deductionPolicyFourThree = 1 } - // if (this.formobj.vehicleList.length > 0) { - // for (var i = 0; i < this.formobj.vehicleList.length; i++) { - // if (this.formobj.vehicleList[i].vinNo !== '') { - // if (this.formobj.vehicleList[i].vinNo.length < 17) { - // const message = '车架号:' + this.formobj.vehicleList[i].vinNo + ' 不足17位' - // this.$message({ showClose: true, type: 'error', message: message }) - // return - // } - // } - // } - // } - req.submitVehicleApply(this.formobj).then(res => { - if (res.success) { - this.$message({ - showClose: true, - type: 'success', - message: '提交成功' - }) - // 子页面向父级页面传递值(关闭弹框) - window.parent.postMessage({ - cmd: 'returnHeight', - params: { - // 操作成功,告诉父级页面关闭弹框 - code: 1 - } - }, '*') + var hint = 0 + if (this.formobj.vehicleList.length > 0) { + for (var i = 0; i < this.formobj.vehicleList.length; i++) { + if (this.formobj.vehicleList[i].vinNo === '') { + hint = 1 + break + } } - }) + } + if (hint !== 0) { + const tip = '有些车架号没有填写,是否分批入库' + this.$confirm(tip, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + req.submitVehicleApply(this.formobj).then(res => { + if (res.success) { + this.$message({ + showClose: true, + type: 'success', + message: '提交成功' + }) + this.handleReturn('true') + } else { + this.$message({ + showClose: true, + type: 'error', + message: '提交失败' + }) + } + }) + }).catch(() => { + hint = 0 + }) + } else { + req.submitVehicleApply(this.formobj).then(res => { + if (res.success) { + this.$message({ + showClose: true, + type: 'success', + message: '提交成功' + }) + this.handleReturn('true') + } else { + this.$message({ + showClose: true, + type: 'error', + message: '提交失败' + }) + } + }) + } } } } From 340fb4df18d35f7516eb2a185e007c71d9a25c87 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 14 Sep 2022 16:48:58 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E5=8F=B0=E8=B4=A6=EF=BC=8C=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue index a1e61dbcac..4ad8742cf6 100644 --- a/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue +++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue @@ -91,6 +91,11 @@ + + +