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
e1009d67
Commit
e1009d67
authored
Oct 24, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复编辑订单带不出特性
parent
7ae4397a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
.env.production
.env.production
+1
-1
index.vue
src/components/ProductSelector/index.vue
+1
-0
edit.vue
src/views/ecw/order/edit.vue
+22
-5
No files found.
.env.production
View file @
e1009d67
...
...
@@ -5,7 +5,7 @@ ENV = 'production'
VUE_APP_TITLE = 捷道管理系统
# 捷道管理系统/生产环境
VUE_APP_BASE_API = 'http://api2.groupage.cn'
VUE_APP_BASE_API = 'http
s
://api2.groupage.cn'
# 根据服务器或域名修改
# PUBLIC_PATH = 'http://jd.admtest.jdshangmen.com/'
...
...
src/components/ProductSelector/index.vue
View file @
e1009d67
...
...
@@ -71,6 +71,7 @@ export default {
}
else
this
.
index
=
index
},
onFocus
(){
this
.
$emit
(
'
focus
'
)
if
(
!
this
.
list
.
length
){
this
.
remoteMethod
()
}
...
...
src/views/ecw/order/edit.vue
View file @
e1009d67
...
...
@@ -114,7 +114,12 @@
}"
class="mb-0 mr-0"
>
<product-selector
v-model=
"scope.row.prodId"
@
change=
"onProductChange(scope.row, $event)"
:disabled=
"!canAddProduct || !productEditable"
/>
<product-selector
v-model=
"scope.row.prodId"
@
change=
"onProductChange(scope.row, $event)"
:disabled=
"!canAddProduct || !productEditable"
@
focus=
"scope.row.updated = true"
/>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -123,7 +128,12 @@
{{
$t
(
'
英文品名
'
)
}}
<span
class=
"red"
>
*
</span>
</
template
>
<
template
slot-scope=
"scope"
>
<product-selector
lang=
"En"
v-model=
"scope.row.prodId"
@
change=
"onProductChange(scope.row, $event)"
:disabled=
"!canAddProduct || !productEditable"
/>
<product-selector
lang=
"En"
v-model=
"scope.row.prodId"
@
change=
"onProductChange(scope.row, $event)"
@
focus=
"scope.row.updated = true"
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</el-table-column>
<!-- <el-table-column label="商品类型" width="160px">
...
...
@@ -191,7 +201,7 @@
}"
class="mb-0 mr-0"
>
<el-input
v-model=
"scope.row.worth"
:disabled=
"!canAddProduct"
@
input=
"calculationPrice"
/>
<el-input
v-model=
"scope.row.worth"
:disabled=
"!canAddProduct"
@
input=
"calculationPrice"
type=
"number"
/>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -915,8 +925,15 @@ export default {
}, */
onProductChange
(
row
,
product
){
console
.
log
(
product
)
// row.goodsType = product ? product.typeId : null
if
(
product
.
id
!=
row
.
prodId
){
// 如果是清除商品
if
(
!
product
){
row
.
fee
=
null
row
.
prodAttrArr
=
[]
return
false
}
// 没有orderItemId则表示新增的,否则就是编辑回显的
// row.updated 表示用户操作了,用来区分是自动回显还是用户选择商品
if
(
!
row
.
orderItemId
||
row
.
updated
){
row
.
prodAttrArr
=
!
product
?
[]
:
product
.
attrId
.
split
(
'
,
'
).
filter
(
item
=>
item
!==
''
).
map
(
item
=>
+
item
)
}
row
.
prodTitleEn
=
product
.
titleEn
...
...
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