Commit bbdef3b7 authored by youjie's avatar youjie

no message

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