| | |
| | | </view> |
| | | <view class="card-actions"> |
| | | <view class="btn-link btn-link-primary" v-if="item.inspectState == 0" @click.stop="openDealDialog(item)">处理</view> |
| | | <view class="btn-link btn-link-plain" v-if="item.inspectState == 0 && hasNonconformingEdit" @click.stop="openForm('edit', item)">编辑</view> |
| | | <view class="btn-link btn-link-plain" v-if="hasNonconformingEdit" @click.stop="openForm('edit', item)">编辑</view> |
| | | <view class="btn-link btn-link-warn" v-if="hasNonconformingCancel" @click.stop="handleDelete(item)">删除</view> |
| | | </view> |
| | | </view> |
| | |
| | | <up-datetime-picker |
| | | :show="showEntryStartPicker" |
| | | v-model="entryStartValue" |
| | | mode="date" |
| | | mode="year-month" |
| | | @confirm="confirmEntryStart" |
| | | @cancel="showEntryStartPicker = false" |
| | | /> |
| | |
| | | <up-datetime-picker |
| | | :show="showEntryEndPicker" |
| | | v-model="entryEndValue" |
| | | mode="date" |
| | | mode="year-month" |
| | | @confirm="confirmEntryEnd" |
| | | @cancel="showEntryEndPicker = false" |
| | | /> |
| | |
| | | }; |
| | | |
| | | const openDateRange = () => { |
| | | entryStartValue.value = searchForm.entryDateStart ? dayjs(searchForm.entryDateStart, 'YYYY-MM-DD').valueOf() : Date.now() |
| | | entryStartValue.value = searchForm.entryDateStart ? dayjs(searchForm.entryDateStart).valueOf() : Date.now() |
| | | showEntryStartPicker.value = true |
| | | } |
| | | const confirmEntryStart = (e) => { |
| | | const ts = e?.value ?? entryStartValue.value |
| | | searchForm.entryDateStart = dayjs(ts).format('YYYY-MM-DD') |
| | | searchForm.entryDateStart = `${dayjs(ts).format('YYYY-MM')}-01` |
| | | showEntryStartPicker.value = false |
| | | entryEndValue.value = searchForm.entryDateEnd ? dayjs(searchForm.entryDateEnd, 'YYYY-MM-DD').valueOf() : Date.now() |
| | | entryEndValue.value = searchForm.entryDateEnd ? dayjs(searchForm.entryDateEnd).valueOf() : Date.now() |
| | | showEntryEndPicker.value = true |
| | | } |
| | | const confirmEntryEnd = (e) => { |
| | | const ts = e?.value ?? entryEndValue.value |
| | | searchForm.entryDateEnd = dayjs(ts).format('YYYY-MM-DD') |
| | | searchForm.entryDateEnd = `${dayjs(ts).format('YYYY-MM')}-01` |
| | | showEntryEndPicker.value = false |
| | | handleQuery() |
| | | } |