Showing
12 changed files
with
36 additions
and
12 deletions
| @@ -1096,9 +1096,11 @@ Page({ | @@ -1096,9 +1096,11 @@ Page({ | ||
| 1096 | "{桌位}": resultString, | 1096 | "{桌位}": resultString, |
| 1097 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1097 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1098 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1098 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1099 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1100 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1099 | "{用餐类型}": data.detail.reserve_type || '', | 1101 | "{用餐类型}": data.detail.reserve_type || '', |
| 1100 | }; | 1102 | }; |
| 1101 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1103 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1102 | return replacements[matched]; | 1104 | return replacements[matched]; |
| 1103 | }); | 1105 | }); |
| 1104 | console.log('newStr---', newStr); | 1106 | console.log('newStr---', newStr); |
| @@ -1126,9 +1126,11 @@ Page({ | @@ -1126,9 +1126,11 @@ Page({ | ||
| 1126 | "{桌位}": resultString, | 1126 | "{桌位}": resultString, |
| 1127 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1127 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1128 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1128 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1129 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1130 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1129 | "{用餐类型}": data.detail.reserve_type || '', | 1131 | "{用餐类型}": data.detail.reserve_type || '', |
| 1130 | }; | 1132 | }; |
| 1131 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1133 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1132 | return replacements[matched]; | 1134 | return replacements[matched]; |
| 1133 | }); | 1135 | }); |
| 1134 | console.log('newStr---', newStr); | 1136 | console.log('newStr---', newStr); |
| @@ -1124,9 +1124,11 @@ Page({ | @@ -1124,9 +1124,11 @@ Page({ | ||
| 1124 | "{桌位}": resultString, | 1124 | "{桌位}": resultString, |
| 1125 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1125 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1126 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1126 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1127 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1128 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1127 | "{用餐类型}": data.detail.reserve_type || '', | 1129 | "{用餐类型}": data.detail.reserve_type || '', |
| 1128 | }; | 1130 | }; |
| 1129 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1131 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1130 | return replacements[matched]; | 1132 | return replacements[matched]; |
| 1131 | }); | 1133 | }); |
| 1132 | console.log('newStr---', newStr); | 1134 | console.log('newStr---', newStr); |
| @@ -948,9 +948,11 @@ Page({ | @@ -948,9 +948,11 @@ Page({ | ||
| 948 | "{桌位}": resultString, | 948 | "{桌位}": resultString, |
| 949 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 949 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 950 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 950 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 951 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 952 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 951 | "{用餐类型}": data.detail.reserve_type || '', | 953 | "{用餐类型}": data.detail.reserve_type || '', |
| 952 | }; | 954 | }; |
| 953 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 955 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 954 | return replacements[matched]; | 956 | return replacements[matched]; |
| 955 | }); | 957 | }); |
| 956 | console.log('newStr---', newStr); | 958 | console.log('newStr---', newStr); |
| @@ -1176,9 +1176,11 @@ Page({ | @@ -1176,9 +1176,11 @@ Page({ | ||
| 1176 | "{桌位}": resultString, | 1176 | "{桌位}": resultString, |
| 1177 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1177 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1178 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1178 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1179 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1180 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1179 | "{用餐类型}": data.detail.reserve_type || '', | 1181 | "{用餐类型}": data.detail.reserve_type || '', |
| 1180 | }; | 1182 | }; |
| 1181 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1183 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1182 | return replacements[matched]; | 1184 | return replacements[matched]; |
| 1183 | }); | 1185 | }); |
| 1184 | console.log('newStr---', newStr); | 1186 | console.log('newStr---', newStr); |
| @@ -1083,9 +1083,11 @@ Page({ | @@ -1083,9 +1083,11 @@ Page({ | ||
| 1083 | "{桌位}": resultString, | 1083 | "{桌位}": resultString, |
| 1084 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1084 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1085 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1085 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1086 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1087 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1086 | "{用餐类型}": data.detail.reserve_type || '', | 1088 | "{用餐类型}": data.detail.reserve_type || '', |
| 1087 | }; | 1089 | }; |
| 1088 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1090 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1089 | return replacements[matched]; | 1091 | return replacements[matched]; |
| 1090 | }); | 1092 | }); |
| 1091 | console.log('newStr---', newStr); | 1093 | console.log('newStr---', newStr); |
| @@ -1083,9 +1083,11 @@ Page({ | @@ -1083,9 +1083,11 @@ Page({ | ||
| 1083 | "{桌位}": resultString, | 1083 | "{桌位}": resultString, |
| 1084 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1084 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1085 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1085 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1086 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1087 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1086 | "{用餐类型}": data.detail.reserve_type || '', | 1088 | "{用餐类型}": data.detail.reserve_type || '', |
| 1087 | }; | 1089 | }; |
| 1088 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1090 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1089 | return replacements[matched]; | 1091 | return replacements[matched]; |
| 1090 | }); | 1092 | }); |
| 1091 | console.log('newStr---', newStr); | 1093 | console.log('newStr---', newStr); |
| @@ -1082,9 +1082,11 @@ Page({ | @@ -1082,9 +1082,11 @@ Page({ | ||
| 1082 | "{桌位}": resultString, | 1082 | "{桌位}": resultString, |
| 1083 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1083 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1084 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1084 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1085 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1086 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1085 | "{用餐类型}": data.detail.reserve_type || '', | 1087 | "{用餐类型}": data.detail.reserve_type || '', |
| 1086 | }; | 1088 | }; |
| 1087 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1089 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1088 | return replacements[matched]; | 1090 | return replacements[matched]; |
| 1089 | }); | 1091 | }); |
| 1090 | console.log('newStr---', newStr); | 1092 | console.log('newStr---', newStr); |
| @@ -1040,9 +1040,11 @@ Page({ | @@ -1040,9 +1040,11 @@ Page({ | ||
| 1040 | "{桌位}": resultString, | 1040 | "{桌位}": resultString, |
| 1041 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1041 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1042 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1042 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1043 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1044 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1043 | "{用餐类型}": data.detail.reserve_type || '', | 1045 | "{用餐类型}": data.detail.reserve_type || '', |
| 1044 | }; | 1046 | }; |
| 1045 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1047 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1046 | return replacements[matched]; | 1048 | return replacements[matched]; |
| 1047 | }); | 1049 | }); |
| 1048 | console.log('newStr---', newStr); | 1050 | console.log('newStr---', newStr); |
| @@ -1083,9 +1083,11 @@ Page({ | @@ -1083,9 +1083,11 @@ Page({ | ||
| 1083 | "{桌位}": resultString, | 1083 | "{桌位}": resultString, |
| 1084 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1084 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1085 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1085 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1086 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1087 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1086 | "{用餐类型}": data.detail.reserve_type || '', | 1088 | "{用餐类型}": data.detail.reserve_type || '', |
| 1087 | }; | 1089 | }; |
| 1088 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1090 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1089 | return replacements[matched]; | 1091 | return replacements[matched]; |
| 1090 | }); | 1092 | }); |
| 1091 | console.log('newStr---', newStr); | 1093 | console.log('newStr---', newStr); |
| @@ -1082,9 +1082,11 @@ Page({ | @@ -1082,9 +1082,11 @@ Page({ | ||
| 1082 | "{桌位}": resultString, | 1082 | "{桌位}": resultString, |
| 1083 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1083 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1084 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1084 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1085 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1086 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1085 | "{用餐类型}": data.detail.reserve_type || '', | 1087 | "{用餐类型}": data.detail.reserve_type || '', |
| 1086 | }; | 1088 | }; |
| 1087 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1089 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1088 | return replacements[matched]; | 1090 | return replacements[matched]; |
| 1089 | }); | 1091 | }); |
| 1090 | console.log('newStr---', newStr); | 1092 | console.log('newStr---', newStr); |
| @@ -1125,9 +1125,11 @@ Page({ | @@ -1125,9 +1125,11 @@ Page({ | ||
| 1125 | "{桌位}": resultString, | 1125 | "{桌位}": resultString, |
| 1126 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', | 1126 | "{客人姓名}": data.detail.rname ? data.detail.rname : '', |
| 1127 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | 1127 | "{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', |
| 1128 | + "{客人姓氏}": data.detail.rname ? data.detail.rname : '', | ||
| 1129 | + "{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '', | ||
| 1128 | "{用餐类型}": data.detail.reserve_type || '', | 1130 | "{用餐类型}": data.detail.reserve_type || '', |
| 1129 | }; | 1131 | }; |
| 1130 | - let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { | 1132 | + let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) { |
| 1131 | return replacements[matched]; | 1133 | return replacements[matched]; |
| 1132 | }); | 1134 | }); |
| 1133 | console.log('newStr---', newStr); | 1135 | console.log('newStr---', newStr); |
-
Please register or login to post a comment