Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
cf8a0a74
Commit
cf8a0a74
authored
Jun 29, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完工配件信息回显
parent
4ad4f85b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
32 deletions
+18
-32
XhParts.vue
src/components/createCom/XhParts.vue
+6
-6
XhScan.vue
src/components/createCom/XhScan.vue
+12
-26
No files found.
src/components/createCom/XhParts.vue
View file @
cf8a0a74
...
@@ -32,13 +32,13 @@
...
@@ -32,13 +32,13 @@
<
script
>
<
script
>
import
adjustParts
from
"@/components/select-parts/adjust"
import
adjustParts
from
"@/components/select-parts/adjust"
import
arrMixin
from
'./arr
Mixin'
import
stringMixin
from
'./string
Mixin'
export
default
{
export
default
{
name
:
'XhParts'
,
name
:
'XhParts'
,
components
:
{
components
:
{
adjustParts
adjustParts
},
},
mixins
:
[
arr
Mixin
],
mixins
:
[
string
Mixin
],
props
:
{
props
:
{
orderId
:
{
orderId
:
{
type
:
String
,
type
:
String
,
...
@@ -66,16 +66,16 @@
...
@@ -66,16 +66,16 @@
return
process
.
uniEnv
.
qn_base_url
+
'no_parts.png'
return
process
.
uniEnv
.
qn_base_url
+
'no_parts.png'
},
},
},
},
crea
ted
()
{
moun
ted
()
{
this
.
getWorkOrderParts
()
this
.
getWorkOrderParts
()
},
},
methods
:
{
methods
:
{
getWorkOrderParts
()
{
getWorkOrderParts
()
{
this
.
lists
=
this
.
dataValue
||
[]
this
.
lists
=
JSON
.
parse
(
this
.
dataValue
)
||
[]
},
},
partsChange
(
val
,
index
)
{
partsChange
(
val
,
index
)
{
this
.
$set
(
this
.
lists
[
index
],
'quantity'
,
val
)
this
.
$set
(
this
.
lists
[
index
],
'quantity'
,
val
)
this
.
valueChange
(
this
.
lists
)
this
.
valueChange
(
JSON
.
stringify
(
this
.
lists
)
)
},
},
valChange
(
val
)
{
valChange
(
val
)
{
val
.
forEach
(
v
=>
{
val
.
forEach
(
v
=>
{
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
this
.
$set
(
this
.
lists
,
index
,
v
)
this
.
$set
(
this
.
lists
,
index
,
v
)
}
}
})
})
this
.
valueChange
(
this
.
lists
)
this
.
valueChange
(
JSON
.
stringify
(
this
.
lists
)
)
},
},
toParts
()
{
toParts
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
src/components/createCom/XhScan.vue
View file @
cf8a0a74
...
@@ -23,33 +23,19 @@
...
@@ -23,33 +23,19 @@
return
{}
return
{}
},
},
computed
:
{
computed
:
{
valueTxt
()
{
let
str
=
''
const
dataValue
=
this
.
dataValue
if
(
dataValue
&&
dataValue
.
length
>
1
){
str
=
'经度:'
+
dataValue
[
0
]
+
','
+
'维度:'
+
dataValue
[
1
]
}
return
str
}
},
},
watch
:
{},
watch
:
{},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
scanCode
(
type
){
scanCode
(
type
){
const
self
=
this
const
self
=
this
// qrCode 二维码;barCode 条形码
let
scanType
=
type
&&
[
type
]
||
[
'qrCode'
]
uni
.
scanCode
({
uni
.
scanCode
({
// scanType: scanType,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
self
.
dataValue
=
res
.
result
self
.
dataValue
=
res
.
result
self
.
valueChange
(
res
.
result
)
self
.
valueChange
(
res
.
result
)
}
}
});
});
},
}
// setValue(txt) {
// this.valueChange(this.dataValue)
// }
}
}
}
}
</
script
>
</
script
>
...
...
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