From 7da7ea03090a689da86ccd9868d8e363ec4edcfe Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Tue, 2 Apr 2024 17:47:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=80=9F=E8=B0=83=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../claimAndRefund/return/returnExamine.vue | 10 +- sgzb-ui/src/views/store/newBuy/plan.vue | 202 ++----- sgzb-ui/src/views/store/newBuy/planAdd.vue | 500 ++++++++++++++++++ sgzb-ui/src/views/store/newBuy/planSecond.vue | 102 ++-- 4 files changed, 579 insertions(+), 235 deletions(-) create mode 100644 sgzb-ui/src/views/store/newBuy/planAdd.vue diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnExamine.vue b/sgzb-ui/src/views/claimAndRefund/return/returnExamine.vue index f2d1a736..ba292192 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/returnExamine.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/returnExamine.vue @@ -90,9 +90,9 @@ - +
- + 新增 - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - + + + + + + + + + diff --git a/sgzb-ui/src/views/store/newBuy/planAdd.vue b/sgzb-ui/src/views/store/newBuy/planAdd.vue new file mode 100644 index 00000000..215a2b1c --- /dev/null +++ b/sgzb-ui/src/views/store/newBuy/planAdd.vue @@ -0,0 +1,500 @@ + + + + \ No newline at end of file diff --git a/sgzb-ui/src/views/store/newBuy/planSecond.vue b/sgzb-ui/src/views/store/newBuy/planSecond.vue index 7c6ddb4f..8a2e54ba 100644 --- a/sgzb-ui/src/views/store/newBuy/planSecond.vue +++ b/sgzb-ui/src/views/store/newBuy/planSecond.vue @@ -38,16 +38,7 @@ v-hasPermi="['store:labelType:export']" >导出 - - 刷新缓存 - + @@ -138,10 +129,10 @@ - - - - + + + + @@ -205,8 +196,6 @@ export default { title: "", // 是否显示弹出层 open: false, - // 日期范围 - dateRange: [], // 查询参数 queryParams: { pageNum: 1, @@ -219,12 +208,12 @@ export default { form: {}, // 表单校验 rules: { - dictName: [ - { required: true, message: "字典名称不能为空", trigger: "blur" } - ], - dictType: [ - { required: true, message: "字典类型不能为空", trigger: "blur" } - ] + // dictName: [ + // { required: true, message: "字典名称不能为空", trigger: "blur" } + // ], + // dictType: [ + // { required: true, message: "字典类型不能为空", trigger: "blur" } + // ] } }; }, @@ -235,13 +224,23 @@ export default { /** 查询字典类型列表 */ getList() { this.loading = true; - listType(this.addDateRange(this.queryParams, this.dateRange)).then(response => { + listType(this.queryParams).then(response => { this.typeList = response.rows; this.total = response.total; this.loading = false; } ); }, + /** 搜索按钮操作 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + /** 重置按钮操作 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, // 取消按钮 cancel() { this.open = false; @@ -258,17 +257,6 @@ export default { }; this.resetForm("form"); }, - /** 搜索按钮操作 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 重置按钮操作 */ - resetQuery() { - this.dateRange = []; - this.resetForm("queryForm"); - this.handleQuery(); - }, /** 新增按钮操作 */ handleAdd() { this.reset(); @@ -277,19 +265,19 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map(item => item.dictId) + this.ids = selection.map(item => item) this.single = selection.length!=1 this.multiple = !selection.length }, /** 修改按钮操作 */ handleUpdate(row) { - this.reset(); - const dictId = row.dictId || this.ids - getType(dictId).then(response => { - this.form = response.data; - this.open = true; - this.title = "修改"; - }); + // this.reset(); + // const dictId = row.dictId || this.ids + // getType(dictId).then(response => { + // this.form = response.data; + // this.open = true; + // this.title = "修改"; + // }); }, /** 提交按钮 */ submitForm: function() { @@ -313,27 +301,21 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const dictIds = row.dictId || this.ids; - this.$modal.confirm('是否确认删除该数据项?').then(function() { - return delType(dictIds); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => {}); + // const dictIds = row.dictId || this.ids; + // this.$modal.confirm('是否确认删除该数据项?').then(function() { + // return delType(dictIds); + // }).then(() => { + // this.getList(); + // this.$modal.msgSuccess("删除成功"); + // }).catch(() => {}); }, /** 导出按钮操作 */ handleExport() { - this.download('system/dict/type/export', { - ...this.queryParams - }, `type_${new Date().getTime()}.xlsx`) + // this.download('system/dict/type/export', { + // ...this.queryParams + // }, `type_${new Date().getTime()}.xlsx`) }, - /** 刷新缓存按钮操作 */ - handleRefreshCache() { - refreshCache().then(() => { - this.$modal.msgSuccess("刷新成功"); - this.$store.dispatch('dict/cleanDict'); - }); - } + } };