|
|
<template>
|
|
|
<Modal
|
|
|
v-model="showModal"
|
|
|
@on-ok="ok"
|
|
|
@on-cancel="cancel"
|
|
|
width="auto"
|
|
|
class-name="deliver-modal"
|
|
|
cancel-text="取消"
|
|
|
ok-text="提交">
|
|
|
<div class="deliver-modal">
|
|
|
<div class="deliver-info">
|
|
|
<Row class-name="info-row">
|
|
|
<Col span="4" class-name="info-col">收货仓库:</Col>
|
|
|
<Col span="20">{{houseInfo.storehouseName}}</Col>
|
|
|
</Row>
|
|
|
<Row class-name="info-row">
|
|
|
<Col span="4">物流公司:</Col>
|
|
|
<Col span="20">
|
|
|
<Select v-model="houseId">
|
|
|
<Option v-for="item in houseList"
|
|
|
:value="item.value"
|
|
|
:key="item">
|
|
|
{{ item.label }}
|
|
|
</Option>
|
|
|
</Select>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row>
|
|
|
<Col span="4">物流单号:</Col>
|
|
|
<Col span="20"><Input></Input></Col>
|
|
|
</Row>
|
|
|
<p class="info-tip">
|
|
|
发往:{{houseInfo.storehouseName}}{{houseInfo.address}}{{houseInfo.adminName}}
|
|
|
</p>
|
|
|
</div>
|
|
|
<!--<Spin v-if="showLoading" fix size="large"></Spin>-->
|
|
|
</div>
|
|
|
</Modal>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import _ from 'lodash';
|
|
|
import service from 'trade-service';
|
|
|
|
|
|
export default {
|
|
|
name: 'OutStock',
|
|
|
props: {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
showModal: false,
|
|
|
showLoading: true,
|
|
|
houseInfo: {},
|
|
|
houseId: 0,
|
|
|
houseList: [
|
|
|
{
|
|
|
label: 'EMS',
|
|
|
value: '0'
|
|
|
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
},
|
|
|
methods: {
|
|
|
show() {
|
|
|
this.showModal = true;
|
|
|
service.allotWarehouseInfo()
|
|
|
.then(res => {
|
|
|
// todo
|
|
|
|
|
|
this.houseInfo = {
|
|
|
adminName: '许凯',
|
|
|
address: '南京市玄武区1号',
|
|
|
phone: 13901065166,
|
|
|
storehouseName: '南京1号仓库',
|
|
|
id: 3,
|
|
|
status: 1
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
ok(){
|
|
|
|
|
|
},
|
|
|
cancel(){
|
|
|
this.$Message.info('click cancel')
|
|
|
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.deliver-modal {
|
|
|
padding: 30px;
|
|
|
|
|
|
.info-row {
|
|
|
margin-bottom: 20px;
|
|
|
}
|
|
|
|
|
|
.info-tip {
|
|
|
margin-top: 20px;
|
|
|
color: #ff0000;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
.ivu-modal {
|
|
|
width: 50%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
</style> |
...
|
...
|
|