Commit 25f7fc1e by LJM

add

parent b0741ba1
...@@ -81,10 +81,42 @@ ...@@ -81,10 +81,42 @@
color: #1969f9; color: #1969f9;
} }
} }
.btn { .pick_img_list {
flex-wrap: wrap;
.default {
width: 120rpx;
height: 120rpx;
background: #f5f5f7;
border-radius: 10rpx;
margin-right: 15rpx;
.iconfont {
font-size: 60rpx;
color: #c6c7cc;
}
}
.img_list {
position: relative;
width: 120rpx;
height: 120rpx;
background: #f5f5f7;
border-radius: 10rpx;
margin-right: 15rpx;
margin-bottom: 15rpx;
image {
width: 120rpx;
height: 120rpx;
}
.iconfont {
position: absolute; position: absolute;
right: 17rpx; right: 0;
bottom: 12rpx; top: 0;
font-size: 30rpx;
color: #ff3700;
z-index: 9;
}
}
}
.btn {
width: 68rpx; width: 68rpx;
height: 30rpx; height: 30rpx;
background: #1969f9; background: #1969f9;
......
...@@ -39,16 +39,16 @@ ...@@ -39,16 +39,16 @@
<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="radio-search-box row verCenter bothSide">
<view class="row verCente"> <view class="row verCente">
<radio-group @change="radioChange" class="row verCenter"> <radio-group @change="radioChange" class="row verCenter">
<label class="radio row verCenter"> <label class="radio row verCenter">
<radio value="0" checked="true" style="transform:scale(0.7)" color="#1969F9" /> <radio value="7" checked="true" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt">近7天</text> <text class="tt">近7天</text>
</label> </label>
<label class="radio"> <label class="radio">
<radio value="1" style="transform:scale(0.7)" color="#1969F9" /> <radio value="30" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt">近30天</text> <text class="tt">近30天</text>
</label> </label>
</radio-group> </radio-group>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<text class="tt">{{ item.stock_out_sn }}</text> <text class="tt">{{ item.stock_out_sn }}</text>
</view> </view>
<view class="input-box row verCenter"> <view class="input-box row verCenter">
<text class="label">状态:</text> <text class="label">{{item.stock_out_type_val}}</text>
<text class="tt">{{ item.stock_out_status_val }}</text> <text class="tt">{{ item.stock_out_status_val }}</text>
</view> </view>
<view class="bor" style="flex: 0 0 100%;"></view> <view class="bor" style="flex: 0 0 100%;"></view>
...@@ -79,6 +79,22 @@ ...@@ -79,6 +79,22 @@
<text class="text" style="color: #f00;">{{ item.upstream_remark }}</text> <text class="text" style="color: #f00;">{{ item.upstream_remark }}</text>
</view> </view>
<view class="input-box row verCenter"> <view class="input-box row verCenter">
<text class="label">交货方式:</text>
<text class="text">{{ item.shipping_type }}</text>
</view>
<view class="input-box row verCenter">
<text class="label">物流公司:</text>
<text class="text">{{ item.shipping_name }}</text>
</view>
<view class="input-box row verCenter">
<text class="label">物流模式:</text>
<text class="text">{{ item.shipping_mode }}</text>
</view>
<view class="input-box row verCenter">
<text class="label">物流单号:</text>
<text class="text">{{ item.shipping_code }}</text>
</view>
<view class="input-box row verCenter">
<text class="label">销 售 员:</text> <text class="label">销 售 员:</text>
<text class="text">{{ item.sale_name }}</text> <text class="text">{{ item.sale_name }}</text>
</view> </view>
...@@ -90,15 +106,29 @@ ...@@ -90,15 +106,29 @@
<text class="label">收货客户:</text> <text class="label">收货客户:</text>
<text class="text">{{ item.customer_name }}</text> <text class="text">{{ item.customer_name }}</text>
</view> </view>
<view class="input-box row verCenter" style="flex: 0 0 100%;"> <view class="input-box row verCenter">
<text class="label">操 作 人:</text> <text class="label">操 作 人:</text>
<text class="text">{{ item.create_name }}</text> <text class="text">{{ item.create_name }}</text>
</view> </view>
<view class="input-box row verCenter" style="flex: 0 0 100%;"> <view class="input-box row verCenter">
<text class="label">完成时间:</text> <text class="label">出库时间:</text>
<text class="text">{{ item.finish_time }}</text> <text class="text">{{ item.finish_time }}</text>
</view> </view>
<view class="btn row rowCenter verCenter" @click="showDrawer(item.stock_out_sn)">选择</view> <view class="input-box row" style="flex: 0 0 100%;">
<text class="label">签收图片:</text>
<view class="pick_img_list row">
<!-- <template v-if="item.stock_out_status_val.length > 0">
<view class="img_list" v-for="(v, i) in item.recheck_img_list" :key="i">
<image :src="v.small_image_url" mode="aspectFill" @click="previewChange(item.recheck_img_list, i)"></image>
<text class="iconfont icon-a-juxing11" @click="deletePic(index,i)"></text>
</view>
</template> -->
<view class="default row rowCenter verCenter" @click="chooseImageChange(index)"><text class="iconfont icon-a-juxing3"></text></view>
</view>
</view>
<view class="row" style="justify-content: flex-end;width: 100%;">
<view class="btn row rowCenter verCenter" @click="showDrawer(item.stock_out_sn)">修改物流</view>
</view>
</view> </view>
</view> </view>
<!-- 无数据展示 --> <!-- 无数据展示 -->
...@@ -320,6 +350,7 @@ ...@@ -320,6 +350,7 @@
index: 0, index: 0,
array: ['出库单号'], array: ['出库单号'],
detail: {}, detail: {},
maxNum: 10, //最大上传图片数量
real_shipping_type_index: -1, real_shipping_type_index: -1,
real_shipping_id_index: -1, real_shipping_id_index: -1,
real_shipping_mode_index: -1, real_shipping_mode_index: -1,
...@@ -372,6 +403,10 @@ ...@@ -372,6 +403,10 @@
}); });
} }
}, },
onLoad() {
// 默认设置为近7天
this.setDateRange('7');
},
onShow() { onShow() {
this.getData(); this.getData();
}, },
...@@ -425,6 +460,30 @@ ...@@ -425,6 +460,30 @@
this.getData(); this.getData();
}, },
/** /**
* 设置日期范围的公共方法
*/
setDateRange(value) {
const today = new Date();
const days = parseInt(value);
// 设置结束时间为今天
this.searchParams.create_end_time = formatDate(today);
// 设置开始时间为指定天数前
const startDate = new Date();
startDate.setDate(today.getDate() - (days - 1)); // 减(days-1)天,包含今天共days天
this.searchParams.create_start_time = formatDate(startDate);
},
/**
* 修改单选按钮变化处理函数
*/
radioChange(e) {
this.resetChange();
const value = e.detail.value;
this.setDateRange(value);
this.getData();
},
/**
* 根据所选的交货方式,显示对应的物流公司 * 根据所选的交货方式,显示对应的物流公司
* @param {Object} value * @param {Object} value
*/ */
......
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