代码更新

This commit is contained in:
GaoHao
2025-03-12 14:13:29 +08:00
parent 2f1523d4e9
commit c2135c6119
105 changed files with 2026 additions and 278 deletions

View File

@@ -468,10 +468,10 @@
updateProduct,
delProduct,
productBindCons
} from '@/api/product.js'
} from '@/http/api/product.js'
import {
uploadFile
} from '@/api/index.js'
} from '@/http/api/index.js'
const imageStyles = reactive({
width: 82,
@@ -847,8 +847,9 @@
FormData.proGroupVo.push({
title: '',
count: 1,
goods: []
goods: [],
})
console.log(FormData.proGroupVo)
}
/**
@@ -1064,9 +1065,6 @@
}
let selectSpecInfo = $goodsData.selectSpecInfo
if (FormData.specificationsGroup.specAllList) {
selectSpecInfo = {}
@@ -1123,7 +1121,7 @@
// 可选套餐
} else {
FormData.proGroupVo[0].count = FormData.proGroupVo[0].goods.length
FormData.proGroupVo[0].number = null
FormData.proGroupVo[0].number = 1
}
}
if (type == 'weight') {

View File

@@ -75,7 +75,7 @@
<script setup>
import { reactive, onMounted, ref, watch, computed } from 'vue';
import { getProductPage} from '@/api/product.js';
import { getProductPage} from '@/http/api/product.js';
const props = defineProps({
modelValue: {

View File

@@ -80,8 +80,8 @@
import chooseDanwei from './choose-danwei.vue';
import { hasPermission } from '@/commons/utils/hasPermission.js';
import { getConsList } from '@/api/cons.js';
import { productBindCons } from '@/api/product.js';
import { getConsList } from '@/http/api/cons.js';
import { productBindCons } from '@/http/api/product.js';
const emits = defineEmits(['cancel', 'updateGoods'])

View File

@@ -51,7 +51,7 @@
import { computed, ref } from 'vue';
import go from '@/commons/utils/go.js';
import color from '@/commons/color.js'
import { getProductDetail } from '@/api/product.js'
import { getProductDetail } from '@/http/api/product.js'
const cycle = [{

View File

@@ -91,7 +91,7 @@
import { onLoad } from '@dcloudio/uni-app';
import infoBox from '@/commons/utils/infoBox.js'
import { reactive, nextTick, ref, } from 'vue';
import { addSpecQuic } from '@/api/product.js'
import { addSpecQuic } from '@/http/api/product.js'
const nameFormRef = ref(null)
// 表单样式

View File

@@ -153,7 +153,7 @@
import { $defaultSku } from '@/commons/goodsData.js'
import { hasPermission } from '@/commons/utils/hasPermission.js';
import { getSpecList,delSpec } from '@/api/product.js'
import { getSpecList,delSpec } from '@/http/api/product.js'
//上个页面传来的参数

View File

@@ -23,7 +23,7 @@
import { reactive, ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import infoBox from '@/commons/utils/infoBox.js'
import { updateSpec } from '@/api/product.js'
import { updateSpec } from '@/http/api/product.js'
const option = {
type: 'add',

View File

@@ -50,7 +50,7 @@
<script setup>
import { reactive, ref, watch } from 'vue';
import { productReportDamage } from '@/api/product.js'
import { productReportDamage } from '@/http/api/product.js'
import infoBox from '@/commons/utils/infoBox.js'
const props = defineProps({

View File

@@ -4,7 +4,7 @@
<script setup>
import { ref, watch,onMounted,reactive } from 'vue';
import { getCategoryList } from '@/api/product.js'
import { getCategoryList } from '@/http/api/product.js'
const emite=defineEmits(['change','update:isShow','confirm'])
const props = defineProps({
showAllText:{

View File

@@ -40,7 +40,7 @@
import { hasPermission } from '@/commons/utils/hasPermission.js'
import infoBox from '@/commons/utils/infoBox.js'
import { productOnOff,productMarkIsSoldOut } from '@/api/product.js'
import { productOnOff,productMarkIsSoldOut } from '@/http/api/product.js'
const props = defineProps({
show: {

View File

@@ -100,7 +100,7 @@
<script setup>
import { computed, ref, watch } from 'vue';
import { updateProduct,productOnOff,productMarkIsSoldOut } from '@/api/product.js'
import { updateProduct,productOnOff,productMarkIsSoldOut } from '@/http/api/product.js'
import go from '@/commons/utils/go.js';
import {hasPermission} from '@/commons/utils/hasPermission.js';
import { ColorMain } from '@/commons/color.js'

View File

@@ -138,7 +138,7 @@
getProductPage,
getCategoryList,
updateProduct
} from '@/api/product.js'
} from '@/http/api/product.js'
import {
returnAllCategory

View File

@@ -23,7 +23,7 @@
import go from '@/commons/utils/go.js';
import myButton from '@/components/my-components/my-button.vue'
import treeItem from './components/tree-item.vue'
import { getSpecList,delSpec } from '@/api/product.js'
import { getSpecList,delSpec } from '@/http/api/product.js'
const pageData = reactive({
loading: true,