update 完成订单里的弹窗内容

This commit is contained in:
lb
2023-04-25 13:48:38 +08:00
parent 2ea77ba8fa
commit 343aadc6d9
8 changed files with 849 additions and 362 deletions

View File

@@ -51,6 +51,8 @@
title="导入订单"
@destroy-dialog="uploadDialogVisible = false"
@refresh-list="handleRefreshList" />
<Overlay v-if="overlayVisible" />
</section>
</template>
@@ -61,11 +63,12 @@ import DialogJustForm from "./DialogJustForm.vue";
import DialogWithMenu from "./DialogWithMenu.vue";
import DialogUpload from "@/components/DialogUpload.vue";
import moment from "moment";
import Overlay from "@/components/Overlay.vue";
// const dictList = JSON.parse(localStorage.getItem("dictList"));
export default {
name: "ListSectionWithHead",
components: { BaseSearchForm, BaseListTable, DialogWithMenu, DialogJustForm, DialogUpload },
components: { BaseSearchForm, BaseListTable, DialogWithMenu, DialogJustForm, DialogUpload, Overlay },
props: {
headConfig: {
type: Object,
@@ -125,6 +128,7 @@ export default {
renderDialog: false,
renderMenuDialog: false,
uploadDialogVisible: false,
overlayVisible: false,
};
},
mounted() {
@@ -188,6 +192,7 @@ export default {
type: "warning",
})
.then(() => {
this.overlayVisible = true;
return this.$http.post("/pms/order/confirm", data, {
headers: {
"Content-Type": "application/json",
@@ -195,6 +200,7 @@ export default {
});
})
.then(({ data: res }) => {
this.overlayVisible = false;
if (res.code === 0) {
// success
this.$message({