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