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
9bed04d8
Commit
9bed04d8
authored
Mar 26, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev1.6' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev1.6
parents
493fb359
d157a3bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
55 deletions
+65
-55
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+65
-55
No files found.
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
9bed04d8
...
...
@@ -11,12 +11,12 @@
<el-descriptions
border
:column=
"2"
>
<el-descriptions-item>
<template
slot=
"label"
><span
style=
"color: red"
>
*
</span>
{{
$t
(
'
中文品名
'
)
}}
</
template
>
<product-selector
v-if=
"
edit && !this.
order.parentOrderId"
v-model=
"form.prodId"
@
change=
"onProductChange0"
/>
<product-selector
v-if=
"
!
order.parentOrderId"
v-model=
"form.prodId"
@
change=
"onProductChange0"
/>
<span
v-else
>
{{ warehousing.prodTitleZh }}
</span>
</el-descriptions-item>
<el-descriptions-item>
<
template
slot=
"label"
><span
style=
"color: red"
>
*
</span>
{{
$t
(
'
英文品名
'
)
}}
</
template
>
<product-selector
v-if=
"
edit && !this.
order.parentOrderId"
lang=
"En"
v-model=
"form.prodId"
@
change=
"onProductChange0"
/>
<product-selector
v-if=
"
!
order.parentOrderId"
lang=
"En"
v-model=
"form.prodId"
@
change=
"onProductChange0"
/>
<span
v-else
>
{{ warehousing.prodTitleEn }}
</span>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('品牌')"
>
...
...
@@ -77,16 +77,10 @@
<span
style=
"color: red"
>
*
</span>
{{
$t
(
'
箱数
'
)
}}
</
template
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.cartonsNum"
:prop=
"$index + '.cartonsNum'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
cartonsNum
}}
{{
getDictDataLabel
(
DICT_TYPE
.
WAREHOUSING_SPECIFICATION_TYPE
,
tableData
[
$index
].
specificationType
)
}}
</span>
<template
v-else
>
<el-input
v-model=
"tableData[$index].cartonsNum"
placeholder=
""
@
blur=
"handleVolume($index)"
>
<span
slot=
"append"
>
{{
getDictDataLabel
(
DICT_TYPE
.
WAREHOUSING_SPECIFICATION_TYPE
,
tableData
[
$index
].
specificationType
)
}}
</span>
</el-input>
<dict-selector
:type=
"DICT_TYPE.WAREHOUSING_SPECIFICATION_TYPE"
v-model=
"tableData[$index].specificationType"
@
change=
"handleVolume($index)"
></dict-selector>
</
template
>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -95,8 +89,7 @@
<span
style=
"color: red"
>
*
</span>
{{
$t
(
'
包装类型
'
)
}}
</
template
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAGING_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
<dict-selector
v-else
:type=
"DICT_TYPE.ECW_PACKAGING_TYPE"
v-model=
"tableData[$index].unit"
></dict-selector>
<dict-selector
:type=
"DICT_TYPE.ECW_PACKAGING_TYPE"
v-model=
"tableData[$index].unit"
></dict-selector>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -106,8 +99,7 @@
</
template
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge1"
:prop=
"!tableData[$index].id && $index + '.boxGauge1'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
0
]
:
''
}}
</span>
<el-input
v-else
type=
"number"
v-model=
"tableData[$index].boxGauge1"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
type=
"number"
v-model=
"tableData[$index].boxGauge1"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -117,8 +109,7 @@
</
template
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge2"
:prop=
"!tableData[$index].id && $index + '.boxGauge2'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
1
]
:
''
}}
</span>
<el-input
v-else
type=
"number"
v-model=
"tableData[$index].boxGauge2"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
type=
"number"
v-model=
"tableData[$index].boxGauge2"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -128,8 +119,7 @@
</
template
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge3"
:prop=
"!tableData[$index].id && $index + '.boxGauge3'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
2
]
:
''
}}
</span>
<el-input
v-else
type=
"number"
v-model=
"tableData[$index].boxGauge3"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
type=
"number"
v-model=
"tableData[$index].boxGauge3"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -139,8 +129,7 @@
</
template
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.volume"
:prop=
"$index + '.volume'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
volume
}}
</span>
<el-input
v-else
v-model=
"tableData[$index].volume"
placeholder=
""
type=
"number"
></el-input>
<el-input
v-model=
"tableData[$index].volume"
placeholder=
""
type=
"number"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -150,16 +139,14 @@
</
template
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.weight"
:prop=
"$index + '.weight'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
weight
}}
</span>
<el-input
v-else
v-model=
"tableData[$index].weight"
placeholder=
""
type=
"number"
></el-input>
<el-input
v-model=
"tableData[$index].weight"
placeholder=
""
type=
"number"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('数量')"
width=
"130px"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.quantityAll"
:prop=
"$index + '.quantityAll'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
quantityAll
}}
</span>
<el-input
v-else
v-model.number=
"tableData[$index].quantityAll"
placeholder=
""
>
<el-input
v-model.number=
"tableData[$index].quantityAll"
placeholder=
""
>
<template
slot=
"append"
>
{{
$t
(
'
个
'
)
}}
</
template
>
</el-input>
</el-form-item>
...
...
@@ -168,8 +155,7 @@
<el-table-column
:label=
"$t('快递单号')"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
expressNo
}}
</span>
<el-input
v-else
v-model=
"tableData[$index].expressNo"
placeholder=
""
></el-input>
<el-input
v-model=
"tableData[$index].expressNo"
placeholder=
""
></el-input>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -177,7 +163,6 @@
<
template
v-slot=
"{ row, column, $index }"
>
<warehouse-area-select
v-model=
"tableData[$index].orderLocationBackVOList"
:readonly=
"tableData[$index].id && !edit"
:order-id=
"orderId"
:order-item-id=
"warehousing.orderItemId"
:warehouse-in-id=
"tableData[$index].id"
...
...
@@ -537,6 +522,32 @@ export default {
},
opened
(
val
)
{
if
(
val
)
{
this
.
form1
=
{
"
brand
"
:
undefined
,
"
brandType
"
:
0
,
"
inTime
"
:
""
,
"
material
"
:
""
,
"
orderId
"
:
0
,
"
orderItemId
"
:
0
,
"
orderNo
"
:
""
,
"
orderWarehouseInItemDoList
"
:
[],
"
prodAttrIds
"
:
""
,
"
prodId
"
:
''
,
"
prodTitleEn
"
:
""
,
"
prodTitleZh
"
:
""
,
"
prodType
"
:
0
,
"
type
"
:
1
,
feeType
:
0
,
recordMode
:
undefined
}
this
.
form
.
orderWarehouseInItemDoList
=
[]
this
.
form1
.
orderWarehouseInItemDoList
=
[]
this
.
activeName
=
'
first
'
if
(
!
this
.
edit
){
this
.
handleAdd
()
this
.
handleAdd
(
1
)
}
this
.
form
.
prodId
=
this
.
warehousing
.
prodId
this
.
form
.
material
=
this
.
warehousing
.
material
if
(
this
.
warehousing
.
brand
&&
this
.
warehousing
.
brand
!==
0
){
...
...
@@ -560,13 +571,6 @@ export default {
},
warehousing
(
newVal
,
oldVal
){
if
(
newVal
.
orderItemId
!==
oldVal
.
orderItemId
){
this
.
form
.
orderWarehouseInItemDoList
=
[]
this
.
form1
.
orderWarehouseInItemDoList
=
[]
this
.
activeName
=
'
first
'
if
(
!
this
.
edit
){
this
.
handleAdd
()
this
.
handleAdd
(
1
)
}
}
}
},
...
...
@@ -638,16 +642,16 @@ export default {
},
0
)
},
handleSubmit
()
{
const
orderWarehouseInItemDoList
=
[
...
this
.
warehousing
.
orderWarehouseInBackItemDoList
,
...
this
.
form
.
orderWarehouseInItemDoList
.
map
(
e
=>
{
return
{
...
e
,
boxGauge
:
e
.
boxGauge1
+
'
*
'
+
e
.
boxGauge2
+
'
*
'
+
e
.
boxGauge3
,
orderLocationCreateReqVOList
:
e
.
orderLocationBackVOList
}
})
]
//
const orderWarehouseInItemDoList = [
//
...this.warehousing.orderWarehouseInBackItemDoList,
//
...this.form.orderWarehouseInItemDoList.map(e => {
//
return {
//
...e,
//
boxGauge: e.boxGauge1 + '*' + e.boxGauge2 + '*' + e.boxGauge3,
//
orderLocationCreateReqVOList: e.orderLocationBackVOList
//
}
//
})
//
]
if
(
this
.
activeName
!==
"
first
"
){
// 添加非填单货物
this
.
$refs
[
'
form1
'
].
validate
(
valid
=>
{
...
...
@@ -713,14 +717,20 @@ export default {
}
})
}
else
{
// 首次入仓
// 首次入仓
、入仓补充
return
orderWarehouseIn
({
...
this
.
form
,
brandType
:
this
.
warehousing
.
brandType
,
orderId
:
this
.
warehousing
.
orderId
,
orderItemId
:
this
.
warehousing
.
orderItemId
,
orderNo
:
this
.
warehousing
.
orderNo
,
orderWarehouseInItemDoList
orderWarehouseInItemDoList
:
this
.
tableData
.
map
(
e
=>
{
return
{
...
e
,
boxGauge
:
e
.
boxGauge1
+
'
*
'
+
e
.
boxGauge2
+
'
*
'
+
e
.
boxGauge3
,
orderLocationCreateReqVOList
:
e
.
orderLocationBackVOList
}
}),
}).
then
(
r
=>
{
if
(
r
.
data
)
{
this
.
$message
.
success
(
'
入仓成功
'
)
...
...
@@ -752,13 +762,13 @@ export default {
})
cartonsNum
=
this
.
warehousing
.
num
-
hasCartonsNum
orderLocationBackVOList
=
this
.
tableData
.
length
?
this
.
tableData
[
this
.
tableData
.
length
-
1
].
orderLocationBackVOList
:
[]
//
orderLocationBackVOList = this.tableData.length
//
? this.tableData[this.tableData.length - 1].orderLocationBackVOList
//
: []
}
else
{
// 添加新品名
orderLocationBackVOList
=
this
.
tableData1
.
length
?
this
.
tableData1
[
this
.
tableData1
.
length
-
1
].
orderLocationBackVOList
:
[]
//
orderLocationBackVOList = this.tableData1.length
//
? this.tableData1[this.tableData1.length - 1].orderLocationBackVOList
//
: []
}
const
form
=
val
===
1
?
this
.
form1
:
this
.
form
...
...
@@ -789,9 +799,9 @@ export default {
return
this
.
brandList
.
find
(
e
=>
e
.
id
===
this
.
form1
.
brand
)
||
''
},
tableData
()
{
if
(
!
this
.
edit
){
return
[...
this
.
warehousing
.
orderWarehouseInBackItemDoList
,
...
this
.
form
.
orderWarehouseInItemDoList
]
}
//
if (!this.edit){
//
return [...this.warehousing.orderWarehouseInBackItemDoList, ...this.form.orderWarehouseInItemDoList]
//
}
// 入仓修改的时候
this
.
form
.
orderWarehouseInItemDoList
=
this
.
warehousing
.
orderWarehouseInBackItemDoList
...
...
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