Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
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
0e8508e8
authored
Mar 24, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
2b2914ab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
11 deletions
assets/css/goods/tallyExectionDetail.scss
pages/goods/tally.vue
pages/goods/tallyExectionDetail.vue
pages/goods/tallyQuestion.vue
assets/css/goods/tallyExectionDetail.scss
View file @
0e8508e8
.tallyExectionDetail
{
padding
:
24rpx
;
.base-information
{
padding
:
24rpx
24rpx
0
24rpx
;
padding
:
24rpx
;
background
:
#ffffff
;
border-radius
:
4rpx
;
margin-bottom
:
16rpx
;
...
...
@@ -23,7 +23,10 @@
}
}
.pp
{
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
&
:last-child
{
margin-bottom
:
0
;
}
&
.mb24
{
margin-bottom
:
24rpx
;
}
...
...
@@ -100,6 +103,23 @@
}
}
}
.status-box
{
height
:
80rpx
;
border-top
:
1px
solid
#e6edf0
;
.bb
{
flex
:
0
0
50%
;
.t1
{
font-size
:
24rpx
;
color
:
#6e767a
;
}
.t2
{
margin-left
:
16rpx
;
font-size
:
24rpx
;
color
:
#404547
;
font-weight
:
bold
;
}
}
}
.uni-table
{
.uni-th
{
height
:
62rpx
;
...
...
pages/goods/tally.vue
View file @
0e8508e8
...
...
@@ -51,7 +51,7 @@
<
template
v-else-if=
"currentIndex === 1"
>
<view
class=
"list"
v-if=
"unusualCheckInList.length > 0 || !is_complete"
>
<navigator
class=
"box row bothSide verCenter"
:url=
"'/pages/goods/tallyExectionDetail?number=' + item.erp_order_sn"
hover-class=
"none"
v-for=
"(item, index) in unusualCheckInList"
:key=
"index"
>
<view
class=
"bill-number row rowCenter verCenter"
:class=
"numberType[index] ? 'color1' : 'color2'"
>
{{
item
.
erp_order_sn
}}
</view>
<view
class=
"bill-number row rowCenter verCenter"
:class=
"numberType
Unusua
[index] ? 'color1' : 'color2'"
>
{{
item
.
erp_order_sn
}}
</view>
<view>
<text
class=
"t1"
>
客户:
{{
item
.
supplier_name
}}
</text>
<view
class=
"text"
>
...
...
@@ -98,7 +98,8 @@ export default {
page
:
1
,
goodsArrangeData
:
[],
unusualCheckInList
:
[],
numberType
:
[]
numberType
:
[],
numberTypeUnusua
:[]
};
},
onShow
()
{
...
...
@@ -130,6 +131,18 @@ export default {
this
.
is_complete
=
true
;
this
.
goodsArrangeData
=
res
.
data
;
this
.
total
=
res
.
data
.
length
;
//判断A单 B单
if
(
res
.
data
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
if
(
res
.
data
[
i
].
number
.
indexOf
(
'B'
))
{
this
.
numberType
.
push
(
true
);
}
else
{
this
.
numberType
.
push
(
false
);
}
}
}
}
else
{
uni
.
showToast
({
title
:
res
.
err_msg
,
...
...
@@ -148,10 +161,10 @@ export default {
//判断A单 B单
if
(
res
.
data
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
if
(
res
.
data
[
i
].
number
.
indexOf
(
'B'
))
{
this
.
numberType
.
push
(
true
);
if
(
res
.
data
[
i
].
erp_order_sn
.
indexOf
(
'B'
))
{
this
.
numberType
Unusua
.
push
(
true
);
}
else
{
this
.
numberType
.
push
(
false
);
this
.
numberType
Unusua
.
push
(
false
);
}
}
}
...
...
pages/goods/tallyExectionDetail.vue
View file @
0e8508e8
This diff is collapsed.
Click to expand it.
pages/goods/tallyQuestion.vue
View file @
0e8508e8
...
...
@@ -59,7 +59,7 @@
<view
class=
"uni-tr row verCenter"
v-for=
"(item, index) in form[d].exceptionlist"
:key=
"index"
>
<text
class=
"txt w row verCenter"
>
{{
item
.
model
}}
</text>
<text
class=
"txt w row verCenter"
>
{{
item
.
order_data
}}
</text>
<input
class=
"w uni-input"
type=
"text"
@
input=
"onInput($event, d, index)"
:disabled=
"!form[d].exception[index].is"
:class=
"
{ bg: !form[d].exception[index].is }" />
<input
class=
"w uni-input"
type=
"text"
@
input=
"onInput($event, d, index)"
:
value=
"form[d].exception[index].val"
:
disabled=
"!form[d].exception[index].is"
:class=
"
{ bg: !form[d].exception[index].is }" />
<view
class=
"w"
style=
"padding-left: 0;text-align: center;flex: 0 0 20%;"
><switch
:checked=
"form.exception[index].is"
@
change=
"switchChange($event, d, index)"
style=
"transform: scale(0.5);"
color=
"#197ADB"
/></view>
</view>
</view>
...
...
@@ -102,7 +102,7 @@ export default {
goodsArrangeData
:
{},
//理货列表数据
noexebshowFalg
:
true
,
//控制是否会触发生命周期
limitword
:
0
,
//备注文字限制,
text
:
[
''
],
//记录数组文字
text
:
[
''
],
//记录数组文字
typeList
:
[],
//问题类型列表
questionTypeIndex
:
[
0
],
//问题类型索引
erp_order_sn
:
''
,
//form入仓号
...
...
@@ -193,8 +193,10 @@ export default {
this
.
form
[
d
].
exception
[
index
].
val
=
e
.
detail
.
value
;
},
switchChange
(
e
,
d
,
index
)
{
console
.
log
(
e
.
target
.
value
);
this
.
$set
(
this
.
form
[
d
].
exception
[
index
],
'is'
,
e
.
target
.
value
);
if
(
!
e
.
target
.
value
)
{
this
.
$set
(
this
.
form
[
d
].
exception
[
index
],
'val'
,
''
);
}
},
toggle
()
{
this
.
flag
=
!
this
.
flag
;
...
...
@@ -294,6 +296,27 @@ export default {
submit
()
{
this
.
noexebshowFalg
=
false
;
//不允许再次触发onshow这个生命周期
//判断如有异常,是否填写实际
var
tempArr
=
[];
for
(
let
i
=
0
;
i
<
this
.
form
.
length
;
i
++
)
{
if
(
this
.
form
[
i
].
exception
.
findIndex
(
target
=>
target
.
is
===
true
)
==
-
1
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'异常的产品请至少填写一个'
,
showCancel
:
false
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
return
false
;
}
else
{
console
.
log
(
'验证不通过'
);
}
}
//判断来货图片
if
(
this
.
form
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
form
.
length
;
i
++
)
{
...
...
@@ -318,7 +341,6 @@ export default {
this
.
request
(
API
.
addAskCustomer
,
'POST'
,
params
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
}
else
{
uni
.
showToast
({
title
:
res
.
err_msg
,
...
...
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