Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
9f2fff85
Commit
9f2fff85
authored
May 01, 2023
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台入仓时添加商品 / 后台入仓时添加商品-前端 待确定用红字,添加商品用新接口
https://zentao.test.jdshangmen.com/task-view-1921.html
parent
df6d4531
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
product.js
src/api/ecw/product.js
+9
-0
index.vue
src/components/ProductSelector/index.vue
+7
-3
Warehouse.vue
src/views/ecw/order/warehousing/components/Warehouse.vue
+2
-2
No files found.
src/api/ecw/product.js
View file @
9f2fff85
...
...
@@ -9,6 +9,15 @@ export function createProduct(data) {
})
}
// 创建产品
export
function
addProduct
(
data
)
{
return
request
({
url
:
'
/ecw/product/add
'
,
method
:
'
post
'
,
data
:
data
})
}
// 更新产品
export
function
updateProduct
(
data
)
{
return
request
({
...
...
src/components/ProductSelector/index.vue
View file @
9f2fff85
...
...
@@ -14,8 +14,12 @@
<el-option
v-for=
"(item, index) in list"
:key=
"item.id"
:label=
"item['title' + lang] + (item.auditStatus === 2 ? '' : `($
{
$t('审核中')
})`)"
:label=
"item['title' + lang] + (item.auditStatus === 2 ? '' : `($
{
lang === 'Zh' ? '待确定' : 'To be determined'
})`)"
:value="index">
<span
style=
"float: left"
>
{{
item
[
'
title
'
+
lang
]
}}
</span>
<span
style=
"float: right; color: #c76e6e; font-size: 13px"
>
{{
item
.
auditStatus
===
2
?
''
:
(
lang
===
'
Zh
'
?
'
待确定
'
:
'
To be determined
'
)
}}
</span>
</el-option>
</el-select>
</
template
>
...
...
@@ -59,7 +63,7 @@ export default {
init
(){
if
(
!
this
.
value
){
this
.
index
=
null
return
return
}
let
index
=
this
.
list
.
findIndex
(
item
=>
item
.
id
==
this
.
value
)
if
(
index
<
0
){
...
...
@@ -93,4 +97,4 @@ export default {
}
}
}
</
script
>
\ No newline at end of file
</
script
>
src/views/ecw/order/warehousing/components/Warehouse.vue
View file @
9f2fff85
...
...
@@ -451,7 +451,7 @@ import {DICT_TYPE, getDictDataLabel, getDictDatas} from "@/utils/dict"
import
{
orderWarehouseIn
,
orderWarehouseInUpdateApply
}
from
"
@/api/ecw/order
"
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
import
{
create
Product
}
from
"
@/api/ecw/product
"
import
{
add
Product
}
from
"
@/api/ecw/product
"
export
default
{
name
:
"
Warehouse
"
,
...
...
@@ -934,7 +934,7 @@ export default {
//商品特性转字符串
this
.
productForm
.
attrId
=
this
.
productForm
.
attrArray
.
join
(
'
,
'
)
// 添加的提交
create
Product
(
this
.
productForm
).
then
(
response
=>
{
add
Product
(
this
.
productForm
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
))
if
(
this
.
activeName
===
'
first
'
)
{
this
.
form
.
prodId
=
response
.
data
...
...
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