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
2ea13ed6
Commit
2ea13ed6
authored
Jan 06, 2021
by
home
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zxf
parent
3e7bcfa1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
pages/addEditEleProduct/addEditEleProduct.vue
pages/addEditEleProduct/addEditEleProduct.vue
+13
-6
utils/debug.js
utils/debug.js
+0
-2
No files found.
pages/addEditEleProduct/addEditEleProduct.vue
View file @
2ea13ed6
...
...
@@ -13,7 +13,7 @@
<input
class=
"input flex1"
type=
"text"
v-model=
""
value=
""
placeholder-class=
"plclass"
placeholder=
"请填写产品名称"
/>
</view>
</view>
-->
<view
class=
"noecellbox"
>
<view
class=
"noecellbox"
>
<view
class=
"title"
>
关联产品
</view>
<view
class=
"inputbox flex"
>
<picker
mode=
"multiSelector"
:value=
"classDataValue"
:range=
"classData"
@
change=
"bindData"
@
columnchange=
"columnbindData"
>
...
...
@@ -22,7 +22,7 @@
</view>
</view>
<view
class=
"noecellbox"
>
<view
class=
"noecellbox"
:hidden=
"linkage_product_id == 0 "
>
<view
class=
"title"
>
产品规格(kg或个)
</view>
<view
class=
"inputbox flex"
>
<input
class=
"input flex1"
type=
"text"
value=
""
v-model=
"form.specifications"
placeholder-class=
"plclass"
placeholder=
"请填写产品规格"
/>
...
...
@@ -345,7 +345,7 @@
linkage_id
:
''
,
is_datashow
:
true
,
bools
:
''
,
linkage_product_id
:
''
,
linkage_product_id
:
0
,
classValue
:
''
,
ordinary
:[],
weigh
:[],
...
...
@@ -564,6 +564,7 @@
if
(
that
.
ordinary
.
length
!=
0
){
that
.
linkage_id
=
that
.
ordinary
[
e
.
detail
.
value
[
1
]].
product_id
// that.product_id = that.ordinary[e.detail.value[1]].product_id
that
.
linkage_product_id
=
that
.
linkage_id
that
.
classValue
=
that
.
ordinary
[
e
.
detail
.
value
[
1
]].
product_name
}
else
{
AZ
uni
.
showToast
({
...
...
@@ -577,6 +578,7 @@
if
(
that
.
weigh
.
length
!=
0
){
that
.
linkage_id
=
that
.
weigh
[
e
.
detail
.
value
[
1
]].
product_id
// that.product_id = that.weigh[e.detail.value[1]].product_id
that
.
linkage_product_id
=
that
.
linkage_id
that
.
classValue
=
that
.
weigh
[
e
.
detail
.
value
[
1
]].
product_name
}
else
{
uni
.
showToast
({
...
...
@@ -586,7 +588,7 @@
return
false
;
}
}
that
.
eleProductInfofun
(
that
.
linkage_id
);
that
.
eleProductInfofun
(
that
.
linkage_id
,
2
);
this
.
is_datashow
=
false
;
console
.
log
(
this
.
is_datashow
)
...
...
@@ -783,7 +785,7 @@
},
//修改的时候赋初始值
async
eleProductInfofun
(
product_id
){
async
eleProductInfofun
(
product_id
,
second
=
1
){
let
that
=
this
;
let
res
=
await
eleProductInfo
({
product_id
:
product_id
,
...
...
@@ -797,7 +799,12 @@
}
}
this
.
linkage_product_id
=
res
.
data
.
linkage_product_id
if
(
second
==
1
){
console
.
log
(
'
第一次
'
)
this
.
linkage_product_id
=
res
.
data
.
linkage_product_id
}
this
.
bools
=
res
.
data
.
product_name
;
this
.
defaultinfo
=
res
.
data
;
this
.
form
.
product_name
=
res
.
data
.
product_name
;
//名称
...
...
utils/debug.js
View file @
2ea13ed6
...
...
@@ -9,7 +9,5 @@ module.exports = {
// xqdebug:false,//正式权限
xqdebug
:
true
,
//发布审核权限 也是测试环境的 主要用于ios
}
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