修改
This commit is contained in:
+16
-8
@@ -46,14 +46,15 @@
|
||||
<text class="form-label required">计划归还时间</text>
|
||||
<view class="form-input-container">
|
||||
<uni-datetime-picker
|
||||
ref="returnTimePicker"
|
||||
type="date"
|
||||
v-model="formData.use_end_date"
|
||||
placeholder="请选择时间"
|
||||
:border="false"
|
||||
:clear-icon="false"
|
||||
@change="onReturnTimeChange"
|
||||
>
|
||||
ref="returnTimePicker"
|
||||
type="date"
|
||||
v-model="formData.use_end_date"
|
||||
placeholder="请选择时间"
|
||||
:border="false"
|
||||
:clear-icon="false"
|
||||
:start="formData.use_start_date"
|
||||
@change="onReturnTimeChange"
|
||||
>
|
||||
<view class="custom-datetime-input">
|
||||
<text class="custom-datetime-text" :class="{ 'placeholder': !formData.use_end_date }">
|
||||
{{ formData.use_end_date || '请选择时间' }}
|
||||
@@ -168,6 +169,13 @@
|
||||
onLoad() {
|
||||
this.getinfo()
|
||||
this.getItemNameOptions()
|
||||
// 设置借用时间默认当天
|
||||
const today = new Date()
|
||||
const year = today.getFullYear()
|
||||
const month = String(today.getMonth() + 1).padStart(2, '0')
|
||||
const day = String(today.getDate()).padStart(2, '0')
|
||||
const todayStr = `${year}-${month}-${day}`
|
||||
this.formData.use_start_date = todayStr
|
||||
},
|
||||
methods: {
|
||||
leftClick(){
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
current:pageNo,
|
||||
size:10,
|
||||
applicant_id:'self',
|
||||
status: this.currentTab === 0 ? '' : (this.currentTab === 1 ? 'repaid' : (this.currentTab === 2 ? 'unreturned' : 'approve'))
|
||||
phase: this.currentTab === 0 ? '' : (this.currentTab === 1 ? 'repaid' : (this.currentTab === 2 ? 'unreturned' : 'approve'))
|
||||
};
|
||||
request({
|
||||
url:'mobile/inv/requisition/list',
|
||||
|
||||
Reference in New Issue
Block a user