Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
7af45ea8
Commit
7af45ea8
authored
Dec 16, 2020
by
home
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zxf
parent
f7354028
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
pages/addEditEleProduct/addEditEleProduct.vue
pages/addEditEleProduct/addEditEleProduct.vue
+14
-4
No files found.
pages/addEditEleProduct/addEditEleProduct.vue
View file @
7af45ea8
...
...
@@ -611,6 +611,7 @@
}
},
async
findEleProduct
(
results
){
console
.
log
(
'
查找商品
'
)
uni
.
showLoading
({
title
:
'
请稍后
'
});
let
res
=
await
findEleProduct
({
code
:
results
.
code
});
...
...
@@ -662,6 +663,8 @@
this
.
codeDisabled
=
true
;
//条形码输入框是否禁止输入
this
.
c_pics
=
[{
code
:
0
,
data
:
res
.
data
.
photo
,
msg
:
"
success
"
,
time
:
"
1587101904
"
}];
// console.log(this.chindformList);
for
(
var
i
=
0
;
i
<
this
.
chindformList
.
length
;
i
++
)
{
if
(
this
.
chindformList
[
i
].
cate_id
==
res
.
data
.
cate_id
){
this
.
cate_name
=
this
.
chindformList
[
i
].
cate_name
;
...
...
@@ -669,6 +672,9 @@
}
}
}
},
myProps
(){
},
saoma
(
e
){
uni
.
scanCode
({
...
...
@@ -725,11 +731,12 @@
},
confirm
(
e
){
console
.
log
(
e
)
console
.
log
(
this
.
chindformList
);
return
;
this
.
cate_name
=
e
.
item
.
cate_name
;
this
.
form
.
cate_id
=
e
.
item
.
cate_id
;
this
.
index
=
e
.
index
;
},
},
pickerone
(){
this
.
$refs
.
picker
.
show
()
// 显示
},
...
...
@@ -741,7 +748,8 @@
},
//分类选中
bindPickerChange
(
e
){
console
.
info
(
e
.
detail
.
value
);
console
.
info
(
e
.
detail
.
value
);
console
.
log
(
this
.
chindformList
)
this
.
cate_name
=
this
.
chindformList
[
e
.
detail
.
value
].
cate_name
;
this
.
form
.
cate_id
=
this
.
chindformList
[
e
.
detail
.
value
].
cate_id
;
this
.
index
=
e
.
detail
.
value
;
...
...
@@ -890,6 +898,7 @@
// this.$api.msg("秒杀库存或限购数量不能为小数");
// return false;
// }
let
can
=
{
action
:
this
.
product_id
==
''
?
'
add
'
:
'
edit
'
,
linkage_id
:
this
.
linkage_id
,
...
...
@@ -982,7 +991,8 @@
async
typeManagerfun
(){
let
res
=
await
typeManager
({});
if
(
res
.
code
==
0
){
this
.
chindformList
=
res
.
data
;
this
.
chindformList
=
res
.
data
;
if
(
this
.
product_id
!=
undefined
&&
this
.
product_id
!=
""
){
this
.
eleProductInfofun
();
}
...
...
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