|
@@ -56,8 +56,12 @@
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true">
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true">
|
|
|
<view class="tui-title ">入库日期</view>
|
|
<view class="tui-title ">入库日期</view>
|
|
|
- <AppDatePicker v-if="canIEdit" :dateVal.sync="form.entryTime" :placeholder="'今天'"/>
|
|
|
|
|
- <view v-else>{{ form.entryTime || "默认今天" }}</view>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <picker mode="date" :value="form.entryTime" @change="bindEntryTimeChange" style="width:400upx;">
|
|
|
|
|
+ <view class="uni-input" v-if="form.entryTime==''" style="color:#CCCCCC;">请选择,默认当天</view>
|
|
|
|
|
+ <view class="uni-input">{{form.entryTime}}</view>
|
|
|
|
|
+ </picker>
|
|
|
|
|
+
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<block v-if="location == 1">
|
|
<block v-if="location == 1">
|
|
@@ -360,6 +364,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ bindEntryTimeChange(e){
|
|
|
|
|
+ let date = e.detail.value
|
|
|
|
|
+ this.form.entryTime = date
|
|
|
|
|
+ },
|
|
|
isCostChange(e){
|
|
isCostChange(e){
|
|
|
this.form.isCost = e.detail.value
|
|
this.form.isCost = e.detail.value
|
|
|
},
|
|
},
|