From 74b33f07ece8455f5d9db3b43379e58b38810adf Mon Sep 17 00:00:00 2001 From: x_z Date: Tue, 23 Aug 2022 10:58:46 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug;=202.?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8D=95=E6=8D=AE=E7=BC=96=E8=BE=91=E7=A0=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E7=BC=96=E8=BE=91=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E6=97=B6=E9=97=B4;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/UnitManage.vue | 26 +++++++++++--------- src/views/userManage/admin/authAdmin.vue | 10 +++++++- src/views/warehouse/codeReplace.vue | 31 +++++++++--------------- src/views/warehouse/errorCode.vue | 1 + src/views/warehouse/ioErrorOrder.vue | 9 ++++--- src/views/warehouse/stockOrderDelete.vue | 3 +-- 6 files changed, 43 insertions(+), 37 deletions(-) diff --git a/src/views/product/UnitManage.vue b/src/views/product/UnitManage.vue index 32ad2a3..5d557e0 100644 --- a/src/views/product/UnitManage.vue +++ b/src/views/product/UnitManage.vue @@ -144,7 +144,8 @@ 地址  - + @@ -230,9 +231,8 @@ export default { }, editQuery: { - unitId: null, - thirdId: null, name: null, + thirdId: null, creditNo: null, pinyinCode: null, contact: null, @@ -302,12 +302,6 @@ export default { }; this.getList(); }, - // 刷新表单 - resetForm() { - this.$nextTick(() => { - this.$refs['editQuery'].resetFields(); - }); - }, search() { this.query.page = 1; this.getList(); @@ -372,9 +366,17 @@ export default { handleAddClick() { this.editType = 0; this.editDialogVisible = true; - this.resetForm(); - var timestamp3 = new Date().getTime(); - this.editQuery.unitId = timestamp3; + this.editQuery = { + name: null, + thirdId: null, + creditNo: null, + pinyinCode: null, + contact: null, + mobile: null, + corpType: null, + addr: null, + unitId: new Date().getTime() + }; }, change() { diff --git a/src/views/userManage/admin/authAdmin.vue b/src/views/userManage/admin/authAdmin.vue index 890eb7c..4a4be12 100644 --- a/src/views/userManage/admin/authAdmin.vue +++ b/src/views/userManage/admin/authAdmin.vue @@ -341,7 +341,15 @@ export default { resetForm() { this.$nextTick(() => { if (this.formName === "add") { - this.$refs["dataForm"].resetFields(); + this.formData = { + userName: null, + employeeName: null, + passWord: null, + checkPassword: null, + comments: null, + userFlag: 1, + roles: null + }; } this.$refs["dataForm"].clearValidate(); }); diff --git a/src/views/warehouse/codeReplace.vue b/src/views/warehouse/codeReplace.vue index 5946299..8ed1cb3 100644 --- a/src/views/warehouse/codeReplace.vue +++ b/src/views/warehouse/codeReplace.vue @@ -157,17 +157,6 @@ - - 审核时间: - - - -
提交 @@ -222,7 +211,14 @@ }, actDate: null, auditTime: null, - editOrderVisible: false + editOrderVisible: false, + pickerOptions: { + disabledDate: time => { + let endDate = new Date().getTime(); + let nowDate = new Date(time).getTime(); + return (nowDate > endDate); + } + } }; }, components: { @@ -332,21 +328,18 @@ }); }, updateOrderInfo() { - if (this.actDate === null || this.auditTime === null) { - this.$message.warning("创建时间和审核时间不能为空"); - return; - } else if (this.actDate > this.auditTime) { - this.$message.warning("请检查创建时间和审核时间是否正确"); + if (this.actDate === null || this.actDate === undefined) { + this.$message.warning("创建时间不能为空"); return; } let data = { actDate: this.actDate, - auditTime: this.auditTime, - orderIds: [this.query.corpOrderId] + orderIds: [this.query.orderId] }; updateOrderInfo(data).then((res) => { if (res.code === 20000) { this.$message.success("修改成功"); + this.getCodeList(); } }).catch((error) => { }); diff --git a/src/views/warehouse/errorCode.vue b/src/views/warehouse/errorCode.vue index 724a6eb..cabd374 100644 --- a/src/views/warehouse/errorCode.vue +++ b/src/views/warehouse/errorCode.vue @@ -339,6 +339,7 @@ export default { this.query = Object.assign(this.query, query); this.query.limit = parseInt(this.query.limit); this.query.corpOrderId = query.id; + this.query.code = null; // 加载表格数据 this.getCodeList(); diff --git a/src/views/warehouse/ioErrorOrder.vue b/src/views/warehouse/ioErrorOrder.vue index 0a460c5..8476d1b 100644 --- a/src/views/warehouse/ioErrorOrder.vue +++ b/src/views/warehouse/ioErrorOrder.vue @@ -146,13 +146,13 @@ > - + 查询 @@ -347,8 +347,11 @@ export default { }).catch((error) => { }); }, - getUnitList() { + getUnitList(page) { this.loading = true; + if (page != null) { + this.unitquery.page = 1; + } unitListBykey(this.unitquery) .then((response) => { this.loading = false; diff --git a/src/views/warehouse/stockOrderDelete.vue b/src/views/warehouse/stockOrderDelete.vue index 2bf373f..b5c5a70 100644 --- a/src/views/warehouse/stockOrderDelete.vue +++ b/src/views/warehouse/stockOrderDelete.vue @@ -232,7 +232,7 @@ limit: 10 }, detailQuery: { - orderIdFk: "", + orderId: null, page: 1, limit: 20 }, @@ -354,7 +354,6 @@ getOrderDetailList(row) { if (this.$isNotBlank(row)) { this.detailQuery.orderId = row.orderId; - this.detailQuery.orderIdFk = row.orderId; } this.detailLoading = true; orderDetail(this.detailQuery)