hgwms-2099 fix 提示展示逻辑修改

hwork-master
A0066811 2025-11-10 10:46:10 +08:00
parent 0ad90ebf0e
commit 8beb440874
49 changed files with 280 additions and 280 deletions

View File

@ -57,10 +57,10 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({ content: '提交中...', key: editKey });
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({ content: '提交中...', key: editKey });
edit(toRaw(formState)).then((response)=>{
if(response.success){
message.success({ content: '保存成功', key: editKey, duration: 1 }).then(()=>{

View File

@ -48,10 +48,10 @@ export default defineComponent({
const saveKey = "save";
const submit = (e) => {
message.loading({ content: '提交中...', key: saveKey });
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({ content: '提交中...', key: saveKey });
save(toRaw(formState)).then((response)=>{
if(response.success){
message.success({ content: '保存成功', key: saveKey, duration: 1 }).then(()=>{

View File

@ -52,10 +52,10 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({ content: '提交中...', key: editKey });
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({ content: '提交中...', key: editKey });
edit(toRaw(formState)).then((response)=>{
if(response.success){
message.success({ content: '保存成功', key: editKey, duration: 1 }).then(()=>{

View File

@ -59,10 +59,10 @@ export default defineComponent({
}
const submit = (e) => {
message.loading({ content: '提交中...', key: saveKey });
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({ content: '提交中...', key: saveKey });
save(toRaw(formState)).then((response)=>{
if(response.success){
message.success({ content: '保存成功', key: saveKey, duration: 1 }).then(()=>{

View File

@ -74,10 +74,10 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({ content: '提交中...', key: editKey });
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({ content: '提交中...', key: editKey });
edit(toRaw(formState)).then((response)=>{
if(response.success){
message.success({ content: '保存成功', key: editKey, duration: 1 }).then(()=>{

View File

@ -125,13 +125,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -110,13 +110,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -195,13 +195,13 @@ export default defineComponent({
};
const submit = (e) => {
message.loading({
content: "提交中...",
key: editKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: editKey,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -407,13 +407,13 @@
]);
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -118,13 +118,13 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({
content: "提交中...",
key: editKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: editKey,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -154,13 +154,13 @@ export default defineComponent({
const saveKey = "save";
const submit = (e) => {
message.loading({
content: "提交中...",
key: saveKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: saveKey,
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -471,13 +471,13 @@
// console.log("formState.formState", formState.formState)
formState.details = state.param.data
console.log("formState.details", formState.details)
message.loading({
content: '提交中...',
key: save
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: save
});
// console.log("formState.canEdite", formState.canEdite)
// if (formState.canEdite) {
// console.log("1")

View File

@ -351,13 +351,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -962,13 +962,13 @@
// let JsonString = JSON.stringify(formState);
// console.log("formState ", a)
// console.log("aJsonString ", a)
message.loading({
content: '提交中...',
key: save
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: save
});
console.log("state.canEdite", state.canEdite)
if (state.canEdite) {
// 1

View File

@ -989,13 +989,13 @@
// let JsonString = JSON.stringify(formState);
// console.log("formState ", a)
// console.log("aJsonString ", a)
message.loading({
content: '提交中...',
key: save
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: save
});
console.log("state.canEdite", state.canEdite)
if (state.canEdite) {
// 1

View File

@ -387,13 +387,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -72,14 +72,14 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
console.log(formState.ids)
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
changeLocStatus(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -75,13 +75,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
changeLocStoreStatus(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -294,13 +294,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -294,14 +294,14 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
save(toRaw(formState)).then((response) => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({
content: '保存成功',

View File

@ -76,13 +76,13 @@
const saveKey = "palletCheck";
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
palletCheck(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -100,13 +100,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -216,13 +216,13 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({
content: "提交中...",
key: editKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: editKey,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -227,13 +227,13 @@
const saveKey = "save";
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -133,13 +133,13 @@
const saveKey = "save";
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -121,13 +121,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -108,13 +108,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -104,13 +104,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -97,13 +97,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -82,14 +82,14 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
console.log(formState.ids)
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
changeLocStatus(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -85,13 +85,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
changeLocStoreStatus(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -200,13 +200,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -230,13 +230,13 @@
const saveKey = "save";
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -127,13 +127,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -113,13 +113,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -97,13 +97,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -108,13 +108,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -79,13 +79,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -89,13 +89,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -82,13 +82,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -92,13 +92,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -83,13 +83,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -92,13 +92,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -202,13 +202,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -140,13 +140,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -202,13 +202,13 @@
const editKey = "add";
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -140,13 +140,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -81,13 +81,13 @@
const submit = (e) => {
message.loading({
content: '提交中...',
key: editKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: editKey
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -90,13 +90,13 @@
}]);
const submit = (e) => {
message.loading({
content: '提交中...',
key: saveKey
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: '提交中...',
key: saveKey
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({