diff --git a/src/views/store/store_product/details.vue b/src/views/store/store_product/details.vue
index fc916d45..3dea681a 100644
--- a/src/views/store/store_product/details.vue
+++ b/src/views/store/store_product/details.vue
@@ -45,6 +45,54 @@
+
+ 添加会员价格
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
@@ -133,22 +181,43 @@
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
@@ -177,8 +246,9 @@ defineProps({
}
})
const emit = defineEmits(['success', 'close'])
-const popupRef = shallowRef>()
-const mode = ref('add')
+const dialogShop = ref(false)
+const vipPriceList = ref([])
+
const isOpen = ref(false)
const activeName = ref('first')
const handleClick = (tab: any) => {
@@ -203,7 +273,12 @@ const formData = reactive({
rose: '0',
manufacturer_information: ''
})
-
+const handleEdit = () => {
+ console.log(12)
+}
+const handleDeletes = () => {
+ console.log(12)
+}
// 获取详情
const setFormData = async (data: Record) => {
queryParams.product_id = data.id
@@ -216,24 +291,6 @@ const setFormData = async (data: Record) => {
}
}
-const cMark = (str: any) => {
- if (str) {
- return str.replace(/(\d{5,})/g, (match: string) => {
- let replacement
- // 判断数字长度,执行不同替换逻辑
- if (match.length >= 11) {
- // 对于11位以上的连续数字,替换倒数第四到倒数第八位为星号
- replacement = match.slice(0, -8) + '****' + match.slice(-4)
- } else {
- // 对于5到11位的数字,替换最后四位为星号
- replacement = match.slice(0, -4) + '****'
- }
- return replacement
- })
- }
- return '-'
-}
-
const getDetail = async (row: Record) => {
queryParams.product_id = row.id
const data = await apiStoreProductDetail({
@@ -249,11 +306,6 @@ const open = () => {
removeList.clear()
}
-// 关闭回调
-const handleClose = () => {
- emit('close')
-}
-
// 查询条件
const queryParams = reactive({
product_id: ''
@@ -297,28 +349,6 @@ const stockList = ref(new Map())
const handleChange = (row: any) => {
stockList.value.set(row.id, row.new_stock)
}
-const submitStock = () => {
- feedback
- .confirm('确定修改库存吗?')
- .then(async () => {
- const data = Array.from(stockList.value.entries()).map(([key, value]) => {
- return {
- id: key,
- stock: value
- }
- })
- apiStoreBranchProductEdit({
- data
- }).then((res) => {
- isEidtStock.value = false
- stockList.value.clear()
- getLists()
- })
- })
- .catch(() => {
- // on cancel
- })
-}
// 编辑门店价格
const dialogFormVisible = ref(false)