Commit 179f418c authored by Marcus's avatar Marcus

后台入仓操作、补充、修改储位规则调整-前

https://zentao.test.jdshangmen.com/task-view-1635.html
parent 069404d8
...@@ -171,9 +171,14 @@ ...@@ -171,9 +171,14 @@
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('储位')" prop="orderLocationBackVOList"> <el-table-column :label="$t('储位')" prop="orderLocationBackVOList" width="150px">
<template v-slot="{ row, column, $index }"> <template v-slot="{ row, column, $index }">
<warehouse-area-select v-model="column"></warehouse-area-select> <warehouse-area-select
v-model="tableData[$index].orderLocationBackVOList"
:readonly="tableData[$index].id && !edit"
:order-id="orderId"
:warehouse-id="warehouseId"
:is-editing="edit"></warehouse-area-select>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -344,6 +349,16 @@ ...@@ -344,6 +349,16 @@
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('储位')" prop="orderLocationBackVOList" width="150px">
<template v-slot="{ row, column, $index }">
<warehouse-area-select
v-model="tableData1[$index].orderLocationBackVOList"
:readonly="tableData1[$index].id && !edit"
:order-id="orderId"
:warehouse-id="warehouseId"
:is-editing="edit"></warehouse-area-select>
</template>
</el-table-column>
</el-table> </el-table>
</el-form> </el-form>
</el-card> </el-card>
...@@ -396,6 +411,10 @@ export default { ...@@ -396,6 +411,10 @@ export default {
}, },
props: { props: {
order: {
type: Object,
default: undefined
},
orderId: { orderId: {
type: Number, type: Number,
default: undefined default: undefined
...@@ -611,7 +630,8 @@ export default { ...@@ -611,7 +630,8 @@ export default {
...this.form.orderWarehouseInItemDoList.map(e => { ...this.form.orderWarehouseInItemDoList.map(e => {
return { return {
...e, ...e,
boxGauge: e.boxGauge1 + '*' + e.boxGauge2 + '*' + e.boxGauge3 boxGauge: e.boxGauge1 + '*' + e.boxGauge2 + '*' + e.boxGauge3,
orderLocationCreateReqVOList: e.orderLocationBackVOList
} }
}) })
] ]
...@@ -631,7 +651,8 @@ export default { ...@@ -631,7 +651,8 @@ export default {
orderWarehouseInItemDoList: this.form1.orderWarehouseInItemDoList.map(e => { orderWarehouseInItemDoList: this.form1.orderWarehouseInItemDoList.map(e => {
return { return {
...e, ...e,
boxGauge: e.boxGauge1 + '*' + e.boxGauge2 + '*' + e.boxGauge3 boxGauge: e.boxGauge1 + '*' + e.boxGauge2 + '*' + e.boxGauge3,
orderLocationCreateReqVOList: e.orderLocationBackVOList
} }
}) })
}).then(r => { }).then(r => {
...@@ -665,7 +686,8 @@ export default { ...@@ -665,7 +686,8 @@ export default {
"orderWarehouseInUpdateItemDoList": this.tableData.map(e => { "orderWarehouseInUpdateItemDoList": this.tableData.map(e => {
return { return {
...e, ...e,
boxGauge: e.boxGauge1 + '*' + e.boxGauge2 + '*' + e.boxGauge3 boxGauge: e.boxGauge1 + '*' + e.boxGauge2 + '*' + e.boxGauge3,
orderLocationCreateReqVOList: e.orderLocationBackVOList
} }
}), }),
copyUserId: this.selectedUsers copyUserId: this.selectedUsers
...@@ -808,6 +830,9 @@ export default { ...@@ -808,6 +830,9 @@ export default {
} }
} }
return '' return ''
},
warehouseId(){
return this.order?.logisticsInfoDto?.startWarehouseId
} }
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<order-base-info :order="order"></order-base-info> <order-base-info :order="order"></order-base-info>
<div style="margin-top: 20px"> <div style="margin-top: 20px;display: none">
<span>{{$t('储位')}}{{ ($refs.area ? $refs.area.selected : []).join(',') }}</span> <span>{{$t('储位')}}{{ ($refs.area ? $refs.area.selected : []).join(',') }}</span>
<el-button type="primary" size="mini" @click="areaVisible = true" style="margin-left: 15px">{{$t('选择')}}</el-button> <el-button type="primary" size="mini" @click="areaVisible = true" style="margin-left: 15px">{{$t('选择')}}</el-button>
</div> </div>
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
<warehouse-area-dialog ref="area" :visible.sync="areaVisible" v-model="form.orderLocationCreateReqVOList" <warehouse-area-dialog ref="area" :visible.sync="areaVisible" v-model="form.orderLocationCreateReqVOList"
:order-id="orderId" :warehouse-id="warehouseId" :is-editing="isEdit"></warehouse-area-dialog> :order-id="orderId" :warehouse-id="warehouseId" :is-editing="isEdit"></warehouse-area-dialog>
<edit-dialog :title="title" :order-id="order.orderId" :visible.sync="warehousingVisible" :warehousing="warehousing" :edit="isEdit" :is-jiyun="order.type && order.type.indexOf('1') !== -1"></edit-dialog> <edit-dialog :order="order" :title="title" :order-id="order.orderId" :visible.sync="warehousingVisible" :warehousing="warehousing" :edit="isEdit" :is-jiyun="order.type && order.type.indexOf('1') !== -1"></edit-dialog>
<!-- 完成入仓 --> <!-- 完成入仓 -->
<el-dialog <el-dialog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment