|
@@ -104,7 +104,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="order_info_body_info_item">
|
|
<div class="order_info_body_info_item">
|
|
<span class="order_info_body_info_item_title">发票</span>
|
|
<span class="order_info_body_info_item_title">发票</span>
|
|
- <span class="order_info_body_info_item_content fix-order_info_body_info_item_content">{{scope.row.items[0].receive.invoice||'不需要发票'}}</span>
|
|
|
|
|
|
+ <span class="order_info_body_info_item_content fix-order_info_body_info_item_content">{{scope.row.items[0].receive.invoice ? '需要发票' : '不需要发票'}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="order_info_body_info_item" v-if="scope.row.paymentStatus != 'unpaid'">
|
|
<div class="order_info_body_info_item" v-if="scope.row.paymentStatus != 'unpaid'">
|
|
<span class="order_info_body_info_item_title">快递类别</span>
|
|
<span class="order_info_body_info_item_title">快递类别</span>
|
|
@@ -264,9 +264,16 @@ export default {
|
|
let orderItemIds = items.map(item => item.id).join(',')
|
|
let orderItemIds = items.map(item => item.id).join(',')
|
|
let expressNum = item.receive.expressNum
|
|
let expressNum = item.receive.expressNum
|
|
var pattern = /^[\u4E00-\u9FA5]{1,5}$/
|
|
var pattern = /^[\u4E00-\u9FA5]{1,5}$/
|
|
|
|
+ console.log(item.receive.expressNum)
|
|
|
|
|
|
- if (pattern.test(expressNum)) {
|
|
|
|
- this.$alert('快递单号不能为中文', '提示', {
|
|
|
|
|
|
+ if (!expressNum) {
|
|
|
|
+ return this.$alert('请输入快递单号', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ callback: action => {
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else if (pattern.test(expressNum)) {
|
|
|
|
+ return this.$alert('快递单号不能为中文', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
callback: action => {
|
|
callback: action => {
|
|
|
|
|