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
5c1a3d9e
Commit
5c1a3d9e
authored
Sep 14, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓 自动计算箱数
parent
1f8620e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+17
-12
No files found.
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
5c1a3d9e
...
...
@@ -122,9 +122,8 @@
<product-selector
lang=
"En"
v-model=
"form1.prodId"
@
change=
"onProductChange"
/>
</el-descriptions-item>
<el-descriptions-item
label=
"品牌"
>
<span
v-if=
"warehousing.orderWarehouseInBackItemDoList && warehousing.orderWarehouseInBackItemDoList.length"
>
{{ form1.brand ? brand1 : '无' }}
</span>
<el-select
v-
else
v-
model=
"form1.brand"
v-model=
"form1.brand"
placeholder=
"可修改"
filterable
@
change=
"handleBrandChange"
...
...
@@ -373,6 +372,13 @@ export default {
}
else
{
this
.
$emit
(
'
update:visible
'
,
false
)
}
},
warehousing
(
newVal
,
oldVal
){
if
(
newVal
.
orderItemId
!==
oldVal
.
orderItemId
){
this
.
form
.
orderWarehouseInItemDoList
=
[]
this
.
form1
.
orderWarehouseInItemDoList
=
[]
this
.
activeName
=
'
first
'
}
}
},
...
...
@@ -477,11 +483,19 @@ export default {
(
val
===
1
?
this
.
form1
:
this
.
form
).
orderWarehouseInItemDoList
.
pop
()
},
handleAdd
(
val
)
{
let
cartonsNum
=
''
;
if
(
val
!==
1
)
{
let
hasCartonsNum
=
0
this
.
tableData
.
forEach
(
e
=>
{
hasCartonsNum
+=
e
.
cartonsNum
})
cartonsNum
=
this
.
warehousing
.
num
-
hasCartonsNum
}
(
val
===
1
?
this
.
form1
:
this
.
form
).
orderWarehouseInItemDoList
.
push
({
"
boxGauge1
"
:
""
,
"
boxGauge2
"
:
""
,
"
boxGauge3
"
:
""
,
"
cartonsNum
"
:
""
,
"
cartonsNum
"
:
cartonsNum
>
0
?
cartonsNum
:
''
,
"
expressNo
"
:
""
,
"
quantityAll
"
:
""
,
"
unit
"
:
"
package
"
,
...
...
@@ -550,15 +564,6 @@ export default {
}
}
return
''
},
brand1
(){
if
(
!!
this
.
form1
.
brand
){
const
brand
=
this
.
brandList
.
find
(
e
=>
e
.
id
===
this
.
form1
.
brand
)
if
(
brand
)
{
return
brand
.
titleZh
}
}
return
''
}
}
}
...
...
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