Commit 3019cd57 authored by 邓春圆's avatar 邓春圆

时间选择器添加时分秒

parent b1859e0b
<template>
<el-dialog :title="$t('批量提货')" visible :before-close="closeDialog" :close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules">
<el-form ref="form" :model="form" :rules="rules">
<el-tabs v-model="current" type="card">
<el-tab-pane :label="$t('全部提货')" name="createBatch">
<el-form-item :label="$t('订单号') + '/' + this.$t('提单号')" prop="orderId">
......@@ -8,7 +8,7 @@
<div>{{$t('注:单号之间使用逗号或空格隔开')}}</div>
</el-form-item>
<el-form-item :label="$t('提货时间')" prop="pickTime">
<el-date-picker v-model="form.pickTime" placeholder="" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
<el-date-picker type="datetime" v-model="form.pickTime" placeholder="" label-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item>
</el-tab-pane>
<el-tab-pane :label="$t('分批提货')" name="createSplitBatch">
......@@ -18,7 +18,7 @@
<div>{{$t('注:单号之间使用逗号或空格隔开')}}</div>
</el-form-item>
<el-form-item :label="$t('提货时间')" prop="pickTime">
<el-date-picker v-model="form.pickTime" placeholder="" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
<el-date-picker type="datetime" v-model="form.pickTime" placeholder="" label-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item>
<el-form-item label="">
<el-table :data="orderList">
......@@ -43,7 +43,7 @@ import {createBatch, createSplitBatch, getPickUpListByOrderNo} from '@/api/ecw/o
export default {
props:{
},
data(){
return {
......@@ -62,10 +62,10 @@ export default {
}
},
computed:{
},
created(){
},
methods:{
submit(){
......@@ -75,7 +75,7 @@ export default {
}
let orderIdArr = this.form.orderId.replace(/,/g, ' ').split(' ').filter(item => item !='')
let data = []
// 分批提货
if(this.current == 'createSplitBatch'){
data = this.orderList.map(item => {
......@@ -112,4 +112,4 @@ export default {
}
}
}
</script>
\ No newline at end of file
</script>
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