...
|
...
|
@@ -13,11 +13,12 @@ |
|
|
</Form-item>
|
|
|
|
|
|
<Form-item label="预计到货时间">
|
|
|
<Date-picker v-model="createDate" type="date" placeholder="选择日期"></Date-picker>
|
|
|
<!--<Date-picker v-model="createDate" type="date" placeholder="选择日期"></Date-picker>-->
|
|
|
<date-pick v-model="createDate"></date-pick>
|
|
|
</Form-item>
|
|
|
|
|
|
<Form-item label="品牌">
|
|
|
<select-brand v-model="brandId"></select-brand>
|
|
|
<select-brand v-model="brandId" :selectWhenOnlyOne="true"></select-brand>
|
|
|
</Form-item>
|
|
|
</Form>
|
|
|
</div>
|
...
|
...
|
@@ -33,6 +34,8 @@ |
|
|
<script>
|
|
|
|
|
|
import InvoiceService from 'services/repository/invoice-service';
|
|
|
import DatePick from './date-pick';
|
|
|
import moment from 'moment';
|
|
|
|
|
|
export default {
|
|
|
name: 'create-modal',
|
...
|
...
|
@@ -49,8 +52,8 @@ export default { |
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
hanldeDate() {
|
|
|
return this.createDate.getTime() / 1000;
|
|
|
handleDate() {
|
|
|
return moment(this.createDate, 'YYYY-MM-DD').unix();
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
...
|
...
|
@@ -111,7 +114,7 @@ export default { |
|
|
}
|
|
|
|
|
|
this.modal_loading = true;
|
|
|
return this.invoiceService.createOrder(this.storageId, this.hanldeDate, this.brandId).then((result) => {
|
|
|
return this.invoiceService.createOrder(this.storageId, this.handleDate, this.brandId).then((result) => {
|
|
|
if (result.code === 200) {
|
|
|
this.$Message.info('创建成功');
|
|
|
} else {
|
...
|
...
|
@@ -124,7 +127,11 @@ export default { |
|
|
emitEvent() {
|
|
|
this.$emit('on-success');
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
DatePick
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
...
|
...
|
|