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
2fdbb64d
authored
Apr 08, 2025
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
移动端--增加“三方送检”相关功能
parent
edf69054
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
147 additions
and
16 deletions
pages/preCheck/thirdPartyInspectionStatus.vue
pages/preCheck/thirdPartyInspectionStatus.vue
View file @
2fdbb64d
...
...
@@ -93,7 +93,7 @@
<text
class=
"text"
style=
"color: red;"
>
{{
item
.
qc_delivery_remark
}}
</text>
</view>
<view
class=
"btn-box row"
>
<view
class=
"btn2 row rowCenter verCenter"
@
click=
"
showDrawer(index,1
)"
v-if=
"item.status == 2"
>
检后收货
</view>
<view
class=
"btn2 row rowCenter verCenter"
@
click=
"
receiveAfterInspectionClick(item.inspection_order_id
)"
v-if=
"item.status == 2"
>
检后收货
</view>
</view>
</view>
</view>
...
...
@@ -109,8 +109,91 @@
<text
class=
"text"
>
{{
filter_id
.
length
==
0
?
'全选'
:
filter_id
.
length
}}
</text>
</view>
<view
class=
"btn2 row rowCenter verCenter"
@
click=
"canelShipping"
>
取消收货
</view>
<view
class=
"btn3 row rowCenter verCenter"
@
click=
"
batchTally
"
>
检后收货
</view>
<view
class=
"btn3 row rowCenter verCenter"
@
click=
"
receiveAfterInspectionLayer
"
>
检后收货
</view>
</view>
<!-- 单个检后收货 -->
<uni-drawer
ref=
"showRight"
mode=
"right"
>
<view
class=
"uni-drawer-layer"
v-if=
"detail"
>
<view
class=
"title row rowCenter verCenter"
>
<text
class=
"iconfont icon-juxing2"
@
click=
"closeDrawer()"
></text>
<text
class=
"text"
>
检后收货
</text>
</view>
<view
class=
"field-item row"
style=
"margin-top: 15rpx;"
>
<view
class=
"item row verCenter"
style=
"flex: 0 0 100%;"
>
<text
class=
"label"
>
入仓号:
</text>
<text
class=
"tt"
>
{{
detail
.
inhouse
}}
</text>
</view>
<view
class=
"item row verCenter"
style=
"flex: 0 0 100%;"
>
<text
class=
"label"
>
货品名称:
</text>
<text
class=
"tt"
>
{{
detail
.
goods_name
}}
</text>
</view>
<view
class=
"item row verCenter"
style=
"flex: 0 0 100%;"
>
<text
class=
"label"
>
标准品牌:
</text>
<text
class=
"tt"
>
{{
detail
.
brand_name
}}
</text>
</view>
<view
class=
"item row verCenter"
style=
"flex: 0 0 100%;"
>
<text
class=
"label"
>
总数量:
</text>
<text
class=
"tt"
>
{{
detail
.
total_qty
}}
</text>
</view>
<view
class=
"item row verCenter"
style=
"flex: 0 0 100%;"
>
<text
class=
"label"
>
送检数量:
</text>
<text
class=
"tt"
style=
"color: #1969f9;"
>
{{
detail
.
inspection_qty
}}
</text>
</view>
</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
mode=
"date"
@
change=
"bindPickerChange($event,2)"
style=
"width: 100%;"
>
<view
class=
"row verCenter bothSide wrap"
>
<view
class=
"uni-input"
>
{{
receiveAfterInspectionParams
.
delivery_time
?
receiveAfterInspectionParams
.
delivery_time
:
'请选择收货时间'
}}
</view>
<view
class=
"uni-arrow"
></view>
</view>
</picker>
</view>
</view>
<view
class=
"pack"
>
<view
class=
"h2"
>
收货备注:
</view>
<view
class=
"textarea-box"
><textarea
placeholder-style=
"color:#919399"
placeholder=
"请输入收货备注"
v-model=
"receiveAfterInspectionParams.qc_delivery_remark"
/></view>
</view>
<view
class=
"btn row rowCenter verCenter"
>
<view
class=
"row btn2 row rowCenter verCenter"
style=
"width:50%"
@
click=
"closeDrawer()"
>
取消
</view>
<view
class=
"row btn1 row rowCenter verCenter"
style=
"width:50%"
@
click=
"receiveAfterInspection()"
>
检后收货
</view>
</view>
</view>
</uni-drawer>
<!-- 批量检后收货 -->
<uni-drawer
ref=
"showRightBatch"
mode=
"right"
>
<view
class=
"uni-drawer-layer"
v-if=
"detail"
>
<view
class=
"title row rowCenter verCenter"
>
<text
class=
"iconfont icon-juxing2"
@
click=
"closeDrawer()"
></text>
<text
class=
"text"
>
批量检后收货
</text>
</view>
<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
mode=
"date"
@
change=
"bindPickerChange($event,2)"
style=
"width: 100%;"
>
<view
class=
"row verCenter bothSide wrap"
>
<view
class=
"uni-input"
>
{{
receiveAfterInspectionParams
.
delivery_time
?
receiveAfterInspectionParams
.
delivery_time
:
'请选择收货时间'
}}
</view>
<view
class=
"uni-arrow"
></view>
</view>
</picker>
</view>
</view>
<view
class=
"pack"
>
<view
class=
"h2"
>
收货备注:
</view>
<view
class=
"textarea-box"
><textarea
placeholder-style=
"color:#919399"
placeholder=
"请输入收货备注"
v-model=
"receiveAfterInspectionParams.qc_delivery_remark"
/></view>
</view>
<view
class=
"btn row rowCenter verCenter"
>
<view
class=
"row btn2 row rowCenter verCenter"
style=
"width:50%"
@
click=
"closeDrawer()"
>
取消
</view>
<view
class=
"row btn1 row rowCenter verCenter"
style=
"width:50%"
@
click=
"receiveAfterInspection()"
>
检后收货
</view>
</view>
</view>
</uni-drawer>
</view>
</
template
>
...
...
@@ -147,6 +230,11 @@
searchParams
:
{
batch_search_value
:
''
,
status
:
''
},
receiveAfterInspectionParams
:
{
inspection_order_ids
:
''
,
delivery_time
:
''
,
qc_delivery_remark
:
''
}
};
},
...
...
@@ -173,8 +261,10 @@
if
(
type
==
1
)
{
this
.
status_index
=
e
.
detail
.
value
;
this
.
searchParams
.
status
=
this
.
status
[
e
.
detail
.
value
].
value
;
this
.
getData
();
}
else
if
(
type
==
2
)
{
this
.
receiveAfterInspectionParams
.
delivery_time
=
e
.
detail
.
value
}
this
.
getData
();
},
/**
* 全选
...
...
@@ -276,8 +366,18 @@
return
false
;
}
//针对需求状态为:“已完成”状态可操作5
// 检查选中的货物状态是否包含非"已完成"状态
var
invalidItems
=
this
.
list
.
filter
(
item
=>
{
return
this
.
filter_id
.
includes
(
item
.
inspection_order_id
)
&&
item
.
status
!=
5
;
});
if
(
invalidItems
.
length
>
0
)
{
uni
.
showToast
({
title
:
'只能操作已完成状态的货物'
,
icon
:
'none'
});
return
false
;
}
uni
.
showModal
({
title
:
'取消理货'
,
content
:
`已选中
${
this
.
filter_id
.
length
}
条三方送检单,是否确认取消收货?`
,
...
...
@@ -297,7 +397,7 @@
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'
error
'
icon
:
'
none
'
});
}
});
...
...
@@ -308,6 +408,47 @@
});
},
/**
* 单个
*/
receiveAfterInspectionClick
(
id
)
{
this
.
receiveAfterInspectionParams
.
inspection_order_ids
=
id
;
this
.
detail
=
this
.
list
.
find
(
item
=>
item
.
inspection_order_id
===
id
);
this
.
$refs
.
showRight
.
open
();
},
/**
* 三方质检-检后收货
*/
receiveAfterInspectionLayer
()
{
if
(
this
.
filter_id
.
length
==
0
)
{
uni
.
showToast
({
title
:
'请勾选货物'
,
icon
:
'error'
});
return
false
;
}
// 检查选中的货物状态是否包含非"已送检"状态
var
invalid
=
this
.
list
.
filter
(
item
=>
{
return
this
.
filter_id
.
includes
(
item
.
inspection_order_id
)
&&
item
.
status
!=
2
;
});
if
(
invalid
.
length
>
0
)
{
uni
.
showToast
({
title
:
'只能操作已送检状态的货物'
,
icon
:
'none'
});
return
false
;
}
this
.
receiveAfterInspectionParams
.
inspection_order_ids
=
this
.
filter_id
.
join
(
','
);
if
(
this
.
filter_id
.
length
==
1
)
{
// 获取选中的单条数据
this
.
detail
=
this
.
list
.
find
(
item
=>
item
.
inspection_order_id
===
this
.
filter_id
[
0
]);
this
.
$refs
.
showRight
.
open
();
}
else
{
this
.
$refs
.
showRightBatch
.
open
();
}
},
/**
* 再次获取焦点
*/
clearInputAndFocus
()
{
...
...
@@ -317,19 +458,9 @@
this
.
is_focus
=
true
;
},
200
);
},
/**
* @param {Object} index
* @param {Object} type 1 单个理货 2补打标签
*/
showDrawer
(
index
,
type
)
{
},
closeDrawer
()
{
this
.
$refs
.
showRightBatch
.
close
();
this
.
$refs
.
showRight
.
close
();
this
.
$refs
.
showRightTallys
.
close
();
this
.
$refs
.
showRightDeliver
.
close
();
this
.
$refs
.
showRightLabels
.
close
();
}
}
};
...
...
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