Commit bbdef3b7 authored by youjie's avatar youjie

no message

parent f97cfc41
......@@ -250,6 +250,7 @@ export default {
this.orderList = pageData;
this.orderList.forEach(x=>{
x.goodTypeEnum = mappingListType(x.goodsType)
console.log(x.goodTypeEnum)
x.orderStatusInfo = EnumHelper.ParseToEnum(OrderStatusEnum,x.orderStatus,'value')
})
} else {
......
......@@ -135,7 +135,7 @@ export default {
// GoodsType: this.productType,//商品类型(见枚举) 12包车 13 接机 14送机
data() {
return {
goodTypeList: ['','一日游','多日游','小包团','景点门票','主题乐园','博物馆','历史景点','温泉饭店','星级饭店','度假村','民宿','包车','接机','送机'],
goodTypeList: ['','一日游','多日游','小包团','景点门票','主题乐园','博物馆','历史景点','温泉饭店','星级饭店','度假村','民宿','包车','接机','送机','签证'],
showCode: false,
detail: {},
orderIcon: '',
......
......@@ -30,6 +30,12 @@ const ListProductTypeEnum = Object.freeze({
bgColor: 'bg-indigo-2',
color: 'text-indigo'
},
VISA: {
value: 6,
desc: '签证',
bgColor: 'bg-pink-2',
color: 'text-pink'
},
})
export default ListProductTypeEnum
\ No newline at end of file
......@@ -110,6 +110,10 @@ const ProductTypeEnum = Object.freeze({
DROP_OFF: {
value: 14,
desc: '送机产品'
},
VISARTER: {
value: 15,
desc: '签证产品'
}
......@@ -121,13 +125,16 @@ const mappingRules = [
[4, 5, 6, 7],
[-1],
[12, 13, 14],
[8, 9, 10, 11]
[8, 9, 10, 11],
[15]
]
const mappingListType = (value) => {
let val = mappingRules.findIndex(x => {
return x.indexOf(value) != -1
})
console.log(val,value)
if (val && val > 0) {
return EnumHelper.ParseToEnum(ListProductTypeEnum, val, 'value')
}
......
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