代码优化

This commit is contained in:
GaoHao
2025-03-26 13:34:19 +08:00
parent e928fdfa2a
commit 413222a5f0
42 changed files with 166 additions and 531 deletions

View File

@@ -24,7 +24,7 @@
<view class="u-m-t-16">
<uni-data-checkbox @change="createResult" multiple :selectedColor="color.ColorMain"
<uni-data-checkbox @change="createResult" multiple :selectedColor="$utils.ColorMain"
v-model="item.selectSpecResult" :localdata="item.children">
</uni-data-checkbox>
@@ -129,7 +129,7 @@
<button class="save-btn edit-btn" hover-class="btn-hover-class" @click="fastEditShow">
<view class="u-flex u-row-center">
<view class="u-m-r-6">批量修改</view>
<up-icon name="edit-pen" :color="color.ColorMain"></up-icon>
<up-icon name="edit-pen" :color="$utils.ColorMain"></up-icon>
</view>
</button>
</view>
@@ -149,7 +149,6 @@
import infoBox from '@/commons/utils/infoBox.js'
import dayjs from "dayjs";
import go from '@/commons/utils/go.js';
import color from '@/commons/color.js';
import { $defaultSku } from '@/commons/goodsData.js'
import { hasPermission } from '@/commons/utils/hasPermission.js';

View File

@@ -36,21 +36,8 @@
</template>
<script setup>
import {
reactive,
ref,
watch,
onMounted,
computed
} from 'vue';
import {
returnSkuSnap,
returnTypeEnum,
returnCategory
} from '@/pageProduct/util.js'
import {
$tbShopUnit
} from '@/http/yskApi/goods.js'
import { reactive, ref, watch, computed } from 'vue';
const props = defineProps({
show: {
type: Boolean,