shish 2 лет назад
Родитель
Сommit
9a063a6775
1 измененных файлов с 10 добавлено и 2 удалено
  1. 10 2
      ghsApp/src/pagesPurchase/details.vue

+ 10 - 2
ghsApp/src/pagesPurchase/details.vue

@@ -56,8 +56,12 @@
 
 					<tui-list-cell class="line-cell" :hover="false" :arrow="true">
 						<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>
 
 <block v-if="location == 1">
@@ -360,6 +364,10 @@ export default {
 		}
 	},
 	methods: {
+		bindEntryTimeChange(e){
+			let date = e.detail.value
+			this.form.entryTime = date
+		},
 		isCostChange(e){
 			this.form.isCost = e.detail.value
 		},