From 8cd1049dc8e451a5526be7ac88c981ca156c2189 Mon Sep 17 00:00:00 2001 From: ptt <2403326863@qq.com> Date: Wed, 4 Jun 2025 11:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=85=A5=E7=A3=85=E9=A1=B5=E9=9D=A21.?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operation/outinpound/index.vue | 946 +++++++++--------- 1 file changed, 481 insertions(+), 465 deletions(-) diff --git a/ruoyi-ui/src/views/measurement/operation/outinpound/index.vue b/ruoyi-ui/src/views/measurement/operation/outinpound/index.vue index ba68497..f60f0b6 100644 --- a/ruoyi-ui/src/views/measurement/operation/outinpound/index.vue +++ b/ruoyi-ui/src/views/measurement/operation/outinpound/index.vue @@ -172,420 +172,482 @@ - - - 新增 - - - 修改 - - - 删除 - - - 导出 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -680,6 +742,12 @@ export default { }, // 表单参数 form: {}, + tabs: [ + { name: 'weighingRequest', label: '过磅申请' }, + { name: 'tareRequest', label: '过皮申请' }, + { name: 'weightInfo', label: '磅单信息' } + ], + activeTab: 'weighingRequest', // 表单校验 rules: { } @@ -784,58 +852,6 @@ export default { this.single = selection.length!==1 this.multiple = !selection.length }, - /** 新增按钮操作 */ - handleAdd() { - this.reset() - this.open = true - this.title = "添加出入磅" - }, - /** 修改按钮操作 */ - handleUpdate(row) { - this.reset() - const id = row.id || this.ids - getOutinpound(id).then(response => { - this.form = response.data - this.open = true - this.title = "修改出入磅" - }) - }, - /** 提交按钮 */ - submitForm() { - this.$refs["form"].validate(valid => { - if (valid) { - if (this.form.id != null) { - updateOutinpound(this.form).then(response => { - this.$modal.msgSuccess("修改成功") - this.open = false - this.getList() - }) - } else { - addOutinpound(this.form).then(response => { - this.$modal.msgSuccess("新增成功") - this.open = false - this.getList() - }) - } - } - }) - }, - /** 删除按钮操作 */ - handleDelete(row) { - const ids = row.id || this.ids - this.$modal.confirm('是否确认删除出入磅编号为"' + ids + '"的数据项?').then(function() { - return delOutinpound(ids) - }).then(() => { - this.getList() - this.$modal.msgSuccess("删除成功") - }).catch(() => {}) - }, - /** 导出按钮操作 */ - handleExport() { - this.download('measurement/operation/outinpound/export', { - ...this.queryParams - }, `outinpound_${new Date().getTime()}.xlsx`) - } } }