创建数据库表格
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
<view class="modal-body">
|
||||
<view class="form-item">
|
||||
<text class="label">选择承运商</text>
|
||||
<picker :range="carriers" @change="onCarrierChange">
|
||||
<picker :range="carriers" range-key="label" @change="onCarrierChange">
|
||||
<view class="picker-val">{{ currentCarrier || '请选择' }}</view>
|
||||
</picker>
|
||||
</view>
|
||||
@@ -83,8 +83,14 @@
|
||||
orders: [] as MockOrder[],
|
||||
showShipModal: false,
|
||||
selectedOrder: null as MockOrder | null,
|
||||
carriers: ['YUNDA', 'YTO', 'ZTO', 'STO', 'SF'],
|
||||
currentCarrier: '',
|
||||
carriers: [
|
||||
{ label: '韵达快递', value: '韵达' },
|
||||
{ label: '圆通速递', value: '圆通' },
|
||||
{ label: '中通快递', value: '中通' },
|
||||
{ label: '申通快递', value: '申通' },
|
||||
{ label: '顺丰速运', value: '顺丰' }
|
||||
],
|
||||
currentCarrier: '韵达',
|
||||
trackingNo: ''
|
||||
}
|
||||
},
|
||||
@@ -117,6 +123,7 @@
|
||||
const maps = {
|
||||
'PENDING': '待发货',
|
||||
'SHIPPED': '已发货',
|
||||
'IN_TRANSIT': '运输中',
|
||||
'DELIVERED': '已签收',
|
||||
'OUT_FOR_DELIVERY': '派送中',
|
||||
'EXCEPTION': '包裹异常'
|
||||
@@ -131,7 +138,7 @@
|
||||
},
|
||||
onCarrierChange(e: any) {
|
||||
const index = e.detail.value as number
|
||||
this.currentCarrier = this.carriers[index]
|
||||
this.currentCarrier = this.carriers[index].value
|
||||
},
|
||||
async confirmShip() {
|
||||
if (!this.trackingNo) {
|
||||
|
||||
Reference in New Issue
Block a user