Commit f043c9b4 authored by 黄卓's avatar 黄卓

入库弹窗编辑组件

parent 73cdcae1
...@@ -66,7 +66,6 @@ export default { ...@@ -66,7 +66,6 @@ export default {
data() { data() {
return { return {
opened: false, opened: false,
key: 0,
orderId: '', orderId: '',
area: [], area: [],
......
<template>
<div>
<el-dialog
title="入仓-货物入仓"
:visible.sync="opened"
width="600px"
:before-close="handleClose()"
>
{{ id }}
<span slot="footer">
<el-button @click="opened = false">关 闭</el-button>
<el-button type="primary" @click="opened = false">提 交</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'editDialog',
props: {
visible: {
type: Boolean,
default: false
},
id: Number
},
mounted() {
},
data() {
return {
opened: false,
};
},
watch: {
visible(val) {
if (val) {
this.opened = true
} else {
}
},
opened(val) {
if (val) {
} else {
this.$emit('update:visible', false)
}
}
},
methods: {
handleClose() {},
}
}
</script>
<style scoped>
</style>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
prop="address" prop="address"
label="操作"> label="操作">
<template v-slot="{row}"> <template v-slot="{row}">
<el-button size="mini" type="text">入仓</el-button> <el-button size="mini" type="text" @click="handleWarehousing(row.id)">入仓</el-button>
<el-button size="mini" type="text">追加</el-button> <el-button size="mini" type="text">追加</el-button>
<el-button size="mini" type="text">退仓</el-button> <el-button size="mini" type="text">退仓</el-button>
</template> </template>
...@@ -156,6 +156,8 @@ ...@@ -156,6 +156,8 @@
</el-form> </el-form>
<warehouse-area-dialog :visible.sync="areaVisible"></warehouse-area-dialog> <warehouse-area-dialog :visible.sync="areaVisible"></warehouse-area-dialog>
<edit-dialog :visible.sync="warehousingVisible" :id="warehousingId"></edit-dialog>
</div> </div>
</template> </template>
...@@ -164,13 +166,15 @@ import {getCurrencyList} from "@/api/ecw/currency" ...@@ -164,13 +166,15 @@ import {getCurrencyList} from "@/api/ecw/currency"
import {getOrder} from "@/api/ecw/order" import {getOrder} from "@/api/ecw/order"
import orderBaseInfo from "@/components/OrderBaseInfo" import orderBaseInfo from "@/components/OrderBaseInfo"
import WarehouseAreaDialog from '@/components/WarehouseAreaDialog' import WarehouseAreaDialog from '@/components/WarehouseAreaDialog'
import editDialog from '@/views/ecw/order/warehousing/components/editDialog'
export default { export default {
name: "Warehousing", name: "Warehousing",
components: { components: {
orderBaseInfo, orderBaseInfo,
WarehouseAreaDialog WarehouseAreaDialog,
editDialog
}, },
mounted() { mounted() {
...@@ -180,15 +184,25 @@ export default { ...@@ -180,15 +184,25 @@ export default {
} }
getCurrencyList().then(res => this.currencyList = res.data) getCurrencyList().then(res => this.currencyList = res.data)
}, },
data() { data() {
return { return {
areaVisible: false, areaVisible: false,
warehousingVisible: false,
form: { form: {
a: '', a: '',
b: 3 b: 3
}, },
currencyList:[], currencyList:[],
order: {} order: {},
warehousingId: undefined
}
},
methods: {
handleWarehousing(id) {
this.warehousingId = id
this.warehousingVisible = true
} }
} }
} }
......
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