Commit 461a6825 by LJM

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

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