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
c7e6fe87
Commit
c7e6fe87
authored
Sep 19, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓修改 全
parent
dd84c9b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
16 deletions
+28
-16
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+28
-16
No files found.
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
c7e6fe87
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-descriptions-item
label=
"中文品名"
>
{{
warehousing
.
prodTitleZh
}}
</el-descriptions-item>
<el-descriptions-item
label=
"中文品名"
>
{{
warehousing
.
prodTitleZh
}}
</el-descriptions-item>
<el-descriptions-item
label=
"英文品名"
>
{{
warehousing
.
prodTitleEn
}}
</el-descriptions-item>
<el-descriptions-item
label=
"英文品名"
>
{{
warehousing
.
prodTitleEn
}}
</el-descriptions-item>
<el-descriptions-item
label=
"品牌"
>
<el-descriptions-item
label=
"品牌"
>
<span
v-if=
"
warehousing.orderWarehouseInBackItemDoList && warehousing.orderWarehouseInBackItemDoList.length
"
>
{{
form
.
brand
?
brand
:
'
无
'
}}
</span>
<span
v-if=
"
false
"
>
{{
form
.
brand
?
brand
:
'
无
'
}}
</span>
<el-select
<el-select
v-else
v-model=
"form.brand"
v-else
v-model=
"form.brand"
placeholder=
"可修改"
placeholder=
"可修改"
...
@@ -29,16 +29,22 @@
...
@@ -29,16 +29,22 @@
<el-descriptions-item
label=
"是否备案"
>
{{
isBeian
}}
</el-descriptions-item>
<el-descriptions-item
label=
"是否备案"
>
{{
isBeian
}}
</el-descriptions-item>
<el-descriptions-item
label=
"收费模式"
>
{{
feeType
}}
</el-descriptions-item>
<el-descriptions-item
label=
"收费模式"
>
{{
feeType
}}
</el-descriptions-item>
<el-descriptions-item
label=
"填单参数"
>
<el-descriptions-item
label=
"填单参数"
>
箱数:
{{
warehousing
.
num
}}
<br>
箱数:
体积:
{{
warehousing
.
volume
}}
m³
<br>
<el-input
size=
"mini"
v-if=
"edit"
v-model=
"warehousing.num"
style=
"display: inline-block;width: 100px"
></el-input>
重量:
{{
warehousing
.
weight
}}
Kg
<span
v-else
>
{{
warehousing
.
num
}}
</span><br>
体积:
<el-input
size=
"mini"
v-if=
"edit"
v-model=
"warehousing.volume"
style=
"display: inline-block;width: 100px"
></el-input>
<span
v-else
>
{{
warehousing
.
volume
}}
</span>
m³
<br>
重量:
<el-input
size=
"mini"
v-if=
"edit"
v-model=
"warehousing.weight"
style=
"display: inline-block;width: 100px"
></el-input>
<span
v-else
>
{{
warehousing
.
weight
}}
</span>
Kg
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
style=
"margin-top: 20px"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
style=
"margin-top: 20px"
>
<el-form-item
label=
"材质"
>
<el-form-item
label=
"材质"
>
<dict-selector
:type=
"DICT_TYPE.ECW_PRODUCT_MATERIAL"
v-model=
"form.material"
></dict-selector>
<dict-selector
:type=
"DICT_TYPE.ECW_PRODUCT_MATERIAL"
v-model=
"form.material"
></dict-selector>
</el-form-item>
</el-form-item>
<el-form-item
label=
"入仓时间"
>
<el-form-item
label=
"入仓时间"
v-if=
"!edit"
>
<el-date-picker
v-model=
"form.inTime"
type=
"datetime"
placeholder=
"请选择入仓时间"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
<el-date-picker
v-model=
"form.inTime"
type=
"datetime"
placeholder=
"请选择入仓时间"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -56,7 +62,7 @@
...
@@ -56,7 +62,7 @@
<el-table-column
label=
"箱数"
width=
"150px"
>
<el-table-column
label=
"箱数"
width=
"150px"
>
<template
v-slot=
"
{r,c,$index}">
<template
v-slot=
"
{r,c,$index}">
<el-form-item
:rules=
"tableFormRules.cartonsNum"
:prop=
"$index + '.cartonsNum'"
>
<el-form-item
:rules=
"tableFormRules.cartonsNum"
:prop=
"$index + '.cartonsNum'"
>
<span
v-if=
"tableData[$index].id"
>
<span
v-if=
"tableData[$index].id
&& !edit
"
>
{{
tableData
[
$index
].
cartonsNum
}}
{{
tableData
[
$index
].
cartonsNum
}}
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAGE_TYPE
,
tableData
[
$index
].
unit
)
}}
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAGE_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
</span>
...
@@ -69,7 +75,7 @@
...
@@ -69,7 +75,7 @@
<el-table-column
label=
"包装类型"
width=
"100px"
>
<el-table-column
label=
"包装类型"
width=
"100px"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item>
<el-form-item>
<span
v-if=
"tableData[$index].id"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAGE_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
<span
v-if=
"tableData[$index].id
&& !edit
"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAGE_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
<dict-selector
v-else
:type=
"DICT_TYPE.ECW_PACKAGE_TYPE"
v-model=
"tableData[$index].unit"
></dict-selector>
<dict-selector
v-else
:type=
"DICT_TYPE.ECW_PACKAGE_TYPE"
v-model=
"tableData[$index].unit"
></dict-selector>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -77,7 +83,7 @@
...
@@ -77,7 +83,7 @@
<el-table-column
label=
"长(cm)"
>
<el-table-column
label=
"长(cm)"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge1"
:prop=
"!tableData[$index].id && $index + '.boxGauge1'"
>
<el-form-item
:rules=
"tableFormRules.boxGauge1"
:prop=
"!tableData[$index].id && $index + '.boxGauge1'"
>
<span
v-if=
"tableData[$index].id"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
0
]
:
''
}}
</span>
<span
v-if=
"tableData[$index].id
&& !edit
"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
0
]
:
''
}}
</span>
<el-input
v-else
v-model.number=
"tableData[$index].boxGauge1"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
v-else
v-model.number=
"tableData[$index].boxGauge1"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -85,7 +91,7 @@
...
@@ -85,7 +91,7 @@
<el-table-column
label=
"宽(cm)"
>
<el-table-column
label=
"宽(cm)"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge2"
:prop=
"!tableData[$index].id && $index + '.boxGauge2'"
>
<el-form-item
:rules=
"tableFormRules.boxGauge2"
:prop=
"!tableData[$index].id && $index + '.boxGauge2'"
>
<span
v-if=
"tableData[$index].id"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
1
]
:
''
}}
</span>
<span
v-if=
"tableData[$index].id
&& !edit
"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
1
]
:
''
}}
</span>
<el-input
v-else
v-model.number=
"tableData[$index].boxGauge2"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
v-else
v-model.number=
"tableData[$index].boxGauge2"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -93,7 +99,7 @@
...
@@ -93,7 +99,7 @@
<el-table-column
label=
"高(cm)"
>
<el-table-column
label=
"高(cm)"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge3"
:prop=
"!tableData[$index].id && $index + '.boxGauge3'"
>
<el-form-item
:rules=
"tableFormRules.boxGauge3"
:prop=
"!tableData[$index].id && $index + '.boxGauge3'"
>
<span
v-if=
"tableData[$index].id"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
2
]
:
''
}}
</span>
<span
v-if=
"tableData[$index].id
&& !edit
"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
2
]
:
''
}}
</span>
<el-input
v-else
v-model.number=
"tableData[$index].boxGauge3"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
v-else
v-model.number=
"tableData[$index].boxGauge3"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -101,7 +107,7 @@
...
@@ -101,7 +107,7 @@
<el-table-column
label=
"体积(m³)"
>
<el-table-column
label=
"体积(m³)"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.volume"
:prop=
"$index + '.volume'"
>
<el-form-item
:rules=
"tableFormRules.volume"
:prop=
"$index + '.volume'"
>
<span
v-if=
"tableData[$index].id"
>
{{
tableData
[
$index
].
volume
}}
</span>
<span
v-if=
"tableData[$index].id
&& !edit
"
>
{{
tableData
[
$index
].
volume
}}
</span>
<el-input
v-else
v-model.number=
"tableData[$index].volume"
placeholder=
""
></el-input>
<el-input
v-else
v-model.number=
"tableData[$index].volume"
placeholder=
""
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -109,7 +115,7 @@
...
@@ -109,7 +115,7 @@
<el-table-column
label=
"重量(Kg)"
>
<el-table-column
label=
"重量(Kg)"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.weight"
:prop=
"$index + '.weight'"
>
<el-form-item
:rules=
"tableFormRules.weight"
:prop=
"$index + '.weight'"
>
<span
v-if=
"tableData[$index].id"
>
{{
tableData
[
$index
].
weight
}}
</span>
<span
v-if=
"tableData[$index].id
&& !edit
"
>
{{
tableData
[
$index
].
weight
}}
</span>
<el-input
v-else
v-model.number=
"tableData[$index].weight"
placeholder=
""
></el-input>
<el-input
v-else
v-model.number=
"tableData[$index].weight"
placeholder=
""
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -117,7 +123,7 @@
...
@@ -117,7 +123,7 @@
<el-table-column
label=
"数量"
width=
"130px"
>
<el-table-column
label=
"数量"
width=
"130px"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.quantityAll"
:prop=
"$index + '.quantityAll'"
>
<el-form-item
:rules=
"tableFormRules.quantityAll"
:prop=
"$index + '.quantityAll'"
>
<span
v-if=
"tableData[$index].id"
>
{{
tableData
[
$index
].
quantityAll
}}
</span>
<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-else
v-model.number=
"tableData[$index].quantityAll"
placeholder=
""
>
<template
slot=
"append"
>
个
</
template
>
<template
slot=
"append"
>
个
</
template
>
</el-input>
</el-input>
...
@@ -127,7 +133,7 @@
...
@@ -127,7 +133,7 @@
<el-table-column
label=
"快递单号"
>
<el-table-column
label=
"快递单号"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item>
<el-form-item>
<span
v-if=
"tableData[$index].id"
>
{{
tableData
[
$index
].
expressNo
}}
</span>
<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-else
v-model=
"tableData[$index].expressNo"
placeholder=
""
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -588,7 +594,13 @@ export default {
...
@@ -588,7 +594,13 @@ export default {
return
this
.
brandList
.
find
(
e
=>
e
.
id
===
this
.
form1
.
brand
)
||
''
return
this
.
brandList
.
find
(
e
=>
e
.
id
===
this
.
form1
.
brand
)
||
''
},
},
tableData
()
{
tableData
()
{
if
(
!
this
.
edit
){
return
[...
this
.
warehousing
.
orderWarehouseInBackItemDoList
,
...
this
.
form
.
orderWarehouseInItemDoList
]
return
[...
this
.
warehousing
.
orderWarehouseInBackItemDoList
,
...
this
.
form
.
orderWarehouseInItemDoList
]
}
// 入仓修改的时候
this
.
form
.
orderWarehouseInItemDoList
=
this
.
warehousing
.
orderWarehouseInBackItemDoList
return
this
.
form
.
orderWarehouseInItemDoList
},
},
tableData1
()
{
tableData1
()
{
return
this
.
form1
.
orderWarehouseInItemDoList
return
this
.
form1
.
orderWarehouseInItemDoList
...
@@ -638,7 +650,7 @@ export default {
...
@@ -638,7 +650,7 @@ export default {
return
brand
.
titleZh
return
brand
.
titleZh
}
}
}
}
return
''
return
'
0
'
}
}
}
}
}
}
...
...
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