Commit b0741ba1 by LJM

add

parent 7f953817
.stockRecheck-print { .stockRecheck-print {
padding: 15rpx 22rpx; padding: 15rpx 22rpx;
.radio-search-box {
height: 57rpx;
}
.search-box { .search-box {
height: 60rpx; height: 60rpx;
background: #ffffff; background: #ffffff;
......
...@@ -39,6 +39,21 @@ ...@@ -39,6 +39,21 @@
<text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text> <text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text>
</view> </view>
</view> </view>
<!-- 全量搜索 -->
<view class="radio-search-box row verCenter bothSide">
<view class="row verCente">
<radio-group @change="radioChange" class="row verCenter">
<label class="radio row verCenter">
<radio value="0" checked="true" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt">近7天</text>
</label>
<label class="radio">
<radio value="1" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt">近30天</text>
</label>
</radio-group>
</view>
</view>
<!-- 列表 --> <!-- 列表 -->
<view class="list" v-if="list.length > 0"> <view class="list" v-if="list.length > 0">
<view class="box row" v-for="(item, index) in list" :key="index"> <view class="box row" v-for="(item, index) in list" :key="index">
......
...@@ -86,9 +86,20 @@ const getFirstEightChars = (str) => { ...@@ -86,9 +86,20 @@ const getFirstEightChars = (str) => {
} }
// 格式化日期为 YYYY-MM-DD
const formatDate = (date) => {
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, '0');
const day = date.getDate().toString().padStart(2, '0');
return `${year}-${month}-${day}`;
};
module.exports = { module.exports = {
request, request,
getPlatform, getPlatform,
createArray, createArray,
getFirstEightChars getFirstEightChars,
formatDate
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment