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`) - } } }