| | |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="申请日期" prop="applyTime"> |
| | | <el-date-picker style="width: 100%" v-model="form.applyTime" type="date" |
| | | <el-date-picker style="width: 100%" v-model="form.applyTime" type="date" format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd HH:mm:ss" placeholder="申请日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | <el-table-column prop="starttime" slot="" label="出发日期" fixed align="center" width="150"> |
| | | <template slot-scope="scope"> |
| | | <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.starttime" |
| | | type="date" value-format="yyyy-MM-dd HH:mm:ss" placeholder="出发日期" |
| | | type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" placeholder="出发日期" |
| | | @change="getStandard(scope.row)"> |
| | | </el-date-picker> |
| | | </template> |
| | |
| | | <el-table-column prop="endtime" slot="" label="到达日期" align="center" width="150" fixed> |
| | | <template slot-scope="scope"> |
| | | <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.endtime" |
| | | type="date" value-format="yyyy-MM-dd HH:mm:ss" placeholder="到达日期"> |
| | | type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" placeholder="到达日期"> |
| | | </el-date-picker> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | }, |
| | | methods: { |
| | | handleUploadError() { }, |
| | | // 下载文件 |
| | | // 预览/下载文件 |
| | | downFile(item) { |
| | | |
| | | const ext = String(item.name || '').split('.').pop().toLowerCase(); |
| | | if (['pdf', 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp'].includes(ext)) { |
| | | this.$previewFile([{ name: item.name, url: item.url }]); |
| | | return; |
| | | } |
| | | const url = process.env.VUE_APP_BASE_API + item.url |
| | | var a = document.createElement('a'); |
| | | var event = new MouseEvent('click'); |
| | | a.download = item.name; |
| | | a.href = url; |
| | | a.dispatchEvent(event); |
| | | |
| | | |
| | | }, |
| | | remove(file) { |
| | | |