|
|
@ -96,20 +96,21 @@ export const useProductsAuditStatesMapVal = (value) => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @ignore
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export const useProductsTypesFieldsets = (type) => {
|
|
|
|
export const useProductsTypesFieldsets = (type) => {
|
|
|
|
const [isPermitted] = useAuthStore((state) => [state.isPermitted]);
|
|
|
|
const [isPermitted] = useAuthStore((state) => [state.isPermitted]);
|
|
|
|
const infoDefault = [['city'], ['title']];
|
|
|
|
const infoDefault = [['city'], ['title']];
|
|
|
|
const infoAdmin = ['title', 'product_title', 'code', 'remarks', 'dept']; // 'display_to_c'
|
|
|
|
const infoAdmin = ['title', 'product_title', 'code', 'remarks', 'dept']; // 'display_to_c'
|
|
|
|
const infoDisplay = isPermitted(PERM_PRODUCTS_MANAGEMENT) ? ['display_to_c'] : [];
|
|
|
|
const infoDisplay = isPermitted(PERM_PRODUCTS_MANAGEMENT) ? ['display_to_c', 'sort_order'] : [];
|
|
|
|
const infoRecDisplay = isPermitted(PERM_PRODUCTS_MANAGEMENT) ? ['recommends_rate'] : [];
|
|
|
|
const infoRecDisplay = isPermitted(PERM_PRODUCTS_MANAGEMENT) ? ['recommends_rate'] : [];
|
|
|
|
|
|
|
|
const subTypeD = isPermitted(PERM_PRODUCTS_MANAGEMENT) ? ['sub_type_D'] : [];
|
|
|
|
const infoTypesMap = {
|
|
|
|
const infoTypesMap = {
|
|
|
|
'6': [[...infoDisplay], []],
|
|
|
|
'6': [[...infoDisplay], []],
|
|
|
|
'B': [['km', ...infoDisplay], []],
|
|
|
|
'B': [['km', ...infoDisplay], []],
|
|
|
|
'J': [[...infoRecDisplay, 'duration', ...infoDisplay], ['description']],
|
|
|
|
'J': [[...infoRecDisplay, 'duration', ...infoDisplay], ['description']],
|
|
|
|
'Q': [[...infoRecDisplay, 'duration', ...infoDisplay], ['description']],
|
|
|
|
'Q': [[...infoRecDisplay, 'duration', ...infoDisplay], ['description']],
|
|
|
|
'D': [[...infoRecDisplay, 'duration', ...infoDisplay], ['description']],
|
|
|
|
'D': [[...infoRecDisplay, 'duration', ...infoDisplay, ...subTypeD], ['description']],
|
|
|
|
'7': [[...infoRecDisplay, 'duration', 'open_weekdays', ...infoDisplay], ['description']],
|
|
|
|
'7': [[...infoRecDisplay, 'duration', 'open_weekdays', ...infoDisplay], ['description']],
|
|
|
|
'R': [[...infoDisplay], ['description']],
|
|
|
|
'R': [[...infoDisplay], ['description']],
|
|
|
|
'8': [[...infoDisplay], []],
|
|
|
|
'8': [[...infoDisplay], []],
|
|
|
@ -152,6 +153,8 @@ export const useNewProductRecord = () => {
|
|
|
|
'create_date': '',
|
|
|
|
'create_date': '',
|
|
|
|
'created_by': '',
|
|
|
|
'created_by': '',
|
|
|
|
'edit_status': 2,
|
|
|
|
'edit_status': 2,
|
|
|
|
|
|
|
|
'sort_order': '',
|
|
|
|
|
|
|
|
'sub_type_D': '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
lgc_details: [
|
|
|
|
lgc_details: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -182,3 +185,21 @@ export const useNewProductRecord = () => {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const PackageTypes = [
|
|
|
|
|
|
|
|
{ key: 35001, value: 35001, label: '飞机接送' },
|
|
|
|
|
|
|
|
{ key: 35002, value: 35002, label: '车站接送' },
|
|
|
|
|
|
|
|
{ key: 35003, value: 35003, label: '码头接送' },
|
|
|
|
|
|
|
|
{ key: 35004, value: 35004, label: '一天游' },
|
|
|
|
|
|
|
|
{ key: 35005, value: 35005, label: '半天游' },
|
|
|
|
|
|
|
|
{ key: 35006, value: 35006, label: '夜间活动' },
|
|
|
|
|
|
|
|
{ key: 35007, value: 35007, label: '大车游' },
|
|
|
|
|
|
|
|
{ key: 35008, value: 35008, label: '单车单导' },
|
|
|
|
|
|
|
|
{ key: 35009, value: 35009, label: '单租车' },
|
|
|
|
|
|
|
|
{ key: 35010, value: 35010, label: '单导游' },
|
|
|
|
|
|
|
|
{ key: 35011, value: 35011, label: '火车站接送' },
|
|
|
|
|
|
|
|
{ key: 35012, value: 35012, label: '门票预定' },
|
|
|
|
|
|
|
|
{ key: 35013, value: 35013, label: '车导费' },
|
|
|
|
|
|
|
|
{ key: 35014, value: 35014, label: '其它(餐补等)' },
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|