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
012850c8
authored
Oct 25, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
259f9b0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletions
pages/repairPrint/index.vue
pages/repairPrint/index.vue
View file @
012850c8
...
...
@@ -60,6 +60,21 @@
</picker>
</view>
</view>
<view
class=
"search-box row bothSide verCenter"
style=
"margin-bottom: 22rpx;"
>
<view
class=
"sn row rowCenter verCenter"
>
<view>
<view
class=
"row verCenter"
><view
class=
"uni-input"
>
仓库
</view></view>
</view>
</view>
<view
class=
"row bothSide verCenter select-wrap"
>
<picker
@
change=
"bindPickerChange($event, 2)"
:value=
"warehouse_index"
:range=
"warehouse_arr"
:range-key=
"'name'"
style=
"width: 100%;"
>
<view
class=
"row verCenter bothSide"
>
<view
class=
"uni-input"
>
{{
warehouse_index
==
-
1
?
'请选择仓库'
:
warehouse_arr
[
warehouse_index
].
name
}}
</view>
<view
class=
"uni-arrow"
></view>
</view>
</picker>
</view>
</view>
<view
class=
"fix-btn row rowCenter verCenter"
@
click=
"latePrint()"
>
打印
</view>
</view>
</
template
>
...
...
@@ -99,6 +114,8 @@ export default {
name
:
'容器标签'
}
],
warehouse_arr
:
[],
warehouse_index
:
0
,
formParams
:
{
user_email
:
''
,
// 登录账号邮箱
warehouse_id
:
''
,
// 登录仓库
...
...
@@ -106,10 +123,21 @@ export default {
target_printer_ip
:
''
,
//模板打印机
tally_qty
:
''
,
//打印数量
print_language
:
1
,
//标签版本
type
:
5
//库位 1;库区 2;区域 3; 容器 4;入库 5 默认5
type
:
5
,
//库位 1;库区 2;区域 3; 容器 4;入库 5 默认5
warehouse_id
:
''
//仓库id
}
};
},
onShow
()
{
let
company_id
=
uni
.
getStorageSync
(
'company_id'
)
||
1
;
if
(
company_id
==
1
)
{
this
.
warehouse_arr
=
[{
name
:
'深圳现货仓'
,
value
:
'7'
},
{
name
:
'深圳自营仓'
,
value
:
9
}];
this
.
formParams
.
warehouse_id
=
7
;
}
else
if
(
company_id
==
2
)
{
this
.
warehouse_arr
=
[{
name
:
'香港仓'
,
value
:
'10'
}];
this
.
formParams
.
warehouse_id
=
10
;
}
},
methods
:
{
/**
* 清空数据
...
...
@@ -147,6 +175,9 @@ export default {
//标签版本切换
this
.
print_language_index
=
e
.
detail
.
value
;
this
.
formParams
.
print_language
=
Number
(
e
.
detail
.
value
)
+
1
;
}
else
if
(
type
==
2
)
{
this
.
warehouse_index
=
e
.
detail
.
value
;
this
.
formParams
.
warehouse_id
=
this
.
warehouse_arr
[
e
.
detail
.
value
].
value
;
}
else
{
this
.
index
=
e
.
detail
.
value
;
this
.
formParams
.
type
=
this
.
labelStyles
[
e
.
detail
.
value
].
id
;
...
...
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