Commit 0f28a562 by LJM

add

parent 2109f5d8
......@@ -349,56 +349,6 @@
}
}
}
.input-wrap {
margin-bottom: 25rpx;
.label-title {
font-size: 20rpx;
color: #484b59;
font-weight: bold;
margin-bottom: 10rpx;
}
.input-box {
.uni-arrow {
width: 14rpx;
height: 9rpx;
background: url('https://img.ichunt.com/images/ichunt/202304/10/e4c72319ad41ce1425f71cc6ec35f111.png') no-repeat center;
background-size: contain;
margin-left: 12rpx;
}
.uni-input {
height: 55rpx;
background: #ffffff;
border-radius: 10rpx;
border: 1px solid #1969f9;
font-size: 17rpx;
padding-left: 18rpx;
}
.uni-textarea {
width: 100%;
height: 110rpx;
background: #ffffff;
border-radius: 10px;
border: 1px solid #1969f9;
font-size: 17rpx;
padding: 18rpx;
}
}
.sel-box {
height: 55rpx;
background: #ffffff;
border-radius: 10rpx;
border: 1px solid #1969f9;
font-size: 17rpx;
padding-left: 18rpx;
.uni-arrow {
width: 14rpx;
height: 9rpx;
background: url('https://img.ichunt.com/images/ichunt/202304/10/e4c72319ad41ce1425f71cc6ec35f111.png') no-repeat center;
background-size: contain;
margin-right: 12rpx;
}
}
}
.btn {
position: absolute;
bottom: 0;
......@@ -422,7 +372,7 @@
.input-wrap {
margin-bottom: 25rpx;
.label-title {
font-size: 20rpx;
font-size: 17rpx;
color: #484b59;
font-weight: bold;
margin-bottom: 10rpx;
......
......@@ -163,12 +163,15 @@
*/
handleInput: debounce(function(type, event) {
var val = event.target.value;
this.searchParams.shipment_number = '';
this.searchParams.goods_name = '';
this.resetChange();
if (val) {
if (type == 1) {
//全量搜索
this.searchParams.shipment_number = val;
} else if (type == 2) {
//货品名称
this.searchParams.goods_name = val;
} else if (type == 3) {
//FedEx
......
......@@ -47,6 +47,8 @@
<view class="input-box row verCenter curr" style="flex: 0 0 100%;">
<text class="label">预检单号:</text>
<text class="tt">{{ item.precheck_sn }}</text>
<text class="tt" style="margin-left: 50px;width: 100rpx;">{{item.status_str}}</text>
<text class="tt">{{item.qc_status_str}}</text>
</view>
<view class="input-box row verCenter curr" style="flex: 0 0 100%;">
<text class="label">来货物流:</text>
......@@ -111,7 +113,7 @@
<!-- 针对需求状态为:已理货、待发货 -->
<view class="btn1 row rowCenter verCenter" @click="stockPreCheckCancelTally(item.precheck_id)">取消理货</view>
</template>
<template v-if="item.status == 1">
<template v-if="item.status == 1 || item.status == 2 || item.status == 4 || item.status == 10">
<!-- 针对需求状态为新创建 -->
<view class="btn2 row rowCenter verCenter" @click="showDrawer(index)">理货</view>
</template>
......@@ -158,14 +160,22 @@
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<text class="label-title">理货数量:</text>
<view class="row">
<text style="color: red;font-size: 17rpx;">*</text>
<text class="label-title">理货数量:</text>
</view>
<view class="input-box">
<input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入理货数量" v-model="stockPreCheckTallyParams.tally_num" />
<template v-if="detail.status ==1">
<input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入理货数量" v-model="stockPreCheckTallyParams.tally_num" />
</template>
<template v-else>
<input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入理货数量" v-model="stockPreCheckTallyParams.tally_num" disabled="true" style="background-color: #f5f5f7;" />
</template>
</view>
</view>
<view class="pack">
<view class="h2 row bothSide verCenter" style="margin-top: 25rpx;">
<view>
<view class="row verCenter">
<text style="color: red;">*</text>
<text>理货照片:</text>
<text class="tt">最多只支持{{ maxNum }}张图</text>
......@@ -196,36 +206,6 @@
</view>
</view>
</uni-drawer>
<!-- 单个发货 -->
<uni-drawer ref="showRightDeliver" mode="right">
<view class="uni-drawer-layer" v-if="detail">
<view class="p-text">
<text class="tt">您已选中</text>
<text class="ed">{{ filter_id.length }}</text>
<text class="tt">条预检单,是否确认发货?</text>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="label-title"><text style="color: red;">*</text>发货快递:</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,2)" :value="to_shipping_index" :range="to_shipping" :range-key="'name'" style="width: 100%;">
<view class="row verCenter bothSide wrap">
<view class="uni-input">{{ to_shipping_index === -1 ? '请选择发货快递' : (to_shipping[to_shipping_index] ? to_shipping[to_shipping_index].name : '请选择') }}</view>
<view class="uni-arrow"></view>
</view>
</picker>
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="label-title"><text style="color: red;">*</text>发货物流:</view>
<view class="input-box">
<input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入物流单号" v-model="stockPreCheckDeliverParams.to_shipment_number" />
</view>
</view>
<view class="btn row rowCenter verCenter">
<view class="row btn1 row rowCenter verCenter" style="width:100%" @click="stockPreCheckDeliver(detail.precheck_id)">确认发货</view>
</view>
</view>
</uni-drawer>
<!-- 批量理货 -->
<uni-drawer ref="showRightTallys" mode="right">
<view class="uni-drawer-layer" v-if="detail">
......@@ -272,6 +252,36 @@
</view>
</view>
</uni-drawer>
<!-- 单个发货 -->
<uni-drawer ref="showRightDeliver" mode="right">
<view class="uni-drawer-layer" v-if="detail">
<view class="p-text">
<text class="tt">您已选中</text>
<text class="ed">{{ filter_id.length }}</text>
<text class="tt">条预检单,是否确认发货?</text>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="label-title"><text style="color: red;">*</text>发货快递:</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,2)" :value="to_shipping_index" :range="to_shipping" :range-key="'name'" style="width: 100%;">
<view class="row verCenter bothSide wrap">
<view class="uni-input">{{ to_shipping_index === -1 ? '请选择发货快递' : (to_shipping[to_shipping_index] ? to_shipping[to_shipping_index].name : '请选择') }}</view>
<view class="uni-arrow"></view>
</view>
</picker>
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="label-title"><text style="color: red;">*</text>发货物流:</view>
<view class="input-box">
<input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入物流单号" v-model="stockPreCheckDeliverParams.to_shipment_number" />
</view>
</view>
<view class="btn row rowCenter verCenter">
<view class="row btn1 row rowCenter verCenter" style="width:100%" @click="stockPreCheckDeliver(detail.precheck_id)">确认发货</view>
</view>
</view>
</uni-drawer>
</view>
</template>
......@@ -623,6 +633,13 @@
if (precheck_ids) {
this.stockPreCheckTallyParams.precheck_ids = precheck_ids;
}
if (!this.stockPreCheckTallyParams.tally_num) {
uni.showToast({
title: '理货数量必填',
icon: 'none'
});
return false;
}
if (!this.stockPreCheckTallyParams.preckeck_imgs) {
uni.showToast({
title: '理货照片必须上传',
......@@ -770,10 +787,11 @@
},
showDrawer(index) {
this.detail = this.list[index];
this.stockPreCheckTallyParams.tally_num = '';
this.stockPreCheckTallyParams.tally_num = this.detail.tally_qty || '';
this.stockPreCheckTallyParams.tally_remark = '';
this.stockPreCheckTallyParams.preckeck_imgs = '';
this.stockPreCheckTallyParams.is_print_label = 1;
this.image_list = [];
this.$refs.showRight.open();
},
closeDrawer() {
......
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