Refactor billing options retrieval to include data permissions and add effective date handling for product imports
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* 页面内共享一份(在父页面调用一次,作为 prop 传给各步骤组件),
|
||||
* 避免产品 / 产品国家 / 附加费 被重复请求。
|
||||
*/
|
||||
import { listProduct, listProductCountries } from '@/api/price/product'
|
||||
import { listProductOptions, listProductCountries } from '@/api/price/product'
|
||||
import { listSurchargeByProduct, listSurchargeOptions } from '@/api/price/surcharge'
|
||||
import {
|
||||
buildCountryOptions,
|
||||
@@ -40,8 +40,8 @@ export function usePriceSetRefData() {
|
||||
|
||||
/** 加载可选产品(已生效),保留列表展示字段 */
|
||||
function loadProducts() {
|
||||
return listProduct({ status: '1', pageNum: 1, pageSize: 1000 }).then(res => {
|
||||
productOptions.value = (res.rows || []).map(p => ({
|
||||
return listProductOptions({ status: '1' }).then(res => {
|
||||
productOptions.value = (res.data || []).map(p => ({
|
||||
value: p.productCode,
|
||||
label: `${p.productCode} ${p.productName || ''}`.trim(),
|
||||
name: p.productName,
|
||||
|
||||
Reference in New Issue
Block a user