增加专属报价功能
This commit is contained in:
@@ -129,7 +129,9 @@
|
||||
import { ArrowLeft } from '@element-plus/icons-vue'
|
||||
import SurchargeTags from '../SurchargeTags.vue'
|
||||
import { isFixedType } from '../../utils/priceSet'
|
||||
import { listSetDetailByProduct, listSetDetailOptions } from '@/api/price/set'
|
||||
import { usePriceSetModule } from '../../composables/usePriceSetModule'
|
||||
|
||||
const { api } = usePriceSetModule()
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: { type: Boolean, default: false },
|
||||
@@ -318,7 +320,7 @@ async function loadProducts() {
|
||||
products.value = fromVersion
|
||||
return
|
||||
}
|
||||
const res = await listSetDetailOptions(psvId)
|
||||
const res = await api.listSetDetailOptions(psvId)
|
||||
const data = res.data || {}
|
||||
products.value = normalizeProducts(data.products || [])
|
||||
} finally {
|
||||
@@ -335,7 +337,7 @@ async function openProductDetail(row) {
|
||||
detailKeyword.value = ''
|
||||
detailLoading.value = true
|
||||
try {
|
||||
const res = await listSetDetailByProduct(psvId, row.productCode)
|
||||
const res = await api.listSetDetailByProduct(psvId, row.productCode)
|
||||
detailRows.value = res.data || []
|
||||
} catch (e) {
|
||||
detailRows.value = []
|
||||
|
||||
Reference in New Issue
Block a user