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
cf59893b
authored
Nov 21, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
香港wms-理货确认-打印标签
parent
7f901591
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
8 deletions
pages/tag/print.vue
pages/tallyGoods/confirm.vue
util/util.js
pages/tag/print.vue
View file @
cf59893b
This diff is collapsed.
Click to expand it.
pages/tallyGoods/confirm.vue
View file @
cf59893b
...
...
@@ -110,6 +110,7 @@
</view>
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"submit()"
:class=
"{ disabled: disabled }"
>
确认提交
</view>
<view
class=
"btn row rowCenter verCenter"
style=
"margin-top: 12rpx;background-color: #f00;"
@
click=
"submit(1)"
:class=
"{ disabled: disabled }"
>
确认提交并打印
</view>
</view>
</template>
...
...
@@ -456,9 +457,10 @@
this
.
form
.
customs_clearance_price
=
index
;
},
/**
* @param {Object} type 1提交并打印
* 提交
*/
submit
()
{
submit
(
type
)
{
if
(
!
this
.
form
.
erp_order_sn
)
{
uni
.
showModal
({
title
:
'提示'
,
...
...
@@ -524,11 +526,18 @@
showCancel
:
false
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
setTimeout
(()
=>
{
uni
.
navigateBack
({
delta
:
1
});
},
2000
);
if
(
type
==
1
)
{
//点击【确认提交并打印】跳转至【打印标签】页面
uni
.
navigateTo
({
url
:
'/pages/tag/print?board_num='
+
this
.
form
.
board_num
+
'&box_num='
+
this
.
form
.
box_num
+
'&erp_order_sn='
+
this
.
form
.
erp_order_sn
})
}
else
{
setTimeout
(()
=>
{
uni
.
navigateBack
({
delta
:
1
});
},
2000
);
}
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
...
...
util/util.js
View file @
cf59893b
...
...
@@ -86,7 +86,6 @@ const debounce = (fn, wait) => {
}
}
/**
* 来创建指定长度且所有元素都被初始化为 false 的数组
*/
...
...
@@ -94,11 +93,21 @@ const createArray = (length, value) => {
return
Array
(
length
).
fill
(
value
);
}
/**
* 数组内找出对于的索引
*/
const
findIndexOrZero
=
(
arr
,
value
)
=>
{
var
index
=
arr
.
indexOf
(
value
);
return
index
!==
-
1
?
index
:
0
;
}
module
.
exports
=
{
request
,
getPlatform
,
titleCase
,
debounce
,
createArray
createArray
,
findIndexOrZero
}
\ No newline at end of file
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