From 7ec0b6ddb14897fa47769b14cc4cb36049bb5ebb Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 22 六月 2026 09:11:53 +0800
Subject: [PATCH] 1、报价系统中,需将付款方式改为选择项(现金、电汇、微信、支付宝等),不能做成手工输入;4、退货单未明确退货规则;5、客户往来信息过于简单,只做总结性信息,无多维度明细信息;

---
 src/plugins/modal.js |   82 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 82 insertions(+), 0 deletions(-)

diff --git a/src/plugins/modal.js b/src/plugins/modal.js
new file mode 100644
index 0000000..8695360
--- /dev/null
+++ b/src/plugins/modal.js
@@ -0,0 +1,82 @@
+import { ElMessage, ElMessageBox, ElNotification, ElLoading } from 'element-plus'
+
+let loadingInstance
+
+export default {
+  // 娑堟伅鎻愮ず
+  msg(content) {
+    ElMessage.info(content)
+  },
+  // 閿欒娑堟伅
+  msgError(content) {
+    ElMessage.error(content)
+  },
+  // 鎴愬姛娑堟伅
+  msgSuccess(content) {
+    ElMessage.success(content)
+  },
+  // 璀﹀憡娑堟伅
+  msgWarning(content) {
+    ElMessage.warning(content)
+  },
+  // 寮瑰嚭鎻愮ず
+  alert(content) {
+    ElMessageBox.alert(content, "绯荤粺鎻愮ず")
+  },
+  // 閿欒鎻愮ず
+  alertError(content) {
+    ElMessageBox.alert(content, "绯荤粺鎻愮ず", { type: 'error' })
+  },
+  // 鎴愬姛鎻愮ず
+  alertSuccess(content) {
+    ElMessageBox.alert(content, "绯荤粺鎻愮ず", { type: 'success' })
+  },
+  // 璀﹀憡鎻愮ず
+  alertWarning(content) {
+    ElMessageBox.alert(content, "绯荤粺鎻愮ず", { type: 'warning' })
+  },
+  // 閫氱煡鎻愮ず
+  notify(content) {
+    ElNotification.info(content)
+  },
+  // 閿欒閫氱煡
+  notifyError(content) {
+    ElNotification.error(content)
+  },
+  // 鎴愬姛閫氱煡
+  notifySuccess(content) {
+    ElNotification.success(content)
+  },
+  // 璀﹀憡閫氱煡
+  notifyWarning(content) {
+    ElNotification.warning(content)
+  },
+  // 纭绐椾綋
+  confirm(content) {
+    return ElMessageBox.confirm(content, "绯荤粺鎻愮ず", {
+      confirmButtonText: '纭畾',
+      cancelButtonText: '鍙栨秷',
+      type: "warning",
+    })
+  },
+  // 鎻愪氦鍐呭
+  prompt(content) {
+    return ElMessageBox.prompt(content, "绯荤粺鎻愮ず", {
+      confirmButtonText: '纭畾',
+      cancelButtonText: '鍙栨秷',
+      type: "warning",
+    })
+  },
+  // 鎵撳紑閬僵灞�
+  loading(content) {
+    loadingInstance = ElLoading.service({
+      lock: true,
+      text: content,
+      background: "rgba(0, 0, 0, 0.7)",
+    })
+  },
+  // 鍏抽棴閬僵灞�
+  closeLoading() {
+    loadingInstance.close()
+  }
+}

--
Gitblit v1.9.3