字段修改
Showing
4 changed files
with
31 additions
and
28 deletions
| ... | @@ -141,13 +141,13 @@ const timeVal=ref(null) | ... | @@ -141,13 +141,13 @@ const timeVal=ref(null) |
| 141 | const money = ref(0) | 141 | const money = ref(0) |
| 142 | const rules = ref({ | 142 | const rules = ref({ |
| 143 | num: [ | 143 | num: [ |
| 144 | { required: true, message: '预约数量不能为空', trigger: 'blur' }, | 144 | { required: true, message: language.value==0?'预约数量不能为空':"phone is required", trigger: 'blur' }, |
| 145 | ], | 145 | ], |
| 146 | contacts: [ | 146 | contacts: [ |
| 147 | { required: true, message: '请输入预约联系人', trigger: 'blur' }, | 147 | { required: true, message:language.value==0?'请输入预约联系人':'phone is required', trigger: 'blur' }, |
| 148 | ], | 148 | ], |
| 149 | phoned: [ | 149 | phoned: [ |
| 150 | { required: true, message: '请输入联系电话', trigger: 'change' }, | 150 | { required: true, message: language.value==0? '请输入联系电话':"phone is required", trigger: 'blur' }, |
| 151 | ], | 151 | ], |
| 152 | 152 | ||
| 153 | }) | 153 | }) | ... | ... |
| ... | @@ -466,11 +466,11 @@ function getData() { | ... | @@ -466,11 +466,11 @@ function getData() { |
| 466 | } | 466 | } |
| 467 | if(type.value=='makeUp') { | 467 | if(type.value=='makeUp') { |
| 468 | MakeUpOrder() | 468 | MakeUpOrder() |
| 469 | MakeUpIno() | 469 | // MakeUpIno() |
| 470 | } | 470 | } |
| 471 | if(type.value=='photography') { | 471 | if(type.value=='photography') { |
| 472 | photographyOrder() | 472 | photographyOrder() |
| 473 | photographyInfo() | 473 | // photographyInfo() |
| 474 | } | 474 | } |
| 475 | 475 | ||
| 476 | console.log(payType.value) | 476 | console.log(payType.value) |
| ... | @@ -547,6 +547,8 @@ function MakeUpOrder(){ | ... | @@ -547,6 +547,8 @@ function MakeUpOrder(){ |
| 547 | return booking.getMealOrderInfo({orderId: orderId.value}).then(res => { | 547 | return booking.getMealOrderInfo({orderId: orderId.value}).then(res => { |
| 548 | form.value=res.data | 548 | form.value=res.data |
| 549 | totalFee.value=language.value==0?form.value.total:form.value.totalEn | 549 | totalFee.value=language.value==0?form.value.total:form.value.totalEn |
| 550 | MakeUpIno() | ||
| 551 | console.log(res) | ||
| 550 | }).catch(err => { | 552 | }).catch(err => { |
| 551 | console.log(err) | 553 | console.log(err) |
| 552 | errorBox.value = true | 554 | errorBox.value = true |
| ... | @@ -554,8 +556,9 @@ function MakeUpOrder(){ | ... | @@ -554,8 +556,9 @@ function MakeUpOrder(){ |
| 554 | } | 556 | } |
| 555 | 557 | ||
| 556 | function MakeUpIno(){ | 558 | function MakeUpIno(){ |
| 557 | booking.getMealOrderInfoByLogex({orderId: orderId.value}).then(res=>{ | 559 | booking.getMealOrderInfoByLogex({asmId: form.value.asmId}).then(res=>{ |
| 558 | formInfo.value=res.data | 560 | formInfo.value=res.data |
| 561 | console.log(res) | ||
| 559 | }) | 562 | }) |
| 560 | .catch((e) => { | 563 | .catch((e) => { |
| 561 | console.log(e) | 564 | console.log(e) |
| ... | @@ -568,6 +571,7 @@ function photographyOrder(){ | ... | @@ -568,6 +571,7 @@ function photographyOrder(){ |
| 568 | return booking.getPhotoOrderInfo({orderId: orderId.value}).then(res => { | 571 | return booking.getPhotoOrderInfo({orderId: orderId.value}).then(res => { |
| 569 | form.value=res.data | 572 | form.value=res.data |
| 570 | totalFee.value=language.value==0?form.value.total:form.value.totalEn | 573 | totalFee.value=language.value==0?form.value.total:form.value.totalEn |
| 574 | photographyInfo() | ||
| 571 | }).catch(err => { | 575 | }).catch(err => { |
| 572 | console.log(err) | 576 | console.log(err) |
| 573 | errorBox.value = true | 577 | errorBox.value = true |
| ... | @@ -575,7 +579,7 @@ function photographyOrder(){ | ... | @@ -575,7 +579,7 @@ function photographyOrder(){ |
| 575 | } | 579 | } |
| 576 | 580 | ||
| 577 | function photographyInfo(){ | 581 | function photographyInfo(){ |
| 578 | booking.getPhotoOrderInfoByLogex({orderId: orderId.value}).then(res=>{ | 582 | booking.getPhotoOrderInfoByLogex({aspId: form.value.aspId}).then(res=>{ |
| 579 | formInfo.value=res.data | 583 | formInfo.value=res.data |
| 580 | }) | 584 | }) |
| 581 | // .catch((e) => { | 585 | // .catch((e) => { | ... | ... |
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"> | 27 | <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"> |
| 28 | <LocationFilled/> | 28 | <LocationFilled/> |
| 29 | </el-icon> | 29 | </el-icon> |
| 30 | {{form.rearks}} | 30 | {{form.remarks}} |
| 31 | </el-row> | 31 | </el-row> |
| 32 | </el-card> | 32 | </el-card> |
| 33 | <div class="mt30"> | 33 | <div class="mt30"> | ... | ... |
| ... | @@ -29,7 +29,7 @@ | ... | @@ -29,7 +29,7 @@ |
| 29 | <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"> | 29 | <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"> |
| 30 | <LocationFilled/> | 30 | <LocationFilled/> |
| 31 | </el-icon> | 31 | </el-icon> |
| 32 | {{formData.rearks}} | 32 | {{formData.remarks}} |
| 33 | 33 | ||
| 34 | </el-row> | 34 | </el-row> |
| 35 | <hr style="border:1px solid #D3D1F6 "> | 35 | <hr style="border:1px solid #D3D1F6 "> |
| ... | @@ -139,15 +139,14 @@ const timeVal=ref(null) | ... | @@ -139,15 +139,14 @@ const timeVal=ref(null) |
| 139 | const money = ref(0) | 139 | const money = ref(0) |
| 140 | const rules = ref({ | 140 | const rules = ref({ |
| 141 | num: [ | 141 | num: [ |
| 142 | { required: true, message: '预约数量不能为空', trigger: 'blur' }, | 142 | { required: true, message: language.value==0?'预约数量不能为空':"phone is required", trigger: 'blur' }, |
| 143 | ], | 143 | ], |
| 144 | contacts: [ | 144 | contacts: [ |
| 145 | { required: true, message: '请输入预约联系人', trigger: 'blur' }, | 145 | { required: true, message:language.value==0?'请输入预约联系人':'phone is required', trigger: 'blur' }, |
| 146 | ], | 146 | ], |
| 147 | phoned: [ | 147 | phoned: [ |
| 148 | { required: true, message: '请输入联系电话', trigger: 'change' }, | 148 | { required: true, message: language.value==0? '请输入联系电话':"phone is required", trigger: 'blur' }, |
| 149 | ], | 149 | ], |
| 150 | |||
| 151 | }) | 150 | }) |
| 152 | const radioList=ref([]) | 151 | const radioList=ref([]) |
| 153 | 152 | ||
| ... | @@ -315,21 +314,21 @@ function changeMaony(){ | ... | @@ -315,21 +314,21 @@ function changeMaony(){ |
| 315 | border: 1px solid #DCDFE6; | 314 | border: 1px solid #DCDFE6; |
| 316 | } | 315 | } |
| 317 | 316 | ||
| 318 | .ccitemBox { | 317 | //.ccitemBox { |
| 319 | overflow: auto; | 318 | // overflow: auto; |
| 320 | 319 | // | |
| 321 | label { | 320 | // label { |
| 322 | margin: 10px 0; | 321 | // margin: 10px 0; |
| 323 | display: block; | 322 | // display: block; |
| 324 | min-height: 30px; | 323 | // min-height: 30px; |
| 325 | 324 | // | |
| 326 | span { | 325 | // span { |
| 327 | color: #FF8124; | 326 | // color: #FF8124; |
| 328 | font-family: DIN Alternate; | 327 | // font-family: DIN Alternate; |
| 329 | font-size: 24px; | 328 | // font-size: 24px; |
| 330 | } | 329 | // } |
| 331 | } | 330 | // } |
| 332 | } | 331 | //} |
| 333 | 332 | ||
| 334 | 333 | ||
| 335 | 334 | ... | ... |
-
Please register or sign in to post a comment