diff --git a/src/api/business/GoodsManager/Goodss/goods.js b/src/api/business/GoodsManager/Goodss/goods.js
index 9ff5b6d..935c966 100644
--- a/src/api/business/GoodsManager/Goodss/goods.js
+++ b/src/api/business/GoodsManager/Goodss/goods.js
@@ -45,6 +45,15 @@ export function addOrUpdateGoods(data) {
})
}
+// 上下架商品
+export function shelfGoods(data) {
+ return request({
+ url: '/business/Goods/shelfGoods',
+ method: 'put',
+ data: data,
+ })
+}
+
// 商品删除
export function delGoods(ids) {
return request({
diff --git a/src/views/business/GoodsManager/Goodss/components/AddDialog.vue b/src/views/business/GoodsManager/Goodss/components/AddDialog.vue
index d133cb9..fb159b1 100644
--- a/src/views/business/GoodsManager/Goodss/components/AddDialog.vue
+++ b/src/views/business/GoodsManager/Goodss/components/AddDialog.vue
@@ -52,7 +52,7 @@
-
@@ -173,6 +173,9 @@
+
+ 获取富文本内容
+
@@ -503,6 +506,12 @@ async function getGoodsServicesList() {
})
}
+async function handleCopyRichText() {
+ let text = await navigator.clipboard.writeText(formData.goodsDetails);
+ modal.msgSuccess("富文本内容复制成功")
+}
+
+
// 基础信息表单
const baseFormRef = ref();
@@ -646,4 +655,12 @@ const handleResetClick = async (formElList) => {
.el-divider {
margin: 50px 0;
}
+
+
+.copy-btn-box{
+ width: 100%;
+ display: flex;
+ justify-content: right;
+ margin-bottom: 15px;
+}
\ No newline at end of file
diff --git a/src/views/business/GoodsManager/Goodss/components/EditDialog.vue b/src/views/business/GoodsManager/Goodss/components/EditDialog.vue
index a2177a9..4bfd06a 100644
--- a/src/views/business/GoodsManager/Goodss/components/EditDialog.vue
+++ b/src/views/business/GoodsManager/Goodss/components/EditDialog.vue
@@ -48,7 +48,7 @@
-
@@ -169,6 +169,9 @@
+
+ 获取富文本内容
+
@@ -199,7 +202,7 @@
@@ -504,6 +507,11 @@ async function getGoodsSkuListFun() {
})
}
+async function handleCopyRichText() {
+ let text = await navigator.clipboard.writeText(formData.goodsDetails);
+ modal.msgSuccess("富文本内容复制成功")
+}
+
// -基础参数
const props = defineProps({
@@ -615,3 +623,27 @@ const closeDialog = () => {
};
+
+
+
diff --git a/src/views/business/GoodsManager/Goodss/index.vue b/src/views/business/GoodsManager/Goodss/index.vue
index 761a680..e1db63e 100644
--- a/src/views/business/GoodsManager/Goodss/index.vue
+++ b/src/views/business/GoodsManager/Goodss/index.vue
@@ -56,6 +56,16 @@
{{ $t('btn.add') }}
+
+
+ 上架
+
+
+
+
+ 下架
+
+
@@ -110,6 +120,10 @@
v-hasPermi="['business:goods:addOrUpdate']">编辑
删除
+ 上架
+ 下架
@@ -131,7 +145,7 @@