Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
461a6825
authored
Sep 01, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
入库理货-增加“是否看货”即相关功能
parent
162f4f24
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
1 deletions
assets/css/tallyReceive/index.scss
assets/css/tallyReceive/operate.scss
pages/tallyReceive/index.vue
pages/tallyReceive/operate.vue
util/util.js
assets/css/tallyReceive/index.scss
View file @
461a6825
...
...
@@ -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
;
...
...
assets/css/tallyReceive/operate.scss
View file @
461a6825
...
...
@@ -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
;
...
...
pages/tallyReceive/index.vue
View file @
461a6825
...
...
@@ -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
);
},
/**
* 全选
...
...
pages/tallyReceive/operate.vue
View file @
461a6825
...
...
@@ -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
)
{
...
...
util/util.js
View file @
461a6825
...
...
@@ -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
;
//未登录拦截
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment