|
|
|
@ -25,7 +25,8 @@ |
|
|
|
<view class="lf-row-between lf-p-30 lf-p-l-32 lf-p-r-32 lf-font-28"> |
|
|
|
<view class="lf-color-black">收货时间</view> |
|
|
|
<picker mode="date" :value="date" @change="pickerChange"> |
|
|
|
<view class="lf-color-555 lf-text-right" style="width: 400rpx;">{{ date || '请选择收货时间...' }}</view> |
|
|
|
<view class="lf-color-555 lf-text-right" style="width: 400rpx;" v-if="first_time">{{ '请选择收货时间...' }}</view> |
|
|
|
<view class="lf-color-555 lf-text-right" style="width: 400rpx;" v-else>{{ date }}</view> |
|
|
|
</picker> |
|
|
|
</view> |
|
|
|
<self-line></self-line> |
|
|
|
@ -64,14 +65,15 @@ |
|
|
|
}, |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
// date: this.$shared.recordTime(new Date(), '-', 'date'), // 选择时间, 默认今天 |
|
|
|
date: '', |
|
|
|
date: this.$shared.recordTime(new Date(), '-', 'date'), // 选择时间, 默认今天 |
|
|
|
// date: '', |
|
|
|
material_list: {}, // 供应商,物资列表,不被渲染,在底层逻辑运作 |
|
|
|
show_material: false, // 是否显示采购清单按钮 |
|
|
|
render_material_list: {}, // 渲染出来的物资列表 |
|
|
|
show_count: 0, // 页面显示次数 |
|
|
|
p_sn: '', // 订单号,如果有 |
|
|
|
type: 0 // 类型, 1编辑, 2复用 |
|
|
|
type: 0 ,// 类型, 1编辑, 2复用 |
|
|
|
first_time: true |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
@ -227,6 +229,7 @@ |
|
|
|
// 时间选择 |
|
|
|
pickerChange(event){ |
|
|
|
this.date = event.detail.value; |
|
|
|
this.first_time = false |
|
|
|
}, |
|
|
|
// 移除供应商 |
|
|
|
removeSupplier(key){ |
|
|
|
|