16acb46a by zhangmeng

Merge remote-tracking branch 'origin/dev' into dev

2 parents 60778e70 242c7416
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
52 </el-card> 52 </el-card>
53 </el-col> 53 </el-col>
54 </el-row> 54 </el-row>
55 <el-empty v-show="!loading&&list.length==0" :image="`/img/order_no.png`" :image-size="228" description="" /> 55 <el-empty v-show="!loading&&list.length===0" :image="`/img/order_no.png`" :image-size="228" description="" />
56 <div style="height: 50px" /> 56 <div style="height: 50px" />
57 </div> 57 </div>
58 </div> 58 </div>
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
73 <div v-if="needPersonNum>0" class="fakeFormItem"> 73 <div v-if="needPersonNum>0" class="fakeFormItem">
74 <label>需填写{{ needPersonNum }}位游客</label> 74 <label>需填写{{ needPersonNum }}位游客</label>
75 <div> 75 <div>
76 <div v-show="needPersonNum > hasPersonNum">还需填写{{ needPersonNum-hasPersonNum }}位游客</div> 76 <label class="text-warning" v-show="needPersonNum > hasPersonNum">还需填写{{ needPersonNum-hasPersonNum }}位游客</label>
77 </div> 77 </div>
78 </div> 78 </div>
79 <div v-for="(n,i) in gateList" :key="i"> 79 <div v-for="(n,i) in gateList" :key="i">
...@@ -237,6 +237,7 @@ const checkPersonNum = () => { ...@@ -237,6 +237,7 @@ const checkPersonNum = () => {
237 _.each(gateList.value, item => { 237 _.each(gateList.value, item => {
238 needPersonNum.value += item.count 238 needPersonNum.value += item.count
239 _.each(item.personArr, person => { 239 _.each(item.personArr, person => {
240 console.log(person)
240 if (person.customerId) { 241 if (person.customerId) {
241 hasPersonNum.value++ 242 hasPersonNum.value++
242 } 243 }
...@@ -359,8 +360,10 @@ function submit() { ...@@ -359,8 +360,10 @@ function submit() {
359 360
360 submitOrderScenic(form.value).then(res => { 361 submitOrderScenic(form.value).then(res => {
361 if (res.data) { 362 if (res.data) {
362 if (res.data.roomNum == -100) { 363 if (res.data.orderId == -400) {
363 ElMessage.warning(language.value == 0 ? '剩余票数不足' : 'The remaining number of rooms is insufficient') 364 ElMessage.warning(language.value == 0 ? '剩余票数不足' : 'The remaining number of rooms is insufficient')
365 } else if (res.data.orderId == -300) {
366 ElMessage.warning(language.value == 0 ? '提交失败,请稍后再试' : 'Submission failed, please try again later')
364 } else { 367 } else {
365 // 去付钱 368 // 去付钱
366 router.push({ 369 router.push({
......
...@@ -123,7 +123,7 @@ function popRemark(type) { ...@@ -123,7 +123,7 @@ function popRemark(type) {
123 (form.value.isMealView == 0 && type == '4') || 123 (form.value.isMealView == 0 && type == '4') ||
124 (form.value.isPhotoView == 0 && type == '5') || 124 (form.value.isPhotoView == 0 && type == '5') ||
125 (form.value.isTicket == 0 && type == '0') || 125 (form.value.isTicket == 0 && type == '0') ||
126 (form.value.isTravel == 0 && type == '8') 126 (form.value.isScenicView == 0 && type == '8')
127 ) { 127 ) {
128 building() 128 building()
129 return 129 return
......
...@@ -171,7 +171,7 @@ function popRemark(type) { ...@@ -171,7 +171,7 @@ function popRemark(type) {
171 || (form.value.isMealView == 0 && type == '4') 171 || (form.value.isMealView == 0 && type == '4')
172 || (form.value.isPhotoView == 0 && type == '5') 172 || (form.value.isPhotoView == 0 && type == '5')
173 || (form.value.isTicket == 0 && type == '0') 173 || (form.value.isTicket == 0 && type == '0')
174 || (form.value.isTravel == 0 && type == '8') 174 || (form.value.isScenicView == 0 && type == '8')
175 ) { 175 ) {
176 building() 176 building()
177 return 177 return
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!