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
edce21e5
Commit
edce21e5
authored
Jul 29, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓
parent
b58a0ec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
49 deletions
+57
-49
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+57
-49
No files found.
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
edce21e5
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<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=
"入仓时间"
>
<el-date-picker
v-model=
"form.
t
ime"
type=
"datetime"
placeholder=
"请选择入仓时间"
></el-date-picker>
<el-date-picker
v-model=
"form.
inT
ime"
type=
"datetime"
placeholder=
"请选择入仓时间"
></el-date-picker>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -51,51 +51,51 @@
...
@@ -51,51 +51,51 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-table
<el-table
:data=
"
warehousingInNew
List"
:data=
"
form.orderWarehouseInItemDo
List"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
label=
"箱数"
>
<el-table-column
label=
"箱数"
>
<template
v-slot=
"
{r,c,$index}">
<template
v-slot=
"
{r,c,$index}">
<el-input
v-model=
"
warehousingInNew
List[$index].cartonsNum"
placeholder=
""
></el-input>
<el-input
v-model=
"
form.orderWarehouseInItemDo
List[$index].cartonsNum"
placeholder=
""
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"包装类型"
>
<el-table-column
label=
"包装类型"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-input
v-model=
"
warehousingInNew
List[$index].boxGauge"
placeholder=
""
></el-input>
<el-input
v-model=
"
form.orderWarehouseInItemDo
List[$index].boxGauge"
placeholder=
""
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"长(cm)"
>
<el-table-column
label=
"长(cm)"
>
<!-- <template v-slot="{r,c,$index}">-->
<!-- <template v-slot="{r,c,$index}">-->
<!-- <el-input v-model="
warehousingInNew
List[$index].cartonsNum" placeholder=""></el-input>-->
<!-- <el-input v-model="
form.orderWarehouseInItemDo
List[$index].cartonsNum" placeholder=""></el-input>-->
<!-- </template>-->
<!-- </template>-->
</el-table-column>
</el-table-column>
<el-table-column
label=
"款(cm)"
>
<el-table-column
label=
"款(cm)"
>
<!-- <template v-slot="{r,c,$index}">-->
<!-- <template v-slot="{r,c,$index}">-->
<!-- <el-input v-model="
warehousingInNew
List[$index].cartonsNum" placeholder=""></el-input>-->
<!-- <el-input v-model="
form.orderWarehouseInItemDo
List[$index].cartonsNum" placeholder=""></el-input>-->
<!-- </template>-->
<!-- </template>-->
</el-table-column>
</el-table-column>
<el-table-column
label=
"高(cm)"
>
<el-table-column
label=
"高(cm)"
>
<!-- <template v-slot="{r,c,$index}">-->
<!-- <template v-slot="{r,c,$index}">-->
<!-- <el-input v-model="
warehousingInNew
List[$index].cartonsNum" placeholder=""></el-input>-->
<!-- <el-input v-model="
form.orderWarehouseInItemDo
List[$index].cartonsNum" placeholder=""></el-input>-->
<!-- </template>-->
<!-- </template>-->
</el-table-column>
</el-table-column>
<el-table-column
label=
"体积(m³)"
>
<el-table-column
label=
"体积(m³)"
>
<!-- <template v-slot="{r,c,$index}">--
>
<
template
v-slot=
"{r,c,$index}"
>
<!-- <el-input v-model="warehousingInNewList[$index].cartonsNum" placeholder=""></el-input>--
>
<el-input
v-model=
"form.orderWarehouseInItemDoList[$index].volume"
placeholder=
""
></el-input
>
<!-- </template>--
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"重量(Kg)"
>
<el-table-column
label=
"重量(Kg)"
>
<!-- <template v-slot="{r,c,$index}">--
>
<
template
v-slot=
"{r,c,$index}"
>
<!-- <el-input v-model="warehousingInNewList[$index].cartonsNum" placeholder=""></el-input>--
>
<el-input
v-model=
"form.orderWarehouseInItemDoList[$index].weight"
placeholder=
""
></el-input
>
<!-- </template>--
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"数量"
>
<el-table-column
label=
"数量"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-input
v-model=
"
warehousingInNew
List[$index].quantityAll"
placeholder=
""
></el-input>
<el-input
v-model=
"
form.orderWarehouseInItemDo
List[$index].quantityAll"
placeholder=
""
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"快递单号"
>
<el-table-column
label=
"快递单号"
>
<
template
v-slot=
"{r,c,$index}"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-input
v-model=
"
warehousingInNew
List[$index].expressNo"
placeholder=
""
></el-input>
<el-input
v-model=
"
form.orderWarehouseInItemDo
List[$index].expressNo"
placeholder=
""
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -147,11 +147,22 @@ export default {
...
@@ -147,11 +147,22 @@ export default {
DICT_TYPE
,
DICT_TYPE
,
opened
:
false
,
opened
:
false
,
form
:
{
form
:
{
material
:
undefined
,
"
brand
"
:
""
,
inTime
:
0
"
brandType
"
:
0
,
"
inTime
"
:
""
,
"
material
"
:
""
,
"
orderId
"
:
0
,
"
orderItemId
"
:
0
,
"
orderNo
"
:
""
,
"
orderWarehouseInItemDoList
"
:
[],
"
prodAttrIds
"
:
""
,
"
prodId
"
:
0
,
"
prodTitleEn
"
:
""
,
"
prodTitleZh
"
:
""
,
"
prodType
"
:
0
,
"
type
"
:
0
},
},
// orderItem: {}
// orderItem: {}
warehousingInNewList
:
[]
};
};
},
},
...
@@ -177,50 +188,47 @@ export default {
...
@@ -177,50 +188,47 @@ export default {
methods
:
{
methods
:
{
handleSubmit
()
{
handleSubmit
()
{
Promise
.
all
(
// Promise.all(
this
.
warehousingInNewList
.
map
(
e
=>
{
// this.form.orderWarehouseInItemDoList.map(e => {
return
orderWarehouseIn
({
// return orderWarehouseIn({
...
e
,
// ...e,
inTime
:
this
.
form
.
inTime
,
// inTime: this.form.inTime,
material
:
this
.
form
.
material
,
// material: this.form.material,
brandType
:
this
.
warehousing
.
brandType
,
// brandType: this.warehousing.brandType,
orderId
:
this
.
warehousing
.
orderId
,
// orderId: this.warehousing.orderId,
orderItemId
:
this
.
warehousing
.
orderItemId
,
// orderItemId: this.warehousing.orderItemId,
orderNo
:
this
.
warehousing
.
orderNo
// orderNo: this.warehousing.orderNo
})
// })
})
// })
).
then
(()
=>
{
// ).then(() => {
// this.handleClose()
// })
return
orderWarehouseIn
({
...
this
.
form
,
inTime
:
this
.
form
.
inTime
,
material
:
this
.
form
.
material
,
brandType
:
this
.
warehousing
.
brandType
,
orderId
:
this
.
warehousing
.
orderId
,
orderItemId
:
this
.
warehousing
.
orderItemId
,
orderNo
:
this
.
warehousing
.
orderNo
}).
then
(()
=>
{
this
.
handleClose
()
this
.
handleClose
()
})
})
},
},
handleClose
()
{
handleClose
()
{
this
.
warehousingInNew
List
=
[]
this
.
form
.
orderWarehouseInItemDo
List
=
[]
this
.
opened
=
false
this
.
opened
=
false
},
},
handleDelete
()
{
handleDelete
()
{
this
.
warehousingInNew
List
.
pop
()
this
.
form
.
orderWarehouseInItemDo
List
.
pop
()
},
},
handleAdd
()
{
handleAdd
()
{
this
.
warehousingInNew
List
.
push
({
this
.
form
.
orderWarehouseInItemDo
List
.
push
({
"
boxGauge
"
:
""
,
"
boxGauge
"
:
""
,
"
brand
"
:
""
,
"
brandType
"
:
0
,
"
cartonsNum
"
:
0
,
"
cartonsNum
"
:
0
,
"
expressNo
"
:
""
,
"
expressNo
"
:
""
,
"
inTime
"
:
""
,
"
material
"
:
""
,
"
orderId
"
:
0
,
"
orderItemId
"
:
0
,
"
orderNo
"
:
""
,
"
prodAttrIds
"
:
""
,
"
prodId
"
:
0
,
"
prodTitleEn
"
:
""
,
"
prodTitleZh
"
:
""
,
"
prodType
"
:
0
,
"
quantityAll
"
:
0
,
"
quantityAll
"
:
0
,
"
type
"
:
0
,
"
unit
"
:
""
,
"
unit
"
:
"
package
"
,
"
volume
"
:
0
,
"
volume
"
:
0
,
"
weight
"
:
0
"
weight
"
:
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