This commit is contained in:
GaoHao
2025-03-10 17:26:39 +08:00
parent 490c513f48
commit cc97b6acca
26 changed files with 258 additions and 305 deletions

View File

@@ -291,7 +291,7 @@
</view>
</template>
<template v-if="FormData.type == 'weigh'">
<template v-if="FormData.type == 'weight'">
<view class="block u-p-t-32 u-p-b-32">
<view class="font-bold">
<text class="color-red">*</text>
@@ -543,7 +543,7 @@
},
{
name: '称重商品',
value: 'weigh'
value: 'weight'
},
// {
// name: '团购券',
@@ -1126,7 +1126,7 @@
FormData.proGroupVo[0].number = null
}
}
if (type == 'weigh') {
if (type == 'weight') {
if (!FormData.weight) {
return infoBox.showToast('请输入重量')
}
@@ -1408,6 +1408,7 @@
left: 110rpx;
right: 110rpx;
bottom: 60px;
z-index: 9;
}
.minus {}

View File

@@ -75,7 +75,7 @@
<script setup>
import { reactive, onMounted, ref, watch, computed } from 'vue';
import { getProductList} from '@/api/product.js';
import { getProductPage} from '@/api/product.js';
const props = defineProps({
modelValue: {
@@ -131,7 +131,7 @@
},
{
name: '称重',
value: 'weigh'
value: 'weight'
},
// {
// name: '团购券',
@@ -152,7 +152,7 @@
*/
function getGoods() {
const arr=selArr
getProductList(goods.query).then(res => {
getProductPage(goods.query).then(res => {
let selLen=0;
goods.list = res.records.map(v => {
const checked=$selGoodsMap[v.id]?true:false

View File

@@ -40,7 +40,7 @@
</view>
</view>
<view class="u-m-t-24">
<template v-if="data.skuList.length>=1">
<template v-if="data.type == 'sku' && data.skuList.length>=1">
<view class="u-flex u-flex-wrap w-full gap-10 u-col-top" :style="skuStyle">
<view class="u-font-24 info-p-l u-m-t-6">规格</view>
<view class="skd" v-for="(item,index) in data.skuList" :key="index"

View File

@@ -135,7 +135,7 @@
$updateProductData
} from "@/http/yskApi/goods.js"
import {
getProductList,
getProductPage,
getCategoryList,
updateProduct
} from '@/api/product.js'
@@ -223,7 +223,7 @@
*/
function getGoodsList() {
pageData.hasAjax = false
getProductList(pageData.query).then(res => {
getProductPage(pageData.query).then(res => {
pageData.hasAjax = true
pageData.goodsList = res.records.map(v => {
return {