fix:仓库管理新增字段过长校验。销售退货删除提示优化

This commit is contained in:
zhangxuanming 2024-12-24 18:40:57 +08:00
parent 0e5eb5aca3
commit c9a4b55b18
2 changed files with 8 additions and 3 deletions

View File

@ -536,7 +536,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const rtIds = row.rtId || this.ids; const rtIds = row.rtId || this.ids;
this.$modal.confirm('是否确认删除产品销售退货单编号为"' + rtIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除产品销售退货单编号为"' + row.rtCode + '"的数据项?').then(function() {
return delRtsalse(rtIds); return delRtsalse(rtIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -260,13 +260,18 @@ export default {
// //
rules: { rules: {
warehouseCode: [ warehouseCode: [
{ required: true, message: "仓库编码不能为空", trigger: "blur" } { required: true, message: "仓库编码不能为空", trigger: "blur" },
{ max: 64, message: "字段过长", trigger: "blur" }
], ],
warehouseName: [ warehouseName: [
{ required: true, message: "仓库名称不能为空", trigger: "blur" } { required: true, message: "仓库名称不能为空", trigger: "blur" },
{ max: 100, message: "字段过长", trigger: "blur" }
], ],
remark: [ remark: [
{ max: 250, message: '长度必须小于250个字符', trigger: 'blur' } { max: 250, message: '长度必须小于250个字符', trigger: 'blur' }
],
charge: [
{ max: 255, message: "字段过长", trigger: "blur" }
] ]
} }
}; };