Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-pad
Commits
1e7d8f9b
Commit
1e7d8f9b
authored
Mar 18, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复默认绑定bug
parent
5e263241
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
http.api.js
common/http.api.js
+1
-1
index.vue
pages/index/index.vue
+13
-6
No files found.
common/http.api.js
View file @
1e7d8f9b
...
@@ -155,7 +155,7 @@ const install = (Vue, vm) => {
...
@@ -155,7 +155,7 @@ const install = (Vue, vm) => {
//人员绑定打印机
//人员绑定打印机
getUserPrint
:(
params
=
{})
=>
getUserPrint
:(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/printerConfig/
l
ist'
,
params
),
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/printerConfig/
userL
ist'
,
params
),
addUserPrint
:(
params
=
{})
=>
addUserPrint
:(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/system/print'
,
params
),
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/system/print'
,
params
),
...
...
pages/index/index.vue
View file @
1e7d8f9b
...
@@ -63,13 +63,13 @@
...
@@ -63,13 +63,13 @@
> -->
> -->
<u-modal
<u-modal
title=
"
生产工单
"
title=
"
打印机
"
show-cancel-button
show-cancel-button
:show-confirm-button=
"false"
:show-confirm-button=
"false"
cancel-text=
"返回"
cancel-text=
"返回"
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px' }"
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px' }"
v-model=
"showPrintFlag"
v-model=
"showPrintFlag"
width=
"1
3
00rpx"
width=
"1
6
00rpx"
>
>
<view
class=
"list-bar"
>
<view
class=
"list-bar"
>
<u-form
label-width=
"100px"
:model=
"curTaskInfo"
>
<u-form
label-width=
"100px"
:model=
"curTaskInfo"
>
...
@@ -77,15 +77,22 @@
...
@@ -77,15 +77,22 @@
<scroll-view
scroll-y=
"true"
class=
"scroll-list"
:style=
"{ height: this.screenHeight - 280 + 'px' }"
>
<scroll-view
scroll-y=
"true"
class=
"scroll-list"
:style=
"{ height: this.screenHeight - 280 + 'px' }"
>
<uni-table
ref=
"materialRequestTable"
border
stripe
:loading=
"loading"
emptyText=
"未查询到数据"
>
<uni-table
ref=
"materialRequestTable"
border
stripe
:loading=
"loading"
emptyText=
"未查询到数据"
>
<uni-tr>
<uni-tr>
<uni-th
width=
"100px"
align=
"center"
>
打印机类型
</uni-th>
<uni-th
width=
"150px"
align=
"center"
>
打印机名称
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
打印机名称
</uni-th>
<uni-th
width=
"20px"
align=
"center"
>
操作
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
打印机位置
</uni-th>
<uni-th
width=
"60px"
align=
"center"
>
型号
</uni-th>
<uni-th
width=
"60px"
align=
"center"
>
连接类型
</uni-th>
<uni-th
width=
"10px"
align=
"center"
>
操作
</uni-th>
</uni-tr>
</uni-tr>
<uni-tr
v-for=
"(line, index) in materialRequestArrays"
:key=
"index"
>
<uni-tr
v-for=
"(line, index) in materialRequestArrays"
:key=
"index"
>
<uni-td
align=
"center"
>
{{ line.printerType }}
</uni-td>
<uni-td
align=
"center"
>
{{ line.printerName }}
</uni-td>
<uni-td
align=
"center"
>
{{ line.printerName }}
</uni-td>
<uni-td
align=
"center"
>
{{ line.printerPlace }}
</uni-td>
<uni-td
align=
"center"
>
{{ line.printerModel }}
</uni-td>
<uni-td
align=
"center"
>
{{ line.connectionType }}
</uni-td>
<uni-td
align=
"center"
>
<uni-td
align=
"center"
>
<view
class=
"uni-group"
>
<view
class=
"uni-group"
>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
@
click=
"materialRequestFormShow(line)"
>
绑定
</button>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
@
click=
"materialRequestFormShow(line)"
>
绑定
</button>
</view>
</view>
</uni-td>
</uni-td>
</uni-tr>
</uni-tr>
...
...
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