From 57973d2a25401a8137de116f4e200ab14610e7d6 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 08 十月 2026 13:32:48 +0800
Subject: [PATCH] feat(order): 新增订单编辑功能并完善表单验证 - 实现订单表单验证规则,包括送样日期必填验证 - 修复送样日期字段映射问题 - 完善文件上传组件的动态宽度计算 - 添加检验依据搜索过滤功能
---
src/views/standard/model/index.vue | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/views/standard/model/index.vue b/src/views/standard/model/index.vue
index 5fa3ec2..aee7717 100644
--- a/src/views/standard/model/index.vue
+++ b/src/views/standard/model/index.vue
@@ -7,6 +7,11 @@
<el-input v-model="queryParams.name" clearable placeholder="璇疯緭鍏�" size="small"
@keyup.enter.native="refreshTable()"></el-input>
</div>
+ <div class="search_item">
+ <span class="search_label">妫�楠屼緷鎹�</span>
+ <el-input v-model="queryParams.number" clearable placeholder="璇疯緭鍏�" size="small"
+ @keyup.enter.native="refreshTable()"></el-input>
+ </div>
<div class="search_button">
<el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button>
<el-button size="mini" @click="refresh">閲嶇疆</el-button>
@@ -90,6 +95,7 @@
},
queryParams: {
name: null,
+ number: null,
},
tableData: [],
column: [
@@ -245,7 +251,7 @@
this.isShowCopyTem = false;
this.submitCopyInfoLoading = false;
this.$message.success("淇敼鎴愬姛");
- this.refreshTable("page");
+ this.getList();
})
.catch((err) => {
console.log("copyTemplate----", err);
@@ -258,7 +264,7 @@
this.isShowCopyTem = false;
this.submitCopyInfoLoading = false;
this.$message.success("澶嶅埗鎴愬姛");
- this.refreshTable("page");
+ this.getList();
})
.catch((err) => {
console.log("copyTemplate----", err);
@@ -286,7 +292,10 @@
.then(() => {
delStandardTemplate({ id: row.id }).then((res) => {
this.$message.success("鍒犻櫎鎴愬姛");
- this.refreshTable("page");
+ if (this.tableData.length === 1 && this.page.current > 1) {
+ this.page.current -= 1;
+ }
+ this.getList();
});
})
.catch(() => { });
--
Gitblit v1.9.3