Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
3add37c8
Commit
3add37c8
authored
Aug 11, 2021
by
lihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:图片显示问题+经纬度
parent
0dc6073a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+21
-21
No files found.
src/pages/Activity/releaseProduc/components/addProduc.vue
View file @
3add37c8
...
@@ -241,23 +241,23 @@ import {
...
@@ -241,23 +241,23 @@ import {
getBusinessList
,
getBusinessList
,
pindanGoods
,
pindanGoods
,
markGoodsInfo
,
markGoodsInfo
,
editGoods
,
editGoods
}
from
"../../../../service/Activity/index"
;
}
from
"../../../../service/Activity/index"
;
export
default
{
export
default
{
props
:
{
props
:
{
editInfo
:
{
editInfo
:
{
type
:
Object
,
type
:
Object
,
required
:
()
=>
{}
,
required
:
()
=>
{}
},
},
addProduc
:
{
addProduc
:
{
type
:
Array
,
type
:
Array
,
required
:
()
=>
{}
,
required
:
()
=>
{}
},
},
stepTwoTitle
:
{
stepTwoTitle
:
{
type
:
String
,
type
:
String
,
default
:
""
,
default
:
""
}
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -278,7 +278,7 @@ export default {
...
@@ -278,7 +278,7 @@ export default {
original_price
:
""
,
original_price
:
""
,
inventory_total
:
null
,
inventory_total
:
null
,
total_amount_order
:
null
,
total_amount_order
:
null
,
business1
:
""
,
business1
:
""
},
},
picUrlList
:
[],
picUrlList
:
[],
...
@@ -296,7 +296,7 @@ export default {
...
@@ -296,7 +296,7 @@ export default {
goodsSkuID
:
""
,
goodsSkuID
:
""
,
inventoryTotal
:
0
,
// 总库存
inventoryTotal
:
0
,
// 总库存
inventoryRest
:
0
,
// 剩余库存
inventoryRest
:
0
// 剩余库存
};
};
},
},
// computed: {
// computed: {
...
@@ -382,7 +382,7 @@ export default {
...
@@ -382,7 +382,7 @@ export default {
const
res
=
await
getBusinessList
(
params
);
const
res
=
await
getBusinessList
(
params
);
this
.
businessOpt
=
[
this
.
businessOpt
=
[
{
ota_id
:
""
,
ota_name
:
"全部"
},
{
ota_id
:
""
,
ota_name
:
"全部"
},
...
res
.
result
.
list
,
...
res
.
result
.
list
];
];
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
$message
.
error
(
"发生未知错误,请稍后再试一下吧~~~"
);
this
.
$message
.
error
(
"发生未知错误,请稍后再试一下吧~~~"
);
...
@@ -401,7 +401,7 @@ export default {
...
@@ -401,7 +401,7 @@ export default {
this
.
commodityForm
.
business1
=
res
.
result
.
goods_info
.
ota_id
;
this
.
commodityForm
.
business1
=
res
.
result
.
goods_info
.
ota_id
;
for
(
var
i
in
res
.
result
.
goods_info
.
desc_pic_url_list
)
{
for
(
var
i
in
res
.
result
.
goods_info
.
desc_pic_url_list
)
{
this
.
picUrlList
.
push
({
this
.
picUrlList
.
push
({
url
:
res
.
result
.
goods_info
.
desc_pic_url_list
[
i
]
,
url
:
res
.
result
.
goods_info
.
desc_pic_url_list
[
i
]
});
});
}
}
},
},
...
@@ -417,7 +417,7 @@ export default {
...
@@ -417,7 +417,7 @@ export default {
let
pic
=
this
.
picUrlList
[
0
].
url
;
let
pic
=
this
.
picUrlList
[
0
].
url
;
const
res
=
await
editGoods
({
const
res
=
await
editGoods
({
goods_name
:
this
.
commodityForm
.
goods_name
,
goods_name
:
this
.
commodityForm
.
goods_name
,
desc_pic_url
:
this
.
getUrlParms
(
pic
,
"url"
),
desc_pic_url
:
this
.
getUrlParms
(
pic
,
"url"
),
desc
:
""
,
desc
:
""
,
inventory_add
:
this
.
commodityForm
.
inventory_total
,
inventory_add
:
this
.
commodityForm
.
inventory_total
,
original_price
:
this
.
commodityForm
.
original_price
,
original_price
:
this
.
commodityForm
.
original_price
,
...
@@ -426,12 +426,12 @@ export default {
...
@@ -426,12 +426,12 @@ export default {
marketing_type
:
"4"
,
marketing_type
:
"4"
,
ota_id
:
this
.
commodityForm
.
business1
,
ota_id
:
this
.
commodityForm
.
business1
,
op_cur_user
:
store
.
state
.
userInfo
.
email
,
op_cur_user
:
store
.
state
.
userInfo
.
email
,
goods_sku_id
:
goodsSkuID
,
goods_sku_id
:
goodsSkuID
});
});
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
ElMessage
.
success
({
ElMessage
.
success
({
message
:
"修改成功"
,
message
:
"修改成功"
,
type
:
"success"
,
type
:
"success"
});
});
await
this
.
pindanGoodsMet
();
await
this
.
pindanGoodsMet
();
let
result
=
null
;
let
result
=
null
;
...
@@ -488,12 +488,12 @@ export default {
...
@@ -488,12 +488,12 @@ export default {
marketing_type
:
"4"
,
marketing_type
:
"4"
,
price
:
this
.
commodityForm
.
price
,
price
:
this
.
commodityForm
.
price
,
ota_id
:
this
.
commodityForm
.
business1
,
ota_id
:
this
.
commodityForm
.
business1
,
op_cur_user
:
store
.
state
.
userInfo
.
email
,
op_cur_user
:
store
.
state
.
userInfo
.
email
});
});
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
ElMessage
.
success
({
ElMessage
.
success
({
message
:
"添加商品成功"
,
message
:
"添加商品成功"
,
type
:
"success"
,
type
:
"success"
});
});
this
.
comTableData
.
push
(
res
.
result
.
goods_info
);
this
.
comTableData
.
push
(
res
.
result
.
goods_info
);
this
.
addCommodityPopup
=
false
;
this
.
addCommodityPopup
=
false
;
...
@@ -510,7 +510,7 @@ export default {
...
@@ -510,7 +510,7 @@ export default {
// 添加商品保存
// 添加商品保存
commoditySave
(
infoForm
)
{
commoditySave
(
infoForm
)
{
this
.
$refs
[
infoForm
].
validate
(
(
valid
)
=>
{
this
.
$refs
[
infoForm
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
addCommodityTitle
==
"商品添加"
)
{
if
(
this
.
addCommodityTitle
==
"商品添加"
)
{
this
.
addGoodsMet
();
this
.
addGoodsMet
();
...
@@ -549,9 +549,9 @@ export default {
...
@@ -549,9 +549,9 @@ export default {
if
(
this
.
comTableData
.
length
==
0
)
{
if
(
this
.
comTableData
.
length
==
0
)
{
this
.
comTableData
.
push
(...
this
.
multipleSelection
);
this
.
comTableData
.
push
(...
this
.
multipleSelection
);
}
else
{
}
else
{
this
.
multipleSelection
.
forEach
(
(
item
)
=>
{
this
.
multipleSelection
.
forEach
(
item
=>
{
let
num
=
0
;
let
num
=
0
;
this
.
comTableData
.
some
(
(
val
)
=>
{
this
.
comTableData
.
some
(
val
=>
{
num
++
;
num
++
;
if
(
val
.
goods_sku_id
===
item
.
goods_sku_id
)
{
if
(
val
.
goods_sku_id
===
item
.
goods_sku_id
)
{
val
.
goods_sku_id
=
item
.
goods_sku_id
;
val
.
goods_sku_id
=
item
.
goods_sku_id
;
...
@@ -574,21 +574,21 @@ export default {
...
@@ -574,21 +574,21 @@ export default {
this
.
comTableData
.
splice
(
i
,
1
);
this
.
comTableData
.
splice
(
i
,
1
);
}
}
}
}
}
,
}
},
},
watch
:
{
watch
:
{
addProduc
:
function
(
newVal
)
{
addProduc
:
function
(
newVal
)
{
let
marketingId
=
this
.
$route
.
query
.
marketing_id
;
let
marketingId
=
this
.
$route
.
query
.
marketing_id
;
if
(
marketingId
==
undefined
)
{
if
(
marketingId
==
undefined
)
{
return
;
return
;
}
}
this
.
comTableData
=
newVal
;
this
.
comTableData
=
newVal
;
}
,
}
},
},
created
()
{
created
()
{
this
.
getBusinessListMet
();
this
.
getBusinessListMet
();
}
,
}
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
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