Commit f9cf0b4d by qinjianhui

fix: Eslint 修改

parent 39315c4f
...@@ -3223,10 +3223,6 @@ const isAuto = ref(true) ...@@ -3223,10 +3223,6 @@ const isAuto = ref(true)
const countryList = ref([]) const countryList = ref([])
const logisticsWayList = ref<{ name: string; id: number }[]>([]) const logisticsWayList = ref<{ name: string; id: number }[]>([])
const employeeList = ref<{ account: string; id: number }[]>([]) const employeeList = ref<{ account: string; id: number }[]>([])
const craftTypeList = ref<{ name: string; code: string }[]>([
{ name: '烫画', code: 'TH' }
])
const currentRow = ref<AddressInfo>({ const currentRow = ref<AddressInfo>({
receiverName: '', receiverName: '',
receiverPhone: '', receiverPhone: '',
......
...@@ -212,6 +212,7 @@ import { ...@@ -212,6 +212,7 @@ import {
IsizeType, IsizeType,
IPropertyResponseItem, IPropertyResponseItem,
Iprice, Iprice,
IPropertyItem,
} from './types/index.ts' } from './types/index.ts'
const [editForm, resetEditForm] = useValue<IsupplierType>({}) const [editForm, resetEditForm] = useValue<IsupplierType>({})
...@@ -945,7 +946,7 @@ async function addPice(product: IgoodsType) { ...@@ -945,7 +946,7 @@ async function addPice(product: IgoodsType) {
} }
// 辅助函数:创建属性映射 // 辅助函数:创建属性映射
function createPropertyMap(propertyList: any[]): Map<number, number[]> { function createPropertyMap(propertyList: IPropertyItem[]): Map<number, number[]> {
const map = new Map<number, number[]>() const map = new Map<number, number[]>()
propertyList.forEach((item) => { propertyList.forEach((item) => {
......
...@@ -20,7 +20,7 @@ export interface IgoodsType { ...@@ -20,7 +20,7 @@ export interface IgoodsType {
customProductItemList?: Iprice[] customProductItemList?: Iprice[]
supplierPriceItemList?: Iprice[] supplierPriceItemList?: Iprice[]
customProductInfo?: IgoodsType customProductInfo?: IgoodsType
propertyList?: [] propertyList?: IPropertyItem[]
supplyPriceRange?: string supplyPriceRange?: string
} }
export interface IsupplierType { export interface IsupplierType {
...@@ -57,6 +57,11 @@ export interface IPropertyResponseItem { ...@@ -57,6 +57,11 @@ export interface IPropertyResponseItem {
valueList: IcolorType[] | IsizeType[] valueList: IcolorType[] | IsizeType[]
} }
export interface IPropertyItem {
propertyId?: number
valueId?: number
}
export interface Iprice { export interface Iprice {
productItemSku?: string productItemSku?: string
productItemImage?: string productItemImage?: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment