Commit 461a6825 by LJM

入库理货-增加“是否看货”即相关功能

parent 162f4f24
......@@ -132,6 +132,18 @@
margin-right: 15rpx;
margin-bottom: 15rpx;
border: 1px solid transparent;
.is-watch {
position: absolute;
right: 5rpx;
top: 89rpx;
width: 40rpx;
height: 40rpx;
font-size: 12rpx;
color: #000;
border: 1px solid #1969f9;
border-radius: 50%;
opacity: 0.8;
}
.check-box-icon {
position: absolute;
right: 18rpx;
......
......@@ -109,7 +109,20 @@
padding: 18rpx 22rpx 100px 22rpx;
background-color: #ffffff;
.field-item {
position: relative;
flex-wrap: wrap;
.is-watch {
position: absolute;
right: 26rpx;
top: 127rpx;
width: 40rpx;
height: 40rpx;
font-size: 12rpx;
color: #000;
border: 1px solid #1969f9;
border-radius: 50%;
opacity: 0.8;
}
.item {
flex: 0 0 50%;
margin-bottom: 8rpx;
......
......@@ -47,13 +47,16 @@
</view>
<view>
<text class="iconfont icon-juxing3" @click="createTallyContainer()"></text>
<!-- <text class="iconfont icon-zimu-M" @click="createTallyContainer(1)"></text> -->
<!--
<text class="iconfont icon-zimu-M" @click="createTallyContainer(1)"></text>
-->
<text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_contaion"></text>
</view>
</view>
</view>
<view class="list row bothSide" v-if="list.length > 0">
<view class="box" v-for="(item, index) in list" :key="index" :class="{ curr: filter_list[index] }">
<view class="is-watch row rowCenter verCenter" v-if="item.is_watch == 1">看货</view>
<view class="check-box-icon" @click="filterChange(index)"></view>
<view class="text-item row verCenter">
<text class="label">入库单号:</text>
......@@ -169,6 +172,7 @@
</template>
<view class="default row rowCenter verCenter" @click="chooseImageChange()" v-if="image_list.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
</view>
<p style="color: red;font-size: 17rpx;margin-bottom: 10rpx;" v-if="is_watch">选中包含有采购需看货的物料,建议上传理货照片!</p>
<view class="print row verCenter" @click="toggle()">
<text class="check-box-icon" :class="{ curr: print_flag }"></text>
<text class="tt">打印入库标签</text>
......@@ -213,6 +217,7 @@ export default {
image_list: [], //图片列表
maxNum: 10, //最大上传图片数量
hasMoreData: true, //是否分页加载
is_watch: false, //是否看货
searchParams: {
mobile_wait_tally_all_search: '', //全量搜索
stock_in_with_stock_in_items_inhouse: '', //入仓单号
......@@ -293,6 +298,8 @@ export default {
this.$set(this.filter_list, index, (this.filter_list[index] = !this.filter_list[index]));
let filter_arr = this.findIndex(this.filter_list, true);
this.filter_id = filter_arr.map(i => this.list[i].stock_in_item_id);
let is_watch_arr = filter_arr.map(i => this.list[i].is_watch);
this.is_watch = is_watch_arr.includes(1);
},
/**
* 全选
......
......@@ -42,6 +42,7 @@
</view>
<view class="section">
<view class="field-item row" v-if="detail">
<view class="is-watch row rowCenter verCenter" v-if="is_watch">看货</view>
<view class="item row verCenter">
<text class="label">入库单号:</text>
<text class="text">{{ detail.stock_in_sn }}</text>
......@@ -186,6 +187,7 @@
</template>
<view class="default row rowCenter verCenter" @click="chooseImageChange()" v-if="image_list.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
</view>
<p style="color: red;font-size: 17rpx;margin-bottom: 10rpx;" v-if="is_watch">选中包含有采购需看货的物料,建议上传理货照片!</p>
<view class="print row verCenter" @click="toggle(2)">
<text class="check-box-icon" :class="{ curr: pic_flag }"></text>
<text class="tt">整单照片</text>
......@@ -210,6 +212,7 @@ import debounce from 'lodash/debounce';
export default {
data() {
return {
is_watch: false, //是否看货
is_print: false, //查询该销售单是否需要打印客户标签
coo: '', //产地
is_submit: true,
......@@ -447,6 +450,7 @@ export default {
this.formParams.tally_qty = res.data.list[0].wait_tally_qty;
this.formParams.date_code = res.data.list[0].expect_date_code;
this.coo = res.data.list[0].coo_key; //产地
this.is_watch = res.data.list[0].is_watch == 1 ? true : false; //是否看货
this.getUseOption(); //初始化产地
if (res.data.list[0].mobile_default_img) {
......
......@@ -30,6 +30,7 @@ const request = (url = '', type = 'GET', param = {}, Loading) => {
data: params,
header: header,
dataType: 'json',
timeout: 600000
}).then((response) => {
let [error, res] = response;
//未登录拦截
......
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