Commit 33b226f9 by LJM

css

parent 38469bf3
......@@ -307,7 +307,7 @@
}
}
.input-wrap {
margin-bottom: 25rpx;
margin-bottom: 8rpx;
.label-title {
font-size: 17rpx;
color: #484b59;
......
......@@ -86,7 +86,7 @@
<text class="iconfont icon-juxing2" @click="closeDrawer()"></text>
<text class="text">新增登记</text>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="label-title"><text style="color: red;">*</text>仓库:</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,1)" :value="warehouse_index" :range="warehouse_arr" :range-key="'name'" style="width: 100%;">
......@@ -97,13 +97,13 @@
</picker>
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="label-title"><text style="color: red;">*</text>到货时间:</view>
<view class="select-box row">
<uni-datetime-picker v-model="formParams.register_time" type="datetime" :clear-icon="false" />
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="label-title"><text style="color: red;">*</text>类型:</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,2)" :value="register_type_index" :range="register_type" style="width: 100%;">
......@@ -114,7 +114,7 @@
</picker>
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="label-title"><text style="color: red;">*</text>物流公司:</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,3)" :value="logistics_company_index" :range="logistics_company" style="width: 100%;">
......@@ -125,7 +125,7 @@
</picker>
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="row">
<template v-if="formParams.logistics_company != '自提' && formParams.logistics_company != '供应商配送'">
<text style="color: red;font-size: 17rpx;">*</text>
......@@ -136,7 +136,7 @@
<textarea class="uni-textarea" placeholder-style="color:#919399" placeholder="请输入物流单号" v-model="logistics_sn" @input="handleInputTextArea($event)" />
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="row">
<text style="color: red;font-size: 17rpx;">*</text>
<text class="label-title">件数:</text>
......@@ -145,7 +145,7 @@
<input type="number" inputmode="numeric" class="uni-input" placeholder-style="color:#919399" placeholder="请输入件数" v-model="formParams.num" />
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="row">
<text class="label-title">其他信息:</text>
</view>
......@@ -154,7 +154,7 @@
</view>
</view>
<view class="pack">
<view class="h2 row bothSide verCenter" style="margin-top: 25rpx;">
<view class="h2 row bothSide verCenter" style="margin-top: 10rpx;">
<view class="row verCenter">
<text style="color: red;" v-if="formParams.register_type == 2">*</text>
<text>登记照片:</text>
......
......@@ -19,11 +19,6 @@
</view>
</view>
<view class="search-params row bothSide verCenter">
<view class="sn row rowCenter verCenter" style="width: 60%;">
<view class="select-box row" style="width: 100%;">
<uni-datetime-picker v-model="formParams.register_time" type="datetimerange" rangeSeparator="~" :clear-icon="false" @change="changeDate" start-placeholder="开始到货时间" end-placeholder="结束到货时间" :border="false" />
</view>
</view>
<view class="sn row rowCenter verCenter" style="width: 30%;">
<picker @change="bindPickerChange($event,4)" :value="logistics_company_index" :range="logistics_company" :range-key="'name'">
<view class="row verCenter">
......@@ -32,6 +27,11 @@
</view>
</picker>
</view>
<view class="sn row rowCenter verCenter" style="width: 60%;">
<view class="select-box row" style="width: 100%;">
<uni-datetime-picker v-model="searchParams.register_time" type="datetimerange" rangeSeparator="~" :clear-icon="false" @change="changeDate" start-placeholder="开始到货时间" end-placeholder="结束到货时间" :border="false" />
</view>
</view>
</view>
<!-- 列表区 -->
<view class="list" v-if="list.length > 0">
......@@ -161,8 +161,9 @@
},
methods: {
changeDate(e) {
console.log(e)
this.searchParams.register_time = e[0] + ' ~ ' + e[1];
if (e[0]) {
this.searchParams.register_time = e[0] + ' ~ ' + e[1];
}
this.resetChange();
this.getData();
},
......
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